|
| 1 | +# Fast local OpenROAD-SYN testing loop |
| 2 | + |
| 3 | +The maintainers' QoR signal comes from Jenkins runs published at |
| 4 | +<https://dashboard.precisioninno.com/>. The targets described here are |
| 5 | +its local counterpart: the same designs, gated by the same |
| 6 | +`rules-base.json` files with the same `checkMetadata.py`, but built |
| 7 | +locally through Bazel so the loop can be sharpened onto exactly the |
| 8 | +design, engine, and stage being worked on — fast enough for an agent |
| 9 | +(e.g. Claude) to iterate against. |
| 10 | + |
| 11 | +Every design gets manual forced-engine flow variants (see |
| 12 | +`design.bzl`), regardless of the engine its config.mk selects: |
| 13 | + |
| 14 | +- `<name>_syn_*` pins `SYNTH_USE_SYN=1` (OpenROAD-SYN), so any design |
| 15 | + can be tested under SYN before its config.mk officially switches. |
| 16 | +- `<name>_yosys_*` pins the yosys engine, so the baseline stays |
| 17 | + reproducible after a design switches (asap7/gcd today). |
| 18 | + |
| 19 | +Designs with a `rules-base.json` get two QoR tiers per variant: |
| 20 | + |
| 21 | +- `<name>_<engine>_synth_test` — the fast tier: synthesis only, |
| 22 | + checked against the `synth__`/`constraints__` subset of the rules. |
| 23 | + Minutes. QoR-only — without LEC it cannot prove correctness, so use |
| 24 | + it to iterate, not to conclude. |
| 25 | +- `<name>_<engine>_test` — the full flow against all rules: the real, |
| 26 | + dashboard-equivalent gate. It reuses the fast tier's synthesis |
| 27 | + action, so escalating from fast to full never repeats synthesis. |
| 28 | + |
| 29 | +## The loop |
| 30 | + |
| 31 | +Build/test whatever is relevant to what you are changing — one design, |
| 32 | +one stage, one tier, or a whole suite: |
| 33 | + |
| 34 | +```sh |
| 35 | +# fastest signal for one design |
| 36 | +bazelisk test //flow/designs/asap7/jpeg:jpeg_encoder_syn_synth_test |
| 37 | + |
| 38 | +# the real gate for that design |
| 39 | +bazelisk test //flow/designs/asap7/jpeg:jpeg_encoder_syn_test |
| 40 | + |
| 41 | +# a single stage, for triage |
| 42 | +bazelisk build //flow/designs/asap7/jpeg:jpeg_encoder_syn_route |
| 43 | + |
| 44 | +# yosys A/B on an officially-SYN design |
| 45 | +bazelisk test //flow/designs/asap7/gcd:gcd_yosys_test |
| 46 | + |
| 47 | +# suite-wide status (asap7): fast tier, then the full flows |
| 48 | +bazelisk test --keep_going //flow/designs/asap7:syn_synth_test |
| 49 | +bazelisk test --keep_going //flow/designs/asap7:syn_test |
| 50 | +``` |
| 51 | + |
| 52 | +Then display what you have — deliberately a separate concern from |
| 53 | +deciding what to test or build: |
| 54 | + |
| 55 | +```sh |
| 56 | +bazelisk run //flow/designs:syn-dashboard |
| 57 | +``` |
| 58 | + |
| 59 | +It prints a GitHub-markdown TL;DR table of every forced-engine test |
| 60 | +result already in `bazel-testlogs` — pass/fail per tier and engine, |
| 61 | +failing rule fields, result age — without building anything. Paste it |
| 62 | +into a PR or issue as-is. Because the display reads whatever exists, |
| 63 | +the loop stays fast: iterate on the one target you care about, and the |
| 64 | +dashboard aggregates across everything you (or earlier sessions) have |
| 65 | +built so far. |
| 66 | + |
| 67 | +The suites include designs that fail OpenROAD-SYN today on purpose — |
| 68 | +they are a status signal, not a green-only gate. A build failure (e.g. |
| 69 | +synthesis dies) records no test result at all, so run the suites with |
| 70 | +`--keep_going` and check their output for `FAILED TO BUILD`; designs |
| 71 | +too slow for the suites are listed in `SYN_SLOW_DESIGNS` |
| 72 | +(`asap7/BUILD`) and reproduced individually. |
0 commit comments