Main Content

Simulink Cosimulation

HDL cosimulation with Simulink®


HDL Cosimulation Cosimulate HDL design by connecting Simulink with HDL simulator
To VCD FileGenerate value change dump (VCD) file


HDL VerifierGenerate HDL verification artifacts and follow verification workflows from a Simulink subsystem (Since R2020b)
Cosimulation WizardGenerate a cosimulation block or System object from existing HDL files


expand all

nclaunchStart and configure Cadence Xcelium simulator for use with HDL Verifier software
vsimStart and configure ModelSim for use with HDL Verifier
hdlsimulinkLoad instantiated HDL module for cosimulation with Cadence Xcelium and Simulink
vsimulinkLoad instantiated HDL module for cosimulation with ModelSim and Simulink
breakHdlSimExecute stop command in HDL simulator from MATLAB
pingHdlSimBlock cosimulation until HDL simulator is ready
tclHdlSimExecute Tcl command in Xcelium or ModelSim simulator


cosimulationConfigurationConfigure HDL cosimulation workflow (Since R2022b)


Startup and Connection

Test Bench

Verification of Generated HDL Code with Cosimulation Test Bench (requires HDL Coder license)

Component Algorithm

Cosimulation with Simulink

HDL Simulator Interaction

Recording Signal State Transitions for Post-Processing