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 Cosim Wizard icon.
MATLAB command prompt: Enter cosimWizard
.