blob: a7ff03a3c35027f00f43c02eba79a1427cc834cf [file] [log] [blame]
TOPLEVEL_LANG ?= verilog
PWD=$(shell pwd)
# add the models to path
export PYTHONPATH := $(PWD)/../../models:$(PYTHONPATH)
ifeq ($(TOPLEVEL_LANG),verilog)
VERILOG_SOURCES = $(PWD)/../../src/fractional_n_divider.v
VERILOG_SOURCES += $(PWD)/../../src/mash_mod.v
VERILOG_SOURCES += $(PWD)/../../src/lfsr_fib.v
VERILOG_SOURCES += $(PWD)/../../src/trng.v
else
$(error "A valid value (verilog) was not provided for TOPLEVEL_LANG=$(TOPLEVEL_LANG)")
endif
EXTRA_ARGS := --trace --trace-structs --coverage
SIM := verilator
TOPLEVEL := fractional_n_divider
MODULE := test_fractional_n_divider
include $(shell cocotb-config --makefiles)/Makefile.sim
# ( \
# . $(PWD)/../../../../env/venv/bin/activate \
# )