On 06/07/2012 07:04 PM, Thierry Bultel wrote:
> Hi,
> I have another question about the iMX6,
> it is about the TSC emulation .
>
> I have been told that the Pentium TSC could not be accurate enough
> for a one of our application that performs high precision data acquisition.
>
> Can we expect a better accuracy with the TSC emulation based
> on the ARM timer or not ?
Xenomai tsc emulation is usually based on a hardware timer which has a
lower frequency than the core. On cortex A9 cores, we use the "global
timer". On imx6q, this timer frequency should be around 500MHz, from the
top of my head.
Anyway, if you require a precision better than the processor cycle, then
you should not use the processor to do the measurement. Because for
instance, simply reading the TSC has a latency. This latency is around
10 cycles on mx6q (I am talking about 500 MHz cycles, not processor
cycles). And at that level, you should also account for the processor
intrinsic lack of determinism, with such things as pipeline stalls. So,
you simply can not achieve a better precision than the TSC when
measuring with a processor.
>
> Is this based on the CCNT that is cycle-accurate ?
No, it is based on the cortex a9 "global timer". I am sure we can read
this one from user-space, I am not sure we can read CCNT from user-space.
--
Gilles.
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai