Fixes in $alu SAT- and eval-models
authorClifford Wolf <clifford@clifford.at>
Wed, 3 Sep 2014 11:39:46 +0000 (13:39 +0200)
committerClifford Wolf <clifford@clifford.at>
Wed, 3 Sep 2014 11:39:46 +0000 (13:39 +0200)
kernel/consteval.h
kernel/satgen.h

index fb54b72f61388aabf7baad20b48bf0d16c4cc7ed..c73a0b3516eb3512d63c6b7f31b38639cd282ad2 100644 (file)
@@ -178,8 +178,8 @@ struct ConstEval
                        RTLIL::SigSpec sig_co = cell->getPort("\\CO");
 
                        bool any_input_undef = !(sig_a.is_fully_def() && sig_b.is_fully_def() && sig_ci.is_fully_def() && sig_bi.is_fully_def());
-                       sig_a.extend(SIZE(sig_y), signed_a);
-                       sig_b.extend(SIZE(sig_y), signed_b);
+                       sig_a.extend_u0(SIZE(sig_y), signed_a);
+                       sig_b.extend_u0(SIZE(sig_y), signed_b);
 
                        bool carry = sig_ci[0] == RTLIL::S1;
                        bool b_inv = sig_bi[0] == RTLIL::S1;
index 3685cd6e6c7e86e2377f2156b97226dd166d4536..c7f1680d4c31da70c11c31157d306aaec6e7c7dc 100644 (file)
@@ -934,9 +934,9 @@ struct SatGen
                                std::vector<int> undef_x = importUndefSigSpec(cell->getPort("\\X"), timestep);
                                std::vector<int> undef_co = importUndefSigSpec(cell->getPort("\\CO"), timestep);
 
-                               extendSignalWidth(undef_a, undef_b, undef_y, cell, true);
-                               extendSignalWidth(undef_a, undef_b, undef_x, cell, true);
-                               extendSignalWidth(undef_a, undef_b, undef_co, cell, true);
+                               extendSignalWidth(undef_a, undef_b, undef_y, cell);
+                               extendSignalWidth(undef_a, undef_b, undef_x, cell);
+                               extendSignalWidth(undef_a, undef_b, undef_co, cell);
 
                                std::vector<int> all_inputs_undef;
                                all_inputs_undef.insert(all_inputs_undef.end(), undef_a.begin(), undef_a.end());
@@ -955,7 +955,6 @@ struct SatGen
                                undefGating(x, def_x, undef_x);
                                undefGating(co, def_co, undef_co);
                        }
-                       log_ping();
                        return true;
                }