summaryrefslogtreecommitdiff
path: root/datapath/v0.1/Makefile
blob: b4aa522df4b7ed42c1af372772c0903bbad3d749 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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