Main Content

Installation for Hardware-Software Co-Design

To work with the hardware-software (HW/SW) co-design workflow within theCommunications Toolbox™ Support Package for Xilinx®Zynq®-Based Radio, you must install and configure third-party tools and additional support packages.

Step 1. Set Up Host-Radio Communication

Note

If the radio hardware is already set up to communicate with the host computer, and you know its assigned IP address, skip this step.

When the support package installation is complete, you must set up the hardware. Take a note of the IP address assigned to the radio hardware during the hardware setup process. You need this information inStep 5. Set Up IP Address in MATLAB.

Step 2. Install Third-Party Tools

  • Xilinx Vivado®development tools, version 2019.1

Step 3. Install高密度脂蛋白编码器Support Package forXilinxZynqPlatform

This support package enables you to generate code for the FPGA portion of the underlying Zynq board (requires HDL Coder™).

  1. On the MATLAB®Hometab, in theEnvironment节中,clickAdd-Ons>Get Hardware Support Packages.

  2. In the Add-On Explorer window, browse or search for the高密度脂蛋白编码器Support Package for Xilinx Zynq Platform.

  3. Select the support package and then clickInstall.

Step 4. InstallEmbedded CoderSupport Package forXilinxZynqPlatform

This support package enables you to generate embedded ARM®code targeted for the underlying Zynq board (requires Embedded Coder®,万博1manbetx®Coder™, andEmbedded Coder Support Package for ARM Cortex®-A Processors).

  1. On the MATLABHometab, in theEnvironment节中,clickAdd-Ons>Get Hardware Support Packages.

  2. In the Add-On Explorer window, browse or search for theEmbedded Coder Support Package for Xilinx Zynq Platform.

  3. Select the support package and then clickInstall. The installation requires a download of several gigabytes. Depending on your network connection, installing this support package can take a long time.

    Note

    当安装的Embedded Coder Support Package for Xilinx Zynq Platformis complete, do not proceed with the hardware setup associated with the Embedded Coder. If you do so, you must reconfigure your hardware for the software-defined radio capabilities of this support package by following the steps inGuided Host-Radio Hardware Setup.

The next step guides you through the configuration process.

Step 5. Set Up IP Address inMATLAB

Call thezynqfunction with the following syntax to make sure that MATLAB is set up with the correct physical IP address of the radio hardware.

devzynq = zynq('linux','192.168.3.2','root','root','/tmp');

MATLAB uses this IP address for software deployment to the hardware. This address must match the physical IP address you specified for the radio inStep 1. Set Up Host-Radio Communication. By default, the physical IP address is 192.168.3.2. If you alter the radio hardware IP address during the hardware setup process, you must supply that address instead.

Step 6. Set Up HDL IP Core Repositories inMATLAB

You can perform this step as part of theGuided Host-Radio Hardware Setup, seeSetup for HW/SW Co-Design, or by following these commands:

  1. Set up your system environment to access Xilinx Vivado from MATLAB. Call the functionhdlsetuptoolpathand specify your Xilinx installation folder.

    For example:

    • 在Windows中:

      hdlsetuptoolpath('ToolName','Xilinx Vivado','ToolPath',...'C:\Xilinx\Vivado\2019.1\bin\vivado.bat')

    • In Linux:

      hdlsetuptoolpath('ToolName','Xilinx Vivado','ToolPath',...'/opt/Xilinx/Vivado/2019.1/bin')

  2. Set up HDL IP core repositories by calling the functionsetupzynqradiorepositories. This configuration takes several minutes.

    setupzynqradiorepositories;

Related Topics