Open
Conversation
No changes to default behavior or to generation of existing variants. I tested by regenerating all VexRiscv variant Verilogs, to ensure that I did not accidentally introduce any behavior changes. There were no changes other than the embedded hashes. Signed-off-by: Tim Callahan <tcal@google.com>
Dolu1990
reviewed
Oct 11, 2021
| for (idx <- 0 until csrCount) { | ||
|
|
||
| val cycleCounter = Reg(UInt(32 bits)) | ||
| val enable = Reg(UInt(32 bits)) // only the LSB is used |
Collaborator
There was a problem hiding this comment.
val enable = Reg(Bool()) init(False)
...
csrService.w( 0xB04 + idx * 2 + 1, enable)
should be fine, i guess :)
Member
Author
There was a problem hiding this comment.
It seems the extra 31 registers did get trimmed away since they were not readable and not used, but I have made the change to make the enable explicitly Bool.
Collaborator
There was a problem hiding this comment.
Hoooo yes, you are right, haven't seen it
Signed-off-by: Tim Callahan <tcal@google.com>
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.
No changes to default behavior or to generation
of existing variants.
I tested by regenerating all VexRiscv variant Verilogs,
to ensure that I did not accidentally introduce any behavior
changes. There were no changes other than the embedded hashes.
Signed-off-by: Tim Callahan tcal@google.com