Fix bug in #1078, add entry to CHANGELOG
authorEddie Hung <eddie@fpgeh.com>
Wed, 19 Jun 2019 16:51:11 +0000 (09:51 -0700)
committerEddie Hung <eddie@fpgeh.com>
Wed, 19 Jun 2019 16:51:11 +0000 (09:51 -0700)
CHANGELOG
passes/techmap/muxcover.cc

index 839fefcf1d0b57888408eb5dc20bc8dae561733f..4c38f6e6e917a5b6e01b6dbeff74cd6d3c8f8fd0 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -17,6 +17,7 @@ Yosys 0.8 .. Yosys 0.8-dev
     - Added "rename -src"
     - Added "equiv_opt" pass
     - Added "read_aiger" frontend
+    - Extended "muxcover -mux{4,8,16}=<cost>"
     - "synth_xilinx" to now infer hard shift registers, using new "shregmap -tech xilinx"
 
 
index 32102436ddc6e010b8d192f2b38378a8280806a1..8e44be148d422f2f4a130e83074f92ad8eb2ed23 100644 (file)
@@ -610,7 +610,7 @@ struct MuxcoverPass : public Pass {
                                use_mux4 = true;
                                if (arg.size() > 5) {
                                        if (arg[5] != '=') break;
-                                       cost_mux4 = atoi(arg.substr(5).c_str());
+                                       cost_mux4 = atoi(arg.substr(6).c_str());
                                }
                                continue;
                        }
@@ -618,7 +618,7 @@ struct MuxcoverPass : public Pass {
                                use_mux8 = true;
                                if (arg.size() > 5) {
                                        if (arg[5] != '=') break;
-                                       cost_mux8 = atoi(arg.substr(5).c_str());
+                                       cost_mux8 = atoi(arg.substr(6).c_str());
                                }
                                continue;
                        }
@@ -626,7 +626,7 @@ struct MuxcoverPass : public Pass {
                                use_mux16 = true;
                                if (arg.size() > 6) {
                                        if (arg[6] != '=') break;
-                                       cost_mux16 = atoi(arg.substr(6).c_str());
+                                       cost_mux16 = atoi(arg.substr(7).c_str());
                                }
                                continue;
                        }