Skip to content

Conversation

@james-ball-qualcomm
Copy link
Collaborator

See #385

… updated $ref syntax (matching certificates).
…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.
…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.
Copy link
Collaborator

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.

Copy link
Collaborator

@dhower-qc dhower-qc Mar 3, 2025

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
Copy link
Collaborator

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.

@AFOliveira AFOliveira mentioned this pull request Mar 10, 2025
@dhower-qc
Copy link
Collaborator

can this be closed, assuming it's covered by #584 ?

@james-ball-qualcomm
Copy link
Collaborator Author

Included in #584

@james-ball-qualcomm james-ball-qualcomm deleted the big-beautiful-refactoring branch May 16, 2025 07:02
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.

3 participants