DASM
|
HW implementation for 'SimpleTimer'. More...
#include "Time/HiRes.pm"
Go to the source code of this file.
Classes | |
class | DExecHW::SimpleTimer |
HW implementation for 'SimpleTimer'. More... |
HW implementation for 'SimpleTimer'.
A very simple timer measuring microseconds since the hardware was initialised. FIXME Allow this to be CPU start?
3 words are provided (little endian):
Offset | Name | Meaning |
---|---|---|
+0 | Low | low word (bits 0-15) |
+1 | Middle | middle word (bits 16-31) |
+2 | High | high word (bits 32-47) |
The middle and high words are latched by reading the low word.
Writing to any register has the effect of resetting the clock to 0.
Definition in file SimpleTimer.pm.