Repository navigation
Commit 24acdb3
committed
flow: log synthesized-netlist hash in synth.sh + clarify column label
flow/scripts/flow.sh:20 invokes flow/util/genElapsedTime.py after every
OpenROAD-stage run, which appends a one-line "Log Elapsed/s Peak
Memory/MB sha1sum result" summary to the stage's log. get_hash() already
understands .odb/.rtlil/.v, so it would naturally hash a yosys-stage's
result file — but flow/scripts/synth.sh (which runs yosys) didn't call
genElapsedTime.py, so the 1_2_yosys.v and 1_1_yosys_canonicalize.rtlil
hashes weren't logged.
Mirror flow.sh's epilogue inside synth.sh. Informational; sandbox
edge-cases (no matching log; result not declared as a bazel action
output) must not fail the synth action — route stderr into the log
rather than silently dropping it, so a real bug in the helper is still
discoverable after the fact.
Also rename the column header in genElapsedTime.py from
"sha1sum .odb [0:20)" → "sha1sum result [0:20)" since the column has
always shown whichever of .odb/.rtlil/.v existed — calling it ".odb"
was misleading for the yosys rows the new synth.sh epilogue emits.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>1 parent 4014255 commit 24acdb3
2 files changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
0 commit comments