-
Notifications
You must be signed in to change notification settings - Fork 603
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
expose typeEquivalent #1402
expose typeEquivalent #1402
Conversation
Maybe add a unit test and scaladoc if this method is going to be exposed publicly? |
Co-Authored-By: edwardcwang <edwardcwang@users.noreply.github.com>
Co-Authored-By: edwardcwang <edwardcwang@users.noreply.github.com>
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.
LGTM for me.
@ducky64 If you have no further objections, I'd like to get this merged. |
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.
lgtm - this looks good, thanks for writing up the scaladoc!
In the future, we might want to more thoroughly test this and its edge cases (particularly with unknown-width types), but it's experimental, and I'm not completely sure we've thought that much about these semantics (like how we haven't completely resolved connect semantics yet).
🎉🦆 |
Related issue:
Type of change: other enhancement
Impact: API addition (no impact on existing code)
Development Phase: proposal
Release Notes
This PR expose typeEquivalent method to DataMirror for compile time reflection to Data Type, it can help chiseltester with more strict
peek
/poke
constraint.