Main Content

Generate an IP Core for Xilinx SoC Devices from MATLAB

Generate an IP Core

To generate a custom IP core to target a platform supported by the HDL Coder™ Support Package for Xilinx® FPGA and SoC Devices:

  1. Create an HDL Coder project containing your MATLAB® design and test bench, or open an existing project.

  2. In the HDL Workflow Advisor, define input types and perform fixed-point conversion.

    To learn how to convert your design to fixed-point, see Basic HDL Code Generation and FPGA Synthesis from MATLAB.

  3. In the HDL Workflow Advisor, in the Select Code Generation Target task:

    • Workflow: Select IP Core Generation.

    • Platform: Select one of these platforms:

      • Xilinx Versal AI Core Series VCK190 Evaluation Kit

      • Xilinx Zynq Ultrascale+ MPSoC ZCU102 Evaluation Kit

      • Xilinx Zynq ZC702 evaluation kit

      • Xilinx Zynq ZC706 evaluation kit

      • Zedboard

      • Xilinx Zynq Ultrascale+ RFSoC ZCU111 Evaluation Kit

      • Xilinx Zynq Ultrascale+ RFSoC ZCU216 Evaluation Kit

      If you do not see your target hardware in the dropdown menu, select Get more to download the target support package.

      HDL Coder automatically sets Synthesis tool to Xilinx Vivado, but you can change the Synthesis tool to Xilinx ISE.

    • Reference design and Reference design path: If you have a downloaded reference design, select your Reference design. For Reference design path, enter the path to your downloaded reference design components.

    • Additional source files: If you are using an hdl.BlackBox System object™ to include existing Verilog® or VHDL® code, enter the file names. Enter each file name manually, separated with a semicolon (;), or by using the ... button. The source file language must match your target language.

  4. In the Set Target Interface step, for each port, select an option from the Target Platform Interfaces drop-down list.

  5. In the HDL Code Generation step, optionally specify code generation options, then click Run.

  6. In the HDL Workflow Advisor message pane, click the IP core report link to view detailed documentation for your generated IP core.

To learn more about custom IP core generation, see Custom IP Core Generation.

Requirements and Limitations

You cannot map to both an AXI4 interface and AXI4-Lite interface in the same IP core.

To map your design function inputs or outputs to an AXI4-Lite interface, the input and outputs must:

  • Have a bit width less than or equal to 32 bits.

  • Be scalar.

When mapping design function inputs or outputs to an AXI4-Stream Video interface, the following requirements apply:

  • Ports must have a 32-bit width.

  • Ports must be scalar.

  • You can have a maximum of one input video port and one output video port.

The AXI4-Stream Video interface is not supported in Coprocessing – blocking processor/FPGA synchronization mode.

Related Topics