On 5/16/09 10:00 PM, "Poul-Henning Kamp" <p...@phk.freebsd.dk> wrote:

> In message <20090517031525.292e7b...@ip-64-139-1-69.sjc.megapath.net>, Hal
> Murr
> ay writes:
> 
>> This is one of the reasons why I was looking for a low-cost FPGA on PCI board
>> with some way to get a couple of external inputs.
>> 
>> Things get interesting if your hardware splits a 64 bit read into 2 32 bit
>> transfers.  Many years ago, all Intel chips did that.  I don't know about
>> today.
> 
> You don't need a 64bit counter in the first place.

You might want a 64 bit counter, if you want to keep time across processor
resets.

In which case, if you're saddled with 32 bit (or 8 bit!) reads, you have to
do multiple reads, so that by the end of the process, you can assure
yourself it's consistent.

E.g read high, read low, read high, read low
So you can check low #1 against low #2, and figure out if you had a roll
over.



_______________________________________________
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

Reply via email to