diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-12-03 13:20:29 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-12-03 13:20:29 +0100 |
commit | a44cc7a3d1c21c37c7dfb88b92bb479389dfce16 (patch) | |
tree | 5fff6d3d1731d1838417202d84f17126bb1a1ef1 /examples | |
parent | 37760541bd4298677f208f2740e721c1be95bbd7 (diff) | |
download | yosys-a44cc7a3d1c21c37c7dfb88b92bb479389dfce16.tar.gz yosys-a44cc7a3d1c21c37c7dfb88b92bb479389dfce16.tar.bz2 yosys-a44cc7a3d1c21c37c7dfb88b92bb479389dfce16.zip |
Added $assert/$assume support to AIGER back-end
Diffstat (limited to 'examples')
-rw-r--r-- | examples/aiger/demo.sh | 4 | ||||
-rw-r--r-- | examples/aiger/demo.v | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/aiger/demo.sh b/examples/aiger/demo.sh index caaa44761..8728b6722 100644 --- a/examples/aiger/demo.sh +++ b/examples/aiger/demo.sh @@ -4,11 +4,11 @@ yosys -p ' read_verilog -formal demo.v prep -flatten -nordff -top demo write_smt2 -wires demo.smt2 - miter -assert demo + flatten demo; delete -output memory_map; opt -full techmap; opt -fast abc -fast -g AND; opt_clean - write_aiger -miter -zinit -map demo.aim demo.aig + write_aiger -map demo.aim demo.aig ' super_prove demo.aig > demo.aiw yosys-smtbmc --dump-vcd demo.vcd --aig demo demo.smt2 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); |