Construct the truth table from the Below VHDL code for the decoder.

Electric Motor Control
10th Edition
ISBN:9781133702818
Author:Herman
Publisher:Herman
Chapter22: Sequence Control
Section: Chapter Questions
Problem 6SQ: Draw a symbol for a solid-state logic element AND.
icon
Related questions
Question
Construct the truth table from the Below VHDL code for the decoder.
library IEEE;
use IEEE.STD LOGIC 1164 ALL;
entity dec2to4 is
Port ( enable : in STD LOGIC;
sw : in STD LOGIC VECTOR (1 downto 0);
led out STD LOGIC VECTOR (3 downto 0));
end dec2to4;
architecture Behavioral of dec2to4 is
begin
led <="0000" when enable='0' else
"0001" when sw="00" else
"0010" when sw="01" else
"0100" when sw="10" else
"1000";
end Behavioral:
Transcribed Image Text:library IEEE; use IEEE.STD LOGIC 1164 ALL; entity dec2to4 is Port ( enable : in STD LOGIC; sw : in STD LOGIC VECTOR (1 downto 0); led out STD LOGIC VECTOR (3 downto 0)); end dec2to4; architecture Behavioral of dec2to4 is begin led <="0000" when enable='0' else "0001" when sw="00" else "0010" when sw="01" else "0100" when sw="10" else "1000"; end Behavioral:
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Electric Motor Control
Electric Motor Control
Electrical Engineering
ISBN:
9781133702818
Author:
Herman
Publisher:
CENGAGE L