Main Content

Simulink Cosimulation

Cosimulate HDL code with Simulink®

Blocks

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

Apps

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

Functions

expand all

nclaunchStart and configure Cadence Xcelium simulator for use with HDL Verifier software
vsimStart and configure ModelSim for use with HDL Verifier
launchVCSStart and configure Synopsys VCS simulator for use with HDL Verifier software (Since R2024b)
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

Objects

cosimulationConfigurationConfigure HDL cosimulation workflow (Since R2022b)

Topics

Startup and Connection

Testbench

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

Component Algorithm

Cosimulation with Simulink

HDL Simulator Interaction

Recording Signal State Transitions for Post-Processing

Featured Examples