3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-20 21:03:40 +00:00

Revert to pre-muxcover approach

This commit is contained in:
Eddie Hung 2019-05-02 11:25:10 -07:00
parent d05ac7257e
commit 95867109ea
2 changed files with 84 additions and 27 deletions

View file

@ -232,7 +232,7 @@ struct SynthXilinxPass : public ScriptPass
// cells for identifying variable-length shift registers,
// so attempt to convert $pmux-es to the former
// Also: wide multiplexer inference benefits from this too
if (!nosrl || !nomux || help_mode)
if ((!nosrl && !nomux) || help_mode)
run("pmux2shiftx", "(skip if '-nosrl' and '-nomux')");
run("opt -fast -full");
@ -254,18 +254,15 @@ struct SynthXilinxPass : public ScriptPass
run("shregmap -tech xilinx -minlen 3", "(skip if '-nosrl')");
}
if (!nomux || help_mode)
run("techmap -map +/xilinx/cells_map.v");
run("techmap");
run("opt -fast");
if (!nomux || help_mode)
run("muxcover -mux8 -mux16");
}
if (check_label("map_cells")) {
std::string define;
if (nomux)
define += " -D NO_MUXFN";
run("techmap -map +/techmap.v -map +/xilinx/cells_map.v" + define);
run("techmap -map +/techmap.v -map +/xilinx/cells_map.v");
run("clean");
}