restructure testbenches and common code
This commit is contained in:
@ -2,7 +2,8 @@ all: verify
|
||||
|
||||
TESTBENCH_V = $(wildcard *tb.sv)
|
||||
SOURCE_V = $(wildcard ../../src/*.v ../../src/*.sv)
|
||||
SOURCE_V += $(wildcard ../common/*.v) $(wildcard ../common/*.sv)
|
||||
SOURCE_V += $(wildcard ../../lib/*.v ../../lib/*.sv)
|
||||
SOURCE_V += $(wildcard ../common/*.v ../common/*.sv)
|
||||
LOGS = $(TESTBENCH_V:.sv=.log)
|
||||
|
||||
SOURCE_C = $(wildcard *.c)
|
||||
@ -51,10 +52,8 @@ LDFLAGS = -melf32lriscv_ilp32
|
||||
./$< | tee $(patsubst %.out, %.log, $<)
|
||||
|
||||
verify: $(LOGS)
|
||||
@echo "Checking log for \"ERROR:\"..."
|
||||
@! grep "ERROR:" $^
|
||||
@echo "Checking log for \"SUCCESS:\"..."
|
||||
@grep "SUCCESS:" $^
|
||||
@! grep -q "ERROR" $^
|
||||
@grep -q "SUCCESS" $^
|
||||
|
||||
clean:
|
||||
rm -rf *.vcd *.log *.out *.hex
|
||||
|
Reference in New Issue
Block a user