library ieee;
use ieee.std_logic_1164.all;
entity mux8x1_design is
port (
I0, I1, I2, I3, I4, I5, I6, I7 : in std_logic ;
Sel2, Sel1, Sel0 : in std_logic;
Out1
: out std_logic
);
end mux8x1_design;
architecture behavioural of mux8x1_design is
signal temp_sel : std_logic_vector(2 downto 0);
begin
temp_sel <= Sel2 & Sel1 & Sel0;
process (I0, I1, I2, I3, I4, I5, I6, I7, temp_sel)
begin
if (temp_sel = "000") then
out1 <= I0;
elsif (temp_sel = "001") then
Out1 <= I1;
elsif (temp_sel = "010") then
Out1 <= I2;
elsif (temp_sel = "011") then
Out1 <= I3;
elsif (temp_sel = "100") then
Out1 <= I4;
elsif (temp_sel = "101") then
Out1 <= I5;
elsif (temp_sel = "110") then
Out1 <= I6;
else
Out1 <= I7;
end if;
end
end behavioural;
// Demux
library ieee;
use ieee.std_logic_1164.all;
entity demux1x8_design is
port (
Y0, Y1, Y2, Y3, Y4, Y5, Y6, Y7 : out std_logic;
Sel2, Sel1, Sel0 : in std_logic;
I
: in std_logic_vector
);
end demux1x8_design;
architecture behavioural of demux1x8_design is
begin
temp_sel <= Sel2 & Sel1 & Sel0;
process (I, temp_sel)
begin
if (temp_sel = "000") then
Y0 <= I;
elsif (temp_sel = "001") then
Y1 <= I;
elsif (temp_sel = "010") then
Y2 <= I;
elsif (temp_sel = "011") then
Y3 <= I;
elsif (temp_sel = "100") then
Y4 <= I;
elsif (temp_sel = "101") then
Y5 <= I;
elsif (temp_sel = "110") then
Y6 <= I;
else
Y7 <= I;
end if;
end
end behavioural;
// Decoder
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity decoder is
Port ( sel2, sel1, sel0 : in STD_LOGIC;
y : out STD_LOGIC_VECTOR (7
downto 0));
end decoder;
architecture Behavioral of decoder is
signal temp_sel : std_logic_vector (2 downto 0);
begin
temp_sel <= sel2 & sel1 & sel0;
with sel select
y <= "00000001" when "000",
"00000010" when "001",
"00000100" when "010",
"00001000" when "011",
"00010000" when "100",
"00100000" when "101",
"01000000" when "110",
"10000000" when "111",
"00000000" when others;
end Behavioral
//Priority Encoder;
library IEEE;
use IEEE.STD_LOGIC_1164.all;
entity prioencoder8to3v is
port(
In1 : in STD_LOGIC_VECTOR(7 downto 0);
Y : out STD_LOGIC_VECTOR(2 downto 0)
);
end prioencoder8to3v;
architecture encoder8to3_arc of prioencoder8to3v is
begin
process (In1)
begin
if (In1(7) = '1') then
Y <= "111";
elsif (In1(6) = '1') then
Y <= "110";;
elsif (In1(5) = '1') then
Y <= "101";;
elsif (In1(4) = '1') then
Y <= "100";;
elsif (In1(3) = '1') then
Y <= "011";
elsif (In1(2) = '1') then
Y <= "010";;
elsif (In1(1) = '1') then
Y <= "001";;
else
Y <= "000";
end if;
end
end encoder8to3_arc;
d) e) f) g) Draw block diagram of a 8x1 multiplexer (mux), obtain truth table and...
Draw the block diagram for a 4-1 MUX; create the truth table for that.
A combination circuit is specified by the following Boolean functions listed below. h(a, b, c) = b,c' + a'c Implement the circuit with a 3x8 decoder. Provide truth table and drawing the logic/circuit diagram. Use the block diagram for the decoder provided in Figure A4 in supplements. Please label the inputs and outputs clearly. Note: use single 3x8 decoder Question 2 (15 points] A priority encoder is an encoder circuit that includes the Truth Table of a priority function. The...
• Draw the truth table for a 3-of-8 multiplexer. Draw the logical diagram for a 3-of-8 decoder.
QUESTION 2 (40 MARKS) Figure Q2 show Binary to Gray code converter block diagram. Based on that figure, design: (a) Circuit using logic gates. Obtain the truth table and represent Yo, Y1, Y2 and Y3 in minimized SOP Boolean algebra term. Draw the circuit using logic gates (CO2:P03 - 20 Marks) (b) Circuit using 8 to 1 Multiplexer with A, B, C as a data selector. Obtain the truth table of each multiplexer. Draw the circuit using 8 to 1...
1. Write the Boolean expression for each output from the PLA below: F = F G H 2. Draw the block diagram (not logic gates) and the truth table for a 4-1 multiplexer. Label all inputs, outputs and select lines. 3. Explain the problem with the S-R latch and how it is fixed by the J-K flip-flop 4. Write the truth table for a Gated D Latch: 5. Complete the following timing diagram for the rising-edge-triggered D flip-flop: akrrrr G1
Draw a circuit diagram for an encoder given the following table: A B C D E F G H S2 S1 S0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0...
Please work on Part E & F
Given the State Table Below Q1 Q2 Q3 X-1 X-0 X-1 10111loloi A. Draw a state Diagram (5 points) B. Create the "design truth table" for the "next state" and the "output"' (5 points) C. Make a Karnaugh for each "next state" and the "output" (10 points) When making the Karnaugh maps, "xQ1" should be along the top and "0203" along the side (The two missing states should be considered "DONT CARES") Write...
Design the optimal (Huffman) code for the alphabet {a, b, c,
d, e, f, g, h, i, j, k, l}, where frequencies are given in the
table below:
Draw the appropriate decoding tree.
a 0.25 g 0.02 b 0.01 h 0.12 c 0.09 i 0.15 d 0.02 j 0.04 e 0.24 k 0.01 f 0.04 l 0.01
1. (15 pts) Simplify the following Boolean functions using K-maps: a. F(x,y,z) = (1,4,5,6,7) b. F(x, y, z) = (xy + xyz + xyz c. F(A,B,C,D) = 20,2,4,5,6,7,8,10,13,15) d. F(A,B,C,D) = A'B'C'D' + AB'C + B'CD' + ABCD' + BC'D e. F(A,B,C,D,E) = (0,1,4,5,16,17,21,25,29) 2. (12 pts) Consider the combinational logic circuit below and answer the following: a. Derive the Boolean expressions for Fi and F2 as functions of A, B, C, and D. b. List the complete truth table...
2 In the block diagram below, G(s) -1/s, P(s)P(s) s-+2 s+2 D(s)- k-oo Ше-ks[1-e-s/1001. The inverse Laplace transforms of these equations are g(t), p(t),p(t), and d(t), respectively. The parameter K scales the feedback k-0 D(s) R(s) G(s) P(s) C(s) P(s) A Consider for a moment, D(s)- 0. Simplify the block diagram in terms of G(s), P(s), P(s) and find the transfer function by substituting the equations given above B What are the zeros and poles of the system you obtained...