This document describes the Xillybus Host Application Programming Guide, including synchronous and asynchronous streams and I/O programming practices.
This guide explains how Xillybus presents FPGA communication to a Linux host through device files that behave like named pipes. It covers synchronous and asynchronous streams, I/O programming practices, high-speed continuous I/O, circular frame buffers, and specific programming techniques including seekable and bidirectional synchronous streams.
The document also describes how streams are implemented internally and discusses timeouts, grouped communication, simulated hardware interrupts, and coprocessing/hardware acceleration. Its examples are written in plain C, with notes that other languages such as Perl and Python can be used when performance and synchronization requirements are less strict. This copy is an automatically translated Chinese version of the English original. This manual is written in Chinese.
Asynchronous streams generally offer better performance, especially for continuous data, while synchronous streams are easier to handle and are preferred when tight synchronization with the FPGA is needed.
Xillybus device files are accessed as /dev/xillybus_something, or as /dev/xillyusb_something when XillyUSB is used.
The guide's examples are written in plain C.
Yes. The described techniques can be implemented in other languages, including scripting languages such as Perl and Python, especially when performance and synchronization requirements are less strict.