fpga-archive-reports-arch · EAGLE4 FPGA archive

Source reports/results/DRAFTER_SPEED_RESEARCH_20261107/ATT_FASTCLK_20261117.md · source md5 3a8bfc7972d373eaf33fc2450f8fcef2 · archived 2026-11-18

Download PDFOpen PDFRaw markdown

ATT LUT-GEMM array on the 132 MHz clock (ATT_ARRAY_FAST_CLK), derived and gated (box1-two-v2 RTL speed worker, 2026-11-17)

Program 1: one Llama-3.2-3B drafter on 7 V80s (ATT TP4 x4 + MLPV x2; H200 verifies). Motto: never deny the idea; engineer toward the fastest flashable PDI. Nothing was built as an image, flashed or killed. No card, talon2, demo or H200 touched. Tags: [M] measured, [R] read from RTL / build record, [P] projection.

Verdict: it works. The ATT array runs on ap_clk_fast (2 x ap_clk) bit-identically to NFA8 in the 4-rank full-drafter sim and cuts the ATT item by 853 cycles (4,979.6 -> 4,126.2, -17.1 %); the array + bridge + quantiser route at 132.0 / 66.0 MHz OOC with WNS +0.118 / WHS +0.010 ns, which is thin.

Calculations and hypothesis (everything that is not a measurement)

1. Why the lineage refused LUTG + ARRAY_FAST_CLK [R]

Two elaboration guards, both protecting against a silent wrong design, not a physical limit:

2. Design: quantise on the slow clock, cache the quantised chunk [R]

seam (66) -> u_a8q_s lutg_a8q (66, UNCHANGED: dry walk, dividers, commit) -> start_out + fill_req
          -> gemv_dualclk_bridge (the record MLPV file 0395872d: FAST_TP 1, FAST_RST_SYNC 1, A_WIDTH 8)
             fill: re-reads the seam, registers q8(chunk) into fw_*_s (66) -> first_half-qualified write (132)
          -> u_array LCACHE, 3 groups x 2 x 128 b x 256 (4 RAMB per die) -> cluster a_r -> lutgemm_lane_w2 (132)
          -> RET_SER -> done toggle -> done_seen_s -> res_q hold (66) -> att_g6_tp / body sequencers (unchanged)

3. Cycles per item, 4 ranks, same stimulus [M]

phase NFA8 (NA_L100) strap 0 (F0_L100) strap 1 (F1_L100) delta
G4 1,402.0 1,402.0 914.0 -488.0
G6 641.6 641.6 632.2 -9.4
G7G 638.0 638.0 486.0 -152.0
G7U 424.0 424.0 220.0 -204.0
G1 / G5 / SILU / EXPORT 457 / 579 / 134 / 704 same same 0
busy (excl. WAIT) 4,979.6 4,979.6 4,126.2 -853.4 (-17.1 %)
run end (ps) 293,350,000 293,350,000 279,702,000

Mean over 4 compute items x 4 ranks; every rank and item reads the same G4 / G7G / G7U. G6 barely moves because its 632 cycles are the TP all-reduce and the re-issue, not the array walk (K = 768, 24 pairs per tile). Bridge latency is inside these numbers: fill-to-launch np/2 + 3 slow cycles per walked pass, about 2 slow cycles per done.

4. Gates [M]

World: buildx00 /shared/scratch/att_fastclk_20261117 (flat sim-baked src/BCPF = the NFA8 BCPN + patch_att_fastclk.py; TB, ops and runner are the NFA8 world's, fc_arm.sh). Reference = the NFA8 image arm combo3_nfa8_20261117/h/runs/NA_L100 (xsim.log 1f5ff665).

gate arm result xsim.log md5
(a) strap 0 F0_L100 PASS: 0 taps differ (D9R/D9V/D9Z/D9ZL/KVWR/TAPG4/5/6), 16/16 seams equal, X 0, rdlog 0, cycle-identical end time 5beed3e4
(a) strap 1 F1_L100 -d ATT_ARRAY_FAST_CLK_V=1 data identical: D9R 320/320, KVWR 5,664/5,664, TAPG4 96/96, TAPG5 16/16, TAPG6 96/96, D9Z 8/8, 16/16 seams byte-equal, rdlog symmetric difference 0 on 4 ranks, exchange scoreboard PASS, G6RI PASS x4, 0 Error/Fatal 13a16bea
(b) cycles F1_L100 table above
(c) RED handshake RED1_L100 (EARLY_START bound removed) caught: 664 taps differ (D9R 304, KVWR 96, TAPG4 80, TAPG6 96), 16/16 seams, 96 cache-chase violations (first: read pair 0, written 0) d0e1b308
(c) RED CDC phase RED3_L100 (RED_FILL_PHASE) caught: 728 taps differ (D9R 320, KVWR 128, TAPG4 96, TAPG6 96), 16/16 seams 9e4f5963
(c) RED CDC done RED2_L100 (RED_DONE_RAW) caught as a hang: 24 tile results then no item ever completes (a lost done pulse); see Housekeeping (running)
chase checker F1_L100 8,256 consumed cache reads per group per rank, 0 violations (12 lines); NORMFUSE chase 768 reads, 0 violations

Two things the stock comparator prints as FAIL on F1, both monitor artefacts and both expected:

Limits (gate shape): context 173, Llama mode, md <= 2, 4 compute items per rank; Qwen DUAL_MODEL forwards not run; inject paths not run; RED4 (late tile index) not run.

4d. OOC place and route at 132 / 66 MHz

buildxd02 /shared/scratch/att_fastclk_20261117/ooc/runs/L512_p7575_loc; harness poc/att_fastclk_ooc_top.sv = slow quantiser + bridge + array (LANES 512, ROLE 1, LUTG, A8 external, RET_SER R 8, PRE_BASE, TILE_PIPE, LCACHE, RST_PIPE 2), one input clock with BUFGCE + BUFGCE_DIV /2 so the 2:1 skew is timed; soft per-SLR pblocks. Synth 45 min / 19 GB, impl 1 h 30 / 24 GB. route.dcp 0809401c.

fast period fast / slow MHz WNS WHS fast->fast slow->fast fast->slow slow->slow
7.575 (routed) 132.0 / 66.0 +0.118 +0.010 +0.118 +0.221 +1.111 +2.990
7.0 (re-timed) 142.9 / 71.4 -0.457 +0.010
6.5 (re-timed) 153.8 / 76.9 -0.957 +0.010

5. The diff [M]

Fork verilog/forks/att_nfa8_fastclk_20261117 = cp -a of att_combo3_nf_a8qovl_20261117 + scripts/4c1/patch_att_fastclk.py (7ca95bf3, count-asserted, atomic, originals kept as *.pre_fastclk). Diff: att_fastclk_20261117/NFA8_TO_FASTCLK.patch (50336360, 617 lines).

file NFA8 -> fork +/- what
top/eagle4_config.svh 89565763 -> 6a58f888 +20 / 0 [A] ATT_ARRAY_FAST_CLK_V 1'b0, [S] ATT_FASTCLK_RED_V 0
top/eagle4_drafter.sv 92ab14a2 -> 901c191a +88 / -35 ATT_AFC, `AFC = ARRAY_FAST_CLK
top/gemv_stage_array_scaled_slr.sv 7f754cc3 -> 640a4530 +60 / -23 A8Q_INT / A8Q_EXT, cluster source = cache at LCACHE, LC_W, g_a8q_ext, guard LCACHE && !A8Q, sim-only cache chase checker
primitives/lutg_a8q.sv 68be50f9 -> 31d6dfdd +7 / -2 output fill_req
top/gemv_array_dualclk.sv a44f3e9f -> 0395872d +34 / -12 replaced by the record MLPV 0x1361 file (adds FAST_RST_SYNC / f_rst_n)

The strap is a header localparam (the LUTG / A8Q / A8Q_OVL idiom of this lineage); the top parameter ARRAY_FAST_CLK stays 0. Strap 0 is proven by F0_L100, not by inspection. The fork is not committed in the verilog submodule; it is reproducible from the tool + the MLPV bridge file.

6. Proposed stage recipe (not derived, not launched)

  1. Base = the NFA8 CE stage combo3_nfa8_20261117/stages_v2/lutg_d9_tp4stk_CE_stage. Run patch_att_fastclk.py on its forks/head_hxf_cons/src_full (PROOF-REPRO against this fork's 5 md5s), re-pin MD5LIST, CERT_TOP / CERT_CFG / CERT_GSAS and CERT_DCW_P a44f3e9f -> 0395872d (uni_pipeline_lutg_d9.sh:700).
  2. Bake ATT_ARRAY_FAST_CLK_V 1'b0 -> 1'b1 (count-asserted); keep ARRAY_FAST_CLK_V 1'b0 and ARRAY_FAST_TP_V 1'b0 as residency rows.
  3. Clock: clk_wiz {66,264,286} -> {66,132,286} (:2024, :2171), DC_FAST_FREQHZ 263999760 -> the {66,132} BD-actual (131999880 on the MLPV; let STEP4b learn it), sanity-synth create_clock ap_clk_fast period DERATE/4 -> DERATE/2 (:1214). The clk_usr_1 -> ap_clk_fast BD net and the clock bus interface already exist in this pipeline.
  4. Constraints: keep the dual-clock locality XDC import (:1967-1975); re-root it for g_lcache.g_lc_grp[*] and g_dc.g_qs next to the seams. No false path, no multicycle, no ASYNC_REG on the bridge crossings.
  5. Report-only rows: XCI / staged-header ATT_ARRAY_FAST_CLK 1; netlist g_dc.u_dc_bridge, g_dc.g_qs.u_a8q_s, u_array/g_lcache.g_lc_grp[0..2] RAMB (match RAMB*), ZERO u_array/g_a8q.u_a8q / u_lead, u_array clock pin on clk_usr_1; routed WNS / WHS per clock pair (the four of section 4d) + report_cdc.
  6. Build id: pick with qg_id_check.py (label AND reg100) at derive time; none reserved here.
  7. Fit: SLR0 SLICE is the open question (the bridge adds 24.9K FF near the consumer). Fly it beside an NFA8-only sibling, as the build rules ask.

7. Files

file md5
scripts/4c1/patch_att_fastclk.py 7ca95bf3
att_fastclk_20261117/NFA8_TO_FASTCLK.patch 50336360
att_fastclk_20261117/sim/ident/{F0,F1,RED1,RED3}_L100_vs_NA.txt 214ed883, 1851cd71, 6586e1e3, e90716b6
att_fastclk_20261117/sim/cmp_fastclk.py, sim/fc_arm.sh, sim/tools/fc_cmp.sh (in tree)
att_fastclk_20261117/ooc/ (retime.txt a95541b8, per_clock_pair, route_cdc, route_util*, lcache_census, netlist_teeth)
att_fastclk_20261117/poc/ (harness + tcl, copies of the fork's poc/att_f*)

Housekeeping