Solution
Solution
Digital Logic
COE/EE 243
From Fall 98
Solutions
Show your work. Do NOT use a calculator!
1. (9 pts) Complete the following table of equivalent values.
Binary
1011.0011
11101.11111101
11011.010011
Octal
13.14
35.77
33.23
Decimal
11.1875
29.99
27 19
64
Hexadecimal
B.3
1D.FD
1B.4C
11110
000101
1110101
111
3. (9 pts) Complete the following table of equivalent values. Use binary numbers with a sign bit and
5 bits for the value
Decimal
11
2
1
Signed Magnitude
101011
100010
100001
Twos Complement
110101
111110
111111
Ones Complement
110100
111101
111110
4. (8 pts) Give the Characteristic equations and the Excitation tables for the SR and JK flip-flops.
SR flip-flop
JK flip-flop
Q S R Q
Q JQ K Q
S
0
0
0
0
1
1
1
1
J
0
0
0
0
1
1
1
1
R
0
0
1
1
0
0
1
1
Q
0
1
0
1
0
1
0
1
Q+
0
1
0
0
1
1
-
K
0
0
1
1
0
0
1
1
Q
0
1
0
1
0
1
0
1
Q+
0
1
0
0
1
1
1
0
COE/EE 243
Digital Logic
5. (10 pts) (a) Explain the difference between a Moore machine and a Mealy machine.
Sol The outputs in a Moore machine depend only on the present state. The outputs in a Mealy
machine depend on both the present state and the present input.
(b) What is the same about both kinds of state machines?
Sol Both have present state dependent on past inputs.
(c) Draw a block diagram indicating the structure of a general state machine. Indicate on the
diagram where one can find the present state and next state.
Next
State
Logic
Flip
Flops
Ouput
Logic
6. (5 pts) Give a truth table and a standard sum of products expression that describes
F A B C
A
0
0
0
0
1
1
1
1
B
0
0
1
1
0
0
1
1
C
0
1
0
1
0
1
0
1
F
0
1
1
0
1
0
0
1
ABC A BC A BC ABC
(a) An Inverter:
or could do
A
B
A
X=A+B
= (AB)
(c) An Or Gate:
X
B
(d) Because a Nand gate can be used to implement all three basic Boolean functions, how would
we describe it? Functionally Complete
COE/EE 243
Digital Logic
8. (8 pts) Using the 74ALS163 counter shown below and logic gates design a counter that counts in
the sequence 3,4, 5, 6, 7, 8, 9, 10, 11, 12, 3, ... Connect all unused inputs. The counter may cycle
through several unwanted states before settling into the final count sequence. Q d is the MSB of the
counter output.
1
DD
DC
DB
DA
74S163
CLR
RCO
LD
CLK
CLK
QD
QC
QB
QA
abc bc d cd a b
f
cd
ab
00
01
11
10
00
01
1
F = ab + cd + bc
11
10
COE/EE 243
Digital Logic
10. (10 pts) Create a state diagram for a sequence detector that outputs a 1 when it detects the final bit
in the serial data stream 1101.
Mealy Machine
Moore Machine
X=0
X/Z
S0
Z=0
0/0
0/0
X=0
X=0
1/0
X=1
1/1
S4
Z=1
X=1
S1
Z=0
X=1
X=1
S2
Z=0
X=0
X=1
S3
Z=0
X=0
COE/EE 243
Digital Logic
11. (10 pts) Determine the D flip-flop excitation equations for the system represented with in the statetransition table below. Assign states: S0 00, S1 01, S2 10 and S3 11.
Da
AB
X
Present
AB
00
01
10
11
Present
S
S0
S1
S2
S3
Next State
X=0 X=1
S1
S2
S1
S2
S2
S3
S3
S0
Output
Z
0
1
1
0
00
01
11
10
AB
Da = XA + XA + {
XB
Db
AB
X
00
01
11
10
Db = XAB + XA + XB
12. (5 pts) Give the output expression for the 8-to-1 MUX shown below.
I0
I1
I2
8 to 1
MUX
I3
I4
I5
I6
I7
A B