0
14kviews
Design a VHDL Code for Multiplexer & Demultiplexer.

Subject: Digital System Design

Topic: Introduction to VHDL

Difficulty: High

1 Answer
0
537views

VHDL Code for 4:1 Mux:

library IEEE;

use IEEE.STD_LOGIC_1164.all;

entity mux_4to1 is

port(

A,B,C,D : in STD_LOGIC;

S0,S1: in STD_LOGIC;

Z: out STD_LOGIC

);

end mux_4to1;

architecture bhv of mux_4to1 is

begin

process (A,B,C,D,S0,S1) is

begin

if (S0 ='0' and S1 = '0') then

Z <= A;

elsif (S0 ='1' …

Create a free account to keep reading this post.

and 4 others joined a min ago.

Please log in to add an answer.