mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Replace opt_rmdff with opt_dff.
This commit is contained in:
parent
c39ebe6ae0
commit
9a4f420b4b
18 changed files with 75 additions and 73 deletions
|
@ -45,7 +45,7 @@ struct OptPass : public Pass {
|
|||
log(" opt_reduce [-fine] [-full]\n");
|
||||
log(" opt_merge [-share_all]\n");
|
||||
log(" opt_share (-full only)\n");
|
||||
log(" opt_rmdff [-keepdc] [-sat] (except when called with -noff)\n");
|
||||
log(" opt_dff [-nodffe] [-nosdff] [-keepdc] [-sat] (except when called with -noff)\n");
|
||||
log(" opt_clean [-purge]\n");
|
||||
log(" opt_expr [-mux_undef] [-mux_bool] [-undriven] [-noclkinv] [-fine] [-full] [-keepdc]\n");
|
||||
log(" while <changed design>\n");
|
||||
|
@ -55,9 +55,9 @@ struct OptPass : public Pass {
|
|||
log(" do\n");
|
||||
log(" opt_expr [-mux_undef] [-mux_bool] [-undriven] [-noclkinv] [-fine] [-full] [-keepdc]\n");
|
||||
log(" opt_merge [-share_all]\n");
|
||||
log(" opt_rmdff [-keepdc] [-sat] (except when called with -noff)\n");
|
||||
log(" opt_dff [-nodffe] [-nosdff] [-keepdc] [-sat] (except when called with -noff)\n");
|
||||
log(" opt_clean [-purge]\n");
|
||||
log(" while <changed design in opt_rmdff>\n");
|
||||
log(" while <changed design in opt_dff>\n");
|
||||
log("\n");
|
||||
log("Note: Options in square brackets (such as [-keepdc]) are passed through to\n");
|
||||
log("the opt_* commands when given to 'opt'.\n");
|
||||
|
@ -70,7 +70,7 @@ struct OptPass : public Pass {
|
|||
std::string opt_expr_args;
|
||||
std::string opt_reduce_args;
|
||||
std::string opt_merge_args;
|
||||
std::string opt_rmdff_args;
|
||||
std::string opt_dff_args;
|
||||
bool opt_share = false;
|
||||
bool fast_mode = false;
|
||||
bool noff_mode = false;
|
||||
|
@ -113,11 +113,19 @@ struct OptPass : public Pass {
|
|||
}
|
||||
if (args[argidx] == "-keepdc") {
|
||||
opt_expr_args += " -keepdc";
|
||||
opt_rmdff_args += " -keepdc";
|
||||
opt_dff_args += " -keepdc";
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-nodffe") {
|
||||
opt_dff_args += " -nodffe";
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-nosdff") {
|
||||
opt_dff_args += " -nosdff";
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-sat") {
|
||||
opt_rmdff_args += " -sat";
|
||||
opt_dff_args += " -sat";
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-share_all") {
|
||||
|
@ -143,7 +151,7 @@ struct OptPass : public Pass {
|
|||
Pass::call(design, "opt_merge" + opt_merge_args);
|
||||
design->scratchpad_unset("opt.did_something");
|
||||
if (!noff_mode)
|
||||
Pass::call(design, "opt_rmdff" + opt_rmdff_args);
|
||||
Pass::call(design, "opt_dff" + opt_dff_args);
|
||||
if (design->scratchpad_get_bool("opt.did_something") == false)
|
||||
break;
|
||||
Pass::call(design, "opt_clean" + opt_clean_args);
|
||||
|
@ -163,7 +171,7 @@ struct OptPass : public Pass {
|
|||
if (opt_share)
|
||||
Pass::call(design, "opt_share");
|
||||
if (!noff_mode)
|
||||
Pass::call(design, "opt_rmdff" + opt_rmdff_args);
|
||||
Pass::call(design, "opt_dff" + opt_dff_args);
|
||||
Pass::call(design, "opt_clean" + opt_clean_args);
|
||||
Pass::call(design, "opt_expr" + opt_expr_args);
|
||||
if (design->scratchpad_get_bool("opt.did_something") == false)
|
||||
|
|
|
@ -295,7 +295,7 @@ struct Abc9Pass : public ScriptPass
|
|||
run("proc");
|
||||
run("wbflip");
|
||||
run("techmap -wb -map %$abc9 -map +/techmap.v A:abc9_flop");
|
||||
run("opt");
|
||||
run("opt -nodffe -nosdff");
|
||||
if (dff_mode || help_mode) {
|
||||
if (!help_mode)
|
||||
active_design->scratchpad_unset("abc9_ops.prep_dff_submod.did_something");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue