The SCTM has the following top-level functional requirements:
- Counter timer resources:
- A maximum of 32 counters can be instantiated in a single SCTM.
- A maximum of eight of the counters can be instantiated with timer (event generation) functionality in addition to the base counter function.
- System event signal inputs:
- A maximum of 127 event signal inputs can be supported by the SCTM.
- Any of the system event signal inputs can be routed to any of the counter timer resources in the SCTM.
- Counter functionality:
- The module contains a collection of 32-bit counters that can be chained to an adjacent counter for 64-bit capability.
- The counters can be configured to operate with any one of the event signal inputs.
- The counters can be configured to operate in a free-running mode that counts the total number of clock cycles.
- The counters can operate in duration mode that counts the total duration in cycles that the assigned input signal is asserted.
- The counters can operate in event mode that counts the total number of times the assigned event signal is asserted.
- The counters can be configured to continue to run or to temporarily stop when the CPU enters the debug halt state.
- The counters can be configured to continue to run or to temporarily stop when the CPU enters the IDLE state.
- Timer functionality:
- Timers have all the functionality of counters.
- Timers have a 32-bit interval match register.
- Timers can be configured to generate an interrupt event when the counter matches the interval register.
- Timers can be configured to generate a debug event when the counter matches the interval register.
- The timers can be configured to run to the interval register once or to reinitialize each time the interval counter is matched.
- System Trace Interface:
- The counter state dump can be configured as periodic or may be generated under application control.