Skip to content

Instantly share code, notes, and snippets.

@regymm
Created August 10, 2026 05:01
Show Gist options
  • Select an option

  • Save regymm/4cfc4f174e3000f97810eb97d52f8ef3 to your computer and use it in GitHub Desktop.

Select an option

Save regymm/4cfc4f174e3000f97810eb97d52f8ef3 to your computer and use it in GitHub Desktop.
YPCB Kintex 7 480t PCIe Gen2 on Raspberry Pi 5

Hardware connection

Using PCIe to M.2 board for RPi5 (WaveShare), and M.2 to standard PCIe adaptor board for the card.

JTAG connected as usual, and a external 12V jack is soldered on the board.

I'm using 12V 3A power supply, it's enough for small designs but may not be so for larger designs.

12V 1A certainly doesn't work.

image image

Testing on RPi

In the log below, it's clear that after programming new bitstream, a remove/rescan successfully detected the new endpoint with new device ID (0480). However, it's still recommended to do a full reboot for stable operation, especially when BAR size changes.

root@raspberrypi:/home/pi# lspci
0000:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries Device 2712 (rev 21)
0000:01:00.0 Memory controller: Xilinx Corporation Device 7028
0001:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries Device 2712 (rev 21)
0001:01:00.0 Ethernet controller: Device 1de4:0001

*** Program new bitstream here ***

root@raspberrypi:/home/pi# echo 1 > /sys/bus/pci/devices/0000\:01\:00.0/remove 
root@raspberrypi:/home/pi# echo 1 > /sys/bus/pci/rescan 
root@raspberrypi:/home/pi# lspci
0000:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries Device 2712 (rev 21)
0000:01:00.0 Memory controller: Xilinx Corporation Device 0480
0001:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries Device 2712 (rev 21)
0001:01:00.0 Ethernet controller: Device 1de4:0001
root@raspberrypi:/home/pi# lspci -nnk -s 0000:01:00.0
0000:01:00.0 Memory controller [0580]: Xilinx Corporation Device [10ee:0480]
	Subsystem: Xilinx Corporation Device [10ee:abcd]
root@raspberrypi:/home/pi# lspci -nnkvv -s 0000:01:00.0
0000:01:00.0 Memory controller [0580]: Xilinx Corporation Device [10ee:0480]
	Subsystem: Xilinx Corporation Device [10ee:abcd]
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Interrupt: pin A routed to IRQ 255
	Region 0: Memory at 1b00000000 (32-bit, non-prefetchable) [virtual] [size=4K]
	Capabilities: [40] Power Management version 3
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [48] MSI: Enable- Count=1/1 Maskable- 64bit+
		Address: 0000000000000000  Data: 0000
	Capabilities: [60] Express (v2) Endpoint, MSI 1f
		DevCap:	MaxPayload 256 bytes, PhantFunc 0, Latency L0s <64ns, L1 unlimited
			ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 0W
		DevCtl:	CorrErr- NonFatalErr- FatalErr- UnsupReq-
			RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
			MaxPayload 128 bytes, MaxReadReq 512 bytes
		DevSta:	CorrErr+ NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
		LnkCap:	Port #0, Speed 5GT/s, Width x1, ASPM L0s, Exit Latency L0s unlimited
			ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp-
		LnkCtl:	ASPM Disabled; RCB 64 bytes, Disabled- CommClk+
			ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
		LnkSta:	Speed 5GT/s, Width x1
			TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
		DevCap2: Completion Timeout: Range B, TimeoutDis- NROPrPrP- LTR-
			 10BitTagComp- 10BitTagReq- OBFF Not Supported, ExtFmt- EETLPPrefix-
			 EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
			 FRS- TPHComp- ExtTPHComp-
			 AtomicOpsCap: 32bit- 64bit- 128bitCAS-
		DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR- 10BitTagReq- OBFF Disabled,
			 AtomicOpsCtl: ReqEn-
		LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis-
			 Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
			 Compliance Preset/De-emphasis: -6dB de-emphasis, 0dB preshoot
		LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete- EqualizationPhase1-
			 EqualizationPhase2- EqualizationPhase3- LinkEqualizationRequest-
			 Retimer- 2Retimers- CrosslinkRes: unsupported
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment