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