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
Is this a breaking change that will not be backwards-compatible? If yes, how so?
No
Documentation
Does the change require any updates to documentation? If so, where? Are they included?
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