intel / rohd

The Rapid Open Hardware Development (ROHD) framework is a framework for describing and verifying hardware in the Dart programming language.
https://intel.github.io/rohd-website
BSD 3-Clause "New" or "Revised" License
374 stars 67 forks source link

Cases #386

Closed mjayasim9 closed 1 year ago

mjayasim9 commented 1 year ago

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

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?

Yes, API docs

mkorbel1 commented 1 year ago

Your markdown failure is my fault, fixing in https://github.com/intel/rohd/pull/398