Skip to content

0.2.1

Latest

Choose a tag to compare

@hansfbaier hansfbaier released this 30 Sep 00:59

Patch release: Python 3.16 compatibility, plus a fix to a misleading error message.

Fixes

  • USBDevice: the reset-sequencer wiring negated a plain Python bool (~self.always_fs), which is
    deprecated in Python 3.16 — ~True is -2, not a logical negation. The negation is now explicit
    (~int(self.always_fs)), so elaborating the device stack is warning-free. The generated netlist is
    byte-identical before and after, so no bitstream behaviour changes.
  • USBInterpacketTimer: the high-speed clock guard reported the wrong clock list (inherited from LUNA
    — it printed _FS_TX_TO_RX_TIMEOUT.keys(), which does contain 12 MHz, while checking
    _HS_RX_TO_TX_DELAY). It now prints the dict it actually checks, i.e.
    dict_keys([60000000.0]) for a 12 MHz clock with fs_only=False.

Verification

  • Full test suite: 116 passed.
  • Elaboration under -W error::DeprecationWarning:liteusb.* is clean (it previously raised at
    usb2/device.py).
  • Before/after Verilog of the device stack (raw-UTMI FS at 12 MHz, and the 60 MHz HS configuration
    used by ChromatiX) is byte-identical: sha256 b7ba83eb… / 8489ea3a….

ChromatiX consumes this release (liteusb@0.2.1 in its CI).

Full Changelog: 0.2.0...0.2.1