Trying to verify Verilog/VHDL designs with formal methods and tools
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
521 B

  1. DUT := fifo
  2. .PHONY: cover bmc prove synth all clean
  3. all: cover bmc prove
  4. cover bmc prove: ${DUT}.vhd symbiyosys.sby
  5. sby --yosys "yosys -m ghdl" -f -d work/${DUT}-$@ symbiyosys.sby $@
  6. $(DUT)_synth.vhd: ${DUT}.vhd
  7. ghdl --synth --std=08 --no-formal -gDepth=16 -gWidth=16 $(DUT).vhd -e $(DUT) > $(DUT)_synth.vhd
  8. synth: fifo.json
  9. fifo.json: $(DUT)_synth.vhd
  10. yosys -m ghdl -p 'ghdl --std=08 --no-formal -gDepth=16 -gWidth=16 $(DUT).vhd -e $(DUT); synth_ice40 -json $@'
  11. clean:
  12. rm -rf work $(DUT).json $(DUT)_synth.vhd