mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-19 09:40:21 +00:00
Renamed opt_const to opt_expr
This commit is contained in:
parent
d31c968d76
commit
1d0f0d668a
14 changed files with 84 additions and 83 deletions
|
@ -127,7 +127,7 @@ struct Ice40OptPass : public Pass {
|
|||
log("\n");
|
||||
log(" do\n");
|
||||
log(" <ice40 specific optimizations>\n");
|
||||
log(" opt_const -mux_undef -undriven [-full]\n");
|
||||
log(" opt_expr -mux_undef -undriven [-full]\n");
|
||||
log(" opt_share\n");
|
||||
log(" opt_rmdff\n");
|
||||
log(" opt_clean\n");
|
||||
|
@ -136,14 +136,14 @@ struct Ice40OptPass : public Pass {
|
|||
}
|
||||
virtual void execute(std::vector<std::string> args, RTLIL::Design *design)
|
||||
{
|
||||
string opt_const_args = "-mux_undef -undriven";
|
||||
string opt_expr_args = "-mux_undef -undriven";
|
||||
log_header("Executing ICE40_OPT pass (performing simple optimizations).\n");
|
||||
log_push();
|
||||
|
||||
size_t argidx;
|
||||
for (argidx = 1; argidx < args.size(); argidx++) {
|
||||
if (args[argidx] == "-full") {
|
||||
opt_const_args += " -full";
|
||||
opt_expr_args += " -full";
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
|
@ -158,7 +158,7 @@ struct Ice40OptPass : public Pass {
|
|||
for (auto module : design->selected_modules())
|
||||
run_ice40_opts(module);
|
||||
|
||||
Pass::call(design, "opt_const " + opt_const_args);
|
||||
Pass::call(design, "opt_expr " + opt_expr_args);
|
||||
Pass::call(design, "opt_share");
|
||||
Pass::call(design, "opt_rmdff");
|
||||
Pass::call(design, "opt_clean");
|
||||
|
|
|
@ -106,7 +106,7 @@ struct SynthIce40Pass : public Pass {
|
|||
log(" dffsr2dff\n");
|
||||
log(" dff2dffe -direct-match $_DFF_*\n");
|
||||
log(" techmap -map +/ice40/cells_map.v\n");
|
||||
log(" opt_const -mux_undef\n");
|
||||
log(" opt_expr -mux_undef\n");
|
||||
log(" simplemap\n");
|
||||
log(" ice40_ffinit\n");
|
||||
log(" ice40_ffssr\n");
|
||||
|
@ -247,7 +247,7 @@ struct SynthIce40Pass : public Pass {
|
|||
Pass::call(design, "dffsr2dff");
|
||||
Pass::call(design, "dff2dffe -direct-match $_DFF_*");
|
||||
Pass::call(design, "techmap -map +/ice40/cells_map.v");
|
||||
Pass::call(design, "opt_const -mux_undef");
|
||||
Pass::call(design, "opt_expr -mux_undef");
|
||||
Pass::call(design, "simplemap");
|
||||
Pass::call(design, "ice40_ffinit");
|
||||
Pass::call(design, "ice40_ffssr");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue