Question
Using VHDL code, implement a 2-to-1 multiplexer. A 2^n -to-1MUX has 2^n inputs with n selectors. the 2-to-1 multiplexer outputs the input signal A when
Using VHDL code, implement a 2-to-1 multiplexer. A 2^n -to-1MUX has 2^n inputs with n selectors. the 2-to-1 multiplexer outputs the input signal A when the selector signal S is equal to 0 otherwise it outputs the input signal B. You need to implement 2 styles, one behavioral and one structural. The structural model uses only NOT, OR and AND gates. It realizes its Boolean function which only uses NOT, OR and AND gates. Use the following:
Library IEEE;
use IEEE.STD_LOGIC_ 1164.ALL;
use IEEE.NUMERCI_STD.ALL;
entity MUX_structural is
Port(A : in std_logic;
B : in std_logic;
S : in std_logic;
Z : out std_logic);
end MUX_structural;
In the behavioral description, describe the behavior of your target circuit and the synthesis tool creates a gate-level layout of your design. Use a single VHDL select assignment only. Use the following.
Library IEEE;
use IEEE.STD_LOGIC_ 1164.ALL;
use IEEE.NUMERCI_STD.ALL;
entity MUX_behavioral is
Port(A : in std_logic;
B : in std_logic;
S : in std_logic;
Z : out std_logic);
end MUX_behavioral;
Once completed, Write a testbench code and Show representative simulation plots of the 2-to-1 MUX circuits for all the possible input values.
So AGO -Z B H1Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started