Logic analyzer

14 channels, LA1 to LA14, on any pins of your board. The pod watches the lines and decodes them. It also drives your board: see Watch and drive.

Capture

  • Up to 12 MS/s as raw samples. On gateware v50 and later, up to 48 MS/s as changes only.
  • Above 12 MS/s a signal that changes more than about 6 million times per second for a millisecond or so ends the capture early. The capture says so.
  • A trigger starts the capture, with samples from before it if you ask.
  • Set the I/O voltage (1.8 or 3.3 V) first. The wiring profile names the channels: see Pin-out.

Decoders

ProtocolLinesCapture rate
I2CSDA, SCL10x the clock
SPISCLK, MOSI, MISO, CS4x the clock
UARTRX10x the baud
CAN, CAN FDRXD of the CAN transceiver6x the fastest bit rate
Modbus RTURX of the RS-485 transceiver10x the baud
1-WireThe data line1 MS/s, overdrive 4 MS/s
SMBus, PMBusSDA, SCL10x the clock
PWM, servoOne or more channels20x the frequency or more
USBD+, D-Full speed 48 MS/s, low speed 6 MS/s

Read a bus with a transceiver on the transceiver's logic side, never on the bus wires.

Where

Web appCapture tab, then Decode. See the Web workspace.
Python SDKcapture_la(n, sample_rate_hz=...), then .decode("i2c", ...)
MCPcapture_la, then decode_la
HTTPPOST /analyzer/decode

Details: Web workspace, pytest, MCP, CLI.

USB decoding

Watch a board's USB traffic on every pod: tap the lines and see the enumeration as a list.

  • Wiring. D+ and D- to two LA channels, GND to GND, wires short. I/O voltage 3.3 V.
  • Rate. Full speed (12 Mbit/s): 48 MS/s. Low speed (1.5 Mbit/s): 6 MS/s or more.
  • Call. bp.decode(la, "usb", dp=7, dm=8), decode_la in MCP, or POST /analyzer/decode.
  • Output. Control transfers (request and descriptor: VID and PID, interfaces, endpoints, strings), transactions (token, data, ACK, NAK or STALL) and packets with the CRC checked. A bad packet is flagged and the rest still decodes.
  • Limits. High speed (480 Mbit/s) is not visible. A full-speed hub between the board and a high-speed host keeps it at full speed. Heavy bulk traffic can end a 48 MS/s capture early.

To make the pod the USB host instead, see USB host and flashing.