diff --git a/Hardware/Makefile b/Hardware/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..9d2a917dd28c12b6eb1673417d3765dfb992ab71 --- /dev/null +++ b/Hardware/Makefile @@ -0,0 +1,24 @@ +compile : clear + ghdl -i --workdir=./ components/CU.vhd components/datapath.vhd \ + components/EBI.vhd components/PC.vhd components/SRAM.vhd \ + package/pkgProcessor.vhd processor.vhd testbench.vhd + ghdl -a --ieee=synopsys package/pkgProcessor.vhd + ghdl -a --ieee=synopsys components/SRAM.vhd + ghdl -a --ieee=synopsys components/CU.vhd + ghdl -a --ieee=synopsys components/PC.vhd + ghdl -a --ieee=synopsys components/EBI.vhd + ghdl -a --ieee=synopsys components/datapath.vhd + ghdl -a --ieee=synopsys processor.vhd + ghdl -a --ieee=synopsys testbench.vhd + +.PHONY : simulate +simulate : compile + ghdl -r --ieee=synopsys testbench --vcd=testbench.vcd + +.PHONY : view +view : simulate + gtkwave testbench.vcd + +.PHONY : clear +clear : + rm -f testbench.vcd work-obj93.cf \ No newline at end of file