yosys/examples/smtbmc/Makefile

60 lines
2.0 KiB
Makefile
Raw Normal View History

2016-07-13 02:49:05 -05:00
2016-09-08 04:16:12 -05:00
all: demo1 demo2 demo3 demo4 demo5 demo6 demo7
2016-08-20 11:44:27 -05:00
2016-07-13 02:49:05 -05:00
demo1: demo1.smt2
2016-08-20 09:07:59 -05:00
yosys-smtbmc --dump-vcd demo1.vcd demo1.smt2
yosys-smtbmc -i --dump-vcd demo1.vcd demo1.smt2
2016-07-13 02:49:05 -05:00
2016-08-20 11:44:27 -05:00
demo2: demo2.smt2
2016-08-24 16:18:29 -05:00
yosys-smtbmc -g --dump-vcd demo2.vcd --dump-smtc demo2.smtc --dump-vlogtb demo2_tb.v demo2.smt2
2016-08-20 11:44:27 -05:00
iverilog -g2012 -o demo2_tb demo2_tb.v demo2.v
vvp demo2_tb +vcd=demo2_tb.vcd
2016-08-24 16:18:29 -05:00
demo3: demo3.smt2
yosys-smtbmc --dump-vcd demo3.vcd --smtc demo3.smtc demo3.smt2
2016-08-27 07:30:36 -05:00
demo4: demo4.smt2
yosys-smtbmc -s yices --dump-vcd demo4.vcd --smtc demo4.smtc demo4.smt2
demo5: demo5.smt2
yosys-smtbmc -g -t 50 --dump-vcd demo5.vcd demo5.smt2
2016-09-07 05:42:16 -05:00
demo6: demo6.smt2
yosys-smtbmc -t 1 demo6.smt2
2016-09-08 04:16:12 -05:00
demo7: demo7.smt2
yosys-smtbmc -t 10 demo7.smt2
2016-07-13 02:49:05 -05:00
demo1.smt2: demo1.v
yosys -ql demo1.yslog -p 'read_verilog -formal demo1.v; prep -top demo1 -nordff; write_smt2 -wires demo1.smt2'
2016-08-20 11:44:27 -05:00
demo2.smt2: demo2.v
yosys -ql demo2.yslog -p 'read_verilog -formal demo2.v; prep -top demo2 -nordff; write_smt2 -wires demo2.smt2'
2016-07-13 02:49:05 -05:00
2016-08-24 16:18:29 -05:00
demo3.smt2: demo3.v
yosys -ql demo3.yslog -p 'read_verilog -formal demo3.v; prep -top demo3 -nordff; write_smt2 -wires demo3.smt2'
2016-08-24 16:18:29 -05:00
2016-08-27 07:30:36 -05:00
demo4.smt2: demo4.v
yosys -ql demo4.yslog -p 'read_verilog -formal demo4.v; prep -top demo4 -nordff; write_smt2 -wires demo4.smt2'
2016-08-27 07:30:36 -05:00
demo5.smt2: demo5.v
yosys -ql demo5.yslog -p 'read_verilog -formal demo5.v; prep -top demo5 -nordff; write_smt2 -wires demo5.smt2'
2016-09-07 05:42:16 -05:00
demo6.smt2: demo6.v
yosys -ql demo6.yslog -p 'read_verilog demo6.v; prep -top demo6 -nordff; assertpmux; opt -keepdc -fast; write_smt2 -wires demo6.smt2'
2016-09-08 04:16:12 -05:00
demo7.smt2: demo7.v
yosys -ql demo7.yslog -p 'read_verilog -formal demo7.v; prep -top demo7 -nordff; write_smt2 -wires demo7.smt2'
2016-07-13 02:49:05 -05:00
clean:
2016-08-24 15:09:50 -05:00
rm -f demo1.yslog demo1.smt2 demo1.vcd
2016-08-24 16:18:29 -05:00
rm -f demo2.yslog demo2.smt2 demo2.vcd demo2.smtc demo2_tb.v demo2_tb demo2_tb.vcd
rm -f demo3.yslog demo3.smt2 demo3.vcd
2016-08-27 07:30:36 -05:00
rm -f demo4.yslog demo4.smt2 demo4.vcd
rm -f demo5.yslog demo5.smt2 demo5.vcd
2016-09-07 05:42:16 -05:00
rm -f demo6.yslog demo6.smt2
2016-09-08 04:16:12 -05:00
rm -f demo7.yslog demo7.smt2
2016-07-13 02:49:05 -05:00
2016-09-08 04:16:12 -05:00
.PHONY: demo1 demo2 demo3 demo4 demo5 demo6 demo7 clean
2016-07-13 02:49:05 -05:00