在modelsim分别输入命令vlib work;vmap work work;vlog interver.v 编译成功后,启动Simulink建立模型,模型如下。注意Matlab和Modelsim的工作路径要保持一致。
模块HDL Cosimulation位于HDL Verifier库中For use with Mentor Graphics Modelsim子库中。双击HDL Cosimulation进行相关参数设置,并对Simulink模块进行仿真参数设置。点击Simulation--Start开始仿真。Modelsim多次仿真结果如下