Three-State Drivers in VHDL (cont.)
if G_L=‘0’ and SEL = “01” then X <= To_StdULogicVector(B);
else X <= (others => ‘Z’);
if G_L=‘0’ and SEL = “10” then X <= To_StdULogicVector(C);
else X <= (others => ‘Z’);
if G_L=‘0’ and SEL = “11” then X <= To_StdULogicVector(D);
else X <= (others => ‘Z’);