Commit 14a7c1d6 authored by Timothy Pearson's avatar Timothy Pearson

Correctly detect LPC timeouts / aborts

LPC timeouts and aborts can occur anywhere and at any time during
or after a cycle, not just during the SYNC/TAR periods.
parent 51acdf0d
...@@ -504,6 +504,10 @@ class Decoder(srd.Decoder): ...@@ -504,6 +504,10 @@ class Decoder(srd.Decoder):
# TODO: Only memory read/write is currently supported/tested. # TODO: Only memory read/write is currently supported/tested.
# Detect host cycle abort requests
if (lframe == 0) and (self.oldlframe == 0):
self.state = 'GET TIMEOUT'
# State machine # State machine
if self.state == 'IDLE': if self.state == 'IDLE':
# A valid LPC cycle starts with LFRAME# being asserted (low). # A valid LPC cycle starts with LFRAME# being asserted (low).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment