To use the Watchdog Timer to monitor user logic, set the
bitstream property BITSTREAM.CONFIG.TIMER_USR, or set TIMER_USR_MON to 1 and
the desired TIMER_VALUE in a write to the TIMER register in the bitstream. The user design
must constantly reset the watchdog counter before it times out, either by the
LTIMER command or by directly accessing the TIMER register. The watchdog is
automatically disabled when the device is shut down or on power down (including shutdown).
The following table shows an example bitstream for
reloading the Watchdog Timer using the LTIMER command.
| Configuration Data (hex) | Explanation |
|---|---|
FFFFFFFF
|
Dummy word |
AA995566
|
Sync word |
20000000
|
Type 1 NOOP |
30008001
|
Type 1 Write 1 words to CMD |
00000000
|
NULL |
20000000
|
Type 1 NOOP |
30008001
|
Type 1 Write 1 words to CMD |
00000011
|
LTIMER command |
20000000
|
Type 1 NOOP |
30008001
|
Type 1 Write 1 words to CMD |
0000000D
|
DESYNC |
20000000
|
Type 1 NOOP |
The following table shows an example bitstream for directly accessing the TIMER register.
| Configuration Data (hex) | Explanation |
|---|---|
FFFFFFFF
|
Dummy word |
AA995566
|
Sync word |
20000000
|
Type 1 NOOP |
30022001
|
Type 1 Write 1 words to TIMER |
xxxxxxxx
|
TIMER value |
20000000
|
Type 1 NOOP |
30008001
|
Type 1 Write 1 words to CMD |
0000000D
|
DESYNC |
20000000
|
Type 1 NOOP |