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.

Run TLM Component Test Bench

After the TLM component and test bench have been generated, you can verify the generated TLM component using the test bench that was just created:

  1. Open Model Configuration Parameters. Click on TLM Generation.

  2. Select the TLM Testbench pane.

  3. Click Verify TLM Component. The software performs the following actions:

    • Builds the generated code using make and generated makefiles.

    • Runs Simulink® to capture input stimulus and expected results.

    • Converts the Simulink data to TLM vectors.

    • Runs the standalone SystemC/TLM test bench executable.

    • Converts the TLM results back to Simulink data.

    • Performs a data comparison.

    • Generates a Figure window for any signals that had data miscompares.


You must generate the component and test bench before you can select Verify TLM Component. See Generate Component and Test Bench.