Create Model Using Simulink Templates

Computer Vision Toolbox™ Support Package for Xilinx® Zynq®-Based Hardware provides Simulink® model templates for:

  • Designing frame-based algorithms to run in Simulink.

  • Designing pixel-streaming algorithms targeted to the FPGA

  • Designing frame-based algorithms targeted to the ARM® processor.

  • Designing combination hardware and software algorithms that use the FPGA and the ARM processor.

  • Designing pixel-streaming algorithms targeted to the FPGA that use a frame buffer or AXI Master interface.

The templates show how to capture video from the hardware and convert video data to the required interfaces for the respective algorithm designs.

  1. Click the Simulink button, , or type simulink at the MATLAB® command prompt. If you already have Simulink open, click the arrow next to the New Model button, and select Model....

  2. On the Simulink start page, expand the Computer Vision Toolbox Support Package for Xilinx Zynq-Based Hardware section, and click the model template you want to open.

You can also create a model from one of these templates from the command line. For example:

new_system myVZmodel FromTemplate visionzynq_behavioral_Yonly.sltx
open_system myVZmodel
The table shows the model name for each template.

Frame-Based Design for Simulinkvisionzynq_behavioral_YCbCr.sltx
Pixel-Streaming Design for FPGAvisionzynq_target_YCbCr.sltx
Pixel-Streaming Design with Frame Buffervisionzynq_framebuffer_YCbCr.sltx
Pixel-Streaming Design with External Memoryvisionzynq_AXImemory_YCbCr.sltx
Frame-Based Design for ARM Processorvisionzynq_target_SW.sltx
Hardware-Software Co-Designvisionzynq_HWSW_target_HW.sltx

A new model, with the template contents and settings, opens in the Simulink Editor. Save the model.

Related Topics