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

read_liberty extensions #4682

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

povik
Copy link
Member

@povik povik commented Oct 23, 2024

What are the reasons/motivation for this change?

This addresses a few things:

  • read_liberty -wb can only read some cells (not those with busses), but combining it with a separate read_liberty -lib call as fallback doesn't always work well because of how the command handles re-definitions, see commit 2f2726d with a fix
  • related to above, new -ignore_busses option
  • area and capacitance attributes for e.g. user inspection or to find the smallest gate implementing a particular function

Also I checked in some real-world Liberty data to use in tests, and have written tests using those (incl. for the existing -unit_delay option)

@povik
Copy link
Member Author

povik commented Oct 28, 2024

I want to get rid of the last commit 5e2b37f checking in unfiltered data but that is blocked by #4681

Copy link
Collaborator

@widlarizer widlarizer left a comment

Choose a reason for hiding this comment

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

So far the PR seems sound and tested. Beware that the foundry files raw and filtered add up to over 2MB. Source exports of Yosys add up to 23M, so it's kind of a significant size change. I suggest gzipping the large files

@@ -462,6 +462,9 @@ struct LibertyFrontend : public Frontend {
log(" -ignore_miss_data_latch\n");
log(" ignore latches with missing data and/or enable pins\n");
log("\n");
log(" -ignore_busses\n");
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: wiktionary says "buses is the usual plural of bus in both British and American English, ignoring the typical doubling of consonants"

Copy link
Member Author

Choose a reason for hiding this comment

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

Let me fix that then

tests/liberty/foundry_data/.gitignore Outdated Show resolved Hide resolved
@povik
Copy link
Member Author

povik commented Nov 11, 2024

Beware that the foundry files raw and filtered add up to over 2MB

The raw files are supposed to be dropped from the PR once we fix #4681

@widlarizer
Copy link
Collaborator

widlarizer commented Nov 11, 2024

  • Check before merge that there are no commits with big files even if removed in subsequent commit to save .git directory size growth (I think that's how that works?)

@povik
Copy link
Member Author

povik commented Nov 12, 2024

I want to get rid of the last commit 5e2b37f checking in unfiltered data

Force pushed to remove the unfiltered data, and to check in gzipped versions of the filtered data

@povik povik marked this pull request as ready for review November 12, 2024 12:31
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.

2 participants