From f52f1af38851b784862175ff2806bda622b0ec47 Mon Sep 17 00:00:00 2001 From: dianshi Date: Mon, 14 Feb 2022 07:48:24 +0000 Subject: Add datapatch v0.1 --- datapath/v0.1/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 datapath/v0.1/Makefile (limited to 'datapath/v0.1/Makefile') diff --git a/datapath/v0.1/Makefile b/datapath/v0.1/Makefile new file mode 100644 index 0000000..b4aa522 --- /dev/null +++ b/datapath/v0.1/Makefile @@ -0,0 +1,17 @@ + +I_INSTRMEM=-I../../instrmem/v0.1 ../../instrmem/v0.1/instr_memory.v +I_GPR=-I../../gpr/v0.1 ../../gpr/v0.1/gpr_register.v +I_ALUCONTROL=-I../../alu_control/v0.1 ../../alu_control/v0.1/alu_control.v +I_ALU8=-I../../alu/v0.1 ../../alu/v0.1/alu.v +I_DATAMEM=-I../../datamem/v0.1 ../../datamem/v0.1/data_memory.v + +make: + iverilog -g2005-sv -o data_path data_path.v $(I_INSTRMEM) $(I_GPR) $(I_ALUCONTROL) $(I_ALU8) $(I_DATAMEM) + iverilog -g2005-sv -o test_data_path data_path.v test_data_path.v $(I_INSTRMEM) $(I_GPR) $(I_ALUCONTROL) $(I_ALU8) $(I_DATAMEM) + +test: + ./test_data_path + + +wave: + gtkwave test_data_path.vcd \ No newline at end of file -- cgit v1.2.3