aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-07-30 12:50:39 +0200
committerClifford Wolf <clifford@clifford.at>2016-07-30 12:50:39 +0200
commit21e1bac0846e01fb58ae1fd42215b92f245ae18d (patch)
tree43c1c9fff3a78d7221c6e5dfbfebe820b311afa1 /examples
parent5fe13a16eaaee4ac53523b5325cb9d92b5a1150d (diff)
parentda56a5bbc60e58c305227105b68654264738c241 (diff)
downloadyosys-21e1bac0846e01fb58ae1fd42215b92f245ae18d.tar.gz
yosys-21e1bac0846e01fb58ae1fd42215b92f245ae18d.tar.bz2
yosys-21e1bac0846e01fb58ae1fd42215b92f245ae18d.zip
Merge branch 'master' of github.com:cliffordwolf/yosys
Diffstat (limited to 'examples')
-rw-r--r--examples/smtbmc/demo1.v3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/smtbmc/demo1.v b/examples/smtbmc/demo1.v
index 2e628b7da..b1e505bdd 100644
--- a/examples/smtbmc/demo1.v
+++ b/examples/smtbmc/demo1.v
@@ -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