File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
export LIBPYTHON_LOC =$(shell cocotb-config --libpython)
4
4
5
+ TIMESTAMP := $(shell date +% Y% m% d% H% M% S)
6
+
5
7
test_% :
8
+ mkdir -p build
6
9
make compile
7
10
iverilog -o build/sim.vvp -s gpu -g2012 build/gpu.v
8
- MODULE=test.test_$* vvp -M $$(cocotb-config --prefix ) /cocotb/libs -m libcocotbvpi_icarus build/sim.vvp
11
+ cd test && mkdir -p runs
12
+ cd ..
13
+ MODULE=test.test_$* vvp -M $$(cocotb-config --prefix ) /cocotb/libs -m libcocotbvpi_icarus build/sim.vvp > test/runs/test_$* _$(TIMESTAMP ) .out
14
+
15
+ clean :
16
+ rm -rf build/*
17
+ rmdir build
18
+ rm -rf test/runs/*
19
+ rmdir test/runs
9
20
10
21
compile :
11
22
make compile_alu
@@ -17,7 +28,7 @@ compile:
17
28
mv build/temp.v build/gpu.v
18
29
19
30
compile_% :
20
- sv2v -w build/$* .v src/$* .sv
31
+ ./sv2v/ sv2v -w build/$* .v src/$* .sv
21
32
22
33
# TODO: Get gtkwave visualizaiton
23
34
You can’t perform that action at this time.
0 commit comments