This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Performing Cosimulation

When you are finished creating a function, System object™, or block, select the topic below that describes how you are planning to cosimulate your HDL code.

If you generated this cosimulation interface:Select one of these topics:
MATLAB® test bench function (matlabtb)
MATLAB component function (matlabcp)

MATLAB System object

With a completed System object, you are ready to use it for HDL verification. See Verify Viterbi Decoder Using MATLAB System Object and HDL Simulator for an example of using the MATLAB System object for HDL cosimulation.

Simulink® Block

Place your HDL cosimulation block within a test bench or component model. See Create a Simulink Cosimulation Test Bench or Create Simulink Model for Component Cosimulation.

After you have an HDL cosimulation model, run the simulation. See Run a Simulink Cosimulation Session.

You can also view the following examples: