To get started, see Verify HDL Module with MATLAB Test Bench.
|Cosimulation Wizard||Generate a cosimulation block or System object from existing HDL files|
|Load instantiated HDL module for verification with Cadence Incisive and MATLAB|
|Load instantiated HDL module for verification with ModelSim and MATLAB|
|Load instantiated HDL module for cosimulation with ModelSim and MATLAB System object|
|Load instantiated HDL module for cosimulation with Cadence Incisive and MATLAB System object|
|Control MATLAB server that supports interactions with HDL simulator|
|Associate MATLAB component function with instantiated HDL design|
|Schedule MATLAB test bench session for instantiated HDL module|
|Call specified MATLAB function once and immediately on behalf of instantiated HDL module|
|End active MATLAB test bench and MATLAB component sessions|
|Send HDL simulator event ID and process ID to MATLAB server|
|Block cosimulation until HDL simulator is ready|
|Wait until specified event ID is obtained or time-out occurs|
|Create a System object for HDL cosimulation with MATLAB|
To cosimulate your HDL code with a MATLAB or Simulink® design, you must first:
List of supported third-party EDA software and FPGA boards.
Cosimulation requires a connection between MATLAB and your HDL simulation tool.
Provides some direction for choosing TCP/IP socket ports.
Provides instructions for performing cosimulation across a local network.
Run your test bench or component, including the cosimulation of your HDL module.
You can verify HDL modules using the HDL Cosimulation System object™.
This example shows you how to use MATLAB® System objects and Mentor Graphics® ModelSim®/QuestaSim® or Cadence® Incisive®/Xcelium® to cosimulate a Viterbi decoder implemented in VHDL.
Generate a MATLAB System object to cosimulate your HDL code.
Generate a MATLAB function to cosimulate your HDL code.
This section explains how you use the
for MATLAB functions
This tutorial guides you through the basic steps for setting up an HDL Verifier™ cosimulation that uses MATLAB and the HDL Simulator.
Verify generated HDL code using a generated cosimulation script.
Verify Code with HDL Test Bench (HDL Coder)
Simulate the generated HDL design under test (DUT) with test vectors from the test bench using the specified simulation tool.
The HDL Verifier software consists of MATLAB functions, a MATLAB System object, and a library of Simulink blocks, all of which establish communication links between the HDL simulator and MATLAB or Simulink.
Prepare for cosimulation and choose whether to cosimulate your HDL code as a function, System object, or block.
If your HDL application needs to send HDL data to a MATLAB function, you may first need to convert the data to a type supported by MATLAB and the HDL Verifier software.
Describes ways to avoid race conditions in hardware cosimulations with MATLAB and Simulink software.