Altera_Forum
Honored Contributor
14 years agoabout Tri-State Logic gate
i want to make a Tri-State Logic gate,but the putout is always high impedance .why
here's my code; library ieee; use ieee.std_logic_1164.all; entity e is port( datain:in std_logic_vector(7 downto 0); enable:in std_logic; dataout:out std_logic_vector(7 downto 0) ); end e; architecture b of e is begin process(enable,datain) begin if (enable='0') then dataout<="ZZZZZZZZ"; else dataout<=datain; end if; end process; end b;