Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@seldridge
Copy link
Member

Weaken the check used by the ExtractInstances pass to determine what is a clock gate. Change this from requiring that the defname of an external module is exactly "EICG_wrapper" to instead only needing to end with "EICG_wrapper". This is done so that this will work with Chisel-time prefixing and that we would actually like to prefix these clock gates.

Commentary: this string matching is terrible. I realize that. However, this is a legacy API that is intending to be replaced.

Weaken the check used by the `ExtractInstances` pass to determine what is
a clock gate.  Change this from requiring that the defname of an external
module is exactly "EICG_wrapper" to instead only needing to end with
"EICG_wrapper".  This is done so that this will work with Chisel-time
prefixing and that we would actually _like_ to prefix these clock gates.

Commentary: this string matching is terrible.  I realize that.  However,
this is a legacy API that is intending to be replaced.

Signed-off-by: Schuyler Eldridge <[email protected]>
@seldridge seldridge requested a review from darthscsi as a code owner December 4, 2024 20:15
@seldridge seldridge requested a review from jackkoenig December 4, 2024 20:15
@seldridge seldridge merged commit 61b18e7 into main Dec 4, 2024
4 checks passed
@seldridge seldridge deleted the dev/seldridge/make-clock-gate-extraction-work-with-Chisel-time-prefixing branch December 4, 2024 20:46
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