bench: Allow for different bench top levels in Makefile
This commit is contained in:
parent
f224aee487
commit
c4f4cfe68e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user