Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 5676806

Browse files
authored
Merge pull request #58 from analogdevicesinc/R2019a-update-support
Upgrade to R2019a and HDL 2018 R2
2 parents 7e4d7f5 + 15f34f6 commit 5676806

File tree

81 files changed

+714
-1112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+714
-1112
lines changed

+adi/+common/DDS.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
methods (Hidden, Access=protected)
5252

5353
function ToggleDDS(obj,value)
54-
chanPtr = getChan(obj,'altvoltage0',true);
54+
chanPtr = getChan(obj,obj.iioDev,'altvoltage0',true);
5555
iio_channel_attr_write_bool(obj,chanPtr,'raw',value);
5656
end
5757

@@ -60,7 +60,7 @@ function DDSUpdate(obj)
6060
for g=1:obj.channelCount/2
6161
for k=1:4
6262
id = sprintf('altvoltage%d',k-1);
63-
chanPtr = getChan(obj,id,true);
63+
chanPtr = getChan(obj,obj.iioDev,id,true);
6464
iio_channel_attr_write_double(obj,chanPtr,'frequency',obj.DDSFrequencies(g,k));
6565
iio_channel_attr_write_double(obj,chanPtr,'scale',obj.DDSScales(g,k));
6666
iio_channel_attr_write_double(obj,chanPtr,'phase',obj.DDSPhases(g,k));

+adi/+common/RxTx.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function releaseChanBuffers(obj)
8484
% Disable the channels
8585
if obj.enabledChannels
8686
for k=1:obj.channelCount
87-
disableChannel(obj, obj.channel_names{k}, obj.isOutput);
87+
disableChannel(obj, obj.iioDev, obj.channel_names{k}, obj.isOutput);
8888
end
8989
obj.enabledChannels = false;
9090
end
@@ -101,7 +101,7 @@ function releaseChanBuffers(obj)
101101

102102
% Enable the channel(s)
103103
for k=1:obj.channelCount
104-
enableChannel(obj, obj.channel_names{k}, obj.isOutput);
104+
enableChannel(obj, obj.iioDev, obj.channel_names{k}, obj.isOutput);
105105
end
106106
obj.enabledChannels = true;
107107

.gitlab-ci.yml

Lines changed: 38 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ stages:
55
- deploy
66

77
# Default build
8-
build:2018_R1:
8+
build:2018_R2:
99
tags:
1010
- vivado
1111
- matlab
1212
stage: build
1313
script:
14+
- export MLRELEASE=R2019a
1415
- ./CI/scripts/dockermake build
1516
- ./CI/scripts/dockermake add_libad9361
1617
- ./CI/scripts/dockermake gen_tlbx
@@ -31,7 +32,7 @@ build:master:
3132
stage: build
3233
script:
3334
- export HDLBRANCH=hdl_2018_r2
34-
- export MLRELEASE=R2018b
35+
- export MLRELEASE=R2019a
3536
- ./CI/scripts/dockermake build
3637
- export HDLBRANCH=
3738
- export MLRELEASE=
@@ -41,14 +42,15 @@ build:master:
4142
- hdl_wa_bsp/
4243

4344
# Test HWA no install
44-
test:2018_R1:
45+
test:2018_R2:
4546
tags:
4647
- vivado
4748
- matlab
4849
stage: test
4950
dependencies:
50-
- build:2018_R1
51+
- build:2018_R2
5152
script:
53+
- export MLRELEASE=R2019a
5254
- ./CI/scripts/dockermake test
5355
- ./CI/scripts/dockermake zip
5456
artifacts:
@@ -60,14 +62,15 @@ test:2018_R1:
6062
junit: test/BSPTestResults.xml
6163

6264
# Test HWA with install
63-
test_installer:2018_R1_Installer:
65+
test_installer:2018_R2_Installer:
6466
tags:
6567
- vivado
6668
- matlab
6769
stage: test
6870
dependencies:
69-
- build:2018_R1
71+
- build:2018_R2
7072
script:
73+
- export MLRELEASE=R2019a
7174
- cp mltbx/* .
7275
- pwd
7376
- ls
@@ -83,14 +86,15 @@ test_installer:2018_R1_Installer:
8386
junit: test/BSPTestResults.xml
8487

8588
# Test HWA no install
86-
test:2018_R1:
89+
test:2018_R2:
8790
tags:
8891
- vivado
8992
- matlab
9093
stage: test
9194
dependencies:
92-
- build:2018_R1
95+
- build:2018_R2
9396
script:
97+
- export MLRELEASE=R2019a
9498
- ./CI/scripts/dockermake test
9599
- ./CI/scripts/dockermake zip
96100
artifacts:
@@ -101,15 +105,34 @@ test:2018_R1:
101105
reports:
102106
junit: test/BSPTestResults.xml
103107

108+
# Test weekly fully sythesized design
109+
test:Synthesize:
110+
when: manual
111+
tags:
112+
- matlab
113+
- vivado
114+
stage: test
115+
dependencies:
116+
- build:2018_R2
117+
script:
118+
- ./CI/scripts/dockermake test_synth
119+
artifacts:
120+
when: always
121+
name: "$CI_COMMIT_REF_NAME"
122+
paths:
123+
- test/
124+
- Report.pdf
125+
104126
# Test targeting demos (no hardware)
105127
test:targeting_demos:
106128
tags:
107129
- matlab
108130
- vivado
109131
stage: test
110132
dependencies:
111-
- build:2018_R1
133+
- build:2018_R2
112134
script:
135+
- export MLRELEASE=R2019a
113136
- ./CI/scripts/dockermake test_targeting_demos
114137
artifacts:
115138
when: always
@@ -125,8 +148,9 @@ test_hardware:Streaming_Hardware:
125148
- hardware
126149
stage: test_hardware
127150
dependencies:
128-
- build:2018_R1
151+
- build:2018_R2
129152
script:
153+
- export MLRELEASE=R2019a
130154
- cd CI/scripts
131155
- make test_streaming
132156
artifacts:
@@ -143,8 +167,9 @@ test_hardware:EVM_Hardware:
143167
- hardware
144168
stage: test_hardware
145169
dependencies:
146-
- build:2018_R1
170+
- build:2018_R2
147171
script:
172+
- export MLRELEASE=R2019a
148173
- cd CI/scripts
149174
- make test_evm
150175
artifacts:
@@ -158,8 +183,8 @@ deploy:
158183
- matlab
159184
stage: deploy
160185
dependencies:
161-
- test:2018_R1
162-
- test_installer:2018_R1_Installer
186+
- test:2018_R2
187+
- test_installer:2018_R2_Installer
163188
script:
164189
- echo "Complete"
165190
artifacts:
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
source $ad_hdl_dir/projects/adrv9361z7035/common/adrv9361z7035_bd.tcl
3-
source $ad_hdl_dir/projects/adrv9361z7035/common/ccbob_bd.tcl
2+
source ../common/adrv9361z7035_bd.tcl
3+
source ../common/ccbob_bd.tcl
44

55
ad_ip_parameter util_ad9361_divclk CONFIG.SEL_0_DIV 2
66
ad_ip_parameter util_ad9361_divclk CONFIG.SEL_1_DIV 1
@@ -9,5 +9,3 @@ cfg_ad9361_interface CMOS
99

1010
ad_ip_parameter axi_ad9361 CONFIG.ADC_INIT_DELAY 29
1111

12-
13-

CI/projects/adrv9361z7035/ccbob_cmos/system_project_rx.tcl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ adi_project_files adrv9361z7035_ccbob_cmos [list \
1414
"$ad_hdl_dir/projects/adrv9361z7035/common/ccbob_constr.xdc" \
1515
"system_top.v" ]
1616

17-
set_property is_enabled false [get_files *axi_gpreg_constr.xdc]
1817
adi_project_run adrv9361z7035_ccbob_cmos
1918
#source $ad_hdl_dir/library/analog.com_user_axi_ad9361_1.0/axi_ad9361_delay.tcl
2019
# Copy the boot file to the root directory

CI/projects/adrv9361z7035/ccbob_cmos/system_project_rx_tx.tcl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ adi_project_files adrv9361z7035_ccbob_cmos [list \
1414
"$ad_hdl_dir/projects/adrv9361z7035/common/ccbob_constr.xdc" \
1515
"system_top.v" ]
1616

17-
set_property is_enabled false [get_files *axi_gpreg_constr.xdc]
1817
adi_project_run adrv9361z7035_ccbob_cmos
1918
#source $ad_hdl_dir/library/analog.com_user_axi_ad9361_1.0/axi_ad9361_delay.tcl
2019
# Copy the boot file to the root directory

CI/projects/adrv9361z7035/ccbob_cmos/system_project_tx.tcl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ adi_project_files adrv9361z7035_ccbob_cmos [list \
1414
"$ad_hdl_dir/projects/adrv9361z7035/common/ccbob_constr.xdc" \
1515
"system_top.v" ]
1616

17-
set_property is_enabled false [get_files *axi_gpreg_constr.xdc]
1817
adi_project_run adrv9361z7035_ccbob_cmos
1918
#source $ad_hdl_dir/library/analog.com_user_axi_ad9361_1.0/axi_ad9361_delay.tcl
2019
# Copy the boot file to the root directory

CI/projects/adrv9361z7035/ccbob_cmos/system_top.v

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// terms.
99
//
1010
// The user should read each of these license terms, and understand the
11-
// freedoms and responsabilities that he or she has by using this source/core.
11+
// freedoms and responsibilities that he or she has by using this source/core.
1212
//
1313
// This core is distributed in the hope that it will be useful, but WITHOUT ANY
1414
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
@@ -188,6 +188,7 @@ module system_top (
188188
.gpio_i (gpio_i),
189189
.gpio_o (gpio_o),
190190
.gpio_t (gpio_t),
191+
.gps_pps (1'b0),
191192
.gt_ref_clk (gt_ref_clk),
192193
.gt_rx_n (gt_rx_n),
193194
.gt_rx_p (gt_rx_p),
@@ -196,18 +197,6 @@ module system_top (
196197
.iic_main_scl_io (iic_scl),
197198
.iic_main_sda_io (iic_sda),
198199
.otg_vbusoc (1'b0),
199-
.ps_intr_00 (1'b0),
200-
.ps_intr_01 (1'b0),
201-
.ps_intr_02 (1'b0),
202-
.ps_intr_03 (1'b0),
203-
.ps_intr_04 (1'b0),
204-
.ps_intr_05 (1'b0),
205-
.ps_intr_06 (1'b0),
206-
.ps_intr_07 (1'b0),
207-
.ps_intr_08 (1'b0),
208-
.ps_intr_09 (1'b0),
209-
.ps_intr_10 (1'b0),
210-
.ps_intr_15 (1'b0),
211200
.rx_clk_in (rx_clk_in),
212201
.rx_data_in (rx_data_in),
213202
.rx_frame_in (rx_frame_in),

CI/projects/adrv9361z7035/ccbob_lvds/system_bd.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
source $ad_hdl_dir/projects/adrv9361z7035/common/adrv9361z7035_bd.tcl
3-
source $ad_hdl_dir/projects/adrv9361z7035/common/ccbob_bd.tcl
2+
source ../common/adrv9361z7035_bd.tcl
3+
source ../common/ccbob_bd.tcl
44

55
cfg_ad9361_interface LVDS
66

CI/projects/adrv9361z7035/ccbob_lvds/system_project_rx.tcl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ adi_project_files adrv9361z7035_ccbob_lvds [list \
1414
"$ad_hdl_dir/projects/adrv9361z7035/common/ccbob_constr.xdc" \
1515
"system_top.v" ]
1616

17-
set_property is_enabled false [get_files *axi_gpreg_constr.xdc]
1817
adi_project_run adrv9361z7035_ccbob_lvds
1918
#source $ad_hdl_dir/library/analog.com_user_axi_ad9361_1.0/axi_ad9361_delay.tcl
2019
# Copy the boot file to the root directory

0 commit comments

Comments
 (0)