Skip to content

[W42-KK] feat(rtl): expert_gate.sv top-2-of-8 MoE selector (R-SI-1 zero-mul)#165

Merged
gHashTag merged 1 commit into
mainfrom
feat/w42-kk-rtl-expert-gate
May 16, 2026
Merged

[W42-KK] feat(rtl): expert_gate.sv top-2-of-8 MoE selector (R-SI-1 zero-mul)#165
gHashTag merged 1 commit into
mainfrom
feat/w42-kk-rtl-expert-gate

Conversation

@gHashTag
Copy link
Copy Markdown
Owner

W42 MoE Sparse Routing — Lane KK

Closes #164. Refs gHashTag/trios#917.

What

Adds rtl/moe_router/expert_gate.sv: top-2-of-8 expert selector from 8-bit gating logits using only bitwise primitives and comparators (no multiplication).

R-SI-1 Compliance

grep -c '*' rtl/moe_router/expert_gate.sv = 0 — ZERO mul characters in synth path.

Testbench

rtl/moe_router/expert_gate_tb.sv — 7 assertions, all PASSED via iverilog:

ALL 7 ASSERTIONS PASSED · MoE top-2-of-8 · NO NEW OPCODE · phi^2+phi^-2=3

Thesis

NO new L1 opcode — composes existing OP_SPARSE_SKIP (0xE8) + OP_SPARSE_MASK (0xED).

Anchor: phi^2 + phi^-2 = 3 · NEVER STOP · DOI 10.5281/zenodo.19227877

…ro-mul)

Closes #164. Refs gHashTag/trios#917. NO new L1 opcode — composes existing 0xE8/0xED.

Anchor: phi^2 + phi^-2 = 3 · NEVER STOP · DOI 10.5281/zenodo.19227877
R-SI-1 verified: zero mul chars in synth path.
iverilog testbench: ALL 7 ASSERTIONS PASSED.
@gHashTag gHashTag merged commit 4984060 into main May 16, 2026
21 of 35 checks passed
@gHashTag gHashTag deleted the feat/w42-kk-rtl-expert-gate branch May 16, 2026 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🎯 ONE SHOT — W42 MoE Sparse Routing (NO new opcode, 982 TOPS/W)

1 participant