mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
mult -> booth in synth.cc, to turn on use synth -booth
This commit is contained in:
parent
1d92ea8001
commit
0fa412502c
|
@ -95,7 +95,7 @@ struct SynthPass : public ScriptPass {
|
||||||
}
|
}
|
||||||
|
|
||||||
string top_module, fsm_opts, memory_opts, abc;
|
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;
|
int lut;
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ struct SynthPass : public ScriptPass {
|
||||||
noabc = false;
|
noabc = false;
|
||||||
noshare = false;
|
noshare = false;
|
||||||
flowmap = false;
|
flowmap = false;
|
||||||
mult = false;
|
booth = false;
|
||||||
abc = "abc";
|
abc = "abc";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -167,8 +167,8 @@ struct SynthPass : public ScriptPass {
|
||||||
noalumacc = true;
|
noalumacc = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (args[argidx] == "-mult") {
|
if (args[argidx] == "-booth") {
|
||||||
mult = true;
|
booth = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -246,7 +246,7 @@ struct SynthPass : public ScriptPass {
|
||||||
run("techmap -map +/cmp2lut.v -map +/cmp2lcu.v", " (if -lut)");
|
run("techmap -map +/cmp2lut.v -map +/cmp2lcu.v", " (if -lut)");
|
||||||
else if (lut)
|
else if (lut)
|
||||||
run(stringf("techmap -map +/cmp2lut.v -map +/cmp2lcu.v -D LUT_WIDTH=%d", lut));
|
run(stringf("techmap -map +/cmp2lut.v -map +/cmp2lcu.v -D LUT_WIDTH=%d", lut));
|
||||||
if (mult)
|
if (booth)
|
||||||
run("booth");
|
run("booth");
|
||||||
if (!noalumacc)
|
if (!noalumacc)
|
||||||
run("alumacc", " (unless -noalumacc)");
|
run("alumacc", " (unless -noalumacc)");
|
||||||
|
|
Loading…
Reference in a new issue