Download Block Parameters
Transcript
Chapter 4: Programmatic Access Actions Syntax Port information portinfo(h); Set property set(h, 'propertyName', propertyValue); Get property propertyValue = get(h, 'propertyName'); Constructor Syntax h = Hwcosim(project); Description Creates an Hwcosim instance. Note that an instance is a reference to the hardware co-simulation project and does not signify an explicit link to hardware; creating a Hwcosim object informs the Hwcosim engine where to locate the FPGA bitstream, it does not download the bitstream into the FPGA. The bitstream is only downloaded to the hardware after an open command is issued. The project argument should point to the hwc file that describes the hardware co-simulation. Creating the Hwcosim object will list all import and output ports. The example below shows the output of a call to the Hwcosim constructor, displaying the ID of the object and a list of all the input and output gateways/ports. >> h = Hwcosim(p) System Generator Hardware Co-simulation Object id: 30247 inports: gateway_in gateway_in2 outports: gateway_out Destructor Syntax release(h); Description Releases the resources used by the Hwcosim object h. If a link to hardware is still open, release will first close the hardware. Vivado: Designing with System Generator UG958 (v2015.3) September 30, 2015 www.xilinx.com Send Feedback 421