Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
TOP = TopMain
SIM_TOP = SimTop
FPGA_DIFF_TOP = FpgaDiffTop
FPGATOP = Top
REAL_TOP = $(if $(strip $(subst sim,,$(BOARD))),$(FPGATOP),$(SIM_TOP))
# REAL_TOP selection:
# - if BOARD is exactly "fpgadiff" -> use FPGA_DIFF_TOP
# - else if BOARD starts with "sim" -> use SIM_TOP
# - otherwise use FPGATOP
REAL_TOP = $(if $(filter fpgadiff,$(BOARD)),$(FPGA_DIFF_TOP),$(if $(filter sim,$(BOARD)),$(SIM_TOP),$(FPGATOP)))

BUILD_DIR = $(abspath ./build)

Expand Down