Skip to content

Commit 7d7a751

Browse files
author
David Benes
committed
feat(fb2cdg1): print error message in case of missing PMCI
1 parent 563025e commit 7d7a751

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

cards/silicom/fb2cdg1/src/Modules.tcl

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,18 @@ set FPGA_COMMON_BASE "$ARCHGRP_ARR(CORE_BASE)/top"
1313

1414
# Components
1515
lappend COMPONENTS [list "FPGA_COMMON" $FPGA_COMMON_BASE $ARCHGRP]
16-
lappend COMPONENTS [list "PMCI_FB2CDG1" $PMCI_FB2CDG1_BASE "FULL" ]
16+
# Check whether the 3rd-party repository exists
17+
if ![file exists $PMCI_FB2CDG1_BASE/Modules.tcl] {
18+
puts "\n"
19+
puts "ERROR: PMCI IP is not present. PMCI requires an additional license."
20+
puts "------------------------------------------------------------------------------------------------"
21+
puts "Please contact Support for more information (see the Partners section of the NDK documentation)."
22+
puts "------------------------------------------------------------------------------------------------"
23+
puts "\n"
24+
exit 1
25+
} else {
26+
lappend COMPONENTS [list "PMCI_FB2CDG1" $PMCI_FB2CDG1_BASE "FULL" ]
27+
}
1728

1829
# IP components
1930
set IP_COMMON_TCL $ARCHGRP_ARR(IP_TEMPLATE_ROOT)/common.tcl

0 commit comments

Comments
 (0)