Skip to content

Why Does FPGA Data Acquisition Reach for the W5300 Instead of the W5500?

Four instrumentation papers all pair the W5300 with an FPGA. Their reason is the parallel bus, eight sockets and 128 KB a node can split as it likes.

jaden

Published December 03, 2026

Original author: Yuvaraj Elangovan et al., Tata Institute of Fundamental ResearchOriginal source (new tab)

Why Does FPGA Data Acquisition Reach for the W5300 Instead of the W5500?

Components

Hardware components

Project description

01 — What is this survey about?

Open any WIZnet community index and you will find the W5500 everywhere: Pico boards, Arduino shields, Modbus gateways, PoE sensors. The W5300 is almost invisible. It is the oldest high-end part in the line, it collides with consumer model numbers in search results, and a maker starting a project today will almost never pick it.

And yet, when you search academic instrumentation literature instead of maker platforms, the ratio inverts. In a systematic scan of papers published 2023–2026 that use a WIZnet part and describe the hardware in the body text, four of the eight verified papers used the W5300, every one of them paired with an FPGA. None of them used an MCU. None of them used SPI.

That is not a coincidence, and the papers say why. This survey collects their reasoning into one place:

  • An India-based Neutrino Observatory detector readout module, of which 28,800 units are planned
  • A planar gamma camera readout board for nuclear medicine imaging
  • An atmospheric turbulence simulator for free-space optical link testing

The common thread is a class of system where the host is not a microcontroller running an RTOS but an FPGA that needs to push measurement data onto a network as if it were writing to memory — and where one chip has to carry several unrelated conversations at once.


02 — Why hardware TCP/IP in a physics experiment?

🔷 Reason 1 — There is no operating system to put a stack in

A software stack such as LwIP needs a processor, RAM, and a scheduler. In an FPGA readout module those are all expensive. The INO group instantiates an Intel NIOS II soft-core inside a Cyclone IV — a deliberately low-end part — and states the constraint plainly: their protocol had to be "optimized for deployment on low-end FPGAs such as Intel Cyclone IV with minimal logic usage and memory overhead." Spending those gates on a TCP state machine is spending them twice.

🔷 Reason 2 — The network must not steal time from the detector

A readout module's figure of merit is dead time: the window after a trigger during which the next particle is missed. Anything the CPU does inside that window costs physics. A hardwired stack moves retransmission, checksums, and windowing off the critical path entirely, so the processor's only job is to move bytes into a buffer and assert a send.

🔷 Reason 3 — Determinism beats raw speed

None of these systems need gigabit. The INO module's requirement is "a minimum trigger rate of 2 kHz" and "a throughput of up to 2 Mbps" over a "100 Mbps Ethernet interface." What they need is for every transfer to take the same number of cycles, every time. That is what a fixed-latency hardware engine gives and a software stack under interrupt load does not.

🔷 Where the W5300 sits in the WIZnet line

The rest of the family is optimized for the opposite host. W5500, W5100S, W6100 and W6300 all present an SPI interface (W6300 adds QSPI), which is exactly right for an MCU with a spare peripheral and a few free pins. The W5300 is the part that presents a memory bus:

 W5300SPI-family parts (W5500 / W5100S / W6100 / W6300)
Host interface8/16-bit parallel data bus, direct & indirect address modeSPI (W6300: QSPI, incl. PIO-based on RP2040/RP2350)
Independent hardware sockets88 (W5100S: 4)
Internal packet memory128 KB, flexible allocationsmaller, fixed per-socket
Peak throughput80 Mbps (by DMA)SPI-clock bound
Natural hostFPGA, external MCU with a busMCU over SPI

All W5300 figures above are quoted from the WIZnet W5300 documentation: "Host Interface : 8/16 bit Data Bus (Direct & Indirect Address Mode)", "8 Independent hardware socket", "Internal 128Kbytes memory for TCP/IP packet processing", "Flexible memory allocation", "High Network Performance : Max 80Mbps (by DMA)".

That table is the whole story. An FPGA does not want to bit-bang a serial peripheral; it wants to drive address and data lines from a state machine. The W5300 is the only part in the line that lets it.


03 — System architecture: the INO RPC-DAQ data path

The India-based Neutrino Observatory module is the most thoroughly documented of the four, so it serves as the reference architecture.

                 Resistive Plate Chamber (charged-particle detector)
                                     │
                       ┌─────────────┴──────────────┐
                       │   Front-end electronics    │
                       └─────────────┬──────────────┘
                                     │  32 strips (X/Y position + TOF)
          ┌──────────────────────────▼───────────────────────────┐
          │        Intel Cyclone IV FPGA  (RPC-DAQ module)       │
          │                                                      │
          │   ┌──────────────┐        ┌──────────────────────┐   │
          │   │ HPTDC ASIC   │───────▶│  DAQ logic + scalers │   │
          │   │ (timestamp)  │  JTAG  │  hardware event FIFO │   │
          │   └──────────────┘        └──────────┬───────────┘   │
          │                                      │ 32-bit        │
          │                            ┌─────────▼───────────┐   │
          │                            │   NIOS II soft-core │   │
          │                            │   Event ISR    (p1) │   │
          │                            │   Command ISR  (p2) │   │
          │                            │   Monitor ISR  (p3) │   │
          │                            └─────────┬───────────┘   │
          │                       handshake logic │               │
          │                  (shifts W5300 write  │               │
          │                   access to hardware) │               │
          └──────────────────────────────────────┼───────────────┘
                                                 │ 16-bit parallel bus
                                   ┌─────────────▼──────────────┐
                                   │   WIZnet W5300             │
                                   │   6 of 8 sockets in use,   │
                                   │   fixed buffer per socket  │
                                   └─────────────┬──────────────┘
                                                 │ 100 Mbps
                            ┌────────────────────▼─────────────────────┐
                            │  LAN switch  →  back-end data concentrator │
                            │              →  command server             │
                            └──────────────────────────────────────────┘

   × 28,800 modules planned for INO-ICAL (Theni-Madurai, Tamil Nadu)

04 — Why the W5300? ⭐

🔷 The headline: one chip, six simultaneous sockets, two different protocols

This is the finding that makes the W5300 interesting, and it is the part no maker-platform article has covered. The INO paper states that "the hardwired Ethernet controller Wiznet W5300 uses 6 out of 8 sockets… and each socket is configured with fixed buffer size," and then publishes the allocation:

SocketProtocolUsage
0UDP MulticastCommand interface (group)
1TCP ClientEvent data transfer
2TCP ClientMonitoring data transfer
3TCP ServerRemote system upgrade
4UDP UnicastCommand interface (individual)
5UDP ClientRTC data transfer

Read that table slowly, because it is doing something a software stack makes easy and a hardware stack supposedly makes hard. One chip is simultaneously: streaming event data as a TCP client, serving a firmware-upgrade channel as a TCP server, listening for broadcast run-control on a multicast group, and answering per-module commands on unicast UDP. Four roles, three socket modes, no operating system, on a soft-core processor inside a low-end FPGA.

The "flexible memory allocation" line in the W5300 feature list is what makes it work: the 128 KB is not divided into eight equal slices. The event-data socket gets the buffer it needs; the RTC socket does not.

🔷 Socket modes used — explicitly

  • TOE TCP (Sn_MR_TCP) — sockets 1, 2 (client) and 3 (server). Chosen where loss is unacceptable and ordering matters: event payloads and firmware images.
  • UDP (Sn_MR_UDP) — sockets 0, 4, 5, in both multicast and unicast. Chosen for control messaging.
  • IPRAW / MACRAW — not used by any of the four systems. These are readout modules, not packet analyzers.

The gamma-camera board uses UDP only: its integrals go to the host "through the UDP Ethernet protocol via the W5300 (WIZnet) chip." The turbulence simulator uses TCP, and says why in one line — the stack provides "reliable transmission, which ensures the integrity and reliability of the transmitted channel data."

🔷 Why UDP for commands, when TCP was right there on the same chip

The INO team wrote a second paper just to answer this, and the reasoning is worth quoting because it is a genuine engineering trade-off rather than a preference:

TCP "is connection-oriented, resource-heavy and does not support native multicast, which limits its suitability in large embedded networks. In contrast, UDP is lightweight, stateless, and supports multicast, making it ideal for one-to-many control messaging."

With 28,800 modules, "ISDAQUP" or "ENABLEEVENT" has to reach a whole geometric group at once. TCP cannot do that — you would open 28,800 connections. So the modules join a common multicast group (the paper gives 239.0.0.1) via IGMP, and the server broadcasts.

But UDP drops packets, and a dropped run-control command is a lost run. Their answer is HPCI — Hybrid Protocol-based Command Interface: UDP multicast for addressing, plus a 16-bit CRC checksum on both command and acknowledgment, plus handshaking and retransmission on negative acknowledgment. In their words, it "combines the reliability features of TCP with the group managing features of UDP." They position it against CERN's IPBus and Plan 9's Reliable UDP, and distinguish it on resource cost for low-end FPGAs.

The architectural point: because the W5300 carries the event TCP stream and the command UDP stream on separate hardware sockets, the HPCI retransmission logic cannot interfere with data taking. The paper says this outright — HPCI "is designed to operate independent of the TCP event stream." On a single-socket part, or a software stack, that isolation costs you something.

🔷 The measured evidence ✅

This is where the survey stops being architectural and starts being quantitative. The INO team profiled the W5300 write path and published every number:

QuantityValueSource
W5300 16-bit write cycle, datasheet≈80 ns"According to the Wiznet W5300 data sheet, the write cycle time for 16bit data is approximately 80 ns"
Same write cycle, driven by NIOS software350 ns"due to the control signals generated by the NIOS software the write cycle time goes up to 350 ns"
FIFO → Ethernet buffer transfer, software-driven190 µsTable 2
FIFO → Ethernet buffer transfer, hardware handshake35 µs"This decreases the FIFO data transfer time from 190 µs to 35 µs"
Overall event dead time, before281 µsTable 2
Overall event dead time, after125 µs"the overall dead time was reduced from 281 µs to 125 µs"
Achieved trigger rate5 kHz at 120-byte eventsConclusion
Event dead time at max event size (600 B)350 ns§4, SCEDA scheme

The 80 ns → 350 ns gap is the most instructive figure in the whole survey. The chip was never the bottleneck; the processor's control-signal generation was. Their fix was to stop routing writes through the CPU and let FPGA handshake logic drive the W5300 bus directly "only when necessary" — which is precisely the thing a parallel-bus part allows and an SPI part does not.

One honest caveat, stated by the authors: the hardware-handshake improvement "has been tested only in the test-bench and has not been deployed in the real experiment yet." The 5 kHz figure and the deployed system are real; the 125 µs is a bench result.


05 — Key components across the four systems

🌐 WIZnet W5300 — TOE TCP + UDP (multicast & unicast), parallel bus to FPGA

The constant across all four. 8/16-bit parallel host bus, 8 hardware sockets, 128 KB flexibly allocated packet memory, 10/100 PHY embedded, 80 Mbps peak by DMA.

⚙️ The FPGA, which is always the host

  • Intel Cyclone IV + NIOS II soft-core — INO RPC-DAQ. The processor handles event, command and monitoring ISRs at descending interrupt priority.
  • Xilinx Spartan-6 XC6SLX100 — gamma camera. Runs DC-rejection, threshold pulse integration over 14 channels, and the transmission module that drives the W5300. Positioning is deliberately left to the host PC.
  • Intel Altera Cyclone II — turbulence simulator. "an Intel Altera Cyclone II field programmable gate array (FPGA) chip was used to control the network communication unit."

📡 Analog front ends

  • INO: 32 strips per RPC, HPTDC ASIC for timestamping, event sizes 80–600 bytes, average 120 bytes.
  • Gamma camera: NaI(Tl) scintillator 58 × 42 cm², 48 Hamamatsu R6237 PMTs in a 6 × 8 array, resistor-network summing to 6 row + 8 column signals, AD9257 14-bit ADCs at 20 MSPS with 140 MHz serial output.
  • Turbulence simulator: DAC7821 12-bit driving a variable optical attenuator, 30 dB dynamic range, 1 MHz execution rate, accuracy better than 0.1 dB.

🗄️ Supporting detail worth noting

The INO module keeps IP address, gateway and MAC in flash and reads them at boot "to configure the Wiznet ethernet controller." A NETWORK CONFIG command lets operators change IP addresses, multicast addresses, port numbers and socket modes (TCP/UDP) of any unit remotely, with authentication. At 28,800 units, reflashing to change a socket mode is not an option.


06 — Application scenarios

01. Large-channel-count detector readout

Thousands of identical network nodes, each an FPGA with a private IP, streaming to a handful of back-end concentrators. Group commands by multicast, data by TCP, firmware by a server socket — all on one chip per node.

02. Medical imaging front ends

A gamma camera or PET insert where the FPGA integrates pulses and the host does reconstruction. The network is the boundary between hardware and algorithm, and UDP is sufficient because a dropped frame is a dropped count, not a corrupted file.

03. Laboratory instrument emulation

Turbulence simulators, signal replay boxes, HIL rigs — the host computer streams a waveform, the FPGA converts it to a physical quantity at megahertz rates. TCP for integrity, because a corrupted channel value invalidates the test.

04. Remote-upgradable deployed hardware

A dedicated TCP server socket reserved solely for firmware updates, isolated from the data path by hardware. For instruments in a cavern, under a magnet, or inside a shielded room, this is the difference between a software update and a maintenance shutdown.


Conclusion

The W5300 is quietly the standard Ethernet controller of FPGA-based scientific data acquisition — not because it is fast, but because it speaks a parallel bus and holds eight independent sockets in 128 KB of flexibly allocated memory.

  • ✅ 4 of 8 peer-reviewed papers verified in a 2023–2026 scan used the W5300 — every one paired with an FPGA, none with an MCU
  • ✅ 6 of 8 sockets running TCP client, TCP server, UDP multicast and UDP unicast simultaneously on one chip, no OS
  • ✅ 28,800 modules planned for a single experiment (INO-ICAL), already operating in the mini-ICAL prototype
  • ✅ 80 ns datasheet write cycle — the chip was never the bottleneck; software control signals were, at 350 ns
  • ✅ FPGA handshake logic driving the bus directly cut FIFO transfer 190 µs → 35 µs and dead time 281 µs → 125 µs
  • ✅ 5 kHz trigger rate achieved with 120-byte events over a 100 Mbps link
  • ✅ Command-path reliability solved in protocol (HPCI: UDP multicast + CRC + retransmission), isolated from the event stream by hardware socket separation
  • ✅ Three independent FPGA families represented — Cyclone IV, Cyclone II, Spartan-6

If you are building an FPGA readout board and reflexively reaching for the SPI part, this is the counter-argument, written by four groups who measured it.


07 — Related projects on WIZnet Makers

ProjectHostWIZnet part & roleRelation
ad9226_cyclone5_w5500Cyclone V FPGAW5500 — ADC data over EthernetThe same FPGA-DAQ problem solved with the SPI part. Direct architectural contrast to this survey
FPGA Slow Control Interlock System (SCIS)GateMate / AMD 7-series FPGAW5500 — UDP metric packets, GrafanaOffloads the stack to W5500 from an FPGA; reports ~18 Mbit/s and +7% LUT per additional module

Insight. The platform already holds FPGA + WIZnet projects — but both use the W5500 over SPI, and both are single-purpose links. What the literature adds is the multi-socket, mixed-protocol case: when one FPGA node has to hold four conversations at once and keep the control path from touching the data path, the parallel-bus part with flexible 128 KB allocation is the one that fits. That design space is currently unrepresented on WIZnet Makers.


Q&A

Q. The W5300 is an older part. Is recommending it for new designs reasonable? A. For an MCU project, no — the SPI parts are easier and newer. The claim here is narrower: when the host is an FPGA and the module needs several concurrent sockets in different modes, the 8/16-bit bus and the 128 KB flexible buffer are structural advantages that newer SPI parts do not offer. All four papers are from 2024–2025, so working groups are still choosing it today.

Q. Why not just use the SPI part from the FPGA? SPI masters are cheap in logic. A. They are, and the two Makers projects above do exactly that successfully. The INO measurement is the argument against it at the margin: their bottleneck was the control-signal path to the chip, not the chip. Moving writes from processor-driven to hardware-handshake-driven cut transfer time 5.4×. A parallel bus is what lets FPGA logic take over the write cycle directly.

Q. Which socket mode should an FPGA readout use — TCP or UDP? A. The papers converge on both, split by purpose. TCP (Sn_MR_TCP) for payloads where loss or reordering corrupts the result: event data, firmware images, waveform channel data. UDP (Sn_MR_UDP) for control and monitoring, because it is stateless and supports multicast. The real lesson is to put them on separate hardware sockets so one cannot stall the other.

Q. Do any of these use MACRAW? A. None. MACRAW suits firewalls and packet analyzers — the FPGA Firewall and SCIS-class projects. A readout module wants the stack to do its job, not to be bypassed.

Q. Is the 125 µs dead-time figure deployed? A. No, and the authors say so: the hardware-handshake scheme "has been tested only in the test-bench and has not been deployed in the real experiment yet." The deployed numbers are 5 kHz trigger rate and 281 µs dead time in mini-ICAL.

Q. Are design files available for any of these? A. Not for these three. The gamma-camera paper describes Python calibration software without a release; the turbulence simulator's data is "not publicly available at this time." Reproducing them means reading the papers, not cloning a repo.


한국어 버전

거대 과학 실험은 왜 W5300을 고르는가 — FPGA 데이터 수집의 숨은 표준

#W5300 #FPGA #데이터수집 #TOE #UDP #멀티캐스트 #병렬버스 #거대과학 #NIOS #리드아웃

📚 맥락: 2024~2025년 발표된 계측 분야 심사 논문 4편을 교차 분석한 기술 기획 검증 상태: 아래 모든 수치는 논문 원문 또는 W5300 제품 문서에서 인용했습니다 — 추정치 없음


01 — 이 기획은 무엇에 관한 것인가

WIZnet 커뮤니티 색인을 열면 W5500이 압도적입니다. Pico 보드, Arduino 실드, Modbus 게이트웨이, PoE 센서. W5300은 거의 보이지 않습니다. 제품군에서 가장 오래된 상위 부품이고, 검색하면 가전 모델명과 충돌하고, 지금 프로젝트를 시작하는 메이커가 이 칩을 고를 일은 사실상 없습니다.

그런데 메이커 플랫폼이 아니라 학술 계측 논문을 뒤지면 비율이 뒤집힙니다. 2023~2026년 발표 논문 중 WIZnet 부품을 쓰고 본문에 하드웨어 구성이 기술된 것을 전수 조사했더니, 검증된 8편 중 4편이 W5300을 썼고 그 4편 전부가 FPGA와 조합이었습니다. MCU와 쓴 사례는 없었고, SPI로 붙인 사례도 없었습니다.

우연이 아닙니다. 논문들이 이유를 직접 적어두었습니다. 이 기획은 그 근거를 한자리에 모은 것입니다.

  • 인도 중성미자 관측소(INO) 검출기 리드아웃 모듈 — 28,800대 배치 예정
  • 핵의학 영상용 평면 감마카메라 리드아웃 보드
  • 자유공간 광통신 시험용 대기 난류 시뮬레이터

공통점은 호스트가 RTOS를 돌리는 마이크로컨트롤러가 아니라, 측정 데이터를 메모리에 쓰듯 네트워크로 밀어내야 하는 FPGA라는 것입니다. 그리고 칩 하나가 서로 무관한 여러 대화를 동시에 떠맡아야 한다는 것입니다.


02 — 물리 실험에 왜 하드웨어 TCP/IP인가

🔷 이유 1 — 스택을 올릴 운영체제가 없다

LwIP 같은 소프트웨어 스택은 프로세서·RAM·스케줄러를 요구합니다. FPGA 리드아웃 모듈에서는 이 셋 다 비쌉니다. INO 그룹은 Cyclone IV 안에 NIOS II 소프트코어를 올렸는데, 의도적으로 저가형을 쓴 것이고 제약을 명시합니다 — 자신들의 프로토콜은 "Cyclone IV 같은 저가형 FPGA에서 최소한의 로직과 메모리로 동작하도록 최적화" 되어야 했습니다. 그 게이트를 TCP 상태기계에 쓰는 것은 같은 자원을 두 번 쓰는 셈입니다.

🔷 이유 2 — 네트워크가 검출기의 시간을 훔치면 안 된다

리드아웃 모듈의 성능 지표는 데드타임입니다. 트리거 직후 다음 입자를 놓치는 구간입니다. 그 구간에서 CPU가 하는 모든 일이 물리 데이터 손실로 환산됩니다. 하드와이어드 스택은 재전송·체크섬·윈도잉을 임계 경로에서 완전히 빼내므로, 프로세서가 할 일은 버퍼에 바이트를 넣고 전송 명령을 거는 것뿐입니다.

🔷 이유 3 — 최고 속도보다 결정성이 중요하다

이 시스템들은 기가비트가 필요하지 않습니다. INO 모듈의 요구는 "최소 트리거율 2 kHz", "최대 2 Mbps 처리량", "100 Mbps 이더넷 인터페이스"입니다. 필요한 것은 모든 전송이 매번 같은 사이클 수로 끝나는 것입니다. 고정 지연 하드웨어 엔진이 주는 특성이고, 인터럽트 부하를 받는 소프트웨어 스택이 주지 못하는 특성입니다.

🔷 제품군 안에서 W5300의 자리

나머지 제품군은 정반대 호스트에 최적화돼 있습니다. W5500·W5100S·W6100·W6300은 모두 SPI를 제공하고(W6300은 QSPI 추가), 이는 여유 페리페럴과 핀 몇 개를 가진 MCU에 정확히 맞습니다. W5300은 메모리 버스를 제공하는 유일한 부품입니다.

 W5300SPI 계열 (W5500 / W5100S / W6100 / W6300)
호스트 인터페이스8/16비트 병렬 데이터 버스, Direct & Indirect 주소 모드SPI (W6300은 QSPI, RP2040/RP2350에서는 PIO 기반)
독립 하드웨어 소켓8개8개 (W5100S는 4개)
내부 패킷 메모리128 KB, 유연한 할당더 작고 소켓별 고정
최대 처리량80 Mbps (DMA 기준)SPI 클럭에 종속
자연스러운 호스트FPGA, 버스를 가진 외부 MCUSPI로 붙는 MCU

위 W5300 수치는 전부 WIZnet W5300 문서에서 인용했습니다 — "Host Interface : 8/16 bit Data Bus (Direct & Indirect Address Mode)", "8 Independent hardware socket", "Internal 128Kbytes memory for TCP/IP packet processing", "Flexible memory allocation", "High Network Performance : Max 80Mbps (by DMA)".

이 표가 이야기의 전부입니다. FPGA는 시리얼 페리페럴을 두드리고 싶어하지 않습니다. 상태기계로 어드레스·데이터 라인을 직접 몰고 싶어합니다. 제품군에서 그걸 허용하는 부품은 W5300뿐입니다.


03 — 시스템 구조: INO RPC-DAQ 데이터 경로

네 시스템 중 문서화가 가장 충실한 인도 중성미자 관측소 모듈을 기준 구조로 씁니다.

                 Resistive Plate Chamber (하전입자 검출기)
                                     │
                       ┌─────────────┴──────────────┐
                       │       프론트엔드 전자부      │
                       └─────────────┬──────────────┘
                                     │  32 스트립 (X/Y 위치 + TOF)
          ┌──────────────────────────▼───────────────────────────┐
          │       Intel Cyclone IV FPGA  (RPC-DAQ 모듈)          │
          │                                                      │
          │   ┌──────────────┐        ┌──────────────────────┐   │
          │   │ HPTDC ASIC   │───────▶│  DAQ 로직 + 스케일러  │   │
          │   │ (타임스탬프)  │  JTAG  │  하드웨어 이벤트 FIFO │   │
          │   └──────────────┘        └──────────┬───────────┘   │
          │                                      │ 32비트         │
          │                            ┌─────────▼───────────┐   │
          │                            │   NIOS II 소프트코어 │   │
          │                            │   Event ISR   (우선1)│   │
          │                            │   Command ISR (우선2)│   │
          │                            │   Monitor ISR (우선3)│   │
          │                            └─────────┬───────────┘   │
          │                        핸드셰이크 로직 │               │
          │                   (W5300 쓰기 권한을    │               │
          │                    하드웨어로 전환)     │               │
          └──────────────────────────────────────┼───────────────┘
                                                 │ 16비트 병렬 버스
                                   ┌─────────────▼──────────────┐
                                   │   WIZnet W5300             │
                                   │   8소켓 중 6개 사용,        │
                                   │   소켓별 고정 버퍼 할당     │
                                   └─────────────┬──────────────┘
                                                 │ 100 Mbps
                            ┌────────────────────▼─────────────────────┐
                            │  LAN 스위치 → 백엔드 데이터 집선기        │
                            │             → 명령 서버                  │
                            └──────────────────────────────────────────┘

   INO-ICAL(타밀나두 테니-마두라이)에 모듈 28,800대 배치 예정

04 — 왜 W5300이어야 했는가 ⭐

🔷 핵심: 칩 하나에 6개 소켓, 두 가지 프로토콜 동시 운용

W5300을 흥미롭게 만드는 발견이고, 어떤 메이커 플랫폼 글도 다루지 않은 부분입니다. INO 논문은 "하드와이어드 이더넷 컨트롤러 Wiznet W5300이 8개 소켓 중 6개를 사용하며, 각 소켓은 고정 버퍼 크기로 설정된다"고 서술하고 할당표를 공개합니다.

소켓프로토콜용도
0UDP 멀티캐스트명령 인터페이스 (그룹)
1TCP 클라이언트이벤트 데이터 전송
2TCP 클라이언트모니터링 데이터 전송
3TCP 서버원격 시스템 업그레이드
4UDP 유니캐스트명령 인터페이스 (개별)
5UDP 클라이언트RTC 데이터 전송

이 표를 천천히 보셔야 합니다. 소프트웨어 스택이라면 쉽고 하드웨어 스택이라면 어려울 거라고 흔히 생각하는 일을 하고 있습니다. 칩 하나가 동시에 — TCP 클라이언트로 이벤트 데이터를 스트리밍하고, TCP 서버로 펌웨어 업그레이드 채널을 열어두고, 멀티캐스트 그룹에서 런 컨트롤 방송을 수신하고, 유니캐스트 UDP로 모듈별 명령에 응답합니다. 역할 4개, 소켓 모드 3종, 운영체제 없음, 저가형 FPGA 안의 소프트코어 프로세서 위에서.

W5300 기능 목록의 "Flexible memory allocation"이 이걸 가능하게 합니다. 128 KB는 8등분되지 않습니다. 이벤트 데이터 소켓은 필요한 만큼 받고, RTC 소켓은 그만큼 받지 않습니다.

🔷 사용 소켓 모드 — 명시

  • TOE TCP (Sn_MR_TCP) — 소켓 1·2(클라이언트), 3(서버). 손실이 허용되지 않고 순서가 중요한 곳: 이벤트 페이로드, 펌웨어 이미지.
  • UDP (Sn_MR_UDP) — 소켓 0·4·5, 멀티캐스트와 유니캐스트 양쪽. 제어 메시징용.
  • IPRAW / MACRAW — 네 시스템 모두 사용하지 않음. 이들은 리드아웃 모듈이지 패킷 분석기가 아닙니다.

감마카메라 보드는 UDP만 씁니다 — 적분값이 "W5300(WIZnet) 칩을 통해 UDP 이더넷 프로토콜로" 호스트에 전달됩니다. 난류 시뮬레이터는 TCP를 쓰고 이유를 한 줄로 밝힙니다 — 스택이 "신뢰성 있는 전송을 제공하여 전송되는 채널 데이터의 완전성과 신뢰성을 보장한다".

🔷 같은 칩에 TCP가 있는데 왜 명령은 UDP인가

INO 팀은 이 질문에 답하려고 논문을 한 편 더 썼습니다. 취향이 아니라 진짜 엔지니어링 트레이드오프라서 인용할 가치가 있습니다.

TCP는 "연결 지향적이고 자원을 많이 쓰며 네이티브 멀티캐스트를 지원하지 않아, 대규모 임베디드 네트워크에는 적합성이 제한된다. 반면 UDP는 경량이고 무상태이며 멀티캐스트를 지원하므로 일대다 제어 메시징에 이상적이다."

모듈이 28,800대면 ISDAQUP이나 ENABLEEVENT 한 번이 기하학적 그룹 전체에 닿아야 합니다. TCP로는 불가능합니다 — 연결을 28,800개 열어야 하니까요. 그래서 모듈들이 IGMP로 공통 멀티캐스트 그룹(논문은 239.0.0.1을 예시)에 가입하고 서버가 방송합니다.

그런데 UDP는 패킷을 흘립니다. 흘린 런 컨트롤 명령은 날아간 런입니다. 이들의 답이 HPCI(Hybrid Protocol-based Command Interface) 입니다 — 주소 지정은 UDP 멀티캐스트, 거기에 명령·응답 양쪽에 16비트 CRC 체크섬, 핸드셰이킹, NAK 시 재전송을 얹었습니다. 저자들 표현으로 "TCP의 신뢰성 기능과 UDP의 그룹 관리 기능을 결합" 한 것입니다. CERN의 IPBus와 Plan 9의 Reliable UDP를 선행 사례로 들고, 저가형 FPGA에서의 자원 비용으로 차별화합니다.

구조적으로 중요한 점은 이것입니다. W5300이 이벤트 TCP 스트림과 명령 UDP 스트림을 별개 하드웨어 소켓으로 나눠 들고 있기 때문에, HPCI의 재전송 로직이 데이터 취득을 방해할 수 없습니다. 논문이 직접 말합니다 — HPCI는 "TCP 이벤트 스트림과 독립적으로 동작하도록 설계" 되었습니다. 소켓이 하나뿐인 부품이나 소프트웨어 스택에서는 그 격리에 대가가 따릅니다.

🔷 측정된 증거 ✅

여기서 이 기획은 구조 설명을 멈추고 정량적 근거로 넘어갑니다. INO 팀은 W5300 쓰기 경로를 프로파일링하고 모든 수치를 공개했습니다.

항목값출처
W5300 16비트 쓰기 사이클, 데이터시트약 80 ns"Wiznet W5300 데이터시트에 따르면 16비트 데이터의 쓰기 사이클 시간은 약 80 ns"
같은 쓰기 사이클, NIOS 소프트웨어 구동 시350 ns"NIOS 소프트웨어가 생성하는 제어 신호 때문에 쓰기 사이클 시간이 350 ns까지 증가"
FIFO → 이더넷 버퍼 전송, 소프트웨어 구동190 µsTable 2
FIFO → 이더넷 버퍼 전송, 하드웨어 핸드셰이크35 µs"FIFO 데이터 전송 시간을 190 µs에서 35 µs로 감소"
전체 이벤트 데드타임, 개선 전281 µsTable 2
전체 이벤트 데드타임, 개선 후125 µs"전체 데드타임이 281 µs에서 125 µs로 감소"
달성 트리거율120바이트 이벤트에서 5 kHz결론
최대 이벤트 크기(600 B)에서 이벤트 데드타임350 ns4절, SCEDA 방식

80 ns → 350 ns 격차가 이 기획에서 가장 많은 것을 알려주는 수치입니다. 병목은 칩이 아니었습니다. 프로세서의 제어 신호 생성이 병목이었습니다. 해결책은 쓰기를 CPU로 보내지 않고, FPGA 핸드셰이크 로직이 "필요할 때만" W5300 버스를 직접 구동하게 한 것입니다 — 병렬 버스 부품이 허용하고 SPI 부품은 허용하지 않는 바로 그것입니다.

저자들이 밝힌 단서 하나는 정직하게 옮깁니다. 하드웨어 핸드셰이크 개선은 "테스트 벤치에서만 검증되었고 실제 실험에는 아직 적용되지 않았다". 5 kHz와 배치된 시스템은 실측이고, 125 µs는 벤치 결과입니다.


05 — 네 시스템의 핵심 구성요소

🌐 WIZnet W5300 — TOE TCP + UDP(멀티캐스트·유니캐스트), FPGA에 병렬 버스 연결

네 시스템 모두의 공통분모. 8/16비트 병렬 호스트 버스, 하드웨어 소켓 8개, 유연 할당 128 KB 패킷 메모리, 10/100 PHY 내장, DMA 기준 최대 80 Mbps.

⚙️ 호스트는 언제나 FPGA

  • Intel Cyclone IV + NIOS II 소프트코어 — INO RPC-DAQ. 프로세서가 이벤트·명령·모니터링 ISR을 내림차순 인터럽트 우선순위로 처리.
  • Xilinx Spartan-6 XC6SLX100 — 감마카메라. DC 제거, 14채널 임계 펄스 적분, 그리고 W5300을 구동하는 전송 모듈을 수행. 위치 계산은 의도적으로 호스트 PC에 남김.
  • Intel Altera Cyclone II — 난류 시뮬레이터. "네트워크 통신 유닛을 제어하기 위해 Intel Altera Cyclone II FPGA 칩을 사용".

📡 아날로그 프론트엔드

  • INO: RPC당 32 스트립, 타임스탬프용 HPTDC ASIC, 이벤트 크기 80~600바이트(평균 120바이트).
  • 감마카메라: NaI(Tl) 신틸레이터 58 × 42 cm², Hamamatsu R6237 PMT 48개를 6 × 8 배열, 저항 네트워크로 행 6 + 열 8 신호로 합산, AD9257 14비트 ADC 20 MSPS에 140 MHz 시리얼 출력.
  • 난류 시뮬레이터: DAC7821 12비트가 가변 광감쇠기(VOA) 구동, 동적 범위 30 dB, 실행률 1 MHz, 정확도 0.1 dB 이내.

🗄️ 짚어둘 만한 세부

INO 모듈은 IP·게이트웨이·MAC을 플래시에 보관하고 부팅 시 읽어 "Wiznet 이더넷 컨트롤러를 설정" 합니다. NETWORK CONFIG 명령으로 운영자가 임의 유닛의 IP·멀티캐스트 주소·포트 번호 그리고 소켓 모드(TCP/UDP) 까지 인증을 거쳐 원격 변경할 수 있습니다. 28,800대 규모에서 소켓 모드를 바꾸려고 재플래싱하는 건 선택지가 아닙니다.


06 — 응용 시나리오

01. 대규모 채널 검출기 리드아웃

수천 개의 동일한 네트워크 노드, 각각 사설 IP를 가진 FPGA가 소수의 백엔드 집선기로 스트리밍. 그룹 명령은 멀티캐스트, 데이터는 TCP, 펌웨어는 서버 소켓 — 노드당 칩 하나로.

02. 의료 영상 프론트엔드

FPGA가 펄스를 적분하고 호스트가 재구성하는 감마카메라나 PET 인서트. 네트워크가 하드웨어와 알고리즘의 경계가 되고, 프레임 손실이 파일 손상이 아니라 카운트 손실이므로 UDP로 충분합니다.

03. 실험실 계측기 에뮬레이션

난류 시뮬레이터, 신호 재생기, HIL 리그 — 호스트가 파형을 스트리밍하고 FPGA가 메가헤르츠로 물리량으로 변환. 채널 값이 손상되면 시험 자체가 무효이므로 TCP.

04. 원격 업그레이드가 필요한 배치 하드웨어

펌웨어 업데이트 전용으로 TCP 서버 소켓 하나를 비워두고, 데이터 경로와 하드웨어로 격리. 지하 공동, 자석 안, 차폐실 안의 계측기에서는 이것이 소프트웨어 업데이트와 정비 셧다운의 차이입니다.


Conclusion

W5300은 조용히 FPGA 기반 과학 데이터 수집의 표준 이더넷 컨트롤러가 되어 있습니다 — 빨라서가 아니라, 병렬 버스를 말하고 유연 할당 128 KB 안에 독립 소켓 8개를 들고 있어서입니다.

  • ✅ 2023~2026년 전수 조사에서 검증된 심사 논문 8편 중 4편이 W5300 — 전부 FPGA 조합, MCU 사례 0건
  • ✅ 칩 하나에서 8소켓 중 6개가 TCP 클라이언트·TCP 서버·UDP 멀티캐스트·UDP 유니캐스트 동시 운용, 운영체제 없음
  • ✅ 단일 실험에 모듈 28,800대 배치 예정(INO-ICAL), 프로토타입 mini-ICAL에서 이미 가동 중
  • ✅ 데이터시트 쓰기 사이클 80 ns — 병목은 칩이 아니라 소프트웨어 제어 신호였고 그것이 350 ns
  • ✅ FPGA 핸드셰이크 로직이 버스를 직접 구동해 FIFO 전송 190 µs → 35 µs, 데드타임 281 µs → 125 µs
  • ✅ 100 Mbps 링크에서 120바이트 이벤트로 5 kHz 트리거율 달성
  • ✅ 명령 경로 신뢰성은 프로토콜로 해결(HPCI: UDP 멀티캐스트 + CRC + 재전송)하고, 하드웨어 소켓 분리로 이벤트 스트림과 격리
  • ✅ 서로 다른 FPGA 계열 3종 — Cyclone IV, Cyclone II, Spartan-6

FPGA 리드아웃 보드를 만들면서 반사적으로 SPI 부품을 집으려 한다면, 이것이 그 반대 논거입니다. 직접 측정한 네 그룹이 써놓은 논거입니다.


07 — WIZnet Makers의 관련 프로젝트

프로젝트호스트WIZnet 부품과 역할관계
ad9226_cyclone5_w5500Cyclone V FPGAW5500 — ADC 데이터를 이더넷으로같은 FPGA-DAQ 문제를 SPI 부품으로 푼 사례. 이 기획과 직접적인 구조 대비
FPGA Slow Control Interlock System (SCIS)GateMate / AMD 7-series FPGAW5500 — UDP 메트릭 패킷, GrafanaFPGA에서 W5500으로 스택을 오프로드. 약 18 Mbit/s, 모듈 추가 시 LUT +7% 보고

인사이트. 플랫폼에는 이미 FPGA + WIZnet 프로젝트가 있습니다 — 그런데 둘 다 W5500을 SPI로 쓰고, 둘 다 단일 목적 링크입니다. 논문이 더해주는 것은 다중 소켓·혼합 프로토콜 사례입니다. FPGA 노드 하나가 네 가지 대화를 동시에 들고 제어 경로가 데이터 경로를 건드리지 않게 해야 할 때, 유연한 128 KB 할당을 갖춘 병렬 버스 부품이 맞습니다. 그 설계 영역이 현재 WIZnet Makers에는 비어 있습니다.


Q&A

Q. W5300은 오래된 부품인데, 신규 설계에 권하는 게 타당한가요? A. MCU 프로젝트라면 아닙니다 — SPI 부품이 더 쉽고 새롭습니다. 여기서의 주장은 더 좁습니다. 호스트가 FPGA이고 모듈이 서로 다른 모드의 동시 소켓 여러 개를 필요로 할 때, 8/16비트 버스와 128 KB 유연 버퍼는 최신 SPI 부품이 제공하지 않는 구조적 이점입니다. 논문 4편 모두 2024~2025년이므로, 지금도 현역 연구 그룹이 이 칩을 고르고 있습니다.

Q. FPGA에서 그냥 SPI 부품을 쓰면 안 되나요? SPI 마스터는 로직이 싼데요. A. 맞습니다. 위 Makers 프로젝트 두 건이 정확히 그렇게 해서 성공했습니다. INO의 측정이 한계선에서의 반론입니다 — 그들의 병목은 칩이 아니라 칩으로 가는 제어 신호 경로였습니다. 쓰기를 프로세서 구동에서 하드웨어 핸드셰이크 구동으로 옮겨 전송 시간을 5.4배 줄였습니다. 병렬 버스는 FPGA 로직이 쓰기 사이클 자체를 넘겨받게 해줍니다.

Q. FPGA 리드아웃은 TCP와 UDP 중 어느 소켓 모드를 써야 하나요? A. 논문들은 용도로 갈라 둘 다 씁니다. 손실이나 순서 역전이 결과를 망치는 페이로드에는 TCP(Sn_MR_TCP) — 이벤트 데이터, 펌웨어 이미지, 파형 채널 데이터. 제어와 모니터링에는 UDP(Sn_MR_UDP) — 무상태이고 멀티캐스트를 지원하니까요. 진짜 교훈은 둘을 별개 하드웨어 소켓에 올려 한쪽이 다른 쪽을 멈추지 못하게 하라는 것입니다.

Q. MACRAW를 쓰는 사례는 없나요? A. 없습니다. MACRAW는 방화벽과 패킷 분석기에 맞습니다 — FPGA Firewall이나 SCIS 계열이죠. 리드아웃 모듈은 스택이 제 일을 해주기를 원하고, 우회되기를 원하지 않습니다.

Q. 125 µs 데드타임은 실제 배치된 수치인가요? A. 아닙니다. 저자들이 밝힙니다 — 하드웨어 핸드셰이크 방식은 "테스트 벤치에서만 검증되었고 실제 실험에는 아직 적용되지 않았다". 배치된 수치는 mini-ICAL에서의 5 kHz 트리거율과 281 µs 데드타임입니다.

Q. 이 중 설계 파일이 공개된 게 있나요? A. 이 세 건은 없습니다. 감마카메라 논문은 Python 교정 소프트웨어를 서술하지만 공개 언급이 없고, 난류 시뮬레이터 데이터는 "현재 공개되어 있지 않다"고 명시합니다. 재현하려면 repo를 클론하는 게 아니라 논문을 읽어야 합니다.


Original Links: - INO RPC-DAQ (NIOS II / W5300): https://doi.org/10.1088/1748-0221/20/01/p01021 · preprint https://arxiv.org/abs/2501.00686 - INO UDP Command Interface (HPCI / W5300): https://doi.org/10.1088/1748-0221/20/07/p07038 · preprint https://arxiv.org/abs/2503.02751 - Gamma camera readout electronics (W5300): https://doi.org/10.1016/j.ejmp.2024.103357 - Atmospheric turbulence simulator (W5300): https://doi.org/10.3390/photonics11040334 - W5300 product documentation: https://docs.wiznet.io/Product/iEthernet/W5300/overview

Comments

Comments