← All projectsGitHub
LLM chip design loops

Does an equivalence-gated rewrite loop beat a parameter sweep on popcount, leading-zero count and absolute difference?

research/chip-ppa-logic

Equivalence-gated rewrites of 16-bit popcount, 16-bit leading-zero count and 8-bit |a−b| against a no-model sweep: popcount 0.98×, |a−b| 0.86×, but on leading-zero count the sweep (0.56×) beats the session-written rewrites (0.80×) in 168 of 200 equal-budget draws (stylised, gate counts).

5 tests

What it found

A follow-up to chip-ppa-loop on three small blocks where written structure matters. Every candidate is proved equivalent to its reference by a Yosys miter before its generic-gate cells×depth counts. Popcount: no real gain (0.98×). Absolute difference: 0.86×, a structure the sweep also contains. Leading-zero count: the session-written rewrites reach 0.80× but a no-model sweep reaches 0.56× (depth 8 against 11) and beats the proposer in 168 of 200 equal-budget draws. Also fixes a gate bug that rejected correct ROM-style tables. Fifteen attempts by one author, one tool version, gate counts only.

A figure from its own output

Figure produced by research/chip-ppa-logic: clz16
chip-ppa-logic/experiments/clz16.svg, written by the project's own experiment code.

Paper, code and results

More in LLM chip design loops

All 40 LLM chip design loops projects →

Other research topics

Proper scoring & elicitation28Effort & peer prediction9Verification games & slashing19Detection & tolerances14Markets as routers13Prediction-market design9Paying contributors8Decentralised training systems23Digital twins & sim-to-real164LLM chip design loops40Robot manufacturing loops53Ambient AI assistant46Self-replicating manufacturing34Simulation-first design64Engineered clothing45Task-specific AI accelerators40Algorithmic chip-design loops42Open-source purpose-built robots44The software-engineering loop43Adversarial human imitation41Open-source residential construction41Autonomous multi-angle capture34Sensing, imaging and 3D31Energy supply and dense energy storage39Robot societies among people31Agentic co-design of low-cost robots27Laundry-hanging robots25Machine learning on qualitative data23Robots on the building site27Civilizations & group psychology1History & human sciences1

Produced with AI assistance (Claude). Results are from the code in this repository and are simulated or stylised unless the abstract says otherwise; nothing here implies affiliation with or endorsement by any lab, researcher or company cited. MIT licensed.