Home ] Up ] Structure ] Dataflow ] When Else ] [ With Select ] Array[ Index] ]
With Select

Up ]

4x1 Multiplexer - Concurrent VHDL Code
 
bullet

The with .. Select will be the natural choice if you need all combination of the selection bits (like in this case)

bullet

You must assign all combinations of selection.

bullet

Your allowed to separate more constants with the | operator

bullet

You can use the when others to cover the rest.

bullet

Please note - if you replace others with "11" in the example will you get an error (how come?)

bullet

The Selection values must be constants - no signal allowed.