Skip to content

Commit 6ea8c75

Browse files
committed
Test
1 parent 1823ee5 commit 6ea8c75

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ endif
2121

2222
default:
2323
pip3 install fxpmath
24-
`which iverilog` -o sim_build/rtl/sim.vvp $(IVERILOG_ARGS) -f sim_build/rtl/cmds.f -g2012 $(VERILOG_SOURCES)
25-
MODULE=test TESTCASE= TOPLEVEL=tb TOPLEVEL_LANG=verilog `which vvp` -M `python3 -m site --user-site`/cocotb/libs -m libcocotbvpi_icarus sim_build/rtl/sim.vvp
24+
rm -fR sim_build
25+
mkdir sim_build
26+
`which iverilog` -o sim_build/sim.vvp $(IVERILOG_ARGS) -g2012 $(VERILOG_SOURCES)
27+
MODULE=test TESTCASE= TOPLEVEL=tb TOPLEVEL_LANG=verilog `which vvp` -M `python3 -m site --user-site`/cocotb/libs -m libcocotbvpi_icarus sim_build/sim.vvp
2628

2729
clean:
2830
find . -name __pycache__ -exec rm -fR {} +
2931
rm -f results.xml
32+
rm -fR sim_build

0 commit comments

Comments
 (0)