Skip to content

Commit

Permalink
Simplified FW build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Vogt committed Nov 7, 2024
1 parent 6ef5ead commit 0803dfc
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 25 deletions.
6 changes: 0 additions & 6 deletions examples/tdc_bdaq/firmware/build.sh

This file was deleted.

19 changes: 0 additions & 19 deletions examples/tdc_bdaq/firmware/clr.sh

This file was deleted.

53 changes: 53 additions & 0 deletions tests/Makefile
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


0 comments on commit 0803dfc

Please sign in to comment.