14
14
if [ -d " hdl" ]; then
15
15
rm -rf " hdl"
16
16
fi
17
+ if [ -d " ghdl" ]; then
18
+ rm -rf " ghdl"
19
+ fi
17
20
for i in {1..5}
18
21
do
19
22
if git clone --single-branch -b $HDLBRANCH https://github.com/analogdevicesinc/hdl.git
@@ -47,6 +50,23 @@ VIVADO=${VER}
47
50
# Setup
48
51
source /opt/Xilinx/Vivado/$VIVADO /settings64.sh
49
52
53
+ # Get ghdl dependencies
54
+ git clone git@ghe.com:adi-innersource/ghdl.git -b dev_apollo
55
+ mv ghdl/projects/apollo hdl/projects/
56
+ mv hdl/projects/apollo/axi_hsci hdl/library/
57
+
58
+ # Within the hdl/projects/apollo directory replace:
59
+ # ../../../../hdl/ with $ad_hdl_dir/
60
+ files_in_apollo_folder_recersive=$( find hdl/projects/apollo -type f)
61
+ for file in $files_in_apollo_folder_recersive
62
+ do
63
+ if [ -f " $file " ]; then
64
+ echo " Updating file: $file "
65
+ sed -i ' s|../../../../hdl/|$ad_hdl_dir/|g' " $file "
66
+ fi
67
+ done
68
+
69
+
50
70
# Pre-build IP library
51
71
# cd hdl/library
52
72
# make
@@ -73,8 +93,6 @@ TARGET="../hdl/vendor/AnalogDevices/vivado"
73
93
if [ -d " $TARGET " ]; then
74
94
rm -rf " $TARGET "
75
95
fi
76
- # Increase rx_clk period to fix timing failures for Pluto designs in R2021b
77
- sed -i ' s/16.27/30/' hdl/projects/pluto/system_constr.xdc
78
96
mv hdl $TARGET
79
97
80
98
# Post-process ports.json
@@ -84,7 +102,7 @@ cp ports.json ../hdl/vendor/AnalogDevices/+AnalogDevices/
84
102
85
103
# Updates
86
104
cp scripts/matlab_processors.tcl ../hdl/vendor/AnalogDevices/vivado/projects/scripts/matlab_processors.tcl
87
- cp scripts/adi_project_xilinx.tcl ../hdl/vendor/AnalogDevices/vivado/projects/scripts/adi_project_xilinx.tcl
105
+ # cp scripts/adi_project_xilinx.tcl ../hdl/vendor/AnalogDevices/vivado/projects/scripts/adi_project_xilinx.tcl
88
106
cp scripts/system_project_rxtx.tcl ../hdl/vendor/AnalogDevices/vivado/projects/scripts/system_project_rxtx.tcl
89
107
cp scripts/adi_build.tcl ../hdl/vendor/AnalogDevices/vivado/projects/scripts/adi_build.tcl
90
108
cp scripts/adi_build_win.tcl ../hdl/vendor/AnalogDevices/vivado/projects/scripts/adi_build_win.tcl
0 commit comments