No description
  • VHDL 42.3%
  • Python 17.9%
  • Shell 15.2%
  • Tcl 13.7%
  • Nix 8.8%
  • Other 2.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-10 16:01:49 +02:00
rtl Baseline: naive GCD/MODMUL/MODEXP VHDL accelerator + frozen eval harness 2026-09-12 11:14:57 +02:00
scripts setup openroad nix 2026-10-10 16:01:49 +02:00
tb Baseline: naive GCD/MODMUL/MODEXP VHDL accelerator + frozen eval harness 2026-09-12 11:14:57 +02:00
.gitignore Baseline: naive GCD/MODMUL/MODEXP VHDL accelerator + frozen eval harness 2026-09-12 11:14:57 +02:00
AGENTS.md Baseline: naive GCD/MODMUL/MODEXP VHDL accelerator + frozen eval harness 2026-09-12 11:14:57 +02:00
eval.sh Baseline: naive GCD/MODMUL/MODEXP VHDL accelerator + frozen eval harness 2026-09-12 11:14:57 +02:00
flake.lock Baseline: naive GCD/MODMUL/MODEXP VHDL accelerator + frozen eval harness 2026-09-12 11:14:57 +02:00
flake.nix setup openroad nix 2026-10-10 16:01:49 +02:00
MILESTONES.md setup openroad nix 2026-10-10 16:01:49 +02:00
PLAN.md Baseline: naive GCD/MODMUL/MODEXP VHDL accelerator + frozen eval harness 2026-09-12 11:14:57 +02:00
README.md Baseline: naive GCD/MODMUL/MODEXP VHDL accelerator + frozen eval harness 2026-09-12 11:14:57 +02:00
SETUP.md setup openroad nix 2026-10-10 16:01:49 +02:00
task.md Baseline: naive GCD/MODMUL/MODEXP VHDL accelerator + frozen eval harness 2026-09-12 11:14:57 +02:00

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 scripts
  • eval.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.