diff options
Diffstat (limited to 'dhrystone/Makefile')
-rw-r--r-- | dhrystone/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/dhrystone/Makefile b/dhrystone/Makefile index 9cc191f..88cbf4d 100644 --- a/dhrystone/Makefile +++ b/dhrystone/Makefile @@ -13,6 +13,9 @@ endif test: testbench.vvp dhry.hex vvp -N testbench.vvp +test_slow_mem: testbench_slow_mem.vvp dhry.hex + vvp -N testbench_slow_mem.vvp + timing: timing.txt grep '^##' timing.txt | gawk 'x != "" {print x,$$3-y;} {x=$$2;y=$$3;}' | sort | uniq -c | \ gawk '{printf("%03d-%-7s %2d %-8s (%d)\n",$$3,$$2,$$3,$$2,$$1);}' | sort | cut -c13- @@ -24,6 +27,10 @@ testbench.vvp: testbench.v ../picorv32.v iverilog -o testbench.vvp testbench.v ../picorv32.v chmod -x testbench.vvp +testbench_slow_mem.vvp: testbench_slow_mem.v ../picorv32.v + iverilog -o testbench_slow_mem.vvp testbench_slow_mem.v ../picorv32.v + chmod -x testbench_slow_mem.vvp + timing.vvp: testbench.v ../picorv32.v iverilog -o timing.vvp -DTIMING testbench.v ../picorv32.v chmod -x timing.vvp @@ -50,7 +57,7 @@ endif dhry_1.o dhry_2.o: CFLAGS += -Wno-implicit-int -Wno-implicit-function-declaration clean: - rm -rf *.o *.d dhry.elf dhry.map dhry.bin dhry.hex testbench.vvp testbench.vcd timing.vvp timing.txt + rm -rf *.o *.d dhry.elf dhry.map dhry.bin dhry.hex testbench.vvp testbench.vcd timing.vvp timing.txt testbench_slow_mem.vvp .PHONY: test clean |