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.

Generate Component and Test Bench

  1. If you have not yet done so, finish selecting the TLM generation options and click OK to save your changes and exit the TLM Generation options panes.

  2. Generate code. Select one of the following ways:

    • Press Ctrl-B (full model).

    • Right-click the subsystem and select C/C++ Code > Build This Subsystem.

    • Select Code > C/C++ Code > Build Model (this option builds the full model).

    Note

    Generate the component and test bench on the architecture you plan to use for running the SystemC simulation.

  3. Go to Run TLM Component Test Bench (optional).

For more about using the generated TLM component, see Export TLM Component.