How to give random inputs for my simulink design?

조회 수: 3 (최근 30일)
Utkarsh
Utkarsh 2024년 4월 16일
답변: Kiran Kintali 2024년 4월 21일
I have created a model using importhdl ie. from my verilog code. Now I want to test it with many random inputs just like we do simulation testing on iVerilog or Quartus Prime or any other HDL tool. How can I do that as if I use constant then it works for only one input at a time?

답변 (1개)

Kiran Kintali
Kiran Kintali 2024년 4월 21일
You have to wrap the imported Simulink model from HDL Code into a subsystem. Add sources (constants, toworkspace blocks...) and sinks (displays, scopes, ...) and drive the design.
The importhdl command currently only tries to import a synthesizable HDL design (limitations exist) into a subset of supported Simulink constructs. Only Verilog import is supported as of R2024a release and VHDL support is on the roadmap.
Currently importhdl cannot automatically import a testbench for your DUT.

카테고리

Help CenterFile Exchange에서 Code Generation에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by