MATLAB: Is it possible to use ModelSim Code Coverage tools whilst doing an HDL Cosimulation

code coverageHDL Coderhdl cosimulationHDL Verifiermodelsim

Hi everyone, I'm trying to work out if there is a way (preferably without having to hack the generated TCL files) to turn on and use the Code Coverage tools in ModelSim when using the HDL Cosimulation feature of the HDL Coder. Anyone got any ideas??
Thanks, Andy

Best Answer

Yes, it's definitely supported but you'll have to modify the generated TCL files a little bit (it should be easy).
There is an HDL Verifier example to show this. The title of that demo is "Generating HDL Code Coverage Using Simulink and Mentor Graphics ModelSim".
Related Question