Repository navigation
Commit 88c0590
synth: remove obsolete make memory report and clean up code
make memory printed the inferred-memory table of the last synthesis
from mem.json. Nothing in ORFS documents or calls it, and its
mem_hierarchical.json branch has read a file nothing writes since
hierarchical synthesis moved to estimates (d07d6d9). What is in use
is the SYNTH_MEMORY_MAX_BITS check, which stops a doomed synthesis
early.
That check needed mem.json, a JSON dump of the whole design written on
every synthesis, only so that mem_dump.py could find the memories in
it. synth.tcl already loops over the same memories in Tcl for
SYNTH_MOCK_LARGE_MEMORIES. The check now runs in that loop,
synth_memory_max_bits in flow/scripts/memories/max_bits.tcl, and
mem.json, mem_dump.py and make memory go.
Every synthesis now logs each inferred memory with its dimensions, a
ROM marked as one; the log lines are the ones the mock already wrote.
A read/write memory over the limit stops synthesis with an error that
names each one, its size and the limit. A ROM is not counted.
The design is still sorted where json -o mem.json sorted it: a yosys
backend sorts the design by name before it writes, and the passes after
it depend on that order. write_json /dev/null keeps the sort without the
file; dropping it changes results and would be its own change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>1 parent e53f73a commit 88c0590
7 files changed
Lines changed: 153 additions & 264 deletions
File tree
- flow
- scripts
- memories
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | 249 | | |
257 | 250 | | |
258 | 251 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
152 | 155 | | |
153 | | - | |
154 | | - | |
155 | 156 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
175 | 160 | | |
176 | 161 | | |
177 | 162 | | |
178 | 163 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
183 | 168 | | |
184 | 169 | | |
185 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
This file was deleted.
0 commit comments