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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ