X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fjtag%2Fpd.py;h=d7b35aae87f4defe3f409f0faa00dff20e29fd93;hb=e28f7aee3b96afeb543e0c3c29e3950ddd61a490;hp=95e5d28c5fc364da1f4ea123360af25220e4fe08;hpb=12851357e784b893e24880efc6cd22a0cbcc64ce;p=libsigrokdecode.git diff --git a/decoders/jtag/pd.py b/decoders/jtag/pd.py index 95e5d28..d7b35aa 100644 --- a/decoders/jtag/pd.py +++ b/decoders/jtag/pd.py @@ -23,11 +23,11 @@ import sigrokdecode as srd ''' OUTPUT_PYTHON format: -JTAG packet: -[, ] +Packet: +[, ] - is one of: - - 'NEW STATE': is the new state of the JTAG state machine. +: + - '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', @@ -139,9 +139,6 @@ class Decoder(srd.Decoder): elif self.state == 'UPDATE-IR': self.state = 'SELECT-DR-SCAN' if (tms) else 'RUN-TEST/IDLE' - else: - raise Exception('Invalid state: %s' % self.state) - def handle_rising_tck_edge(self, tdi, tdo, tck, tms): # Rising TCK edges always advance the state machine. self.advance_state_machine(tms)