Skip to content

Commit 265d3ba

Browse files
authored
Merge pull request #161 from analogdevicesinc/hdl-2022-r2-support
2 parents 824bb57 + 3c44773 commit 265d3ba

File tree

9 files changed

+22
-22
lines changed

9 files changed

+22
-22
lines changed

+adi/Version.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
%Version
33
% BSP Version information
44
properties(Constant)
5-
HDL = 'hdl_2021_r2';
6-
Vivado = '2021.2';
5+
HDL = 'hdl_2022_r2';
6+
Vivado = '2022.2';
77
MATLAB = 'R2023b';
88
Release = '23.2.1';
99
AppName = 'Analog Devices, Inc. High-Speed Converter Toolbox';

CI/gen_doc/docs/_pages/targeting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ High-Speed Converter Toolbox supports the IP Core generation flow from MathWorks
1111

1212
## Getting Started
1313

14-
To perform targeting will require FPGA vendor tools for the FPGA system. For Xilinx this will be Vivado and the toolbox will require specific versions for each release. For the current release this is Vivado 2021.2. Using other versions are not supported. To build the necessary BOOT.BIN files will require the Xilinx SDK as well.
14+
To perform targeting will require FPGA vendor tools for the FPGA system. For Xilinx this will be Vivado and the toolbox will require specific versions for each release. For the current release this is Vivado 2022.2. Using other versions are not supported. To build the necessary BOOT.BIN files will require the Xilinx SDK as well.
1515

1616
Once you have the installed the necessary 3rd party tools MATLAB needs to be told where they are installed by use of the [hdlsetuptoolpath](https://www.mathworks.com/help/hdlcoder/ref/hdlsetuptoolpath.html) command. For Windows the following MATLAB command can be used:
1717

1818
```matlab
19-
hdlsetuptoolpath('ToolName', 'Xilinx Vivado', 'ToolPath', 'C:\Xilinx\Vivado\2021.2\bin\vivado.bat');
19+
hdlsetuptoolpath('ToolName', 'Xilinx Vivado', 'ToolPath', 'C:\Xilinx\Vivado\2022.2\bin\vivado.bat');
2020
```
2121

2222
or Linux:
2323

2424
```matlab
25-
hdlsetuptoolpath('ToolName', 'Xilinx Vivado', 'ToolPath', '/opt/Xilinx/Vivado/2021.2/bin/vivado');
25+
hdlsetuptoolpath('ToolName', 'Xilinx Vivado', 'ToolPath', '/opt/Xilinx/Vivado/2022.2/bin/vivado');
2626
```
2727

2828
Please change the tool path if it is different on your system.

CI/scripts/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ MLRELEASE := R2023b
1212
endif
1313

1414
ifeq ($(HDLBRANCH),)
15-
HDLBRANCH := hdl_2021_r2
15+
HDLBRANCH := hdl_2022_r2
1616
endif
1717

1818
ifeq ($(OS),Windows_NT)

CI/scripts/build_bsp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -x
33

44
if [ -z "${HDLBRANCH}" ]; then
5-
HDLBRANCH='hdl_2021_r2'
5+
HDLBRANCH='hdl_2022_r2'
66
fi
77

88
# Script is designed to run from specific location

CI/scripts/synth_designs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ MLPATH=/usr/local/MATLAB
1313
cd ../..
1414
cp hdl/vendor/AnalogDevices/hdlcoder_board_customization.m test/hdlcoder_board_customization_local.m
1515
sed -i "s/hdlcoder_board_customization/hdlcoder_board_customization_local/g" test/hdlcoder_board_customization_local.m
16-
source /opt/Xilinx/Vivado/2021.2/settings64.sh
16+
source /opt/Xilinx/Vivado/2022.2/settings64.sh
1717
Xvfb :77 &
1818
export DISPLAY=:77
1919
export SWT_GTK3=0
20-
source /opt/Xilinx/Vivado/2021.2/settings64.sh
20+
source /opt/Xilinx/Vivado/2022.2/settings64.sh
2121
$MLPATH/$MLRELEASE/bin/matlab $MLFLAGS -r "cd('test');runSynthTests('$BOARD');"
2222
pidof Xvfb
2323
if [ $? -eq 0 ]; then

Jenkinsfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dockerHost = 'docker'
88

99
////////////////////////////
1010

11-
hdlBranches = ['main','hdl_2021_r2']
11+
hdlBranches = ['main','hdl_2022_r2']
1212

1313
stage("Build Toolbox") {
1414
dockerParallelBuild(hdlBranches, dockerHost, dockerConfig) {
@@ -23,14 +23,14 @@ stage("Build Toolbox") {
2323
sh 'make -C ./CI/scripts gen_tlbx'
2424
}
2525
} catch(Exception ex) {
26-
if (branchName == 'hdl_2021_r2') {
26+
if (branchName == 'hdl_2022_r2') {
2727
error('Production Toolbox Build Failed')
2828
}
2929
else {
3030
unstable('Development Build Failed')
3131
}
3232
}
33-
if (branchName == 'hdl_2021_r2') {
33+
if (branchName == 'hdl_2022_r2') {
3434
archiveArtifacts artifacts: '*.mltbx'
3535
stash includes: '**', name: 'builtSources', useDefaultExcludes: false
3636
}
@@ -40,7 +40,7 @@ stage("Build Toolbox") {
4040
/////////////////////////////////////////////////////
4141

4242
boardNames = ['daq2','ad9081','ad9434','ad9739a','ad9265', 'fmcjesdadc1','ad9783']
43-
dockerConfig.add("-e HDLBRANCH=hdl_2021_r2")
43+
dockerConfig.add("-e HDLBRANCH=hdl_2022_r2")
4444

4545
cstage("HDL Tests", "", flags) {
4646
dockerParallelBuild(boardNames, dockerHost, dockerConfig) {
@@ -69,7 +69,7 @@ def board = 'ad9208';
6969
def nodeLabel = 'baremetal && high_memory';
7070
deployments[board] = { node(nodeLabel) {
7171
cstage("Baremetal HDL Test", "", flags) {
72-
withEnv(['BOARD='+board,'MLRELEASE=R2023b','HDLBRANCH=hdl_2021_r2','LC_ALL=C.UTF-8','LANG=C.UTF-8']) {
72+
withEnv(['BOARD='+board,'MLRELEASE=R2023b','HDLBRANCH=hdl_2022_r2','LC_ALL=C.UTF-8','LANG=C.UTF-8']) {
7373
try {
7474
cstage("AD9208 HDL Test", "", flags) {
7575
echo "Node: ${env.NODE_NAME}"

JenkinsfileCron

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dockerHost = 'docker'
66

77
////////////////////////////
88

9-
hdlBranches = ['hdl_2021_r2']
9+
hdlBranches = ['hdl_2022_r2']
1010

1111
stage("Build Toolbox") {
1212
dockerParallelBuild(hdlBranches, dockerHost, dockerConfig) {
@@ -19,14 +19,14 @@ stage("Build Toolbox") {
1919
sh 'make -C ./CI/scripts gen_tlbx'
2020
}
2121
} catch(Exception ex) {
22-
if (branchName == 'hdl_2021_r2') {
22+
if (branchName == 'hdl_2022_r2') {
2323
error('Production Toolbox Build Failed')
2424
}
2525
else {
2626
unstable('Development Build Failed')
2727
}
2828
}
29-
if (branchName == 'hdl_2021_r2') {
29+
if (branchName == 'hdl_2022_r2') {
3030
stash includes: '**', name: 'builtSources', useDefaultExcludes: false
3131
}
3232
}
@@ -47,7 +47,7 @@ for (int i=0; i < boardNames.size(); i++) {
4747
nodeLabel = 'baremetal && high_memory';
4848
deployments[board] = { node(nodeLabel) {
4949
stage("Synthesis Tests") {
50-
withEnv(['BOARD='+board,'MLRELEASE=R2023b','HDLBRANCH=hdl_2021_r2','LC_ALL=C.UTF-8','LANG=C.UTF-8']) {
50+
withEnv(['BOARD='+board,'MLRELEASE=R2023b','HDLBRANCH=hdl_2022_r2','LC_ALL=C.UTF-8','LANG=C.UTF-8']) {
5151
try {
5252
stage("Synth") {
5353
echo "Node: ${env.NODE_NAME}"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ As with many open source packages, we use [GitHub](https://github.com/analogdevi
1212

1313
| HDL Branch | MATLAB Release | Installer Package |
1414
|:------------------:|:--------------:|:-------------------:|
15-
| 2021_R2 | R2023b | <a href="http://swdownloads.analog.com/cse/toolboxes/hsx/master/AnalogDevicesHighSpeedConverterToolbox_v23.2.1.mltbx"><img src="https://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png" data-canonical-src="https://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png" height="40" /></a>|
15+
| 2022_R2 | R2023b | <a href="http://swdownloads.analog.com/cse/toolboxes/hsx/master/AnalogDevicesHighSpeedConverterToolbox_v23.2.1.mltbx"><img src="https://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png" data-canonical-src="https://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png" height="40" /></a>|
1616

1717
If you use it, and like it - please let us know. If you use it, and hate it - please let us know that too.
1818

1919
## Supported Tools and Releases
2020

2121
We provide support for certain releases of MATLAB. This does not mean older releases will not work but they are not maintained. Currently supported tools are:
22-
- Bug fixes: MATLAB R2022b with Vivado 2021.1
23-
- Bug fixes and new features: MATLAB R2023b with Vivado 2021.2
22+
- Bug fixes: MATLAB R2023b with Vivado 2021.2
23+
- Bug fixes and new features: MATLAB R2023b with Vivado 2022.2
2424

2525
## Support and Documentation
2626

hdl/vendor/AnalogDevices/+AnalogDevices/plugin_rd.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
% Tool information
4040
%hRD.SupportedToolVersion = {adi.Version.Vivado}; % FIXME
41-
hRD.SupportedToolVersion = {'2021.2'};
41+
hRD.SupportedToolVersion = {'2022.2'};
4242

4343
% Get the root directory
4444
rootDir = fileparts(strtok(mfilename('fullpath'), '+'));

0 commit comments

Comments
 (0)