Constrain wreduce only if wide mux

This commit is contained in:
Eddie Hung 2019-06-21 17:12:34 -07:00
parent aeee9dcad7
commit faa2d6fc1c
1 changed files with 4 additions and 1 deletions

View File

@ -226,7 +226,10 @@ struct SynthXilinxPass : public ScriptPass
run("opt_clean");
run("check");
run("opt");
run("wreduce c:* t:$mux %d");
if (help_mode)
run("wreduce [c:* t:$mux %d]", "(no selection if -nomux)");
else
run("wreduce" + nomux ? "" : " c:* t:$mux %d");
run("peepopt");
run("opt_clean");
run("alumacc");