.PHONY: all chip prepare cocotb gitupdate all: prepare cocotb # submodule update gitupdate: git submodule update --init --remote # gets the nsxlib and niolib files, and munges the contents of vst_src prepare: ./vbe2vst.py ./vst_correct.py # runs cocotb test cocotb: (cd cocotb && ./run_ghdl.sh) # builds just for fun (double-check) ghdl works chip: ./vhd2obj.py (cd obj && ghdl -e -g --std=08 chip) (cd obj && ghdl -r -g --std=08 chip) # imports all ghdl "stuff" and outputs verilog chip_v: chip (cd obj && yosys -m ghdl -p 'ghdl --std=08 chip' \ -p 'proc' -p 'write_verilog chip.v')