3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-25 18:15:34 +00:00

Fixes for 2:1 muxes

This commit is contained in:
Eddie Hung 2019-07-08 12:03:38 -07:00
parent 0944acf3af
commit 895ca50173
2 changed files with 30 additions and 5 deletions

View file

@ -283,7 +283,7 @@ struct SynthXilinxPass : public ScriptPass
constexpr int cost_mux2 = 100;
std::string muxcover_args = stringf(" -nodecode -mux2=%d", cost_mux2);
switch (widemux) {
case 2:
case 2: muxcover_args += stringf(" -mux4=%d -mux8=%d -mux16=%d", cost_mux2+1, cost_mux2+2, cost_mux2+3); break;
case 3:
case 4: muxcover_args += stringf(" -mux4=%d -mux8=%d -mux16=%d", cost_mux2*(widemux-1)-2, cost_mux2*(widemux-1)-1, cost_mux2*(widemux-1)); break;
case 5: