mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #1567 from YosysHQ/eddie/sat_init_warning
sat: suppress 'Warning: ignoring initial value on non-register: ...' when init[i] = 1'bx
This commit is contained in:
commit
4ddaa70fd6
|
@ -269,7 +269,8 @@ struct SatHelper
|
|||
for (int i = 0; i < lhs.size(); i++) {
|
||||
RTLIL::SigSpec bit = lhs.extract(i, 1);
|
||||
if (rhs[i] == State::Sx || !satgen.initial_state.check_all(bit)) {
|
||||
removed_bits.append(bit);
|
||||
if (rhs[i] != State::Sx)
|
||||
removed_bits.append(bit);
|
||||
lhs.remove(i, 1);
|
||||
rhs.remove(i, 1);
|
||||
i--;
|
||||
|
|
|
@ -2,3 +2,14 @@ read_verilog -sv initval.v
|
|||
proc;;
|
||||
|
||||
sat -seq 10 -prove-asserts
|
||||
|
||||
design -reset
|
||||
read_verilog -icells <<EOT
|
||||
module top(input clk, i, output [1:0] o);
|
||||
(* init = 2'bx0 *)
|
||||
wire [1:0] o;
|
||||
assign o[1] = o[0];
|
||||
$_DFF_P_ dff (.C(clk), .D(i), .Q(o[0]));
|
||||
endmodule
|
||||
EOT
|
||||
sat -seq 1
|
||||
|
|
Loading…
Reference in New Issue