ALL Sheets
ALL Sheets
Revistion
PROBLEMS
1- Design the BCD (Binary coded Decimal) –to- Excess-
3 code converter.
The converter must implement minimum number of
gates.
2
X = x3x2x1x0 and Y = y3y2y1y0 . The output z =1 if
they are equal and 0 other- wise.
A0
A5
A1
10- Design the ROM that drives a seven A segment
4 A 2
indicator.
The indicator indicates only numbers from 0 toA 9 .3
A3
Assume positive logic. Use diode matrix
implementation.
3
Sheet 2
FF
X Full S
adder
1- Construct a D-flip-flop using NOR y C
Q
CP
2- Construct a D-flip-flop using NOR Fig. (a)
gates only.
CP
Fig- (b)
4
6- Convert a D-flip-flop to a J-K flip-flop by inserting input
gates to the D-flip-flop. The sequential circuit achieved
will act as one D-flip-flop and two inputs J-K flip-flop.
Qn+1 N M
1 1 0 0
Qn 1 0 0 1
Fig. (d)
5
Sheet 3
SR & counters
6
(a) Two shift-registers, full adder and D flip-
flop in the carry branch to fulfill the delay
required.
(b) Using two shift-registers and a JK flip-
flop with the associated excitation logic.
7
Cle C Lo Cou
Function
ar P ad nt
0 Ø Ø Ø Clear to 0
1 Ø 0 0 No change
1 1 Ø Load inputs
Count next
1 0 1
binary state
0 2
Fig. (IV-1)
8
7-
- The initial contents of the sift register Fig. (IV-2) is 1101
tabulate the contents of this shift register for the following 16 clock pulses .
A B C D
D Q D Q D Q D Q
Q Q Q Q
CP
Fig. (IV – 2)
9
6
9
Fig (IV-3)
10- For the following memory sizes and word lengths,
how many address lines and input/ output data lines
are needed in each case?
(a) 2K x 16 (b) 64K x 8
(c) 16 M x 32 (d) 96 K x 12
10
Sheet 4
VHDL
11
4. An HDL can’t describe Hardware at Gate level as well
as switch level?
a) True
b) False
entity Test is
Port ( A; B IN std_logic_vector (3 DOWN TO 0 ),
AeqB, AgtB Altb : OUT STD_LOGIC};
END TEST;
ARCHITECTURE Behavior of Test IS
BEGIN
AeqB <= "1" WHEN A=B else "0";
AgtB <= "1" WHEN A>B else "0";
ALTB <= "1" WHEN A<B else "0";
END Behavior of Test;
12
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.NUMERIC_STD.ALL;
entity Test1 is
Port ( D IN std_logic_vector (3 DOWN TO 0 ),
Q : OUT std_logic_vector (1 DOWN TO 0 ),
END TEST1;
ARCHITECTURE Behavior of Test2 IS
BEGIN
Q <= "00" WHEN D= "0001"; else
"01" WHEN D= "0010" else
Sheet "10"6 WHEN D= "0100" else
RAM "11"& ROMD=&"1000";
WHEN PLA else
Mcq"XX";Questions
END ARCHITECTURE;
13
14
(1) Design 2-Dimenional 1K-word memory
(2) Construct 32X8 ROM
(3) Programming the ROM according to the truth
table 7-3
15