yosys/examples/smtbmc/Makefile

46 lines
1.5 KiB
Makefile
Raw Normal View History

2016-07-13 02:49:05 -05:00
2016-08-27 07:30:36 -05:00
all: demo1 demo2 demo3 demo4
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-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-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-07-13 02:49:05 -05:00
.PHONY: demo1 demo2 demo3 demo4 demo5 clean
2016-07-13 02:49:05 -05:00