Skip to content

[FIRRTL] Invalids as constants in InferDomains#10022

Draft
seldridge wants to merge 1 commit intomainfrom
dev/seldridge/firrtl-infer-domains-invalid-value
Draft

[FIRRTL] Invalids as constants in InferDomains#10022
seldridge wants to merge 1 commit intomainfrom
dev/seldridge/firrtl-infer-domains-invalid-value

Conversation

@seldridge
Copy link
Copy Markdown
Member

Treat invalid values as constants in the InferDomains pass.

I'm not entirely sure that this is correct given that the FIRRTL spec says
that an invalid value can be any value. Hence, there exist both legal and
illegal values that could be chosen. Constants are fine. However, a
value could be chosen that is on a different domain which would then be
illegal. It seems wrong to reject a circuit that has a legal, known
solution. However, this then puts the burden on the downstream assigner
of invalid values to choose a legal value.

AI-assisted-by: Augment (Sonnet 4.5)

Treat invalid values as constants in the InferDomains pass.

I'm not entirely sure that this is correct given that the FIRRTL spec says
that an invalid value can be any value.  Hence, there exist both legal and
illegal values that could be chosen.  Constants are fine.  However, a
value could be chosen that is on a different domain which would then be
illegal.  It seems wrong to reject a circuit that has a legal, known
solution.  However, this then puts the burden on the downstream assigner
of invalid values to choose a legal value.

AI-assisted-by: Augment (Sonnet 4.5)
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
@seldridge seldridge requested review from dtzSiFive and rwy7 March 24, 2026 05:50
@fabianschuiki
Copy link
Copy Markdown
Contributor

Results of circt-tests run for 2e1aa58 compared to results for f2ee27b:

sv-tests

Delta Error
0 total change

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