Lib(X)SVF - A library for implementing SVF and XSVF JTAG players

JTAG (IEEE 1149.1, aka "Boundary Scan"[1] [2]) is a standard IC testing, debugging and programming port.

SVF (Serial Vector Format[3] [4]) is a file format for storing the patterns that should be sent to the JTAG interface, as well as the expected response. It is used as an exchange format between programms that generate the JTAG input/output patterns and devices that can physically talk to a JTAG interface.

XSVF (Xilinx Serial Vector Format[5]) is a binary variant of the SVF file format, optimized but not limited to programming Xilinx FPGA and CPLD devices.

Often one wants to use an embedded host processor or microcontroller to access the JTAG interface on an embedded device instead of using an external JTAG probe. This library can be used to implement such a solution. In addition to playing SVF and XSVF files this library is also capable of scanning the devices in the JTAG chain.

The libraries API can be used in a simple synchonous mode (perfect for register mapped GPIOs) or in a bit more complex asynchronous mode (for high speed interfaces with some roundtrip time).

Lib(X)SVF is free software licensed under the ISC license[6] (a GPL compatible licence that is similar in terms to the MIT license or the 2-clause BSD license).


Documentation (README file):

Example program (simple synchonous interface):

Example program (asynchronous interface to the FTDI FT232H/FT2232H/FT4232H USB chips):

Example program (interface to the Xilinx Platform Cable USB):

Link to the sources (subversion repository):

Projects using Lib(X)SVF

The following is a small excerpt of projects using Lib(X)SVF: Please drop me a line if you are using Lib(X)SVF for something interesting and agree to be listed here with your project.

In papers and reports, please refer to Lib(X)SVF as follows: Clifford Wolf. Lib(X)SVF: A library for implementing SVF and XSVF JTAG players., e.g. using the following BibTeX code:

        author = {Clifford Wolf},
        title = {Lib(X)SVF: A library for implementing SVF and XSVF JTAG players},
        howpublished = "\url{}"