Skip to content

Releases

0.2.1

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

0.2.0

Choose a tag to compare

@hansfbaier hansfbaier released this 30 Sep 00:28

The whole device stack has been re-verified on hardware and the API has been made clock-domain
aware, so LiteUSB now drops into multi-clock SoCs.

What's new

  • All eight examples (counter, interrupt, simple, vendor_request, stream_out,
    stress_test, isochronous_count, acm_serial) rebuilt and re-verified on the Terasic DECA
    (MAX10 + TUSB1210 ULPI).
  • Clock-domain parameterization: every device-stack class takes a domain="usb" parameter and
    relocates its own domain at the component boundary (nested submodules, Memories,
    TransactionalizedFIFOs and MultiRegs included), so USBDevice(domain="usb_12") — or any single
    endpoint/request handler — is enough to plug the stack into a design with a differently named
    USB clock.
  • USBPacketID members now expose LUNA's member API (pid.byte(), .is_data(), .summarize(),
    .name).

Fixes

  • Endpoint serialization FSMs now run in the usb clock domain.
  • StreamInterface.connect() now handles tuple/list field entries.
  • terasic_deca_common: single-PLL CRG matching the original design, Quartus 21.1 SDC syntax,
    false-path fix, ULPI I/O timing constraints made optional.

Documentation

  • New architecture reference under doc/: 55+ WaveDrom timing diagrams, FSM state diagrams
    generated from the sources, and a bundled VCD viewer with real simulation traces for every test.

Known limitations

  • EHCI host support is not part of this release (it lives on the ehci branch).
  • DECA bitstreams report a pre-existing clk600 setup violation on the 60 MHz ULPI input path;
    the USB protocol domain itself fits.

Full Changelog: 0.1.1...0.2.0

Fixed remaining bugs. All examples work now. SoC on ACM serial works.

Choose a tag to compare

@hansfbaier hansfbaier released this 22 Jul 02:41

The last release was still bug ridden and most examples did not work properly.
That is now fixed.
The core now should be useable.
The most complex example, a LiteX SoC connected to the host via highspeed USB2 ACM serial,
works now properly.

first time core verified working in hardware

Choose a tag to compare

@hansfbaier hansfbaier released this 18 Jul 04:30
8b1b643

The counter device works on real hardware.

Full Changelog: https://github.com/hansfbaier/liteusb/commits/0.1.0