Skip to content

Commit 0d94e4d

Browse files
committed
flow/README.md: lead yosys-idempotency triage with the hash warning
The previous bucket-#2 text walked the reader through the symptom ("bazel-built yosys and make-built yosys produce different `1_2_yosys.v`") before pointing at the diagnostic. Now that `rules-base.json` carries warning-level `synth__canonical_netlist__hash` and `synth__netlist__hash` entries (a5839b8), the diagnostic IS the symptom: `checkMetadata.py` emits [WARN] synth__canonical_netlist__hash differs test: <bazel> == <make> [WARN] synth__netlist__hash differs test: <bazel> == <make> right above the failing QoR row. Lead with that and keep `@bazel-orfs//:make-yosys-netlist` (+ the reverse-direction `@bazel-orfs//:yosys-check`) as the per-stage `.odb` SHA-matrix proof when the warning alone isn't enough. Drop the `SYNTH_NETLIST_FILES` and `BLOCKS=` parenthetical — that level of detail belongs in `@bazel-orfs//:TESTING.md`, which the link already points at. Dress-rehearsed on `//flow/designs/asap7/uart:uart_test`: after bumping `rules-base.json` from the classic make flow (ca657c9) the bazel `_test` fires both `[WARN] …__hash differs` lines exactly as described, alongside the pre-existing `detailedroute__route__wirelength` failure. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent ca657c9 commit 0d94e4d

1 file changed

Lines changed: 17 additions & 12 deletions

File tree

‎flow/README.md‎

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,24 +101,29 @@ For each failing `<design>_test`, decide which bucket it falls into:
101101
bazel-orfs validates against.
102102

103103
2. **Yosys-environment false positive (OpenROAD is idempotent given
104-
the same netlist).** Bazel-built yosys and make-built yosys
105-
produce different `1_2_yosys.v` for the same RTL, and that
106-
netlist drift can move QoR past `rules-base.json` thresholds
107-
even when OpenROAD itself is bit-deterministic. Confirm with:
104+
the same netlist).** `rules-base.json` carries SHA-1 fingerprints
105+
of `1_1_yosys_canonicalize.rtlil` and `1_2_yosys.v`
106+
(`synth__canonical_netlist__hash` / `synth__netlist__hash`) at
107+
warning level, so a bazel-yosys vs make-yosys netlist drift
108+
surfaces in `checkMetadata.py` as:
109+
110+
[WARN] synth__canonical_netlist__hash differs test: <bazel-sha> == <make-sha>
111+
[WARN] synth__netlist__hash differs test: <bazel-sha> == <make-sha>
112+
113+
A QoR threshold breaking together with that warning is almost
114+
always yosys-env drift. Confirm with the per-stage `.odb` SHA
115+
matrix from `@bazel-orfs//:make-yosys-netlist` (feeds make's
116+
netlist into bazel) or its reverse-direction sibling
117+
`@bazel-orfs//:yosys-check` (bazel's netlist into make):
108118

109119
```bash
110120
bazelisk run @bazel-orfs//:make-yosys-netlist \
111121
//flow/designs/asap7/<design>:<design>_test
112122
```
113123

114-
All stages MATCH in the `bazel+make-netlist` column → false
115-
positive, ignore (or relax the threshold). Any DIFFER → real
116-
bazel-vs-make OpenROAD divergence — file the per-stage SHA
117-
matrix as an issue. `@bazel-orfs//:yosys-check` is the
118-
reverse-direction wrapper (bazel's netlist into make).
119-
120-
Full workflow + interpretation, the `SYNTH_NETLIST_FILES` manual
121-
override, and the `BLOCKS=` caveat live in
124+
All stages MATCH → yosys-only drift, relax the threshold; any
125+
DIFFER → real bazel-vs-make OpenROAD divergence, file the matrix
126+
as an issue. Full workflow lives in
122127
[`@bazel-orfs//:TESTING.md`](https://github.com/The-OpenROAD-Project/bazel-orfs/blob/main/TESTING.md)
123128
under "Debugging OpenROAD determinism (bazel vs make)".
124129

0 commit comments

Comments
 (0)