]> sigrok.org Git - libsigrokdecode.git/commit - decoders/parallel/pd.py
parallel: add support for optional reset/enable/select signal
authorGerhard Sittig <redacted>
Sat, 7 Nov 2020 13:38:05 +0000 (14:38 +0100)
committerGerhard Sittig <redacted>
Wed, 11 Nov 2020 18:47:41 +0000 (19:47 +0100)
commit76b64d3a64c61f4de996d40c55d44c77471a48d8
tree51bd8f3ca0c77066e9e0c23cdfc2b10d6121ac32
parente2317ec49b8b04c7f8b3358c2e9c264de4280539
parallel: add support for optional reset/enable/select signal

Add an optional 'reset' signal of user configurable polarity. When the
signal is asserted, the data lines are not interpreted. Assertion will
flush previously accumulated data bits and words. Deassertion can help
synchronize to input streams when the capture started in the middle of
a word. Despite the "reset" name this signal can also be thought of as
"enable" or "select", and increases the versatility and usefulness of
the parallel decoder beyond strictly parallel memory busses.

Construct the list of .wait() conditions and track the positions of
individual terms in that list. This is necessary because "always false"
conditions are not available, thus pin/channel indices and .matched[]
indices don't correspond for sparse input signal assignments.

Accept when previously gathered information became void again, and
re-use existing initialization code for reset related activity.
decoders/parallel/pd.py