1
0

use a named pipe for VCD -> VPD conversion

This commit is contained in:
Andrew Waterman 2013-03-25 16:19:19 -07:00
parent bc140ce9bc
commit ef4927c9ad
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
MODEL := Top MODEL := Top
CXX := g++ CXX := g++
CXXFLAGS := -O2 -g CXXFLAGS := -O2
SBT := java -Xmx2048M -Xss8M -XX:MaxPermSize=128M -jar sbt-launch.jar SBT := java -Xmx2048M -Xss8M -XX:MaxPermSize=128M -jar sbt-launch.jar

View File

@ -3,8 +3,7 @@ all: emulator
basedir = .. basedir = ..
include ../Makefrag include ../Makefrag
CXX := g++ CXXFLAGS := $(CXXFLAGS) -std=c++0x -I$(RISCV)/include
CXXFLAGS := $(CXXFLAGS) -O1 -std=c++0x -I$(RISCV)/include
CXXSRCS := emulator disasm mm mm_dramsim2 CXXSRCS := emulator disasm mm mm_dramsim2
CXXFLAGS := $(CXXFLAGS) -I$(basedir)/csrc -I$(basedir)/chisel/csrc -I$(basedir)/dramsim2 CXXFLAGS := $(CXXFLAGS) -I$(basedir)/csrc -I$(basedir)/chisel/csrc -I$(basedir)/dramsim2
@ -75,7 +74,8 @@ output/%.out: output/%.hex emulator
./emulator +dramsim +max-cycles=3000000 +verbose +coremap-random +loadmem=$< none 2> $@ ./emulator +dramsim +max-cycles=3000000 +verbose +coremap-random +loadmem=$< none 2> $@
output/%.vpd: output/%.hex emulator-debug output/%.vpd: output/%.hex emulator-debug
./emulator-debug +dramsim +max-cycles=3000000 +verbose -v- +coremap-random +loadmem=$< none 2> $(patsubst %.vpd,%.out,$@) | vcd2vpd - $@ > /dev/null && [ $$PIPESTATUS -eq 0 ] rm -rf $@.vcd && mkfifo $@.vcd
./emulator-debug +dramsim +max-cycles=3000000 +verbose -v$@.vcd +coremap-random +loadmem=$< none 2> $(patsubst %.vpd,%.out,$@) | vcd2vpd $@.vcd $@ > /dev/null && [ $$PIPESTATUS -eq 0 ]
run-asm-tests: $(addprefix output/, $(addsuffix .out, $(global_asm_tests) $(global_asm_vm_tests))) run-asm-tests: $(addprefix output/, $(addsuffix .out, $(global_asm_tests) $(global_asm_vm_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;