-
Notifications
You must be signed in to change notification settings - Fork 78
Big beautiful refactoring #386
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
Conversation
… updated $ref syntax (matching certificates).
…software-src/riscv-unified-db into big-beautiful-refactoring
…if a different design was passed to it which seems bizzare since it goes out of its way to support having a different type for different designs. So, I modified it to work like the type cache in ast and do what I think it wanted to do in the first place.
…software-src/riscv-unified-db into big-beautiful-refactoring
…ke it clearer the return type since I found bugs in the code related to this.
…n't have (i.e. in @config). Also true for implemented and prohibited.
…ns, CSRs, and traps that aren't in the configuration). Still need to fix traps and interrupts.
…chitecture inheritence from Architecture.
…seems to have failed incorrectly).
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.
With Ruby's Duck Typing, interface classes like these aren't necessary for mocking. Any class that responds to the function you are testing works -- the interface doesn't add anything.
We should get rid of IDesign.
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'm still struggling with the need for this class. It has the same methods as a ConfiguredArchitecture; what is it adding? Seems like the following works just as well:
Config < PartialConfig \
< ConfiguredArchitecture < Portfolio < {Profile, Certificate}
Architecture /
Remind me what the benefit is?
| attr_reader :name | ||
|
|
||
| # @return [Integer] 32 for RV32I or 64 for RV64I | ||
| attr_reader :base |
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.
How can base be in the generic Architecture class? Base is a parameter.
|
can this be closed, assuming it's covered by #584 ? |
|
Included in #584 |
See #385