Repository navigation
Added INFER_CLKGATES variable to enable inference of gated clocks - #4425
Conversation
tclfmt updates Signed-off-by: Jeff Ng <jeffng@precisioninno.com>
There was a problem hiding this comment.
Code Review
This pull request introduces a new flow variable, INFER_CLKGATES, to enable Yosys clock gate inference during the synthesis stage. It updates the documentation, variables configuration files, and the synthesis script (synth.tcl) to invoke the clockgate command. The reviewer identified a critical bug in synth.tcl where passing {*}$lib_args to the Yosys clockgate command will cause a syntax error, as it does not accept liberty files. The reviewer suggested conditionally passing CLKGATE_MAP_FILE instead. Additionally, the reviewer recommended updating the description of INFER_CLKGATES across the documentation and configuration files to clarify that Yosys uses CLKGATE_MAP_FILE rather than Liberty directly to map clock gating cells.
🔍 QoR checkMetrics reflect the PR merge build — i.e. what will land on the target branch. Advisory — results are log-only and do not affect build status. The authoritative QoR gate remains the local rules-file check. Commit 61 design(s) checked — 0 with regression(s), 0 without a comparable baseline.
|
If set, yosys infers gated clocks and inserts clock gaters based on Liberty description.
Could provide additional controls in the future to control which active high and active low clock gaters are used. Would have to expose the option to tie the scan ports, as well.