VHDL program for implementing a 8:1 multiplexer using if-else statements.
--VHDL program for implementing a 8 to 1 multiplexer using if-else statements.
library IEEE;
use IEEE.STD_LOGIC_1164.all;
entity multiplexer8_1_if_else is
port(
din : in STD_LOGIC_VECTOR(7 downto 0);
sel : in STD_LOGIC_VECTOR(2 downto 0);
dout : out STD_LOGIC
);
end multiplexer8_1_if_else;
architecture multiplexer8_1_arc of multiplexer8_1_if_else is
begin
dout <= din(7) when (sel="000") else
din(6) when (sel="001") else
din(5) when (sel="010") else
din(4) when (sel="011") else
din(3) when (sel="100") else
din(2) when (sel="101") else
din(1) when (sel="110") else
din(0);
end multiplexer8_1_arc;
For Safe Downloading of this program file please visit :-
Labels: 8:1 multiplexer, if else, Model Sim, program, VHDL
0 Comments:
Post a Comment
Please feel free to ask your questions
Subscribe to Post Comments [Atom]
<< Home