-
Notifications
You must be signed in to change notification settings - Fork 641
Make BitPat accept ChiselEnum #2327
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
base: main
Are you sure you want to change the base?
Conversation
Since |
That's neat @ekiwi! Even better... thanks! |
If directly cast to Think about another option:
There is a common use case that we need match multiple Enum which a single circuit. |
This is an algorithm problem, if you have multiple encodings, for example, s0 -> 010, s1 -> 110, s2 -> 001.
to match a selection to |
As an aside, I think we might need more documentation on espresso requirements, install instructions and Chisel dependency on it (like what can and can't be made without it). |
I am interested in this functionality. Do we know why this was never merged? |
Contributor Checklist
docs/src
?Type of Improvement
API Impact
No impact to current API, the PR makes BitPat accept ChiselEnum as input, converting to it's value.
Backend Code Generation Impact
No change.
Desired Merge Strategy
Release Notes
BitPat now accept ChiselEnum as an input.
Reviewer Checklist (only modified by reviewer)
3.3.x
, [small] API extension:3.4.x
, API modification or big change:3.5.0
)?Please Merge
?