aboutsummaryrefslogtreecommitdiffstats
path: root/examples/aiger/demo.v
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-12-03 13:20:29 +0100
committerClifford Wolf <clifford@clifford.at>2016-12-03 13:20:29 +0100
commita44cc7a3d1c21c37c7dfb88b92bb479389dfce16 (patch)
tree5fff6d3d1731d1838417202d84f17126bb1a1ef1 /examples/aiger/demo.v
parent37760541bd4298677f208f2740e721c1be95bbd7 (diff)
downloadyosys-a44cc7a3d1c21c37c7dfb88b92bb479389dfce16.tar.gz
yosys-a44cc7a3d1c21c37c7dfb88b92bb479389dfce16.tar.bz2
yosys-a44cc7a3d1c21c37c7dfb88b92bb479389dfce16.zip
Added $assert/$assume support to AIGER back-end
Diffstat (limited to 'examples/aiger/demo.v')
-rw-r--r--examples/aiger/demo.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/aiger/demo.v b/examples/aiger/demo.v
index bb54ba4ef..b98287424 100644
--- a/examples/aiger/demo.v
+++ b/examples/aiger/demo.v
@@ -4,7 +4,7 @@ module demo(input clk, reset, ctrl);
initial counter[NBITS-2] = 0;
initial counter[0] = 1;
always @(posedge clk) begin
- counter <= reset ? 0 : ctrl ? counter + 1 : counter - 1;
+ counter <= reset ? 1 : ctrl ? counter + 1 : counter - 1;
assume(counter != 0);
assume(counter != 1 << (NBITS-1));
assert(counter != (1 << NBITS)-1);