Question on error message: "The compiled entry-point 'FIFO_Buffer_hdl_mex' cannot be located."

1 回表示 (過去 30 日間)
Yufei Zhang
Yufei Zhang 2021 年 6 月 2 日
編集済み: Himanshu 2024 年 6 月 5 日
I was trying out this example and I noticed testbench generation failed due to the following message:
>> cd(setupExample('hdlverifier/GenerateFIFOInterfaceDPIComponentForUARTReceiverExample'))
>> design='FIFO_Buffer';
>> testbench='FIFO_Buffer_tb';
>> FIFO_Buffer_tb
Warning: MATLAB has disabled some advanced graphics rendering features by switching to software OpenGL. For more information, click
here.
>> dpigen -testbench FIFO_Buffer_tb FIFO_Buffer -args {0,int8(0),0}
Error using dpigenerator_generateTestBench
Unable to generate testbench for SystemVerilog DPI component. Please refer to the examples for guidelines on how to write the MATLAB
testbench.
......
Error in dpigen
Caused by:
Error using coder.internal.Float2FixedConverter
Error using coder.internal.Float2FixedConverter
The compiled entry-point 'FIFO_Buffer_hdl_mex' cannot be located.
Is there any particular reason why this occurs? And how should this be fixed? (I was running matlab from a linux machine)

回答 (1 件)

Himanshu
Himanshu 2024 年 6 月 5 日
編集済み: Himanshu 2024 年 6 月 5 日
Hey Yufei,
It seems like you misunderstood the way in which you need to use the commands from the mentioned documentation page.
>> design='FIFO_Buffer';
>> testbench='FIFO_Buffer_tb';
When you execute the above mentioned commands on the MATLAB command line, it will simply create two string objects in the workspace. Instead of this, the documenation states that you need to execute the follwoing commands to open the 'FIFO_Buffer.m' and 'FIFO_Buffer_tb.m' files.
>> edit('FIFO_Buffer')
>> edit('FIFO_Buffer_tb')
I used these commands and did not eccounter any error. I am attaching a screenshot of the same for your reference.

カテゴリ

Help Center および File ExchangeArgument Definitions についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by