2026-11-06

Forlinx moves 64-channel power sampling into an FPGA and takes one core away from Linux

RK3576FPGAAMPData AcquisitionPower MonitoringForlinx
Forlinx moves 64-channel power sampling into an FPGA and takes one core away from Linux

A ring main unit in a distribution network can carry dozens of feeder bays, and the fault that is hardest to catch is the single-phase earth fault. Its transient is small, it lasts a few milliseconds, and the protection decision has to be out before it fades into the next switching event. The device that has to catch it is a feeder terminal unit, and the number that decides whether it works is not the sample rate. It is the moment the decision leaves the box.

Forlinx has published a reference build for that job on its OK3576-C carrier board paired with an Anlogic FPGA, and the interesting part is the division of labour rather than the parts list. Acquisition belongs to the FPGA. One core of the Rockchip RK3576 is taken away from Linux, given an RTOS, and told to do nothing but the FFT and the protection logic. The remaining cores run Linux and Qt for the waveform display. Nothing in the chain waits for a scheduler that is also serving a desktop.

What the build is made of

Tier Part Job
Sampling 4 x CoreLink CL1616 16 channels each, 64 in total, driven by a common convert strobe
Acquisition logic Anlogic FPGA Clocking the ADCs, holding the sample buffer, moving frames out
Transport DSMC parallel bus FPGA to SoC, 8 or 16 bits wide, up to four chip selects
Compute One RK3576 core, isolated RTOS, 256-point FFT, protection thresholds
Interface RK3576 Linux cores Qt waveform display, channel configuration, logging

The RK3576 side is a FET3576-C module, four Cortex-A72 at up to 2.2 GHz plus four Cortex-A53 at 2.0 GHz, with 6 TOPS of NPU that this design does not appear to use. What it does use is the DSMC interface, an asynchronous parallel bus that Rockchip puts on the part for exactly this kind of pairing. The vendor's dataflow runs four CL1616 parts into the FPGA, the FPGA into the SoC over DSMC, the real-time core into shared memory, and shared memory into the Linux display.

The arithmetic the claim rests on

The published numbers are 64 channels, 256 points per 50 Hz cycle, an FFT window of the last 256 points, and a new window started every eight samples. Those four figures fix everything else.

Quantity Value How it follows
Sample rate per channel 12.8 kS/s 256 points over a 20 ms cycle
Aggregate sample rate 819 kS/s 64 channels at 12.8 kS/s
Data rate at 16 bits 1.64 MB/s Before any header or framing
Window start rate 1,600 per second 12.8 kS/s divided by a hop of 8
FFT count, all channels 102,400 per second 64 channels, if every channel is windowed
Compute at 256 points Roughly 0.9 GFLOP/s About 1,000 butterflies per transform

That last row is the one worth pausing on. A 256-point real transform costs on the order of a thousand butterflies, so 102,400 of them per second is close to a gigaflop sustained on the isolated core, and a Cortex-A53 is the sort of core that can be asked for that and nothing else. Whether the vendor means 1,600 windows per second per channel or per bus is not stated, and the difference is a factor of 64 in the compute budget. It is the first question to put to them.

The transport is not a concern at this scale. 1.64 MB/s over a parallel bus with a 78 microsecond frame period is a rounding error against what DSMC can move, so the FPGA is a buffer and a clock source rather than a bandwidth bottleneck.

The ADCs are eight channels simultaneous, not 64

The CL1616 is a 16-channel part, and the marketing sentence that describes it says dual simultaneous sampling, which is exact. It contains two 16-bit SAR converters. Each one works through eight of the sixteen channels in sequence. The throughput is 1 MSPS per converter, so the whole chip can deliver 2 MSPS in total, and at the sample rate this design uses it is running at about a tenth of that.

So a complete scan of one chip takes one sample period, 78 microseconds, and every channel appears once per scan. Across the four chips the same period applies, and if the four convert strobes come from one FPGA counter, all 64 channels are sampled inside a single 78 microsecond window that repeats exactly.

That is not the same as 64 simultaneous track-and-hold circuits, and the difference has a number. At 50 Hz, 78 microseconds is 1.4 degrees of phase. Channel one of a chip and channel sixteen of the same chip therefore sit up to 1.4 degrees apart in a phasor measurement, and the four chips add nothing on top of that because they are strobed together.

A fixed rotation of 1.4 degrees is a calibration constant. It costs one multiply per channel and disappears. What the array cannot tolerate is a rotation that changes, which is the subject of the next section, and a sequencer whose order is edited after calibration has quietly reintroduced it. That makes the scan order a design constraint rather than an implementation detail.

Why the FPGA is there, and it is not speed

The article's own diagnosis of the alternative is a microcontroller switching channels in turn, with the switching and the interrupt response adding a little lag that shows up as dropped frames and misaligned phases. That description is accurate, but the conclusion it invites is the wrong one. A microcontroller scanning 64 channels at 12.8 kS/s each also completes a scan in 78 microseconds. It is not slower.

It is less predictable. The interval between one scan and the next is set by an interrupt that has to arrive while the same core may be finishing an FFT, servicing Ethernet, or writing a log page. If the interval moves by a few microseconds from scan to scan, the phase error of every channel moves with it, and each window sees a different 1.4 degree offset. In a DFT that is not a bias you can calibrate away. It is a random phase modulation spread across every bin, and it lands exactly where a small transient is being looked for.

An FPGA counter produces the same interval every time because no software is involved in producing it. That is the whole argument for putting acquisition in logic, and it is worth separating from the parallel-versus-serial story, which does not survive the arithmetic.

The second reason follows from the first. If the FFT and the protection logic share a core with acquisition, the deadline has to survive whatever the other work is doing. Isolating one core changes the worst case from something statistical to something you can measure once.

What the write-up does not say

What transfers

The three-tier split is a pattern rather than a product decision. Logic for anything with a deadline measured in microseconds, an isolated core for anything with a deadline measured in milliseconds, and Linux for anything a person looks at. The tiers fail independently, which is the point, and a stalled display cannot delay a protection trip.

The diagnostic underneath it is more useful than the pattern. When a sampling problem appears, ask whether the error is constant or random. A constant offset, whether it comes from scan order, cable length or filter delay, can be measured once and removed. A random one cannot, and no amount of post-processing fixes a timestamp that was never deterministic. That question separates an architecture problem from a tuning problem, and it is worth asking of any acquisition design, including the one in this article.

IOTTourChina covers China-made IoT and edge hardware as part of its developer resource. This is editorial coverage, not an endorsement or an advertisement; specifications, availability and pricing should be confirmed with the vendor or a distributor before you buy.

← All news