[back]

The KX2 build: what it uses, how full it runs, what the DDR3 allows

The figures of the bitstream the board runs were made on (the Mercury+ KX2, an XC7K160T; the baseline of 2026-11-25: the small MAC, AME from Linux user programs). The tables of this page are read from that build's own reports when the page is made.

Timing

Routed: worst setup slack +0.003 ns at 200 MHz, 0 of 246816 endpoints failing, worst hold slack +0.033 ns. The unit, its pages, the DMA and the DDR3 port run at 200 MHz; the hart at a quarter of it.

Utilization

every unit's share of the device

unit LUTs flip-flops block RAM tiles DSP48s what it is
MPU (the lane array) 10183 17844 48.0 512 16 columns x 32 DSP48s, their sums and accumulators
VPU 9099 6034 8.0 50 4 lanes, the channels' table, softmax and layernorm
store 9452 5352 0.0 0 the accumulators' words narrowed into a page
pages 2924 1620 121.0 0 the two pages' A and B copies (block RAM)
DMA 2938 1132 0.0 0 DDR3 lines to and from the pages
engine, front, registers 1702 2027 0.0 2 the queue, the AME front, the job registers, the counters
hart 8857 4048 8.0 4 RV32IMA, caches, Sv32, CLINT, PLIC, 16550
EMAC (small) 3916 3293 3.0 0 Linux's eth0 and the debug link's queue
the core's bridges and crossings 4953 4098 2.5 0 the hart's memory bridge, the clock crossings
debug link, workbench, merge 5427 5241 8.0 0 the debugger's bus, the memory merge, the Ethernet port
DDR3 controller (MIG) 12212 10173 0.0 0 Xilinx's controller with l8's port adapter
top 373 394 1.0 0 clocks, reset, pads
all 72036 61256 199.5 568
the XC7K160T has 101400 202800 325 600
used 71.0 % 30.2 % 61.4 % 94.7 %

How full the DSPs run

A DSP of the array does a multiply-add in every clock in which the array takes a row of A. Measured on the board (the unit's own counters: the rows taken, and the clocks from a product's first row to its last):

int8 int16 int32
array DSPs working, while a product runs 99.4 % 99.1 % 99.4 %
multiply-adds a second, while a product runs 101.8 G 101.5 G 25.4 G
the bound (512 DSPs x 200 MHz; at int32 four DSPs a product) 102.4 G 102.4 G 25.6 G
clocks lost at each change of tile 23 of 4119 39 of 4135 23 of 4119
array DSPs working over a whole job (B's load, the drain and C's store included; 16 tiles of K) 82.3 % 81.0 % 72.0 %

What the DDR3 allows

The unit's operands come from the DDR3 and its results go back, over one 512-bit port at 200 MHz: 12.8 GByte a second if every clock moved a line.

Measured on this board (2026-11-08, a traffic generator on the same port, three rounds, equal):

traffic GByte a second of the 12.8 peak
reads alone 9.1 to 9.4 72 %
writes alone 6.1 48 %
reads and writes at once 7.75 61 %
the pattern of an int8 tile (read, then written) 6.85 54 %
the pattern of an int16 tile 7.04 55 %

What the array asks of it (from the tiles' sizes and the measured time of a tile, 4096 rows and the gap):

bytes a tile (A + B) a tile takes the DDR3 must deliver of the reads' bound
int8 32768 + 16384 20.6 us 2.4 GByte/s 26 %
int16 65536 + 32768 20.7 us 4.8 GByte/s 51 %
int32 32768 + 16384 20.6 us 2.4 GByte/s 26 %

[back]