mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 19:05:52 +00:00
Added "opt -full" alias for all more aggressive optimizations
This commit is contained in:
parent
a21481b338
commit
ab28491f27
4 changed files with 35 additions and 9 deletions
|
@ -942,15 +942,18 @@ struct OptConstPass : public Pass {
|
|||
log(" -undriven\n");
|
||||
log(" replace undriven nets with undef (x) constants\n");
|
||||
log("\n");
|
||||
log(" -fine\n");
|
||||
log(" perform fine-grain optimizations\n");
|
||||
log("\n");
|
||||
log(" -full\n");
|
||||
log(" alias for -mux_undef -mux_bool -undriven -fine\n");
|
||||
log("\n");
|
||||
log(" -keepdc\n");
|
||||
log(" some optimizations change the behavior of the circuit with respect to\n");
|
||||
log(" don't-care bits. for example in 'a+0' a single x-bit in 'a' will cause\n");
|
||||
log(" all result bits to be set to x. this behavior changes when 'a+0' is\n");
|
||||
log(" replaced by 'a'. the -keepdc option disables all such optimizations.\n");
|
||||
log("\n");
|
||||
log(" -fine\n");
|
||||
log(" perform fine-grain optimizations\n");
|
||||
log("\n");
|
||||
}
|
||||
virtual void execute(std::vector<std::string> args, RTLIL::Design *design)
|
||||
{
|
||||
|
@ -981,6 +984,13 @@ struct OptConstPass : public Pass {
|
|||
do_fine = true;
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-full") {
|
||||
mux_undef = true;
|
||||
mux_bool = true;
|
||||
undriven = true;
|
||||
do_fine = true;
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-keepdc") {
|
||||
keepdc = true;
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue