-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marco Vogt
committed
Nov 7, 2024
1 parent
6ef5ead
commit 0803dfc
Showing
3 changed files
with
53 additions
and
25 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
SIMULATION_HOST?=localhost | ||
SIMULATION_PORT?=12345 | ||
SIMULATION_BUS?=basil.utils.sim.BasilBusDriver | ||
SIMULATION_END_ON_DISCONNECT?=1 | ||
|
||
VERILOG_SOURCES = /faust/user/mvogt/git/basil_tdl_tdc/tests/test_SimTdl_Tdc.v | ||
|
||
TOPLEVEL = tb | ||
MODULE = basil.utils.sim.Test | ||
|
||
ICARUS_INCLUDE_DIRS = -I/faust/user/mvogt/git/basil_tdl_tdc/basil/firmware/modules -I/faust/user/mvogt/git/basil_tdl_tdc/basil/firmware/modules/includes | ||
ICARUS_DEFINES += | ||
|
||
NOT_ICARUS_DEFINES = | ||
NOT_ICARUS_INCLUDE_DIRS=+incdir+./ +incdir+/faust/user/mvogt/git/basil_tdl_tdc/basil/firmware/modules +incdir+/faust/user/mvogt/git/basil_tdl_tdc/basil/firmware/modules/includes | ||
COMPILE_ARGS_DEFINES = | ||
BUILD_ARGS_DEFINES = | ||
|
||
|
||
|
||
export SIMULATION_HOST | ||
export SIMULATION_PORT | ||
export SIMULATION_BUS | ||
export SIMULATION_END_ON_DISCONNECT | ||
|
||
export COCOTB=$(shell cocotb-config --share) | ||
#export COCOTB=$(shell SPHINX_BUILD=1 python -c "import cocotb; import os; print(os.path.dirname(os.path.dirname(os.path.abspath(cocotb.__file__))))") | ||
#export PYTHONPATH=$(shell python -c "from distutils import sysconfig; print(sysconfig.get_python_lib())"):$(COCOTB) | ||
#export LD_LIBRARY_PATH=/lib/x86_64-linux-gnu:$(PYTHONLIBS) | ||
#export PYTHONHOME=$(shell python -c "from distutils.sysconfig import get_config_var; print(get_config_var('prefix'))") | ||
|
||
ifeq ($(SIM),questa) | ||
EXTRA_ARGS += $(NOT_ICARUS_DEFINES) | ||
EXTRA_ARGS += $(NOT_ICARUS_INCLUDE_DIRS) | ||
else ifeq ($(SIM),ius) | ||
EXTRA_ARGS += $(NOT_ICARUS_DEFINES) | ||
EXTRA_ARGS += $(NOT_ICARUS_INCLUDE_DIRS) | ||
else | ||
COMPILE_ARGS += $(ICARUS_DEFINES) | ||
COMPILE_ARGS += $(ICARUS_INCLUDE_DIRS) | ||
endif | ||
|
||
COMPILE_ARGS += $(COMPILE_ARGS_DEFINES) | ||
ifeq ($(SIM), verilator) | ||
BUILD_ARGS += $(BUILD_ARGS_DEFINES) | ||
endif | ||
|
||
TOPLEVEL_LANG?=verilog | ||
export TOPLEVEL_LANG | ||
|
||
include $(shell cocotb-config --makefiles)/Makefile.sim | ||
|
||
|