mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-11 09:44:44 +00:00
* When used with -tempinduct mode, -seq <N> causes assertions to be ignored in the first N steps. While this has uses for reset modelling, for these test cases it is unnecessary and could lead to failures slipping through uncaught
21 lines
310 B
Text
21 lines
310 B
Text
read_verilog -sv <<EOF
|
|
parameter Q = 1;
|
|
EOF
|
|
read_verilog -sv <<EOF
|
|
parameter P = Q;
|
|
module top(
|
|
output integer out
|
|
);
|
|
assign out = P;
|
|
always @*
|
|
assert (out == 1);
|
|
endmodule
|
|
EOF
|
|
|
|
hierarchy
|
|
proc
|
|
flatten
|
|
opt -full
|
|
async2sync
|
|
select -module top
|
|
sat -verify -tempinduct -prove-asserts -show-all
|