Introduction
Selected assignment lets you choose a value for a signal based on different conditions in a clear and simple way.
When you want to set a signal to different values depending on another signal's value.
When you have multiple options and want to pick one cleanly without many if-else statements.
When designing hardware logic that depends on a control signal to select outputs.
When you want your code to be easy to read and maintain by clearly showing choices.