Docsity

ECE 349 Homework Assignment Solutions, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 349 Homework Assignment #5 Solutions
1. Is the set of operators Exclusive-OR and OR functionally complete? Justify your
answer.
Exclusive-OR and OR are functionally complete. A0= 1 ⊕A, and (A0+B0)0=AB.
2. Realize the function f=a0bc0+bd +ac +b0cd0using only 2-input NAND gates.
F
A’
C’
B’
D’
D’
A’ C
B
3. The following equation is implemented using AND gates, OR gates, and inverters.
Convert the circuit to use only NAND gates and inverters (do not manipulate the
equation with Boolean algebra). f(a, b, c, d) = b(a(bc +d0) + c0d)
c
f
b
a
d
c’
d’
b
4. Repeat problem (3), but this time convert the circuit to use only NOR gates and
inverters.
c’
d’
d’
c
b’
f
a’
b’
pf3
pf4

Partial preview of the text

Download ECE 349 Homework Assignment Solutions and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

ECE 349 Homework Assignment #5 Solutions

  1. Is the set of operators Exclusive-OR and OR functionally complete? Justify your answer. Exclusive-OR and OR are functionally complete. A′^ = 1 ⊕ A, and (A′^ + B′)′^ = AB.
  2. Realize the function f = a′bc′^ + bd + ac + b′cd′^ using only 2-input NAND gates.

F

A’ C’ B’ D’

D’

A’ C

B

  1. The following equation is implemented using AND gates, OR gates, and inverters. Convert the circuit to use only NAND gates and inverters (do not manipulate the equation with Boolean algebra). f (a, b, c, d) = b(a(bc + d′) + c′d)

c f

b

a

d

c’

d’

b

  1. Repeat problem (3), but this time convert the circuit to use only NOR gates and inverters.

c’ d’

d’

c b’

f a’

b’

  1. Design a network of NAND gates and inverters that converts from 8-4-2-1 BCD code to 6-3-1-1 code (see Table 1-1 in your text).

d

d

d

c’ z = ad’ + bc’ + bd + b’cd’ + a’c’d

y = ad’ + b’cd’ + bc’d

w = a + bc

b c (^) a’

x = ad + bc’ + b’cd

a

b’ c d b c’ a d’ a’

d

c’

b

b’ c d’

b

  1. Show how to build each of the following single-output logic functions using a 3-to- line decoder with inverted outputs and NAND gates: (a) f (a, b, c) =

∑ m(3,^5 ,^ 6) (b) f (a, b, c) =

∏ M (3,^4 ,^5 ,^6 ,^ 7)

f

b

+5 V

B

G2A G2B

G

74LS Y Y Y Y Y Y Y A Y

a C c

f

b

+5 V

B

G2A G2B

G

74LS Y Y Y Y Y Y Y A Y

a C c

  1. An adder for Gray-coded decimal digits (see Table 1-1 in your text) is to be designed using a ROM. The adder should add two Gray-coded digits and give the Gray-coded sum and a carry. For example, 1011 + 1010 = 0010, with a carry of 1 (7 + 6 = 13). Draw a diagram showing the required ROM inputs and outputs. What size ROM is required? Indicate how the truth table for the ROM would be specified by giving two typical rows.

5 Bits

256 Words

ROM

x

x3 x3 x2 x1 x0 y3 y2 y1 y x x x y y y

s s s

carry

s y

1 0 0 1 1 0 0 0 1 0 0 1 1 0 0 1

1 0 1 1 1 0 0 0 0 1

s3 s2 s1 s0 c

  1. A PLA capable of implementing 6 product terms will be used to implement the follow- ing equations X = abd + a′c′^ + bc + c′d′, Y = a′c′^ + ad + c′d′, and Z = cd + a′c′^ + ab′d. Give the PLA table.

Notice that ad = ab′d + abd.

Product Inputs Outputs Terms a b c d X Y Z abd 1 1 - 1 1 1 0 a’c’ 0 - 0 - 1 1 1 bc - 1 1 - 1 0 0 c’d’ - - 0 0 1 1 0 ab’d 1 0 - 1 0 1 1 cd - - 1 1 0 0 1