How to create a Cosimulation Block without using Cosimulation Wizard?
1 回表示 (過去 30 日間)
古いコメントを表示
As I know, the Cosimlation block in Simulink is generated by Cosimulation wizard as shown in the example Get Started with Simulink HDL Cosimulation
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1761359/image.png)
Question:
I wonder if I can create a Cosimlation block without using Cosimulation wizard in Simulink.
0 件のコメント
採用された回答
Malay Agarwal
2024 年 8 月 28 日
Please take a look at the following example, which shows how to create a "Cosimulation Block" using the command-line interface exposed by Simulink for cosimulation: https://www.mathworks.com/help/releases/R2023b/hdlverifier/ref/cosimulationconfiguration.html#mw_1d35a2af-0278-4b2c-a2cd-4abb719fdeb8.
You can adopt the workflow described in the above example to your specific requirements.
Hope this helps!
その他の回答 (1 件)
Marc Erickson
2024 年 8 月 28 日
Yes, you can! There is a generic HDL Cosimulation block In the Simulink library browser, in the library HDL Verifier / For use with Siemens ModelSim/Questa. (Or open "modelsimlib" at the command prompt.)
The wizard automates a lot of the work, but manually filling in the block mask and writing your own scripts can give you more flexibility. A main difference is that the wizard assumes you are cosimulating a specific HDL module interface, whereas manually creating it allows you to scope the driving/sampling of HDL signals anywhere in the HDL design.
We have several examples that do not use the wizard to arrive at the cosimulation model. Here are a couple:
HTH!
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!