X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fjtag%2F__init__.py;h=16cf6c6d31bffe883858c1e114a720f0edf4bb53;hb=7fb4935edde881272fabdeda83f554bcf150689f;hp=48b6ec1128be7b33a2e06b7f72777ce514dc5edb;hpb=6e7a0087c5b3db987f5798d821f9e98848b650a6;p=libsigrokdecode.git diff --git a/decoders/jtag/__init__.py b/decoders/jtag/__init__.py index 48b6ec1..16cf6c6 100644 --- a/decoders/jtag/__init__.py +++ b/decoders/jtag/__init__.py @@ -1,5 +1,5 @@ ## -## This file is part of the sigrok project. +## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Uwe Hermann ## @@ -27,12 +27,30 @@ and flashing various digital ICs. TODO: Protocol details. -TODO: Protocol decoder output format description. +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: https://en.wikipedia.org/wiki/Joint_Test_Action_Group http://focus.ti.com/lit/an/ssya002c/ssya002c.pdf ''' -from .jtag import * +from .pd import *