sample_problems
sample_problems
F = ΣA,B,C,D,E(4, 5, 6, 7, 12, 14, 16, 20, 21, 24, 26, 27, 31) + d(0, 11, 19, 22, 30)
______________________________________________________________________
Solution:
Solution:
B. Fill as much as needed in the corresponding state and transition tables shown below.
X X
S 0 1 Z Q1Q2Q3 0 1 Z
S*
00 00 00
01 01 01
11 11 11
10 10 10
In this problem, you are asked to design a combinational logic system that converts a 4-bit “sign-and-
magnitude” number (SM2M1M0) to a two’s complement number (T3T2T1T0).
S M 2 M 1M 0 T3 T2 T1 T0
+0 0 0 0 0
+1 0 0 0 1
+2 0 0 1 0
+3 0 0 1 1
+4 0 1 0 0
+5 0 1 0 1
+6 0 1 1 0
+7 0 1 1 1
-0 1 0 0 0
-1 1 0 0 1
-2 1 0 1 0
-3 1 0 1 1
-4 1 1 0 0
-5 1 1 0 1
-6 1 1 1 0
-7 1 1 1 1
b) Fill in each of the following four K-maps and minimize for sum of products implementation.
T3 T2
T1 T0
T3 =
T2 =
T1 =
T0 =
A sequential circuit has three D flip-flops A, B, and C, and one input X. The circuit is described by the
following input equations to the flip-flops. The variables A, B, and C, denote the current state variables
(Q-values) of the three flip-flops.
In this problem, we’ll design an n-bit ALU based on the following 1-bit full-adder block that takes as
inputs X, Y, Cin, and generates the sum S and carry out Cout.
b) In this part, we want to use the adder to implement the following arithmetic operations specified by
the control signals M2, M1, M0. We add three logic blocks, F, G, H, at the inputs of the adder to
supply the appropriate arguments to perform the desired operation. Fill in the columns in the table
below for values of X, Y, Cin required so that the adder generates the appropriate result. The first row
has been completed for you. Hint: -1 in two’s complement is represented as all ones.
Solution:
X = _____________________________
Y = _____________________________
Cin = ____________________________
a) The following memories are specified by the number of words times the number of bits per
word. How many address lines, input-output data lines are needed in each case, and how many
bytes does each memory store: [4 points]
b) A 64K x 16 RAM chip is designed in such a way that its cell array is square, i.e., it contains an
equal number of bit-cells per row and column. A row decoder is used to select a row, and a
column decoder is used to select the appropriate set of columns. Determine the following:
ii. Size of the row decoder and the number of AND gates required to implement it. [3
points]
iii. Size of column decoder and the number of AND gates required to implement it. [3
points]
iv. If the input address (076400)8 is applied to the chip, which row and column selection
lines are enabled. Give your answers in decimal. [2 points]
c) A 256Mb DRAM chip has a 4-bit data input bus and a 4-bit output data bus. Also, it has equal
length row and column addresses. How many address pins does the DRAM have? [4 points]
d) How many 128K x 16 DRAM chips are needed to provide memory capacity of 1M bytes? How
many address lines are required to access 1M bytes? How many of these lines are connected to
the address inputs of all chips? [3 points]