← All IP cores Source on GitHub · Two prebuilt demos

UDP/IP Ethernet stack IP core for FPGA: RTLNet

RTLNet handles ARP, ping, DHCP and UDP in FPGA logic. Its processor path adds TCP services, hardware checksum offload and a configurable firewall.

An Ethernet MAC, protocol cores and a packet classifier in SystemVerilog, with C drivers and firmware. It measures 942 Mb/s of UDP on a 1 Gb/s link, and runs on the Digilent Nexys Video and Arty A7-100T with prebuilt bitstreams.

The Ethernet core in H.264 video over Ethernet. All documents · Pricing and licenses

Run the prebuilt Ethernet demo

Each image is a complete RTLNet endpoint with a serial console. You need the board, its power supply and USB cables, an Ethernet cable to a network with DHCP, and Vivado 2026.1 with its free license.

  1. Program. Load the .bit over JTAG with the Vivado Hardware Manager or the included program.ps1. The firmware is inside the bitstream.
  2. Connect. Open the UART port at 115200 baud, 8N1. The console shows the negotiated link; show ip prints the DHCP address.
  3. Ping. Ping the board from the PC. The reply comes from FPGA logic.
  4. Measure. Run iperf 2 against the board for UDP and TCP in both directions, and try the UDP echo.
  5. Flood. Enable the firewall from the console (classifier firewall enable) and watch the drop counters under a flood.

Arty A7-100T, 10/100 Mb/s

Prebuilt

Artix-7 XC7A100T, TI DP83848J PHY, MII. The same network services and firmware in on-chip RAM.

SHA-256: 50ae099e85b1494be74e43bd5699f48c986bd7ea20295b1bde05c1e8e9d7d08e

1.1 MBZip: image, run guide, build record, license Download

The images load into the FPGA only; a power cycle removes them.

Overview

An FPGA application exchanges UDP payloads through AXI4-Stream. Protocol logic receives, classifies and answers traffic independently of firmware. Frames that need a software service reach lwIP through a protected DMA path, and a serial console gives the operator link state, address configuration, service counters and classifier rules.

The MAC client interface is a 64-bit AXI4-Stream. A bound UDP socket delivers each datagram as two metadata beats followed by 0 to 1,472 payload bytes, and builds the Ethernet, IPv4 and UDP headers on transmit.

Highlights

  • UDP in logic. ARP, ICMP echo, DHCP and UDP sockets with no CPU in the data path.
  • 942 Mb/s measured. Hardware UDP on a 1 Gb/s link with zero reported loss.
  • TCP when needed. lwIP on a MicroBlaze V with hardware checksum offload: 337.7 Mb/s receive, 280.3 Mb/s transmit.
  • Firewall and policers. Default-deny allow list and four policers in front of the processor.
  • 10 Gb/s classifier. Rated for lossless inspection of a 10 Gb/s link at 156.25 MHz, with your MAC and PCS.
  • RGMII and MII MACs. 10/100/1000 Mb/s, with MDIO Clause 22 and 45.
  • Vendor-neutral SystemVerilog. Device primitives are selected in one technology header; AMD is the default.
  • Drivers and firmware. C11 drivers, MicroBlaze V firmware with a command line, and host tests.

At a glance

Hardware servicesARP, ICMP echo, DHCP, UDP sockets, UDP echo, iperf 2 UDP
Processor pathlwIP TCP, checksum offload, firewall
MACRGMII 10/100/1000, MII 10/100
Client bus64-bit AXI4-Stream
Control32-bit AXI4-Lite
UDP payload0 to 1,472 bytes
LanguageSystemVerilog-2012, C11 drivers
Proven onNexys Video (XC7A200T), Arty A7-100T (XC7A100T)

How packets move through the FPGA Ethernet stack

Traffic claimed in hardware stays on the hardware path. Unclaimed frames are candidates for the CPU, and pass the classifier first.

FunctionBehavior
Ethernet and PHYThe MAC handles frame checks, padding and the inter-frame gap. MDIO provides PHY discovery, link negotiation and diagnostics.
Receive dispatchThe wrapper checks the destination MAC and presents each frame to the protocol blocks.
Hardware UDPBound sockets expose payload streams with metadata. UDP echo and the iperf 2 server exercise receive and transmit independently of the CPU.
CPU protectionL2–L4 classification, policers and a configurable allow list govern traffic reaching the CPU. The optional default-deny firewall admits ARP and enabled TCP services.
Software TCPMicroBlaze V runs lwIP TCP echo and iperf 2. Hardware patches outbound checksums and verifies received traffic.
Classifier match enginesField tables (MAC, EtherType, VLAN, IPv4 address, port), an IPv4 tuple ACL, and positional byte rules within a 64-byte prefix.
RTLNet block diagram on the Nexys Video: the RGMII MAC feeds the protocol wrapper with ARP, ICMP, DHCP and UDP sockets in logic; unclaimed frames pass the classifier and checksum offload to the MicroBlaze V and lwIP through AXI DMA.
Figure 1. The Nexys Video data path, from the specification. The Arty design connects an MII MAC to the same protocol and application interfaces.

Measured FPGA Ethernet throughput

A wired PC and unmanaged switch connected each board to the iperf 2 peer. Values are Mb/s of application traffic from the released Ethernet-only images; TCP figures are means of three runs.

Board and linkFirewallUDP PC → boardUDP board → PCTCP PC → boardTCP board → PC
Nexys Video, 1,000 Mb/sOn942.0944.0337.7280.3
Nexys Video, 1,000 Mb/sOff943.0944.0336.0281.0
Nexys Video, 100 Mb/sOn93.994.494.594.9
Arty A7-100T, 100 Mb/sOff94.094.494.594.9
MeasurementResult
Latency, Nexys Video at 1 Gb/s, firewall on64-byte UDP echo 0.166 ms round trip (p99 0.213 ms); TCP echo 0.198 ms (p99 0.234 ms), through the switch and host.
Flood protectionAt 100,000 offered flood frames/s the classifier dropped all 1,000,000 flood frames. Both boards passed 21 of 21 firewall checks.
10 Gb/s classifier200 back-to-back minimum frames in 1,600 beats; closed at 156.25 MHz on XC7A200T-1 with +1.515 ns setup slack.
Resources, routed Ethernet imageNexys Video: 23,891 LUTs, 33,968 flip-flops, 228.5 block RAM tiles, 6 DSPs. Arty A7-100T: 24,981 LUTs, 36,059 flip-flops, 105.5 block RAM tiles, 6 DSPs. The totals include the processor, memory, DMA and classifier.

UDP used the 90% offered-load setting. The gigabit firewall-off run reported 20 lost datagrams from board to PC; both firewall-on gigabit runs reported zero loss. The 10 Gb/s rating applies to the classifier and the 64-bit stream; the released MACs reach 1 Gb/s (RGMII) and 100 Mb/s (MII).

Documentation

The specification covers every core, both Ethernet images and the Nexys media images.

DocumentContentsOpen
RTLNet specificationEthernet MAC, protocol cores, classifier and firewall, checksum offload, throughput, resources, DDR and frame cores, H.264 resultsPDF
H.264 video over Ethernet briefRTLNet carrying an encoded video streamPDF
Nexys Video board briefRTLNet as the Ethernet MAC under IronForge LinuxPDF
Source repositoryAll cores, firmware, board designs and the demo folder; license in LICENSE.mdGitHub
ArticleGigabit UDP from an FPGA. Where the bits go on a 1 Gb/s link, why UDP belongs in logic, and the measured gap between hardware UDP and software TCP on the same board.Read
ArticleA Firewall in FPGA Logic. How a classifier in front of a soft processor drops flood traffic before it costs a DMA descriptor or a CPU cycle.Read

Pricing and licenses

Three steps, each a one-time fee in USD per product/SKU with full source. No royalties and no per-unit fees. A lower step is credited in full toward a higher one.

RTLNet UDP

The hardware endpoint: RGMII and MII MAC, ARP, ping, DHCP and UDP sockets on AXI4-Stream.

For an FPGA instrument or data source that sends and receives UDP.

$3,500Per product/SKU, one time Contact Us

RTLNet 10G

The Full step plus the classifier and firewall at 10 Gb/s (156.25 MHz), used with your own 10 Gb/s MAC and PCS.

$12,500Per product/SKU, one time Contact Us

Evaluation costs nothing: run the prebuilt demos, read the source, simulate and build prototypes that are not sold. Every core uses the IronKernel source-available license model, the same one as the VITA 46.11 IPMC. Evaluation, research, teaching and personal use cost nothing. An Open Product ships free when its complete design sources are published and changes are offered back within 90 days. A product with private design sources needs a commercial license before it ships. Enterprise licensing for multiple products/SKUs is by quote: support@ironkernel.com. lwIP files keep their BSD license. The source is public on GitHub. Public access alone does not grant unrestricted commercial use: a product with private design sources needs the commercial license.

Questions and answers

Does RTLNet need a CPU?

No for UDP. ARP, ping, DHCP and UDP sockets run in FPGA logic, and an application exchanges UDP payloads through AXI4-Stream. The optional processor path adds TCP services through lwIP on a MicroBlaze V, with hardware checksum offload and a firewall in front of the CPU.

How fast is the FPGA UDP stack?

On the Nexys Video at 1 Gb/s with the firewall enabled, hardware UDP delivered 942 Mb/s from PC to board and 944 Mb/s from board to PC with zero reported loss. A 64-byte UDP echo averaged 0.166 ms round trip.

Which PHY interfaces and speeds are supported?

RGMII at 10, 100 and 1,000 Mb/s and MII at 10 and 100 Mb/s, with MDIO Clause 22 and Clause 45 management. The classifier and 64-bit stream are rated for 10 Gb/s with a MAC and PCS you supply; RTLNet does not include a 10 Gb/s MAC.

What does the firewall protect?

The processor. The classifier inspects whole frames before DMA or lwIP spends time on them, with a default-deny allow list and four policers. In the recorded test at 100,000 offered flood frames per second it dropped all 1,000,000 flood frames.

Works with

Put your FPGA on the network

Send your FPGA part, PHY and the traffic your design carries. We integrate RTLNet under a fixed-price contract.