You copied the Doc URL to your clipboard.

How can I instantiate the Cortex-M3/ETM-M3 DSM instead of the RTL in the Cortex-M3 Example System?

Article ID: 156342445

Published date: 10 Jan 2018

Last updated: -

Applies to: Cortex-M3

Problem/Question

How to instantiate the Cortex-M3/ETM-M3 DSM instead of the RTL in the Cortex-M3 Example System.

Scenario

N/A

Answer

The Cortex-M3 Example System by default instantiates the Cortex-M3 and ETM RTL in the testbench. The following describes the steps required to replace the RTL with DSM for both the Cortex-M3 and ETM.

1: In the run_example script comment out the following two lines:

Line 193:

generic_rtl .= "+define+IFPATH=example_tbench.uCORTEXM3INTEGRATION.uCORTEXM3.u_cm3_dpu ";

Line 937:

"MG_LIB ${ValHome}/coresight/logical/armBST/$mg_mm/$the_os/MM",

2: In the tbench/example_tbench.v file comment out the following line:

Line 681:

tarmac tarmac();

3: In the tbench/example_tbench.vc file comment out the reference to the Cortex-M3/ETM-M3 RTL and tarmac files, e.g.:

-y ../../logical/cortexm3/verilog

-y ../../logical/cm3_dpu/verilog

-y ../../logical/cm3_bus_matrix/verilog

-y ../../logical/cm3_dwt/verilog

-y ../../logical/cm3_fpb/verilog

-y ../../logical/cm3_itm/verilog

-y ../../logical/cm3_dap_ahb_ap/verilog

-y ../../logical/cm3_mpu/verilog

-y ../../logical/cm3_nvic/verilog

-y ../../logical/ualdis/verilog

-y ../../logical/cm3_etm/verilog

4: Reference the Cortex-M3/ETM-M3 DSM:

-v $DIR_CORTEXM3/CORTEXM3.v

-v $DIR_CM3ETM/CM3ETM.v

5: Set-up the following environment variables before recompiling the tbench.

setenv DIR_CORTEXM3

setenv DIR_CM3ETM

setenv MG_LIB

setenv LD_LIBRARY_PATH

setenv LMC_HOME

setenv tarmac_trace_on 1

setenv ecs_trace_on 1

setenv etm_trace_on 1

Workaround

N/A

Example

N/A

Related Information

N/A

Was this page helpful? Yes No