cli: add -c option to script mode, like `python -c...
by whitequark 4 years 7 months
cli: add -c option to script mode, like `python -c`.
e5544ac2
cli: fix script mode on Python 3.7.
by whitequark 4 years 7 months
cli: fix script mode on Python 3.7.

This mode was originally added in e1f7f6b2 without a compatibility
shim and crashed on Python 3.7. It also crashed if the script did not
include a toplevel `await`.
b094bf86
applet.direct.demultiplexer: fix race condition in...
by whitequark 4 years 7 months
applet.direct.demultiplexer: fix race condition in flush().

Because wait_all() does not pick up tasks added to the queue after
it has been started, it is necessary to call it in a loop, otherwise
flush(wait=True) will return before all data is actually written.
58ef7c5e
access.direct.demultiplexer: use non-blocking flus...
by whitequark 4 years 7 months
access.direct.demultiplexer: use non-blocking flush in read().

This cuts the amount of waits/wakeups by half. (The call to flush()
in read() predates the wait= argument to flush().)
45b29009
applet.interface.jtag_probe: add explicit --ir-len...
by whitequark 4 years 7 months
applet.interface.jtag_probe: add explicit --ir-lengths option.

This is useful for devices that capture more than one <10> sequence
in their IR immediately after Test-Logic-Reset.
1e61e98f
applet.interface.jtag_probe: don't transmit XR hea...
by whitequark 4 years 7 months
applet.interface.jtag_probe: don't transmit XR header/trailer on wire.

This has many benefits:
* Selecting a TAP no longer requires copying all scan sequences;
* TAPInterface implementation is now much simpler;
* Log messages no longer have header/trailer clutter.

The current implementation no longer allows custom headers/trailers.
This is an extremely obscure capability. If necessary, it could be
restored by accepting `bits` in prefix=/suffix= arguments.
eff97b84
applet.interface.jtag_probe: fix typo.
by whitequark 4 years 7 months
e07ec28f
applet.interface.jtag_probe: use non-idempotent sc...
by whitequark 4 years 7 months
applet.interface.jtag_probe: use non-idempotent scans in scan_reset_dr_ir(). NFCI.

This was originally intended as a performance optimization, but after
measuring (and, first, implementing performance counters) it turned
out it makes no difference.

It's still (marginally) nicer though.
453f8628
Add FIFO performance counters.
by whitequark 4 years 7 months
Add FIFO performance counters.

Aggregate FIFO performance counters show potential latency or CPU
usage issues at a glance and help evaluating improvements.
80c5d6e9
applet.debug.arm.swd: remove.
by whitequark 4 years 7 months
applet.debug.arm.swd: remove.

This applet has never worked, and keeping it in-tree is misleading.
It is also somewhat badly designed.
22339294
Report a bug