Which OS for DIO application?

My first application will be to use the Snickerdoodle-PiSmasher
for a 64 Digital Input application, with a samplerate of around 50 kHz for each DI.
With some algorithms for finding a pattern into the 64 digits.
Can you suggest the best OS for this?
Is there any documentation or examples available?

Thanks for support
Michael
Hi Michael,

It really depends on the complexity of what you are doing. Running FreeRTOS or bare metal in one core you should be able to theoretically pattern match 64 bits at 50kHz realtime by just configuring the I/O pins as GPIO provided that the patterns are not too complicated since the cores run at at least 667MHz.
I recommend you check out section 1 of the following tutorial book: http://www.zynqbook.com/download-tuts.html to get some ideas on how to deploy simple AXI GPIO peripherals.

GPIO is the only way you would do such an application with an ordinary SBC like raspberry PI or beagleboard etc. but the snickerdoodle is no ordinary SBC.

The best approach to your application, one which would allow you to pattern match easily into the 10s of megahertz would be to deploy a custom hardware state machine to the FPGA fabric. At that point the operating system would not really be a factor in realtime performance so Linux would be just fine.
A recommended starting point is probably the HLS hub:http://www.xilinx.com/support/documentation-navigation/design-hubs/dh0012-vivado-high-level-synthesis-hub.html

It will take a shift in how you think about C code but this is where I would start given your application if you don't have VHDL/Verilog experience on FPGAs already.

BTW, The application you describe is pretty much perfect for the Zynq SoC on the snickerdoodle. In fact you can be certain that many logic analyzers use FPGAs on their front end.

On Saturday, April 2, 2016 at 3:09:29 AM UTC-7, HiSun wrote:
My first application will be to use the Snickerdoodle-PiSmasher
for a 64 Digital Input application, with a samplerate of around 50 kHz for each DI.
With some algorithms for finding a pattern into the 64 digits.
Can you suggest the best OS for this?
Is there any documentation or examples available?

Thanks for support
Michael