Compare SPI/QSPI, FSMC/parallel bus, AXI4, and PCIe for FPGA-processor designs: bandwidth, pin count, CDC, DMA, and XTELL PolarFire & Lattice lessons.
Many hardware teams choose an MCU or application processor on one side and an FPGA on the other, then treat the bus between them as a last-minute detail. When prototype bring-up begins, they discover that SPI cannot drain ADC bursts fast enough, a parallel memory bus violates hold timing across board traces, or polling over a register link burns half the CPU cores.
Picking the right FPGA-processor interface—and designing the clock-domain crossing (CDC) and buffering around it—determines PCB layer count, pin budget, software driver complexity, and real-time latency.
Use this comparison table early in architecture review before locking chip packages and pinouts:
| Interface | Practical Sustained Bandwidth | Pin Count | Driver & DMA Model | Best Fit |
|---|---|---|---|---|
| SPI / Quad-SPI | ~5–80 Mbps (SPI) / ~100–200 Mbps (QSPI) | 4–8 pins + IRQ | Simple MCU/Linux SPI + DMA burst | Register control, status telemetry, modest packet streams |
| Parallel Bus (FSMC / EBI / EMIF) | ~200 Mbps–1.5 Gbps | 20–40+ pins | Memory-mapped SRAM/NOR timing + DMA | Medium-speed acquisition, deterministic MCU-to-FPGA memory windows |
| On-Chip AXI4 / AXI-Stream (SoC FPGA) | Multiple Gbps (internal fabric) | 0 external board pins | UIO, DMA engine, or Linux kernel driver | Tight CPU + FPGA co-processing (Zynq / PolarFire SoC) |
| PCIe (Gen1 / Gen2 / Gen3) | ~2 Gbps/lane (Gen1) up to ~6+ Gbps/lane (Gen3) | Differential lanes + REFCLK + PERST# | Scatter-gather DMA ring + MSI/MSI-X IRQ | High-speed vision, SDR, multi-channel capture to host MPU/PC |
SPI is the lowest-pin-count way to pair an MCU or Linux SoC with a Lattice or Microchip FPGA. The most common mistake is treating SPI as a bare byte stream without packet framing or a dedicated hardware interrupt pin:
When an MCU has an external memory controller, mapping the FPGA as an asynchronous or synchronous SRAM gives natural pointer access from C code. However, asynchronous strobes (NWE, NOE, NE) come from the MCU clock domain, not the FPGA system clock:
NWE pin. Synchronize control strobes through a two-flip-flop synchronizer (or oversample at ≥4× the strobe rate) into the FPGA fabric clock, detect the edge cleanly, and latch address/data once stable.At multi-hundred-megabit and gigabit rates, CPU-driven PIO reads collapse throughput. High-speed links need hardware DMA rings and strict flow control:
TVALID / TREADY backpressure by placing an asynchronous skid/packet FIFO inside the FPGA ahead of the DMA interface so real-time sensors or ADCs never drop words during short bus stalls.The snippet below illustrates how to capture an asynchronous MCU write strobe inside an FPGA system clock domain without creating a secondary clock tree (illustrative only—adapt polarity and setup hold cycles to your MCU bus timing):
// Illustrative synchronous edge-capture for external MCU write strobe
always @(posedge sys_clk) begin
wr_sync <= {wr_sync[1:0], mcu_nwe}; // 3-stage sync (falling edge detect)
if (wr_sync[2:1] == 2'b10) begin // falling edge of active-low NWE
addr_lat <= mcu_addr;
data_lat <= mcu_data;
wr_pulse <= 1'b1;
end else begin
wr_pulse <= 1'b0;
end
end
An interface bug between an FPGA and a processor sits right on the boundary where separate hardware, FPGA, and Linux/firmware contractors blame each other. At XTELL, the same engineering team handles KiCad PCB layout, FPGA RTL and timing closure, and MCU firmware or Linux drivers—so pin assignments, CDC logic, and DMA buffers are verified together on the bench.
Read our companion FPGA articles on choosing between PolarFire, Lattice, and Xilinx, FPGA timing constraints and closure, and high-speed ADC/DAC board design, or reach out via our contact page to review your architecture.
SPI/QSPI works well below roughly 50–150 Mbps when framed with an interrupt line and DMA bursts. Move to a parallel memory bus (FSMC/EIM) for deterministic low-latency MCU register/buffer access up to ~1 Gbps, and use AXI4 (SoC FPGA) or PCIe when streaming high-channel ADC, vision, or SDR data continuously.
External MCU bus strobes are asynchronous to the FPGA clock, lack dedicated global clock routing, and introduce hold/glitch hazards. Synchronizing strobes into the FPGA global clock domain and sampling edge transitions keeps timing analysis clean and deterministic.
XTELL delivers PCB design, RTL/timing closure, and processor firmware/Linux drivers across Lattice (LCMXO2), Microchip PolarFire (MPF100T), Xilinx, and Altera CPLD devices paired with STM32, NXP i.MX6, Rockchip, Allwinner, and Raspberry Pi hosts.
Contact us for customized solutions and quotes