abc: new option to pass extra ABC read_lib args#5721
Merged
Conversation
Goubermouche
requested changes
May 6, 2026
Contributor
Goubermouche
left a comment
There was a problem hiding this comment.
Seems sound to me, but please apply the suggested changes.
Goubermouche
requested changes
May 7, 2026
Goubermouche
approved these changes
May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds an option
-liberty_argsto theabccommand when performing technology mapping with liberty libraries. The option allows user to pass custom arguments to ABC's read_lib command.This pull request can be regarded as a revival of #4343 but with minimal changes focusing on the
-liberty_argsfeature and without other code restructurings (e.g., the introduction of user_script in #4343).As noted in #4343, the main purpose of adding this option is to control how ABC generates its internal delay model from timing data in liberty files. This can improve mapping quality by enabling users to tune ABC’s delay modeling. For example, we tested on 12 IWLS'05/OpenCores designs, mapped to NanGate45 library. By adding
-liberty_args "-G 250", the averaged (geometric mean) delay improvement (reported by post-synthesis STA) is 12.0%, at the cost of a 4.6% area increase.Although #4343 has been replaced by #4592 which introduces larger scaled customization of ABC flow, it involves many new features and code refactoring, and possibly requires adding a new command. In contrast, this pull request makes a small modification to the existing
abccommand to increase the flexibility for mapping quality improvement.