(i) Below (figure 1) is an example of a VHDL code for a multiplexer. "00000010000001"WHEN "10000",-Input A "00000010000001"WHEN "10001",- "00000010000001"WHEN "10010". "00000010000001"WHEN "10011". "00000011001111"WHEN "10100", "00000011001111"WHEN "10101", "00000011001111"WHEN "10110", "00000011001111"WHEN "10111", "10011110000001"WHEN "11000", "10011110000001"WHEN "11001", --multiplexer.vhd -Common Multiplexer LIBRARY ieee; USE ieee.std_logic_1164.ALL; ENTITY multiplexer IS PORT(e1, d3, d2, dl, d0 : IN STD LOGIC: a,b.c,d,e.f.g.h.ij.k.m,n:OUT STD_LOGIC);: END multiplexer; ARCHITECTURE mult OF multiplexer IS SIGNAL input : STD LOGIC_VECTOR (4 downto 0); SIGNAL output : STD LOGIC VECTOR (13 downto 0); BEGIN input c el & d3 & d2 & d1 & do; WITH input SELECT output ce "00000010000001"WHEN "00000",--Input B "00000011001111"WHEN "00001", "10011110000001"WHEN "00010", "10011111001111"WHEN "00011", "00000010000001"WHEN "00100", "00000011001111"WHEN "00101", "10011110000001"WHEN "00110", "10011111001111"WHEN "00111". "00000010000001"WHEN "01000", "00000011001111"WHEN "01001". "10011110000001"WHEN "01010", "10011111001111"WHEN "01011", "00000010000001"WHEN "01100", "00000011001111"WHEN "01101", "10011110000001 WHEN "01110", "10011111001111"WHEN "01111",- "10011110000001"WHEN "11010", "10011110000001"WHEN "11011", "10011111001111"WHEN "11100", "10011111001111"WHEN "11101", "10011111001111"WHEN "11110", 10011111001111"WHEN "11111"; -"00000010000001" -00 -"00000011001111"-01 -"10011110000001" -10 --"10011111001111"-11 --Separate the output vector to make individual pin outputs. he output(13); ie output(12): je output(11): kc= output(10); |e output(9): mc= output(8); nc output(7); a<= output(6); be output(5); C= output(4); de output(3): ec output(2): fe output(1): g= output(0); END mult; Figure 1 (a) How many bits of input(s) and output(s) are declared in this code? Which line of code supports your answer?
(i) Below (figure 1) is an example of a VHDL code for a multiplexer. "00000010000001"WHEN "10000",-Input A "00000010000001"WHEN "10001",- "00000010000001"WHEN "10010". "00000010000001"WHEN "10011". "00000011001111"WHEN "10100", "00000011001111"WHEN "10101", "00000011001111"WHEN "10110", "00000011001111"WHEN "10111", "10011110000001"WHEN "11000", "10011110000001"WHEN "11001", --multiplexer.vhd -Common Multiplexer LIBRARY ieee; USE ieee.std_logic_1164.ALL; ENTITY multiplexer IS PORT(e1, d3, d2, dl, d0 : IN STD LOGIC: a,b.c,d,e.f.g.h.ij.k.m,n:OUT STD_LOGIC);: END multiplexer; ARCHITECTURE mult OF multiplexer IS SIGNAL input : STD LOGIC_VECTOR (4 downto 0); SIGNAL output : STD LOGIC VECTOR (13 downto 0); BEGIN input c el & d3 & d2 & d1 & do; WITH input SELECT output ce "00000010000001"WHEN "00000",--Input B "00000011001111"WHEN "00001", "10011110000001"WHEN "00010", "10011111001111"WHEN "00011", "00000010000001"WHEN "00100", "00000011001111"WHEN "00101", "10011110000001"WHEN "00110", "10011111001111"WHEN "00111". "00000010000001"WHEN "01000", "00000011001111"WHEN "01001". "10011110000001"WHEN "01010", "10011111001111"WHEN "01011", "00000010000001"WHEN "01100", "00000011001111"WHEN "01101", "10011110000001 WHEN "01110", "10011111001111"WHEN "01111",- "10011110000001"WHEN "11010", "10011110000001"WHEN "11011", "10011111001111"WHEN "11100", "10011111001111"WHEN "11101", "10011111001111"WHEN "11110", 10011111001111"WHEN "11111"; -"00000010000001" -00 -"00000011001111"-01 -"10011110000001" -10 --"10011111001111"-11 --Separate the output vector to make individual pin outputs. he output(13); ie output(12): je output(11): kc= output(10); |e output(9): mc= output(8); nc output(7); a<= output(6); be output(5); C= output(4); de output(3): ec output(2): fe output(1): g= output(0); END mult; Figure 1 (a) How many bits of input(s) and output(s) are declared in this code? Which line of code supports your answer?
Introductory Circuit Analysis (13th Edition)
13th Edition
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:Robert L. Boylestad
Chapter1: Introduction
Section: Chapter Questions
Problem 1P: Visit your local library (at school or home) and describe the extent to which it provides literature...
Related questions
Question
![(i)
Below (figure 1) is an example of a VHDL code for a multiplexer.
--multiplexer.vhd
--Common Multiplexer
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
ENTITY multiplexer IS
PORT(el, d3, d2, d1, d0 : IN STD_LOGIC;
a,b.c,d,e,f.g.h.ij.k,lm,n:OUT STD LOGIC);
END multiplexer;
ARCHITECTURE mult OF multiplexer IS
SIGNAL input : STD LOGIC_VECTOR (4 downto 0);
SIGNAL output : STD LOGIC_VECTOR (13 downto 0);
BEGIN
input ca el & d3 & d2 & d1 & d0;
WITH input SELECT
"00000010000001"WHEN "10000",--Input A
"00000010000001"WHEN "10001",-
"00000010000001"WHEN "10010",-
"00000010000001"WHEN "10011",-
"00000011001111"WHEN "10100"
"00000011001111"WHEN "10101
"00000011001111"WHEN "10110"
"00000011001111"WHEN "10111"
"10011110000001"WHEN "11000"
"10011110000001"WHEN "11001"
"10011110000001"WHEN "11010,
"10011110000001"WHEN "11011"
"10011111001111"WHEN "11100"
"100111110011i1"WHEN "11101",-
"10011111001111"WHEN "11110",--
"10011111001111"WHEN "11111":-.
"00000010000001" -00
--"00000011001111"-01
"10011110000001" -10
"10011111001111" -11
--Separate the output vector to make individual pin outputs.
h<= output(13);
ice output(12);
j<« output(11):
kc- output(10);
|<e output(9);
mc= output(8);
nc output(7);
a c= output(6):
b<= output(5);
C= output(4);
dc output(3);
ec= output(2);
fe output(1);
g<= output(0);
END mult:
output c
"00000010000001"WHEN "00000",--Input B
"00000011001111"WHEN "00001",--
"10011110000001"WHEN "00010",-
"10011111001111"WHEN "00011",
"00000010000001"WHEN "00100",
"00000011001111"WHEN "00101",
"10011110000001"WHEN "00110",
"10011111001111"WHEN "00111",
"00000010000001"WHEN "01000",
"00000011001111"WHEN "01001
"10011110000001"WHEN "01010",
"10011111001111"WHEN "01011".
"00000010000001"WHEN "01100",
"00000011001111"WHEN "01101",-
"10011110000001" WHEN "01110",-
"100111110011l1"WHEN "01111",--
Figure 1
(a) How many bits of input(s) and output(s) are declared in this code? Which line of code
supports your answer?](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Ff0a085a4-775b-4d70-b6ef-d01570448a74%2F2fa1af85-51c6-4edf-afc8-fa503221fabd%2Fewy245r_processed.jpeg&w=3840&q=75)
Transcribed Image Text:(i)
Below (figure 1) is an example of a VHDL code for a multiplexer.
--multiplexer.vhd
--Common Multiplexer
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
ENTITY multiplexer IS
PORT(el, d3, d2, d1, d0 : IN STD_LOGIC;
a,b.c,d,e,f.g.h.ij.k,lm,n:OUT STD LOGIC);
END multiplexer;
ARCHITECTURE mult OF multiplexer IS
SIGNAL input : STD LOGIC_VECTOR (4 downto 0);
SIGNAL output : STD LOGIC_VECTOR (13 downto 0);
BEGIN
input ca el & d3 & d2 & d1 & d0;
WITH input SELECT
"00000010000001"WHEN "10000",--Input A
"00000010000001"WHEN "10001",-
"00000010000001"WHEN "10010",-
"00000010000001"WHEN "10011",-
"00000011001111"WHEN "10100"
"00000011001111"WHEN "10101
"00000011001111"WHEN "10110"
"00000011001111"WHEN "10111"
"10011110000001"WHEN "11000"
"10011110000001"WHEN "11001"
"10011110000001"WHEN "11010,
"10011110000001"WHEN "11011"
"10011111001111"WHEN "11100"
"100111110011i1"WHEN "11101",-
"10011111001111"WHEN "11110",--
"10011111001111"WHEN "11111":-.
"00000010000001" -00
--"00000011001111"-01
"10011110000001" -10
"10011111001111" -11
--Separate the output vector to make individual pin outputs.
h<= output(13);
ice output(12);
j<« output(11):
kc- output(10);
|<e output(9);
mc= output(8);
nc output(7);
a c= output(6):
b<= output(5);
C= output(4);
dc output(3);
ec= output(2);
fe output(1);
g<= output(0);
END mult:
output c
"00000010000001"WHEN "00000",--Input B
"00000011001111"WHEN "00001",--
"10011110000001"WHEN "00010",-
"10011111001111"WHEN "00011",
"00000010000001"WHEN "00100",
"00000011001111"WHEN "00101",
"10011110000001"WHEN "00110",
"10011111001111"WHEN "00111",
"00000010000001"WHEN "01000",
"00000011001111"WHEN "01001
"10011110000001"WHEN "01010",
"10011111001111"WHEN "01011".
"00000010000001"WHEN "01100",
"00000011001111"WHEN "01101",-
"10011110000001" WHEN "01110",-
"100111110011l1"WHEN "01111",--
Figure 1
(a) How many bits of input(s) and output(s) are declared in this code? Which line of code
supports your answer?
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Introductory Circuit Analysis (13th Edition)](https://www.bartleby.com/isbn_cover_images/9780133923605/9780133923605_smallCoverImage.gif)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
![Delmar's Standard Textbook Of Electricity](https://www.bartleby.com/isbn_cover_images/9781337900348/9781337900348_smallCoverImage.jpg)
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
![Introductory Circuit Analysis (13th Edition)](https://www.bartleby.com/isbn_cover_images/9780133923605/9780133923605_smallCoverImage.gif)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
![Delmar's Standard Textbook Of Electricity](https://www.bartleby.com/isbn_cover_images/9781337900348/9781337900348_smallCoverImage.jpg)
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
![Fundamentals of Electric Circuits](https://www.bartleby.com/isbn_cover_images/9780078028229/9780078028229_smallCoverImage.gif)
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:
9780078028229
Author:
Charles K Alexander, Matthew Sadiku
Publisher:
McGraw-Hill Education
![Electric Circuits. (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780134746968/9780134746968_smallCoverImage.gif)
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:
9780134746968
Author:
James W. Nilsson, Susan Riedel
Publisher:
PEARSON
![Engineering Electromagnetics](https://www.bartleby.com/isbn_cover_images/9780078028151/9780078028151_smallCoverImage.gif)
Engineering Electromagnetics
Electrical Engineering
ISBN:
9780078028151
Author:
Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:
Mcgraw-hill Education,