GerhardNorkus wrote:
You can actually see the counter getting updated if you use the "Waves" view. You access that by setting up the "Debug Configurations" to run as a Simulator. But there's a lot more to describe about that if you haven't yet invested the time in it....
Hi GerhardNorkus,
I'm aware of all XMOS tools. I have been using them tow years ago (before XMOS changed the nomenclature of cores/threads to tiles/logic-core). I have left XMOS mainly because of my daily work, and I'm getting back to them mainly because of a special project (a proof of concept mainly). btw, I'm the creator of the French XMOS group (
http://www.xcore.com/groups/frenchy-xcore ,
http://www.xcore.com/wiki/index.php/Frenchy_XCore ;)
As for the timing, I'm checking using the waves view, and I already checked the section of code I posted using XTA. It reports about 160ns for the first case statement, and when I comment the second one, it reports about 120ns (worst case of course).
I'm sorry for not having been precise with my question. What I was asking for is if there were a special feature or trick to do edge counting (using clocks, buffered ports, ...) in accurate manner.
I couldn't find any clever way of doing it. I tought to use buffered ports, and using serialization of 0xFF values on a cloked input port, and then check the number of 0xFF clocked-in in a certain amount of time, but this is usable only if the count of clock edges is multipe of 8....
anyway, I'm going to check how I can do it in assembly.
Thank you for your suggestions.