rohd icon indicating copy to clipboard operation
rohd copied to clipboard

Add checks to prevent the same `Conditional` from being used multiple times

Open mkorbel1 opened this issue 2 years ago • 0 comments

Motivation

If someone uses the same Conditional object multiple times in the same _Always or in different _Always blocks, it can cause unexpected behavior and simulation/synthesis mismatches.

Desired solution

There should be an explicit check that Conditionals are not reused. Perhaps a build-time check where each Conditional is assigned a parent _Always, and the _Always confirms there are no duplicates within itself?

mkorbel1 avatar Mar 29 '22 21:03 mkorbel1