3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

Added $initstate support to smtbmc flow

This commit is contained in:
Clifford Wolf 2016-07-27 16:11:37 +02:00
parent 8d88fcb270
commit da56a5bbc6
3 changed files with 19 additions and 2 deletions

View file

@ -1,5 +1,5 @@
module demo1(input clk, input addtwo, output iseven);
reg [3:0] cnt = 0;
reg [3:0] cnt;
wire [3:0] next_cnt;
inc inc_inst (addtwo, iseven, cnt, next_cnt);
@ -8,6 +8,7 @@ module demo1(input clk, input addtwo, output iseven);
cnt = (iseven ? cnt == 10 : cnt == 11) ? 0 : next_cnt;
assert property (cnt != 15);
initial assume (!cnt[3] && !cnt[0]);
// initial predict ((iseven && addtwo) || cnt == 9);
endmodule