X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fjtag%2F__init__.py;h=4538e0e0f476b953932a467866e6523a4658de64;hb=96732f09031ba9434ff7542e5b88834ab16db611;hp=21ec679358a1e76cbf14949607e431306e3ed53a;hpb=557a143d8018ac5b25b0cdde99415433e3663f62;p=libsigrokdecode.git diff --git a/decoders/jtag/__init__.py b/decoders/jtag/__init__.py index 21ec679..4538e0e 100644 --- a/decoders/jtag/__init__.py +++ b/decoders/jtag/__init__.py @@ -21,9 +21,36 @@ ''' JTAG protocol decoder. +JTAG (Joint Test Action Group), a.k.a. "IEEE 1149.1: Standard Test Access Port +and Boundary-Scan Architecture", is a protocol used for testing, debugging, +and flashing various digital ICs. + +TODO: Protocol details. + +Protocol output format (WORK IN PROGRESS!): + +JTAG packet: +[, ] + + is one of: + - 'NEW STATE': is the new state of the JTAG state machine. + Valid values: 'TEST-LOGIC-RESET', 'RUN-TEST/IDLE', 'SELECT-DR-SCAN', + 'CAPTURE-DR', 'SHIFT-DR', 'EXIT1-DR', 'PAUSE-DR', 'EXIT2-DR', 'UPDATE-DR', + 'SELECT-IR-SCAN', 'CAPTURE-IR', 'SHIFT-IR', 'EXIT1-IR', 'PAUSE-IR', + 'EXIT2-IR', 'UPDATE-IR'. + - 'IR TDI': Bitstring that was clocked into the IR register. + - 'IR TDO': Bitstring that was clocked out of the IR register. + - 'DR TDI': Bitstring that was clocked into the DR register. + - 'DR TDO': Bitstring that was clocked out of the DR register. + - ... + +All bitstrings are a sequence of '1' and '0' characters. The right-most +character in the bitstring is the LSB. Example: '01110001' (1 is LSB). + Details: -TODO +https://en.wikipedia.org/wiki/Joint_Test_Action_Group +http://focus.ti.com/lit/an/ssya002c/ssya002c.pdf ''' -from .jtag import * +from .pd import *