Skip to content

Commit

Permalink
mult -> booth in synth.cc, to turn on use synth -booth
Browse files Browse the repository at this point in the history
  • Loading branch information
andyfox-rushc committed Sep 8, 2023
1 parent 1d92ea8 commit 0fa4125
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions techlibs/common/synth.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -113,7 +113,7 @@ struct SynthPass : public ScriptPass {
noabc = false;
noshare = false;
flowmap = false;
mult = false;
booth = false;
abc = "abc";
}

Expand Down Expand Up @@ -167,8 +167,8 @@ struct SynthPass : public ScriptPass {
noalumacc = true;
continue;
}
if (args[argidx] == "-mult") {
mult = true;
if (args[argidx] == "-booth") {
booth = true;
continue;
}

Expand Down Expand Up @@ -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)");
Expand Down

0 comments on commit 0fa4125

Please sign in to comment.