Generate a cosimulation block or System object from existing HDL files
Run your HDL design as part of a Simulink® model, or MATLAB® script. The Cosimulation Wizard generates a cosimulation block, System object™, or callback function that compiles the HDL code and launches the HDL simulator.
Simulink Toolstrip: In the Apps tab, under Verification, Validation and Test, click the HDL Verifier icon to open the HDL Verifier tab. Then, select HDL Cosimulation in the Mode section, and click Import HDL Files.
MATLAB command prompt: Enter cosimWizard
.