How ufrisk/pcileech-fpga works
PCILeech FPGA is a family of FPGA firmware designs that pair with the PCILeech DMA toolkit and MemProcFS. The documented workflow is host software communicating over a board-specific link with FPGA firmware, which exposes PCIe memory access and raw TLP capability to a host system. The graph uses CaptainDMA’s representative source paths for the shared design layers; the README documents additional board variants and a UDP/IP-based NeTV2 option. No source excerpts were provided, so internal wiring is kept conservative.
Main entry points: pcileech_35t325_x1_top.sv Board top level · pcileech_pcie_a7.sv PCIe endpoint · pcileech_pcie_tlp_a7.sv TLP handling · pcileech_ft601.sv FT601 transport
Components 16
Host software
- PCILeech toolkit
- MemProcFS
Device links
- USB-C / USB3
- UDP/IP link
- NeTV2 Ethernet
NeTV2/src/pcileech_eth.sv
FPGA firmware
- Board top level
CaptainDMA/35t325_x1/src/pcileech_35t325_x1_top.sv - FT601 transport
CaptainDMA/35t325_x1/src/pcileech_ft601.sv - Command interface
CaptainDMA/35t325_x1/src/pcileech_com.sv - Data mux
CaptainDMA/35t325_x1/src/pcileech_mux.sv - FIFO buffering
CaptainDMA/35t325_x1/src/pcileech_fifo.sv
PCIe functions
- PCIe endpoint
CaptainDMA/35t325_x1/src/pcileech_pcie_a7.sv - TLP handling
CaptainDMA/35t325_x1/src/pcileech_pcie_tlp_a7.sv - PCIe configuration
CaptainDMA/35t325_x1/src/pcileech_pcie_cfg_a7.sv - Config shadow
CaptainDMA/35t325_x1/src/pcileech_tlps128_cfgspace_shadow.sv - BAR controller
CaptainDMA/35t325_x1/src/pcileech_tlps128_bar_controller.sv
Other components
- Host PCIe system
Connections 15
- PCILeech toolkit → USB-C / USB3: sends commands/data
- USB-C / USB3 → FT601 transport: carries traffic
- FT601 transport → Board top level: board interface
- Board top level → Command interface: routes commands
- Board top level → Data mux: routes data
- Board top level → PCIe endpoint: connects PCIe
- MemProcFS → PCILeech toolkit: uses toolkit
- UDP/IP link → NeTV2 Ethernet: carries traffic
- PCILeech toolkit → UDP/IP link: communicates via
- PCIe endpoint → TLP handling: handles packets
- PCIe endpoint → PCIe configuration: manages config
- PCIe configuration → Config shadow: uses shadow
- TLP handling → BAR controller: handles BAR traffic
- Host PCIe system → PCIe endpoint: PCIe access
- TLP handling → Host PCIe system: transfers memory / raw TLPs