Skip to content

Commit de3f2f2

Browse files
committed
Add firmware_id.mif file to hm2_ip_wrap component to fix out of context module build
Signed-off-by: Michael Brown <producer@holotronic.dk>
1 parent 65c7e03 commit de3f2f2

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

HW/VivadoProjects/make_bitfile.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ PRJ_DIR_CREATED="$PRJ_DIR"/"$PRJ_NAME"_created
3333
[ -d "$PRJ_DIR_CREATED" ] && rm -r "$PRJ_DIR_CREATED"
3434
mkdir "$PRJ_DIR_CREATED"
3535

36-
## Put pin info into the sources defining the wrapper IP package
37-
# component file1 needs the pin file path
38-
sed "s|%PIN_FILE%|$PRJ_DIR/$PIN_FILE|" \
36+
## Put pin and firmware info into the sources defining the wrapper IP package
37+
# component file1 needs the pin and firmware file path
38+
sed -e "s|%PIN_FILE%|$PRJ_DIR/$PIN_FILE|" \
39+
-e "s|%FW_FILE%|"$PRJ_DIR_CREATED"/firmware_id.mif|" \
3940
"$IP_DIR"/component.xml.in > \
4041
"$IP_DIR"/component.xml
4142

HW/zynq-ip/hm2_ip_wrap/component.xml.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,10 @@
487487
<spirit:fileType>vhdlSource</spirit:fileType>
488488
<spirit:logicalName>xil_defaultlib</spirit:logicalName>
489489
</spirit:file>
490+
<spirit:file>
491+
<spirit:name>%FW_FILE%</spirit:name>
492+
<spirit:userFileType>mif</spirit:userFileType>
493+
</spirit:file>
490494
<spirit:file>
491495
<spirit:name>../../hm2/functions/CountPinsInRange.vhd</spirit:name>
492496
<spirit:fileType>vhdlSource</spirit:fileType>

0 commit comments

Comments
 (0)