Xillybus Host Application Programming Guide for Linux, Version 3.0

This document describes the Xillybus Host Application Programming Guide, including synchronous and asynchronous streams and I/O programming practices.


Xillybus Host Application Programming Guide for Linux, Version 3.0 - cover page
Brand
Xillybus
Category
Programming
Document type
Programming Manual
Language
Chinese
Pages
49
File format
PDF
File size
930 KB
Published
11 November, 2023
Updated
11 November, 2023
MD5 checksum
FB0B8F1AAF1E06B8E5804AFA3EC3F497

About this manual

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.

What's inside

  • Introduction
  • Synchronous and asynchronous streams
  • I/O programming practices
  • High-speed continuous I/O
  • Circular frame buffers
  • Specific programming techniques
  • Seekable streams
  • Bidirectional synchronous streams
  • Simulating hardware interrupts
  • Internal structure: how streams are implemented

Frequently asked questions

What is the difference between synchronous and asynchronous Xillybus streams?

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.

What device file names does Xillybus use?

Xillybus device files are accessed as /dev/xillybus_something, or as /dev/xillyusb_something when XillyUSB is used.

What language are the programming examples written in?

The guide's examples are written in plain C.

Can I use scripting languages with Xillybus?

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.

Download PDF (930 KB)

More Xillybus Manuals


View all Xillybus manuals →