← All projectsGitHub
LLM chip design loops

Which Yosys pass makes the operand order of a + b + constant change the synthesised adder?

research/chip-abc-orderpass

Finds the Yosys pass behind chip-abc-order's operand-order effect: opt_merge shares a+b between the two carry-select sums only when both are written with a and b first (4 of 36 operand orders); removing it widens the spread (up to 3.2×), so it was hiding variation. One adder, stylised.

7 tests

What it found

A follow-up to chip-abc-order. All 36 operand orders of a 16-bit carry-select adder's a + b + const chains (each proved equivalent to the reference) are run through synth one pass at a time. The cell counts first diverge in opt_merge: when a block's two sums both start with a and b, one shared a + b is kept (7 adders instead of 10), which happens in 4 of 36 orders. Cells×depth then takes only two values per ABC script, and the shared netlist is 1.20–1.28× larger under dch_map and resyn2_map but 0.92× under Yosys's default script. Removing opt_merge does not remove the dependence: the spread over orders widens to 1.44–3.17×. Stylised: one adder, Yosys 0.33, generic-gate cells×depth, no place and route.

A figure from its own output

Figure produced by research/chip-abc-orderpass: orderpass
chip-abc-orderpass/experiments/orderpass.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.