bench: Allow for different bench top levels in Makefile

feature/arp
Markus Koch 2022-04-29 20:52:31 +02:00
parent f224aee487
commit c4f4cfe68e
1 changed files with 4 additions and 2 deletions

View File

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