SCPS287D November 2023 – September 2025 TPLD1201
PRODUCTION DATA
When configured as a Counter (CNT) and a valid edge appears on the IN input, this macro-cells resets the internal counter to 0 and begins counting down from DATA on the next rising clock edge. Then, the macro-cell outputs a pulse for the duration of one CLK period when the count reaches 0 and wrap around to the value in DATA. The counter will continually operate until another reset is received. The edge on which the Counter is reset is determined by the Edge select parameter and can be configured as:
The counter time is calculated by COUNT = (DATA + 1)/fCLK. After a reset, an additional 2 clock cycles is added for clock synchronization with an option to bypass. Note, bypassing the clock synchronization may result in the counter resetting to an unknown value.
Figure 7-14 and Figure 7-15 show examples of Counter output timing diagrams with respect to the Edge select parameter with DATA = 1 and DATA = 3, respectively.
Figure 7-16 shows an example of how the Counter macro-cell operates when the IN signal is shorter than the counter length (shown when edge select parameter is set to "both").