Docsity

Sample Exam 3 Solutions - Digital Logic | ECE 240, Exams of Electrical and Electronics Engineering

Toggle sidebar
bg1
COE/EE 243
Digital Logic Session 25; Page 1/3
Spring 2003
COE/EE 243 Sample Exam #3 Solutions
1. (6 pts) Short answer (3 points each)
(a) When designing for a PLA, one is often required to find multiple sum-or-products expressions
for each output. Why is this so?
Both the AND and the OR stages of the PLA are programmable. The ability to program OR
stage allows the outputs of individual AND gates to be shared with multiple OR gates. This
use of common terms allows for a possible minimal solution for the multiple output function
where none of the individual outputs has been minimized fully.
(b) However, when designing for a PAL, one is only required to find the minimal sum-of-products
expressions for each output. Why is this so?
The AND stage of the PAL is programmable, so it is useful to simplify each expressiondown
to the minimal sum-of-products. However, the OR stage is fixed, and it is not possible to
share outputs of the AND stage with multiple OR gates, therefore, it is not useful to find
common terms to minimize the number of gates or inputs.
2. (6 pts) Realize the three output function shown below using a 3-to-8 decoder and the appropriate
logic gates.
Multiply out and expand each function, so all of its terms include a
๎˜€
b
๎˜€
c. Notice and use common
terms.
f1
๎˜€
a
๎˜€
b
๎˜€
c
๎˜ ๎˜‚
ab
๎˜ƒ
b
ยผ
c
๎˜‚
abc
ยผ
๎˜ƒ
abc
๎˜ƒ
a
ยผ
b
ยผ
c
๎˜ƒ
ab
ยผ
c
f2
๎˜€
a
๎˜€
b
๎˜€
c
๎˜ ๎˜‚ ๎˜€
a
๎˜ƒ
b
ยผ
๎˜ƒ
c
๎˜๎˜€
a
ยผ
๎˜ƒ
b
๎˜
๎˜‚
ab
๎˜ƒ
a
ยผ
b
ยผ
๎˜ƒ
a
ยผ
c
๎˜ƒ
bc
๎˜‚
abc
ยผ
๎˜ƒ
abc
๎˜ƒ
a
ยผ
b
ยผ
c
ยผ
๎˜ƒ
a
ยผ
b
ยผ
c
๎˜ƒ
a
ยผ
bc
F2
F1C
Y0
Y1
Y2
Y3
Y4
Y5
Y6
Y7
I1
I0
I2
A
B
pf3

Partial preview of the text

Download Sample Exam 3 Solutions - Digital Logic | ECE 240 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

Digital Logic Spring 2003

COE/EE 243 Sample Exam #3 Solutions

  1. (6 pts) Short answer (3 points each)

(a) When designing for a PLA, one is often required to find multiple sum-or-products expressions for each output. Why is this so? Both the AND and the OR stages of the PLA are programmable. The ability to program OR stage allows the outputs of individual AND gates to be shared with multiple OR gates. This use of common terms allows for a possible minimal solution for the multiple output function where none of the individual outputs has been minimized fully. (b) However, when designing for a PAL, one is only required to find the minimal sum-of-products expressions for each output. Why is this so? The AND stage of the PAL is programmable, so it is useful to simplify each expression down to the minimal sum-of-products. However, the OR stage is fixed, and it is not possible to share outputs of the AND stage with multiple OR gates, therefore, it is not useful to find common terms to minimize the number of gates or inputs.

  1. (6 pts) Realize the three output function shown below using a 3-to-8 decoder and the appropriate logic gates. Multiply out and expand each function, so all of its terms include a b c. Notice and use common terms.

f 1 a b c   ab  b c  abc  abc  a b c  ab c f 2 a b c   a  b  c  a  b   ab  a b  a c  bc  abc  abc  a b c  a b c  a bc

F

C F

Y Y Y Y Y Y Y Y

I

I

I

A B

Digital Logic Spring 2003

  1. (6 pts) Use a PLA to realize a 4-to-1 multiplexer.

Expression for a 4-to-1 MUX is: F  A ^ B ^ I 0  A ^ BI 1  AB ^ I 2  ABI 3 The PLA implementation is shown below. a b I0 I1 I

f

I

  1. (6 pts) Implement f A B C D   AC ^ D ^  B ^ D using a 4-to-1 multiplexer. Choose the appropriate control inputs.

Notice that D is common to both terms in f. Therefore D should be one of the control inputs. Since the first term has both A and C , choose one of them as the other input, so you donโ€™t need a combination of both as an input. Your choices of control inputs are therefore: A and D or the set C and D. If you choose, expand the second term in f to add the dependence of the second term on A , resulting in: f A B C D   AC ^ D ^  A ^  A  B ^ D which simplifies to: f A B C D   AC ^ D ^  A ^ B ^ D  AB ^ D Similarly, if C had been chosen as the second control input, then expand expression out to: f A B C D   AC ^ D ^  B C ^ D  B CD These would be implemented as follows:

4-to- MUX (^) f(A,B,C,D)

Bโ€™

4-to- MUX (^) f(A,B,C,D)

A D

0 Bโ€™ Cโ€™ Bโ€™

C D

A Bโ€™ 0