Repository navigation
Commit 4577332
committed
synth: add opt-in ABC_USE_CLOCK_PERIOD to give ABC a delay target
synth_preamble.tcl passes ABC_CLOCK_PERIOD_IN_PS to Yosys as
"abc -script <file> ... -D <period>", but Yosys hands -D to ABC only
through the {D} placeholder of its built-in scripts and of inline
("-script +...") scripts. For a script file it just emits
"source <file>", so the period never reaches ABC and the synthesized
netlist does not depend on the clock. In addition, since 8ce4ee1 the
default taken from the SDC is no longer converted from ns to ps on
nangate45, sky130hd, sky130hs and gf180.
Add ABC_USE_CLOCK_PERIOD, default 0. When it is 1:
- the selected ABC script (abc_speed.script or abc_area.script) is
passed inline, with {D} appended to its &nf, map, upsize and dnsize
commands, so that Yosys substitutes "-D <ABC_CLOCK_PERIOD_IN_PS>";
- a default ABC_CLOCK_PERIOD_IN_PS read from SDC_FILE is converted to
ps with the time_unit of the first liberty file. A value set on the
command line or in a platform or design config is taken as ps, so
ihp-sg13g2, which converts in its config.mk, is not converted twice;
- synthesis stops with an error if no period is available, and the
abc_new branch prints a warning that the setting has no effect there.
With the default of 0 nothing changes: the abc arguments,
clock_period.txt and the synthesized netlists are the same as before.
Correct the description of ABC_CLOCK_PERIOD_IN_PS, which is not used by
STA, document ABC_USE_CLOCK_PERIOD, and regenerate variables.json and
FlowVariables.md.
Signed-off-by: Zheng Zhang <zz13240206005@gmail.com>1 parent a12d469 commit 4577332
6 files changed
Lines changed: 72 additions & 4 deletions
File tree
- docs/user
- flow/scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
345 | 346 | | |
346 | 347 | | |
347 | 348 | | |
| 349 | + | |
348 | 350 | | |
349 | 351 | | |
350 | 352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
287 | 291 | | |
288 | 292 | | |
289 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
215 | 236 | | |
216 | 237 | | |
217 | 238 | | |
| |||
227 | 248 | | |
228 | 249 | | |
229 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
230 | 255 | | |
231 | 256 | | |
232 | 257 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
221 | 233 | | |
222 | 234 | | |
223 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
443 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
444 | 450 | | |
445 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
446 | 464 | | |
447 | 465 | | |
448 | 466 | | |
| |||
0 commit comments