SLEEP
The SLEEP function is used to pause execution for the specified period of time.
SLEEP in a HOLDOFF block will perform an immediate software level SLEEP. Any hardware accesses grouped inside the HOLDOFF prior to the SLEEP will not be performed until the end of the HOLDOFF and after the SLEEP.
SLEEP is accurate in software to 1 ms for values below 200 ms, but of a lower resolution for values above.
SLEEP does not explicitly cause a FLUSH so do not use SLEEP assuming that all hardware accesses before it have completed.
Note that for more precise delays between hardware accesses use NANO_SLEEP. SLEEP provides no guarantee of delays between hardware accesses.
Syntax
SLEEP( INT milliseconds )
Parameters
- milliseconds
- The number of milliseconds to pause for. If a value wider than 32 bits is provided, it will be truncated to 32 bits.
Example
// Pause for 2 seconds SLEEP(2000);
See Also
XJTAG v4.1.100