fpga
Description
This object represents a connection from MATLAB® to the DUT (user logic) on the FPGA on an NI™ USRP™ radio device. To interact with the DUT, use this object with the functions listed in Object Functions.
Add RFNoC interfaces using the
addRFNoCRegisterInterface
andaddRFNoCStreamInterface
functions.Map
hdlcoder.DUTPort
(HDL Coder) objects to your interfaces using themapPort
function.Read and write DUT ports using the
readPort
andwritePort
functions.
The diagram shows an overview of the internal architecture of an NI
USRP radio. The fpga
object enables you to configure register
ports and data streaming ports on your DUT, then read and write data to them.
To use this object, first create a connection to your NI
USRP radio device using the usrp
System object™. Then, use usrp
and
fpga
object functions. The diagram shows the sequence.
For details about the usrp
steps, see
Object Functions.
Create a fpga
object using the usrp
System object that you have already created. If you haven't already, use the programFPGA
function to load a bitstream, then configure the hardware interfaces with the describeFPGA
function.
Add the required RFNoC interfaces with the addRFNoCRegisterInterface
and addRFNoCStreamInterface
function. Use the hdlcoder.DUTPort
(HDL Coder) object to configure the DUT ports, then use the mapPort
function
to map the DUT ports to the RFNoC interfaces.
Call the setup
function to start the radio front end. You can now read and write data to the DUT using
the readPort
and
writePort
functions.
Call the release
function
to release the hardware resources.
Creation
Syntax
Description
Input Arguments
Object Functions
Use the object functions to interact with your FPGA or SoC device.
addRFNoCRegisterInterface | Add an RFNoC register interface to your DUT |
addRFNoCStreamInterface | Add an RFNoC streaming interface to your DUT |
mapPort | Map a DUT port to an RFNoC interface |
writePort | Write input data to a DUT port |
readPort | Read output data from a DUT port |
release | Release the hardware resources associated with the fpga object |
Examples
Version History
Introduced in R2024a