User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 241
UG585 (v1.11) September 27, 2016
Chapter 8: Timers
8.4.2 Block Diagram
A block diagram of the SWDT is shown in Figure 8-2.
Notes relevant to Figure 8-2:
SLCR programmable registers (WDT_CLK_SEL, MIO control) select the clock input.
SWDT programmable registers set the values for CLKSEL and CRV.
Signal restart causes the 24-bit counter to reload the CRV values, and restart counting.
Signal halt causes the counter to halt during CPU debug (same behavior as AWDT).
8.4.3 Functional Description
The control logic block has an APB interface connected to the system interconnect. Each write data
received from the APB has a key field which must match the key of the register in order to be able to
write to the register.
The Zero Mode register controls the behavior of the SWDT when its internal 24-bit counter reaches
zero. Upon receiving a zero signal, the control logic block asserts the interrupt output signal for
IRQLN clock cycles if both WDEN and IRQEN are set, and also asserts the reset output signals for
approximately one CPU_1x cycle if WDEN is set. The 24-bit counter then stays at zero until it is
restarted.
The Counter Control register sets the timeout period, by setting reload values in
swdt.CONTROL[CLKSET] and swdt.CONTROL[CRV] to control the prescaler and the 24-bit counter.
The Restart register is used to restart the counting process. Writing to this register with a matched
key causes the prescaler and the 24-bit counter to reload the values from CRV signals.
X-Ref Target - Figure 8-2
Figure 8-2: System Watchdog Timer Block Diagram
UG585_c8_02_120913
Control Logic
24-bit CounterPrescaler
Interrupt Controller ID41
Halt (during CPU debug)
SWDT Reset
(to PS reset system)
Restart
MIO Pin, EMIOWDTRSTO
Zero
CRV
CLKSEL
APB
CPU_1x
MIO Pins,
EMIOWDTCLKI
slcr.WDT_CLK_SEL[0]
slcr.MIO_PIN_xx
]
INTERCONNECT