Commit 93f78df
committed
fix: address gemini-code-assist nits on #4236
Two follow-ups from gemini's second review pass on #4236:
* `setattr -unset src *` in `write_state_hash` only strips src
attrs from objects in the *current* module. `write_state_hash`
runs before `hierarchy -check -top` in synth_canonicalize.tcl,
so the post-frontend design has many separate modules whose
src attrs (= file:line metadata) survive the strip and end up
in the hashed RTLIL, breaking path-independence between the
bazel sandbox and the classic-make build. Use `*/*` which
selects across all modules.
* The genMetrics.py regex for the new hash was anchored to a
bare `^`, while other extractors in the same file allow optional
leading whitespace. Add `\s*` after `^` so the extraction is
robust to any log wrapper that inserts indentation.
Signed-off-by: Øyvind Harboe <oyvind@ascenium.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>1 parent fffb07a commit 93f78df
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
0 commit comments