-
Notifications
You must be signed in to change notification settings - Fork 615
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
Fix Decodetable #3563
Fix Decodetable #3563
Conversation
sequencer
commented
Oct 2, 2023
- bug fix for decoderbundle not being able to be lhs op
- add default field for DecodeField for DecodeTable non X case
a80c2e5
to
7fda4a1
Compare
Ask for review, cc @jackkoenig |
|
||
val table: TruthTable = TruthTable( | ||
patterns.map { op => op.bitPat -> fields.reverse.map(field => field.genTable(op)).reduce(_ ## _) }, | ||
fields.reverse.map(_.default).reduce(_ ## _) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this part of the change, this feels very different than the previous use of BitPat.dontCare
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because some time we don't use don't care as our default selection(e.g. illinstr
will default be false), thus I added a default
field to let user choose their own default.
ebff827
to
5ac7402
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved but please add a test.
ba99e27
to
334172d
Compare
* bug fix for decoderbundle not being able to be lhs op * add default field for DecodeField for DecodeTable non X case * add test to show DecodeField default use case (cherry picked from commit 7466789)
* bug fix for decoderbundle not being able to be lhs op * add default field for DecodeField for DecodeTable non X case * add test to show DecodeField default use case (cherry picked from commit 7466789)