Posted by Saradwata Bandyopadhyay on 01-03-2025
Here is the solution for the above question =>
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity MUX4_1 is
port(i:in STD_LOGIC_VECTOR(3 downto 0);
s:in STD_LOGIC_VECTOR(1 downto 0);
y: out STD_LOGIC);
end MUX4_1;
architecture dataflow of MUX4_1 is
begin
with s select
y<= i(0) when"00",
i(1) when"11",
i(2) when"10",
i(3) when others;
end dataflow;
You can directly download the Source Code and the Model Sim application from the
links below =>
Login to Comment.