No description
- VHDL 42.3%
- Python 17.9%
- Shell 15.2%
- Tcl 13.7%
- Nix 8.8%
- Other 2.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| rtl | ||
| scripts | ||
| tb | ||
| .gitignore | ||
| AGENTS.md | ||
| eval.sh | ||
| flake.lock | ||
| flake.nix | ||
| MILESTONES.md | ||
| PLAN.md | ||
| README.md | ||
| SETUP.md | ||
| task.md | ||
chip-bench
Local, fully open-source replication of the Qwen3.8-Max "Autonomous Chip Design" benchmark — an edit → simulate → synthesize → (route) agent loop over a GCD/mod-mul/mod-exp crypto accelerator written in VHDL. Also the base environment for everyday FPGA prototyping.
See PLAN.md for the full phased plan and
../research-brief-chip-design-agent-verification.md for the verification
methodology sources.
Quickstart
# 1. enter the devshell (builds/fetches ghdl, nvc, yosys-ghdl, openroad,
# cocotb, nextpnr, klayout, surfer, …; fetches Nangate45 PDK on first run)
nix develop .
# 2. run the full evaluation (4-width cocotb sim + Nangate45 synthesis)
./eval.sh
# -> {"pass":{"4":"PASS",...},"cells":NNNN,...}
# 3. optional: place & route at 500 MHz (OpenROAD)
# NOTE: the OpenROAD stage is written but UNVALIDATED as of the baseline
# commit (nixpkgs openroad build was deferred). Expect to iterate on
# scripts/openroad.tcl the first time you run it.
./eval.sh --pr
# 4. look at the feedback
tail build/hier.log # per-module cell counts
grep -A5 'Number of cells' build/synth.log
tail build/openroad.log
# 5. point a coding agent at this directory (AGENTS.md is its instruction set)
Layout
rtl/— VHDL design (the only mutable part during optimization)tb/— frozen cocotb suite (Python reference models:math.gcd,pow)scripts/— frozen synth/OpenROAD/PDK scriptseval.sh— frozen reward channel (JSON line)MILESTONES.md— evolution record
FPGA track (PLAN.md phase 5)
Same rtl/ + tb/ feed a nextpnr iCE40/ECP5 flow; tb/test_crypto.py is
reused unchanged for pre-silicon validation.