visionzynq class

Connect to Zynq hardware

Description

The visionzynq object connects with your Zynq® hardware. When generating HDL code, the HDL Workflow Advisor creates this connection and sends commands to the hardware for you. After you generate your HDL code, use the visionzynq object to change the program loaded in the FPGA or the IP address, without rerunning the HDL Workflow Advisor.

If you have more than one FPGA design ready to deploy to the board, use this object to switch the programming of the device between designs.

Use the downloadImage method to add an FPGA image file to the SD card, and load this new file to the FPGA. Use the changeFPGAImage method to load an existing FPGA image from the hardware SD card to the FPGA.

Construction

vz = visionzynq creates a visionzynq object connected to the Zynq board, using saved values for the connection details. Unless you are changing the type of device, create the object without arguments. The object is created only if the host connects successfully to the board. Otherwise it returns an error message.

vz = visionzynq(DeviceName) creates a visionzynq object connected to the DeviceName type of Zynq board.

vz = visionzynq(DeviceName,DeviceAddress) creates a visionzynq object connected to the DeviceName type of Zynq board, with a custom IP address, DeviceAddress.

Input Arguments

expand all

Name of hardware device, specified as one of the following:

  • 'ZedBoard FMC-HDMI-CAM'

  • 'ZC706 FMC-HDMI-CAM'

  • 'ZC702 FMC-HDMI-CAM'

The device name of FMC-HDMI-CAM indicates support for both the original FMC-IMAGEON revision and the newer FMC-HDMI-CAM revision of the boards.

Specify a dotted-quad IP address for the target device or a host name such as 'zedboard-MJONES.foo.com'. The default is '192.168.4.2'.

Methods

changeFPGAImageLoad image from on-board SD card into FPGA
downloadImageWrite image file to on-board SD card and load into FPGA

Examples

Create Reference Design Object

Create an object that defines a connection to the Zynq board. The object uses device and IP settings from the support package installation.

vz = visionzynq
ans = 


visionzynq

   Device Information:
       DeviceName: 'Zedboard FMC-HDMI-CAM'
    DeviceAddress: '192.168.4.2'
         Username: 'root'
         Password: 'root'
             Port: 22

If the object returns an error, review the board setup steps described in Guided Setup for Vision Hardware.

Create Customized Reference Design Object

Create an object that defines a connection to the Zynq board. Specify the type of device, and, optionally, an IP address.

vz = visionzynq('ZC706 FMC-HDMI-CAM','192.168.17.1')
ans = 


visionzynq

   Device Information:
       DeviceName: 'ZC706 FMC-HDMI-CAM'
    DeviceAddress: '192.168.17.1'
         Username: 'root'
         Password: 'root'
             Port: 22

If the object returns an error, review the board setup steps described in Guided Setup for Vision Hardware.

Introduced in R2016a