Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

synth: Run clockgate for automatic ICG insertion #2657

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

openroad-ci
Copy link
Collaborator

Yosys 0.48 has gained clockgate -liberty command for rudimentary clock gate insertion triggered when a group of flip-flops share the same enable condition. Start using this command in the ORFS flow.

Cc @widlarizer

@@ -65,8 +65,10 @@ foreach cell $::env(DONT_USE_CELLS) {
# Technology mapping of flip-flops
# dfflibmap only supports one liberty file
if {[env_var_exists_and_non_empty DFF_LIB_FILE]} {
clockgate -liberty $::env(DFF_LIB_FILE) -min_net_size 8 {*}$dfflibmap_args
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The min_net_size value could be a flow parameter, do you want me to make it one? MIN_CLOCK_GATE_FF_GROUP ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@povik povik requested a review from maliberty January 6, 2025 13:21
@maliberty
Copy link
Member

maliberty commented Jan 6, 2025

The code looks fine but I'm confused where there are so many failures. I don't think gcd has any clock gaters yet it failed.

@povik
Copy link
Contributor

povik commented Jan 6, 2025

I don't think gcd has any clock gaters yet it failed.

I will take a look but I expect they get inferred because there's a shared enable on the flops

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants