summaryrefslogtreecommitdiff
path: root/datapath/v0.1/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'datapath/v0.1/Makefile')
-rw-r--r--datapath/v0.1/Makefile17
1 files changed, 17 insertions, 0 deletions
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