Exemples : MUX 4→1
Implémentation complète d'un multiplexeur 4 vers 1 selon différents styles VHDL.
Le multiplexeur (MUX)
Un multiplexeur sélectionne une entrée parmi N selon un signal de sélection.
Table de vérité d'un MUX 4→1 :
i_sel | o_y |
|---|---|
"00" | i_d0 |
"01" | i_d1 |
"10" | i_d2 |
"11" | i_d3 |
Style 1 : affectation conditionnelle concurrente
La solution la plus compacte pour les petits MUX.
library IEEE;
use IEEE.STD_LOGIC_1164.ALL