MATLAB 도움말 센터
Receive data from DUT ports
Since R2024b
data = readPort(filobj,portName1)
[data1,data2,...] = readPort(filobj, portName1,portName2,...)
data = readPort(filobj,portName1) reads the data from control output port portName1 and assigns it to a variable named data.
filobj
portName1
data
example
[data1,data2,...] = readPort(filobj, portName1,portName2,...) reads the data from streaming data port portName1, portName2, ... and assigns them to data1, data2.
portName2
data1
data2
collapse all
Instantiate a FILFreeRunning object and use the readPort function to receive data from DUT ports.
FILFreeRunning
readPort
First, instantiate the FIL object, and load the FPGA with the bitfile.
obj = DUT_fil; programFPGA(obj);
Next, set the length of the frame that you want to read from the streaming data port. You can optionally specify a timeout value in seconds.
obj.ReadFrameLength =128; obj.TimeOut = 3;
You can receive a scalar value from one control data port at a time. You can read from all streaming output ports at once.
This example reads a status from the control data port status, and then it reads a frame of 128 from streaming data ports dout1 and dout2.
status
dout1
dout2
statusValue = readPort(obj,"status"); [d1,d2] = readPort(obj,"dout1","dout2");
Instance of a hdlverifier.FILFreeRunning object.
hdlverifier.FILFreeRunning
Name of an output port, specified as a string.
Introduced in R2024b
hdlverifier.FILFreeRunning | writePort
writePort
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 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의