MATLAB 帮助中心
Send data to DUT ports
Since R2024b
writePort(filobj,portName1,portData1,...,portNameN,portDataN)
writePort(filobj,portName1,portData1,...,portNameN,portDataN) writes the data portData1 to the streaming input port portName1, and writes portDataN to portNameN.
filobj
portName1
portData1
portDataN
portNameN
example
collapse all
Instantiate a FILFreeRunning object, and use the writePort function to write to the DUT.
FILFreeRunning
writePort
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:
10
ctrl
writePort(obj,"ctrl",10);
Now, send scalar or vector data to the streaming data ports din1 and din2:
din1
din2
writePort(obj,"din1",uint32(1:1024),"din2",uint32(1:1024));
Instance of hdlverifier.FILFreeRunning object.
hdlverifier.FILFreeRunning
Name of the input port, specified as a string.
Introduced in R2024b
hdlverifier.FILFreeRunning | readPort
readPort
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处