I have to following code for a Mux and it complies. When I go to the wave form it simulates perfectly. Thing is, I do not know what I am looking for, to see if it is correct.
Here is the code
Here is the code
Rich (BB code):
Library ieee;
Use ieee.std_logic_1164.all;
Library ieee;
Use ieee.std_logic_1164.all;
Entity Mux is
Port(
D : in std_logic_vector(3 downto 0);
S : in std_logic_vector(1 downto 0);
Y : out std_logic);
End Mux;
Architecture Joe_Structure of Mux is
Begin
with S select
Y<= D(0) when "00",
D(1) when "01",
D(2) when "10",
D(3) when "11";
End Joe_Structure;