Kintex UltraScale+ and Zynq UltraScale+ MPSoC parts have transceivers fast enough for 16 GT/s. Their PCIe blocks aren't: the PCIE4 hard block in those families stops at Gen3. If you wanted Gen4, the usual answer was a different part. We built the PCIe stack in the fabric instead.
The PCIe 4.0 Soft Endpoint is a complete PCI Express 4.0 endpoint built in programmable logic: link training and equalization, the data link layer, the transaction layer and configuration space. It sits on AMD's own PG239 PHY, so the transceiver side is generated exactly the way AMD generates it. Everything above that is ours.

From the outside, it looks like PG213
This was the part we cared about most. The core has PG213's port list and PG213's CONFIG names and values, at 512 bits for x8 and 256 bits for narrower links. A design that instantiates the hard block takes this core in its place, and a create_ip script written for PG213 configures it once the VLNV changes:
create_ip -vlnv apotheotech.com:ip:apt_pcie_ep:1.0 -module_name pcie_ep
set_property -dict [list CONFIG.PL_LINK_CAP_MAX_LINK_SPEED {16.0_GT/s} \
CONFIG.PL_LINK_CAP_MAX_LINK_WIDTH {X8}] [get_ips pcie_ep]Because it is a drop-in replacement for PG213's interface, it supports LitePCIe, with its Linux driver, its DMA and its MSI interrupts. The lanes can sit on any GTY or GTH quad your board routes them to, which also helps on boards whose PCIe lanes land somewhere the hard block can't reach.
Twice the bandwidth per lane
At 16 GT/s each lane carries 1.97 GB/s in each direction, so a Gen4 x4 link does the work of a Gen3 x8. At x8 the core moves 15.75 GB/s each way, and the user interface, 512 bits at x8 and 256 bits below, takes one beat per clock in every direction, so it never becomes the bottleneck.

The demo: one lane, one 4K camera
The video at the top is four of our cores between a Sony IMX530 and a PC. On the Aper-Oculus, the SLVS-EC receiver takes the pixels off the sensor over two lanes and the CoaXPress Device core turns them into a CXP-12 stream. On a KCU116 with our CoaXPress FMC card, the Host core decodes that stream, LitePCIe DMA moves it, and the soft endpoint carries it into the PC.
- IMX530
- SLVS-EC RX
- CXP Device
- CXP-12 coax
- CXP Host
- LitePCIe DMA
- apt_pcie_ep
- PCIe Gen4 x1
- PC
The stream is RGB8 at 4096 x 2160 and 44.6 fps. That is 1.18 GB/s, carried over PCIe Gen4 x1 at 16 GT/s. A Gen3 x1 lane tops out at 0.98 GB/s, so the same stream would not fit. On a board whose hard block stops at Gen3, that is the difference between one lane and two.
What it costs in fabric
Here are the numbers for every width, from the current builds on a KCU116. Each build includes the PG239 PHY. x8 uses the 512-bit user interface; x4, x2 and x1 use the 256-bit one.
| Width | LUTs | Registers | Block RAM | Share of a KU5P |
|---|---|---|---|---|
| PCIe Gen4 x1 | 22,843 | 22,093 | 21 | 10.5% |
| PCIe Gen4 x2 | 29,967 | 26,961 | 21 | 13.8% |
| PCIe Gen4 x4 | 36,466 | 32,647 | 21 | 16.8% |
| PCIe Gen4 x8 | 65,479 | 54,401 | 22.5 | 30.2% |
No DSP slices and no UltraRAM at any width. LitePCIe DMA on top adds about 5.2K LUTs (6.2K at x8). For a design that doesn't need them, size options can drop request tracking, the x2 and x1 links and packets at 2.5 and 5.0 GT/s, at least 18,100 more LUTs at x8 with all three.
x8 nearly doubles the LUTs of x4, because it moves to the wider datapath. Going the other way, x4 to x1 saves about 13.6K LUTs, not three quarters of the core: x1 is still 63% of the x4 build. A good part of the endpoint does not shrink with lane count. So the question is less "how wide can we afford" and more "how narrow can we get away with". For a lot of camera work, the answer is one lane at Gen4.
How we tested it
Every layer had its own SystemVerilog testbench before anything touched a board, and then the whole endpoint ran end to end in simulation. On hardware it has been through PCs with AMD and Intel processors, under Ubuntu and AlmaLinux, and every width from x1 to x8 has run at 16 GT/s. On every host it reaches 16 GT/s at full width, trains down to Gen3 when the slot is capped, and streams stamped test-pattern frames into host memory without dropping one.

What's next
- Done: Gen4 at x1, x2, x4 and x8 on PG239 with Gen3 fallback, PG213-compatible CQ, CC, RQ and RC ports, LitePCIe support, AMD and Intel x86 hosts, and measured utilization at every width.
- Next: bring-up on an NVIDIA Jetson Orin, an ARM host where the SMMU, cache coherency and DMA mapping all behave differently from x86, then the CoaXPress demo on it. And a test-pattern build that maxes out the link.
- Later: target tracking on the Orin, fed by a CoaXPress camera.
The datasheet has every figure, port and setting, and the product page has the short version. If you have a design that's stuck at Gen3, tell us about it.