Skip to content

Commit c347b0a

Browse files
authored
FPGA: Fix the makefile to adapt to the fpgadifftop (#240)
1 parent 0752c4e commit c347b0a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
TOP = TopMain
22
SIM_TOP = SimTop
3+
FPGA_DIFF_TOP = FpgaDiffTop
34
FPGATOP = Top
4-
REAL_TOP = $(if $(strip $(subst sim,,$(BOARD))),$(FPGATOP),$(SIM_TOP))
5+
# REAL_TOP selection:
6+
# - if BOARD is exactly "fpgadiff" -> use FPGA_DIFF_TOP
7+
# - else if BOARD starts with "sim" -> use SIM_TOP
8+
# - otherwise use FPGATOP
9+
REAL_TOP = $(if $(filter fpgadiff,$(BOARD)),$(FPGA_DIFF_TOP),$(if $(filter sim,$(BOARD)),$(SIM_TOP),$(FPGATOP)))
510

611
BUILD_DIR = $(abspath ./build)
712

0 commit comments

Comments
 (0)