kuznia-rdzeni / coreblocks

RISC-V out-of-order core for education and research purposes
https://kuznia-rdzeni.github.io/coreblocks/
BSD 3-Clause "New" or "Revised" License
33 stars 13 forks source link

Intuitive condition statement #684

Closed tilk closed 2 months ago

tilk commented 2 months ago

This PR slightly modifies the semantics of condition to make it simpler to use in typical use cases. The condition of the default branch is now the negation of the alternative of the conditions of all the other cases. This makes the default branch mutually exclusive with the other branches, which makes the weird and not really useful fallover behavior go away. Uses of condition were changed to make use of the modified semantics.