Timeout cycles now defined in toplevel Makefrag in order to allow for easier alteration when debugging.
This commit is contained in:
parent
e5de170215
commit
6808245bb5
2
Makefrag
2
Makefrag
@ -1,4 +1,6 @@
|
|||||||
# Makefile snippet used by emulator/vlsi/fpga backends
|
# Makefile snippet used by emulator/vlsi/fpga backends
|
||||||
|
asm_timeout_cycles = 10000000
|
||||||
|
bmark_timeout_cycles = 100000000
|
||||||
|
|
||||||
MODEL := Top
|
MODEL := Top
|
||||||
CXX := g++
|
CXX := g++
|
||||||
|
@ -60,8 +60,6 @@ test:
|
|||||||
# Run assembly tests and benchmarks
|
# Run assembly tests and benchmarks
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
|
|
||||||
MAX_CYCLES=30000000
|
|
||||||
|
|
||||||
%.hex:
|
%.hex:
|
||||||
$(MAKE) -C $(dir $@) $(notdir $@)
|
$(MAKE) -C $(dir $@) $(notdir $@)
|
||||||
|
|
||||||
@ -84,15 +82,15 @@ output:
|
|||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
||||||
output/%.run: output/%.hex emulator
|
output/%.run: output/%.hex emulator
|
||||||
./emulator +dramsim +max-cycles=$(MAX_CYCLES) +loadmem=$< none 2> /dev/null 2> $@ && [ $$PIPESTATUS -eq 0 ]
|
./emulator +dramsim +max-cycles=$(bmark_timeout_cycles) +loadmem=$< none 2> /dev/null 2> $@ && [ $$PIPESTATUS -eq 0 ]
|
||||||
|
|
||||||
output/%.out: output/%.hex emulator
|
output/%.out: output/%.hex emulator
|
||||||
./emulator +dramsim +max-cycles=$(MAX_CYCLES) +verbose +coremap-random +loadmem=$< none $(disasm) $@ && [ $$PIPESTATUS -eq 0 ]
|
./emulator +dramsim +max-cycles=$(bmark_timeout_cycles) +verbose +coremap-random +loadmem=$< none $(disasm) $@ && [ $$PIPESTATUS -eq 0 ]
|
||||||
|
|
||||||
output/%.vpd: output/%.hex emulator-debug
|
output/%.vpd: output/%.hex emulator-debug
|
||||||
rm -rf $@.vcd && mkfifo $@.vcd
|
rm -rf $@.vcd && mkfifo $@.vcd
|
||||||
vcd2vpd $@.vcd $@ > /dev/null &
|
vcd2vpd $@.vcd $@ > /dev/null &
|
||||||
./emulator-debug +dramsim +max-cycles=$(MAX_CYCLES) +verbose -v$@.vcd +coremap-random +loadmem=$< none $(disasm) $(patsubst %.vpd,%.out,$@) && [ $$PIPESTATUS -eq 0 ]
|
./emulator-debug +dramsim +max-cycles=$(bmark_timeout_cycles) +verbose -v$@.vcd +coremap-random +loadmem=$< none $(disasm) $(patsubst %.vpd,%.out,$@) && [ $$PIPESTATUS -eq 0 ]
|
||||||
|
|
||||||
run-asm-tests: $(addprefix output/, $(addsuffix .out, $(asm_p_tests) $(asm_v_tests)))
|
run-asm-tests: $(addprefix output/, $(addsuffix .out, $(asm_p_tests) $(asm_v_tests)))
|
||||||
@echo; perl -ne 'print " [$$1] $$ARGV \t$$2\n" if /\*{3}(.{8})\*{3}(.*)/' $^; echo;
|
@echo; perl -ne 'print " [$$1] $$ARGV \t$$2\n" if /\*{3}(.{8})\*{3}(.*)/' $^; echo;
|
||||||
|
Loading…
Reference in New Issue
Block a user