hdlcoder.DUTPort
Description
This object array represents the DUT ports on a custom FPGA image deployed on your radio. When you generate a custom FPGA image using the Target NI USRP Radios Workflow, you map the ports on your Simulink® DUT subsystem to a simplified AXI-Stream interface. The DUT port object array contains information about these DUT ports and the interfaces that they map to, based on the interface mapping information that you configured in the Map Target Interfaces step of the workflow.
Before you create this object array:
Add one RFNoC register interface for all register ports on your DUT by using the
addRFNoCRegisterInterfacefunction.Add an RFNoC streaming interface for each streaming port on your DUT by using the
addRFNoCStreamInterfacefunction.
After you create an hdlcoder.DUTPort object array, use the mapPort function to
map the DUT ports to an RFNoC register or streaming interface. Then you can write to or read
from the DUT ports by using the writePort and
readPort
functions.
The generated setup function file contains the code required to configure your fpga object with the
interfaces you configured for your DUT subsystem in Simulink. For more information, see Run and Verify Hardware Implementation.
Creation
Description
creates a DUT port object array and sets properties using name-value arguments.dutPort = hdlcoder.DUTPort(portName,PropertyName=Value)
Input Arguments
Properties
Examples
Version History
Introduced in R2024a