Skip to content

feat(dlc10): pure-Rust driver for Xilinx Platform Cable USB II + SPI flash #592

Closed

Description

@gHashTag

Replace Python tools/dlc10_jtag.py with a pure-Rust driver using rusb (per Article II of the dePIN constitution: Rust only, no .sh, no Vivado, no proprietary toolchain).

What this delivers

  • New crate cli/dlc10: library + binary implementing DLC10 control-transfer + JTAG state machine
  • Embeds Cypress FX2 firmware (xusb_xp2.hex) and bscan_spi proxy bitstream (MIT, quartiq) via include_bytes!
  • Subcommands: idcode, sram <bitfile>, program <bitfile> (SPI flash)
  • Rewrite cli/flash-spi to call dlc10::Dlc10::program_flash directly (drops openFPGALoader dependency — DLC10 was never supported there)

Status

  • cli/dlc10 crate implemented (12 unit tests passing)
  • cargo run -p dlc10 -- idcode returns 0x13631093 (XC7A100T) on hardware
  • cargo run -p dlc10 -- sram heartbeat.bit — DONE bit stays LOW (under debug)
  • cargo run -p dlc10 -- program target.bit (SPI flash + power-cycle verify)

Refs

Activity

  1. 37 remaining items

  2. added 9 commits that reference this issue on May 23, 2026
    d53640a
    f123674
    d320d47
    0d7f387
    d345dc0
    52ad5ec
    cb6e4e2
    2233bac
    7370e66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions