Is there anyway to test custom IP cores on MATLAB/SIMULINK
3 次查看(过去 30 天)
显示 更早的评论
Hi,
I want to test my own IP core with MATLAB/SIMULINK. And I tried all ways of HDL tools but all encountered problems.
- In FPGA-in-loop test, it only supports HDL files rather than IP files (.xci)
- In HDL Verifier Cosimulation, it only supports Xilinx IPs (add .xci and its HDL wrapper). But I cannot use my own IPs. Always has this error: ERROR: [VRFC 10-2063] Module <IP_name> not found while processing module instance <your_instance_name>
Is it possible to test my custom IP?
0 个评论
回答(1 个)
Kiran Kintali
2024-2-25
You can make a DUT with Simulink subsystems and combine them with your custom IP using Black box interface and the combined IP can be verified using these features.
Create Host Interface Script to Control and Rapidly Prototype HDL IP Core
Rapidly prototype the HDL IP core by interfacing with your target board over Ethernet or JTAG. Use an Ethernet connection for boards that have an ARM® processor. Use a JTAG connection for boards that do not have an ARM processor.
2 个评论
Angela Cuadros Castiblanco
2024-2-26
Hello Zhengchen,
To clarify, you can use the host interface script to test IP cores generated using HDL coder in MATLAB or Simulink. The links that Kiran provided give you an overview of how to use these scripts and how to generate them.
From your original question, you mentioned that you were interested in testing your own IP core. Like Kiran mentioned, you could use a blackbox to combine your custom IP (in the form of HDL files) into a DUT in Simulink. For this method you would need to include the hdl files of your custom IP in the "Additional Files" when generating your IP core. This example shows how to use a blackbox in IP core generation:
Then you can go through the IP core generation workflow and generate the host interface script to test your IP core. Depending on your board and reference design, you can either use the HDL verifier JTAG AXI Manager IP or the ARM processor on your board to interface with your target board over Ethernet or JTAG.
If this does not answer your questions, could you elaborate more on your use case? That is, are you trying to do hardware in the loop simulation or cosimulation using ModelSim or similar tools? and could you provide an example of the IP that you would like to integrate in Simulink, if not could you elaborate on the format and files that constitute your IP?
Thanks!
Angela
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!