Main Content

writePort

Send data to DUT ports

Since R2024b

Description

writePort(filobj,portName1,portData1,...,portNameN,portDataN) writes the data portData1 to the streaming input port portName1, and writes portDataN to portNameN.

example

Examples

collapse all

Instantiate a FILFreeRunning object, and use the writePort function to write to the DUT.

First, instantiate the FIL object, and load the FPGA with the bitfile.

obj = DUT_fil;
programFPGA(obj);

Next, send a scalar value to one control data port at a time. For example, write the value 10 to the control port named ctrl:

writePort(obj,"ctrl",10);

Now, send scalar or vector data to the streaming data ports din1 and din2:

writePort(obj,"din1",uint32(1:1024),"din2",uint32(1:1024));

Input Arguments

collapse all

Instance of hdlverifier.FILFreeRunning object.

Name of the input port, specified as a string.

Version History

Introduced in R2024b