bench: Allow for different bench top levels in Makefile

This commit is contained in:
Markus Koch 2022-04-29 20:52:31 +02:00
parent f224aee487
commit c4f4cfe68e

View File

@ -1,7 +1,9 @@
# defaults # defaults
SIM ?= ghdl SIM ?= ghdl
TOPLEVEL_LANG ?= vhdl TOPLEVEL_LANG ?= vhdl
BASE = $(PWD)/.. BASE = $(PWD)/..
BENCHTOP ?= cocotb_top_mac_test
COMPILE_ARGS=--std=08 COMPILE_ARGS=--std=08
SIM_ARGS ?= --wave=wave.ghw SIM_ARGS ?= --wave=wave.ghw
@ -11,7 +13,7 @@ VHDL_SOURCES_design += $(BASE)/design/*.vhd
VHDL_SOURCES_design += $(BASE)/bench/pll0.vhd VHDL_SOURCES_design += $(BASE)/bench/pll0.vhd
VHDL_SOURCES += $(BASE)/cocotb/*.vhd VHDL_SOURCES += $(BASE)/cocotb/*.vhd
TOPLEVEL = cocotb_top_mac_test TOPLEVEL ?= $(BENCHTOP)
MODULE = cocotb_top_mac_test MODULE ?= $(BENCHTOP)
include $(shell cocotb-config --makefiles)/Makefile.sim include $(shell cocotb-config --makefiles)/Makefile.sim