mult -> booth in synth.cc, to turn on use synth -booth

This commit is contained in:
andyfox-rushc 2023-09-08 16:44:59 -07:00
parent 1d92ea8001
commit 0fa412502c
1 changed files with 5 additions and 5 deletions

View File

@ -95,7 +95,7 @@ struct SynthPass : public ScriptPass {
}
string top_module, fsm_opts, memory_opts, abc;
bool autotop, flatten, noalumacc, nofsm, noabc, noshare, flowmap, mult;
bool autotop, flatten, noalumacc, nofsm, noabc, noshare, flowmap, booth;
int lut;
@ -113,7 +113,7 @@ struct SynthPass : public ScriptPass {
noabc = false;
noshare = false;
flowmap = false;
mult = false;
booth = false;
abc = "abc";
}
@ -167,8 +167,8 @@ struct SynthPass : public ScriptPass {
noalumacc = true;
continue;
}
if (args[argidx] == "-mult") {
mult = true;
if (args[argidx] == "-booth") {
booth = true;
continue;
}
@ -246,7 +246,7 @@ struct SynthPass : public ScriptPass {
run("techmap -map +/cmp2lut.v -map +/cmp2lcu.v", " (if -lut)");
else if (lut)
run(stringf("techmap -map +/cmp2lut.v -map +/cmp2lcu.v -D LUT_WIDTH=%d", lut));
if (mult)
if (booth)
run("booth");
if (!noalumacc)
run("alumacc", " (unless -noalumacc)");