Description

These are the reference designs for the FPGA Drive FMC Gen4 and M.2 M-key Stack FMC adapters that allow connecting NVMe SSDs and other M.2 M-key modules to FPGA, MPSoCs and APACs via the FPGA Mezzanine Card (FMC) connector.

Both of the FMC cards shown below can be used with these reference designs.

FPGA Drive FMC Gen4

M.2 M-key Stack FMC

FPGA Drive FMC Gen4

M.2 M-key Stack FMC

Design overview

Each design connects one or two M.2 NVMe SSDs to the processor of the target board through one PCIe Root Port per M.2 slot, built with the integrated PCIe block of the device. The processor enumerates and controls the SSDs through the Root Port’s AXI slave interfaces, and the SSDs read and write the processor’s DDR memory directly through the Root Port’s AXI master. The diagram below shows the Zynq UltraScale+ version; the diagrams of all four device families, the PCIe link of every target and the address map are on the hardware design page.

Zynq UltraScale+ design block diagram

Hardware Platforms

The hardware designs provided in this reference are based on Vivado and support a range of FPGA, MPSoC and ACAP evaluation boards. The repository contains all necessary scripts and code to build these designs for the supported platforms listed below:

FPGA platforms

Target board

FMC Slot
Used

Active
M.2 Slots

PCIe IP

Standalone
Application

PetaLinux

Yocto

KC705

HPC

1x

axi_pcie

✅

❌

❌

KC705

LPC

1x

axi_pcie

✅

❌

❌

KCU105

HPC

2x

axi_pcie3

✅

❌

❌

KCU105

LPC

1x

axi_pcie3

✅

❌

❌

VC707

HPC1

1x

axi_pcie

✅

❌

❌

VC707

HPC2

1x

axi_pcie

✅

❌

❌

VC709

HPC

1x

axi_pcie3

✅

❌

❌

VCU118

FMCP

2x

xdma

✅

❌

❌

Zynq-7000 platforms

Target board

FMC Slot
Used

Active
M.2 Slots

PCIe IP

Standalone
Application

PetaLinux

Yocto

PicoZed 7015

LPC

1x

axi_pcie

✅

✅

✅

PicoZed 7030

LPC

1x

axi_pcie

✅

✅

✅

ZC706

HPC

1x

axi_pcie

✅

✅

✅

ZC706

LPC

1x

axi_pcie

✅

✅

✅

Zynq UltraScale+ platforms

Target board

FMC Slot
Used

Active
M.2 Slots

PCIe IP

Standalone
Application

PetaLinux

Yocto

UltraZed-EV Carrier

HPC

2x

xdma

✅

✅

✅

ZCU104

LPC

1x

xdma

✅

✅

✅

ZCU106

HPC0

2x

xdma

✅

✅

✅

ZCU106

HPC1

1x

xdma

✅

✅

✅

ZCU111

FMCP

2x

xdma

✅

✅

✅

ZCU208

FMCP

2x

xdma

✅

✅

✅

ZCU216

FMCP

2x

xdma

✅

✅

✅

Versal platforms

Target board

FMC Slot
Used

Active
M.2 Slots

PCIe IP

Standalone
Application

PetaLinux

Yocto

VCK190

FMCP1

2x

qdma

✅

✅

✅

VCK190

FMCP2

2x

qdma

✅

✅

✅

VHK158

FMCP

1x

qdma

✅

✅

✅

VMK180

FMCP1

2x

qdma

✅

✅

✅

VMK180

FMCP2

2x

qdma

✅

✅

✅

VEK280

FMCP

2x

qdma

✅

✅

✅

VPK120

FMCP

1x

qdma

✅

✅

✅

VPK180

FMCP

1x

qdma

✅

✅

✅

PCIe IP

These designs implement one PCIe root complex per active M.2 slot. All designs make use of the integrated PCIe blocks that are built into the FPGA, MPSoC or ACAP device. The PCIe IP core used in each design depends on the device and is indicated in the “PCIe IP” column in the tables above.

The table below lists the PCIe IP cores used in these designs and provides links to their product pages. As all of these IP make use of hard PCIe blocks that are integrated into the FPGA/MPSoC/ACAP devices, they do not require a license to use.

IP Label

IP Name

axi_pcie

AXI Memory Mapped to PCI Express (PCIe) Gen 2 IP

axi_pcie3

AXI PCI Express (PCIe) Gen 3 Subsystem IP

xdma

DMA for PCI Express (PCIe) Subsystem IP

qdma

QDMA Subsystem for PCI Express (PCIe) IP

Active M.2 Slots

Some of the designs have only one active M.2 slot due to limitations of the target board. The table below illustrates how to load the M.2 slots for designs that can support only one M.2 module vs those that can support two.

One Active Slot

Two Active Slots

FPGA Drive FMC with single SSD loaded

FPGA Drive FMC with two SSDs loaded

When using designs with only one active slot, you must leave the slot labelled “SLOT 2” or “SSD2” unloaded.

Software

These reference designs can be driven by a standalone application or from embedded Linux, built with either PetaLinux or Yocto / EDF. The repository includes all necessary scripts and code to build these environments. The table below outlines the applications available in each environment:

Environment

Available Applications

Standalone

PCIe enumeration test (ssd_test)

PetaLinux, Yocto

Built-in Linux commands
Additional tools: nvme-cli, pciutils (lspci), fdisk, mkfs / mke2fs, blkid, mount
Versal images: SSD speed-test scripts

The standalone application reports on the status of the PCIe link and performs enumeration of the detected PCIe end-points (ie. the M.2 modules); see stand-alone application. Under Linux, the SSDs come up as NVMe block devices that you can partition, format and test; see Test the SSDs in Linux.