Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
scorbetta committed Mar 20, 2024
1 parent 12d6925 commit 1da7f2c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
VERILOG_SOURCES =
SRC_DIR = $(PWD)/../src
IVERILOG_ARGS =
COCOTB_PREFIX = $(shell cocotb-config --prefix)

ifneq ($(GATES),yes)

Expand All @@ -23,11 +24,8 @@ default:
pip3 install fxpmath
rm -fR sim_build
mkdir sim_build
update_db
locate libcocotbvpi_icarus.vpi
python3 -m site --user-site
`which iverilog` -o sim_build/sim.vvp $(IVERILOG_ARGS) -g2012 $(VERILOG_SOURCES)
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
MODULE=test TESTCASE= TOPLEVEL=tb TOPLEVEL_LANG=verilog `which vvp` -M $(COCOTB_PREFIX)/cocotb/libs -m libcocotbvpi_icarus sim_build/sim.vvp

clean:
find . -name __pycache__ -exec rm -fR {} +
Expand Down

0 comments on commit 1da7f2c

Please sign in to comment.