diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-08-20 18:44:27 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-08-20 18:44:27 +0200 |
commit | a93fcec93fdd5da581ece4a593369978db9dd42c (patch) | |
tree | ff880f7190840fc58069fdcca116c77672300e1c /examples/smtbmc/Makefile | |
parent | f7578b0239720562571d88d5a0406488075a2a31 (diff) | |
download | yosys-a93fcec93fdd5da581ece4a593369978db9dd42c.tar.gz yosys-a93fcec93fdd5da581ece4a593369978db9dd42c.tar.bz2 yosys-a93fcec93fdd5da581ece4a593369978db9dd42c.zip |
Added examples/smtbmc/demo2.v
Diffstat (limited to 'examples/smtbmc/Makefile')
-rw-r--r-- | examples/smtbmc/Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/examples/smtbmc/Makefile b/examples/smtbmc/Makefile index 4a154c2f9..649c3f69b 100644 --- a/examples/smtbmc/Makefile +++ b/examples/smtbmc/Makefile @@ -1,13 +1,24 @@ +all: demo1 demo2 + demo1: demo1.smt2 yosys-smtbmc --dump-vcd demo1.vcd demo1.smt2 yosys-smtbmc -i --dump-vcd demo1.vcd demo1.smt2 +demo2: demo2.smt2 + yosys-smtbmc -g --dump-vcd demo2.vcd --dump-vlogtb demo2_tb.v demo2.smt2 + iverilog -g2012 -o demo2_tb demo2_tb.v demo2.v + vvp demo2_tb +vcd=demo2_tb.vcd + demo1.smt2: demo1.v - yosys -p 'read_verilog -formal demo1.v; prep -top demo1; write_smt2 -wires -mem -bv demo1.smt2' + yosys -p 'read_verilog -formal demo1.v; prep -top demo1 -nordff; write_smt2 -wires -mem -bv demo1.smt2' + +demo2.smt2: demo2.v + yosys -p 'read_verilog -formal demo2.v; prep -top demo2 -nordff; write_smt2 -wires -mem -bv demo2.smt2' clean: - rm -f demo1.smt2 + rm -f demo1.smt2 demo1.vcd + rm -f demo2.smt2 demo2.vcd demo2_tb.v demo2_tb demo2_tb.vcd .PHONY: demo1 clean |