-
Notifications
You must be signed in to change notification settings - Fork 68
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
Cases #386
Cases #386
Conversation
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.
Looking good! few more changes
Your markdown failure is my fault, fixing in #398 |
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 think this looks good to me, great work!
Just need to get the CI checks passing, looks like a minor lint issue.
Description & Motivation
Implemented a shorthand for creating a Conditional and Case. This is for the scenario where it is needed to assign/create a signal based on a condition, similar to a mux. The output is a single
Logic
signal. The width of the output signal is optional and if not specified, is inferred from the width of the conditions.Related Issue(s)
Fix #304
Testing
Added 5 new testcases which test the expression and condition match as well as width mismatch exceptions.
Backwards-compatibility
No
Documentation
Yes, API docs