Embedded Design Handbook

ID 683689
Date 8/28/2023
Public
Document Table of Contents

7.5.5.5. Add a Performance Counter

Add a performance counter peripheral so you can compare the performance of the reads and writes to tightly coupled memory to other memories. To add the performance counter, complete the following steps:

  1. In the Component Library tab, click Peripherals to expand the list of available components.
  2. Under Debug and Performance, double-click Performance Counter Unit to open the Performance Counter configuration wizard.
  3. Click Finish, accepting the default setting of the 3 simultaneously-measured sections.
  4. Be sure that the component is named performance_counter.
  5. Move the component up just below the tightly coupled memory components. Connect the control_slave port of the performance_counter to the cpu’s data_master port. The figure below shows these connections.
  6. In performance_counter, connect clk to the same clock domain as cpu and reset to clk_reset of the clock source.
  7. In the Base column, change the base address of performance_counter to 0x09000000.
    Figure 282. Connections for the Performance Counter