Nanyang Technological University
An SGDMA-based network data-path accelerator with ACK-safe zero-copy TCP for a RISC-V FPGA SoC
Abstract
dc:description.abstractNetwork throughput in application-specific FPGA RISC-V SoCs can be limited by the processor cycles spent on programmed I/O, payload copying, software checksums and coupled transmit–receive scheduling. TCP no-COPY introduces a further constraint: lwIP retains references to the received payload, so the original buffer must remain unchanged until the corresponding bytes are acknowledged. An Ethernet data-path accelerator was implemented in a DE2-115 prototype comprising a custom five-stage RV32I-like processor, an Intel Triple-Speed Ethernet MAC, an MII-connected PHY and bare-metal lightweight IP (lwIP). The processor retains the programmable TCP/IP stack, while descriptor control and hardware payload movement are separated from transport-layer buffer ownership. Independent transmit and receive descriptor rings and readiness-aware arbitration reduce blocking between directions. Preposted receive buffers, scatter/gather direct memory access (SGDMA), checksum offload and a multi-buffer transmit pipeline reduce CPU-managed payload movement and full-frame staging copies. For TCP Echo, an acknowledgement-safe no-COPY mechanism retains each original receive buffer until all referenced bytes have been acknowledged. Reclamation accounts for partial and cumulative acknowledgements, submission retries, queue wraparound and abnormal connection cleanup. Verification covered host-level algorithm tests, RTL verification, full-system protocol simulation, timing analysis and board measurements. The reported CPU Fmax was 37.52 MHz, exceeding the 25 MHz target. Board application-payload throughput reached 95.39 Mbps for UDP receive-only traffic, near the link’s payload limit, and 50.63 Mbps for UDP Echo, with zero observed packet loss under the tested configuration. TCP Echo reached 18.23 Mbps using the no-COPY path. No premature buffer release, double release or payload-consistency failure was observed in the evaluated TCP paths.
Degree
thesis:*- College dc:contributor.school
- School of Electrical and Electronic Engineering
- Grantor dc:publisher
- Nanyang Technological University
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Li, Zhengru
- Advisor dc:contributor.supervisor
-
- Poenar Daniel Puiu
Subjects
dc:subject × 1Rights
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/10356/235255