Ft+ FT601 245 loopback: SuperSpeed + D3XX transfer, echoed words never match (SRAM, Au then Pt)

Hi — Gregory Jackson. We are trying the simplest USB3 echo we can: 32-bit 245 FIFO master, SRAM bitstream, D3XX write/read. We expected that to work the same way the Labs Ft Plus V2 Demo does (ui_din = ui_dout). It does not.

Hardware

  • First: Alchitry Pt first-batch (PINOUT(PT_ALPHA)), xc7a100, Ft+ on top.

  • Then: Alchitry Au xc7a35t + Ft+ (FT601Q, USB 0403:601f). JTAG idcode 0x362d093 (Artix-7 35T). Published V2 au_ft_plus pinout from Without Alchitry Labs / alchitry.github.io au_ft_plus.xdc. SRAM load only (no flash).

  • USB SuperSpeed 5000M.

What we see (16 KiB D3XX, incrementing 32-bit words)

On the Au:

  • Session endpoint 0x01 times out (rc=-7).

  • After that, D3XX still moves a full 16384 bytes.

  • words_ok=0, words_bad=4096

  • fail_1: got=0x00000c1a, exp=0

  • fail_2: got=0x00000c1c, exp=1

On the Pt (same kind of test): first word got=0x00000df6 vs exp=0. Bits that are 1 sit in DATA[0:13]; DATA[14:31] are zeros. That first word is not a pin permutation of expected word 0 (any permute of 0 is still 0).

So the host is talking SuperSpeed to an FT601 that will take/return a 16 KiB buffer, but the FPGA is not echoing the payload we sent.

What Alchitry docs actually say (vs 245 vs 600)

We followed public Labs/website material; there is still no host tutorial for Ft/Ft+. Labs 2.0.24: “A tutorial showing how to design an interface and actually get data off is planned.” Starter Serial Interface is the FT2232 UART, not the Ft+.

Shop / boards:

  • Alchitry Ft: FT600, USB-C mux, ~200 MB/s.

  • Ft V2 shop: Ft = FT600Q ~200 MB/s; Ft+ = FT601Q 32-bit ~400 MB/s (18 extra IO).

Pinouts Ft+ Bank A: !Wakeup A3, OE A4, !Reset A5, RD A6, WR A9, RXF A10, TXE A12, BE[3:0], D[31:16], CLK on A41 (D17 on A42). Bank B is D[15:0]. Same 245-style names as the Ft (16-bit), just a wider bus.

ACF FREQUENCY: V2 clock-capable pins include A41. Published au_ft_plus.xdc constrains ft_clk as 100 MHz (create_clock -period 10.0, comment 100000000Hz), LVCMOS33.

Lucid Ft Plus V2 Demo (alchitry_top.luc): board clk 100 MHz; ft_clk “Ft 100MHz clock”; ft #BUS_WIDTH(32); ft_wakeup = 1; ft_reset = !rst where rst is only the button through reset_conditioner. After DONE with the button up, ft_reset stays high — they do not pulse RESET_N at config. Echo is ft.ui_din = ft.ui_dout (plus BE). LEDs are {ft_txe, ft_rxf, ui_dout_empty, ui_din_full}, not an ft_clk blink.

[ft.luc]( Alchitry-Labs-V2/src/main/resources/library/components/Interfaces/ft.luc at master · alchitry/Alchitry-Labs-V2 · GitHub ): “BUS_WIDTH: Set to 16 for the Ft (FT600) or 32 for the Ft+ (FT601)”. FSM is clocked on ft_clk. Comments: ft_rxf “low when there is data in the rx buffer”, ft_txe “low when there is space in the tx buffer”, ft_oe “0 = FTDI, 1 = FPGA driving bus”. IDLE until rxf==0 or txe==0; default PRIORITY RX; one-cycle OE then read. That is 245 sync FIFO signaling. The Labs sources never name FIFO “245” vs “600” protocol mode (GPIO/EEPROM). They only distinguish FT600 (16-bit Ft) vs FT601 (32-bit Ft+). There is no official 600-mode example.

We stopped pulsing ft_reset after DONE to match that Lucid policy. Loopback still fails the same way (wrong words, session EP 0x01 -7).

Question

On Au V2 + Ft+, SRAM-loaded bitstream, is a 32-bit 245 echo (Labs Ft Plus demo, or the same OE/RD/WR loopback in Verilog) expected to round-trip D3XX data with the stock FT601 EEPROM? If yes, what host path do you actually use (FT_WritePipeEx pipe 0, chip config, GPIO 00, etc.) and should ft_clk be running at 100 MHz with RESET_N held high after DONE? If 245 loopback is not supposed to work until something else is programmed in the FT601, we would rather hear that than keep adding FPGA state machines.

Happy to post pin/LED notes. Thanks.

never mind.. looks like the best packet size is 4096 bytes otherwise it is doing something else i dont understand. which turns out to be alot. still working on it.. looks like i just had to steer my misguided AI and find that … and i suppose ill post it entire.. educational.. the solution:

Follow-up: we got a working 32-bit 245 path on Au V2 + Ft+. Stock EEPROM. SRAM only. USB SuperSpeed 5000M. JTAG idcode 0x362d093 (xc7a35) on every load.

The first post’s 0xc1a / 0xc1c (+2 on every word) was FPGA → FT601 → PC, not a dead host OUT. Split tests:

  • RX-only (PC → FT601 → FPGA): host OUT 0xa5a51111; FPGA latched that word. PASS.

  • TX-only (FPGA → FT601 → PC): incrementing uint32, host IN only. After the fixes below: 16 KiB PASS (words_ok=4096). Eight back-to-back 4096-byte INs stitch with no gaps.

What was wrong

  1. DATA and WR changed on the same clock. Labs ft.luc is combinational: DATA is the TX word in IDLE and WRITE; ft_wr is only low while state == WRITE. After IOB FFs, DATA is already on the bus one ft_clk before WR. If you load DATA+WR in the same sequential assignment (and tristate in IDLE), the FT601 samples a moving bus. That was the +2 stride.

  2. The FT601 245 FIFO is 4 KiB × 2 ping-pong (not “write until TXE in one endless burst”). If WR is still low after TXE goes high, that word is discarded (FTDI TN_191 Fig. 12). We saw exactly one dropped 32-bit count every 4096 bytes. Host D3XX does not correct this.

What works (the scheme)

  • Match Labs: drive DATA in IDLE; assert WR only in WRITE; IOB-register outputs. Keep WR in an IOB FF (combo WR missed 100 MHz by ~6.5 ns on this Artix).

  • One write transaction = 1024 × 32-bit words (4 KiB), BE=0xF, then raise WR and wait for TXE. Same idea as other FT60x streaming designs (fixed-size blocks so TXE cannot change mid-block).

  • Host: session EP 0x01 still times out (-7); after USB reset, D3XX FT_ReadPipeEx / FT_WritePipeEx fifo 0 moves the data. ft_clk 100 MHz. ft_reset held high after DONE, matching the Ft Plus V2 Demo.

Not claimed

  • Full echo (OUT then IN the same words) is not the PASS we just posted; TX and RX were isolated. Next is putting this PHY under loopback / capture.

  • This PASS is Au, not Pt first-batch PT_ALPHA.

  • PulseView / libsigrok is not in this bitstream.

Verilog (Au, SRAM): https://github.com/greg676/vivado_neorv32/pull/18
Branch: cursor/au-ft601-tx-hold-ef3a
PHY: platforms/alchitry-au-v2/rtl/ft601/ft601_sync_fifo.v
Labs reference: https://github.com/alchitry/Alchitry-Labs-V2/blob/master/src/main/resources/library/components/Interfaces/ft.luc

References

  • FTDI DS_FT600Q-FT601Q: 245 / 1-channel FIFO = 4 KB × 2 double-buffered; write 4 KB as one bus transaction for full USB packets.

  • FTDI AN_386 / AN_412: same 4 KB (bidirectional 245) vs 8 KB if IN-only.

  • FTDI TN_191 FT60X Data Transfer and FIFO Master Basics, Fig. 12: extra word while TXE_N=1 is not received.

  • ubfx: FT600/FT601 USB 3 bridge: FPGA timing closure and general tips — write/read fixed block sizes so TXE/RXF cannot change mid-block.

  • CoLA (sigrok wiki) and WangXuan95/FPGA-ftdi245fifo: FT601 32-bit 245 with buffering / scheduled bursts.

Happy to hear if Labs internally already bursts 4 KiB in ft.luc’s WRITE state via TXE alone — on Verilog we had to count 1024 words or we dropped one per ping-pong.

if any of you use an ai agent system here is a handoff..very interesting AI quest that did finally lead to the working solution.. i think it gave the github.. https://github.com/greg676/vivado_neorv32