Docsity

Homework 3 for ECE 2504 Introduction to Computer Engineering, Fall 2008 - Prof. Kristie L., Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 2504 Introduction to Computer Engineering, Fall 2008
Homework 3
Due date: 17 Sep 08, 11:59pm
Show all work.
1. (5 pts) Complete the tutorial in Chapter 4 of the Logicworks manual: The Five-Minute
Schematic and Simulation. Show the completed circuit diagram and timing window.
A
CLK
164
B
CLR
QA
QB
QC
QD
QE
QF
QG
QH
9
8
1
2
3
4
5
6
10
11
12
13
A
CLK
164
B
CLR
QA
QB
QC
QD
QE
QF
QG
QH
9
8
1
2
3
4
5
6
10
11
12
13
0
1
1
1
FEEDBK
D6
D7
CLK
2. (10 pts) A collision avoidance system requires a vertical separation of 500 ft. The altimeter in a
westbound flight reports its altitude to be 47000E00H. Altitude values are stored in 32-bit IEEE
754 floating point format. The altimeter in an overlapping southbound flight reports its altitude
to be 46FC5100H. Is the separation requirement met? Show how the calculations would be
performed in binary, not in decimal.
47000E00
0100 0111 0000 0000 0000 1110 0000 0000
0 10001110 00000000000111000000000
S=0
E=142
F=00000000000111000000000
1.000000000001110 x 215
1000000000001110.0
Note: FYI this is (32782.0)10
46FC5100
0100 0110 1111 1100 0101 0001 0000 0000
0 10001101 11111000101000100000000
S=0
E=141
F=11111000101000100000000
1.111110001010001 x 214
111111000101000.1
Note: FYI this is (32296.5)10
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Homework 3 for ECE 2504 Introduction to Computer Engineering, Fall 2008 - Prof. Kristie L. and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

ECE 2504 Introduction to Computer Engineering, Fall 2008

Homework 3

Due date: 17 Sep 08, 11:59pm Show all work.

  1. (5 pts) Complete the tutorial in Chapter 4 of the Logicworks manual: The Five-Minute Schematic and Simulation. Show the completed circuit diagram and timing window.

A

CLK

B CLR

QA

QB

QC

QD

QE

QF

QG

QH

9 8

1 2

3

4

5

6

10

11

12

13 A

CLK

B CLR

QA

QB

QC

QD

QE

QF

QG

QH

9 8

1 2

3

4

5

6

10

11

12

13

0

1

1

1

FEEDBK

D

D

CLK

  1. (10 pts) A collision avoidance system requires a vertical separation of 500 ft. The altimeter in a westbound flight reports its altitude to be 47000E00H. Altitude values are stored in 32-bit IEEE 754 floating point format. The altimeter in an overlapping southbound flight reports its altitude to be 46FC5100H. Is the separation requirement met? Show how the calculations would be performed in binary, not in decimal.

47000E 0100 0111 0000 0000 0000 1110 0000 0000 0 10001110 00000000000111000000000 S= E= F= 1.000000000001110 x 2 15

Note: FYI this is (32782.0) (^10)

46FC 0100 0110 1111 1100 0101 0001 0000 0000 0 10001101 11111000101000100000000 S= E= F= 1.111110001010001 x 2 14

Note: FYI this is (32296.5) 10

OR in 2’s complement: 1000000000001110.0 1000000000001110.

  • 0111111000101000.1 + 1000000111010111.

(485.5) 10 No, the requirement is not met.

  1. (5 pts) Write the logic equation for the variable F in the circuit below. Complete the truth table.

((A'B)' + (C⊕D')) '

Note that there are multiple correct answers here, including ((A'B)' + CD + C'D') ' (A + B' + CD + C'D') ' A'B(CD)'(C'D')' A'B(C'+D')(C+D) (A'BC'+A'BD')(C+D) A'BCD'+A'BC'D

A B C D F 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 1 1 0 1 1 0 1 0 1 1 1 0 1 0 0 0 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 1 1 1 0

A'

B

F

C

D'

A

A2 (^) P

A0 P

b. This is an odd function; it is 1 only when there are an odd number of 1 inputs.

A 4 A 3 A 2 A 1 A 0 P Q R P 5 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 1 1 1 0 0 0 1 1 0 1 1 0 0 0 1 0 0 0 1 1 1 0 0 1 0 1 0 1 1 0 0 0 1 1 0 0 0 0 0 0 0 1 1 1 0 0 0 1 0 1 0 0 0 1 0 1 1 0 1 0 0 1 1 0 1 0 0 1 0 1 0 1 1 0 0 0 1 0 1 1 1 1 0 1 0 1 1 0 0 1 1 0 0 0 1 1 0 1 1 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 0 0 0 1 0 1 1 1 0 0 0 1 1 0 1 0 1 0 0 1 0 1 1 0 0 1 0 0 1 1 1 1 0 1 1 0 1 0 0 1 1 0 0 1 0 1 0 1 1 1 0 1 1 0 1 1 0 1 0 1 1 1 0 1 1 1 1 0 1 0 1 1 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 1 1 1 0 1 0 0 1 1 1 1 1 0 1 1 0 1 1 0 1 1 1 0 0 0 1 1 1 1 1 1 0 1 0 1 1 0 1 1 1 1 0 0 0 0 0 1 1 1 1 1 0 0 0 1

A 2 A 1 A 0 P P 3

P

A

A

A

A

Q

R

A0 P

  1. (8 pts) Simplify the following Boolean expressions. Provide the number of the Boolean identity used from Table 1-1 for each step.

a. (A+B’)’(A’+C)(B’+C’) (A’B)(A’+C)(B’+C’) (15) (x+y)’ = x’y’ (A’A’B + A’BC) (B’+C’) (14) x(y+z) = xy + xz A’A’BB’ + A’BB’C + A’A’BC’ + A’BCC’ (14) x(y+z) = xy + xz A’•0 + A’•0 + A’BC’ + A’B•0 (8) x•x’ = 0 0 + 0 + A’BC’ + 0 (2) x•0 = 0 A’BC’ (1) x+0 = x

NOTE: This problem was intended to be the following. a. (A+B’)’(A’+C)(B’+C’)’ (A’B)(A’+C)(BC) (15) (x+y)’ = x’y’ A’BBCA’+A’BBCC (14) x(y+z) = xy + xz A’BC + A’BC (6) x•x = x A’BC (5) x+x=x

b. x’ y’z + x’z + (z+y’)’y’ x’ y’z + x’z + z’yy’ (15) (x+y)’ = x’y’ x’z(y’+1) + z’yy’ (14) x(y+z) = xy + xz x’z•1 + z’yy’ (3) x+1=x x’z + z’•0 (4) x•1=x; (8) x•x’ = 0 x’z + 0 (2) x•0 = 0 x’z (1) x+0 = x

c. (JKM’P’ + JKP’ + KMP’)(J’K + MP’) KP’(JM’ + J + M)(J’K + MP’) (14) x(y+z) = xy + xz KP’(J(M’+1) +M)(J’K+MP’) (14) x(y+z) = xy + xz KP’(J(1)+M)(J’K+MP’) (3) x+1= KP’(J+M)(J’K+MP’) (4) x•1=x (JKP’+KMP’)(J’K+MP’) (14) x(y+z) = xy + xz J’K(JKP’+KMP’) + MP’(JKP’+KMP’) (14) x(y+z) = xy + xz JJ’KKP’ + J’KKMP’ + JKMP’P’ + KMMP’P’ (14) x(y+z) = xy + xz 0•KP’ + J’KMP’ + JKMP’ + KMP’ (8) x•x’ = 0; (6) x•x = x 0 + (J’ + J + 1)KMP’ (2) x•0 = 0; (14) x(y+z) = xy + xz 0 + 1•KMP’ (3) x+1= KMP’ (1) x+0 = x; (4) x•1=x

d. w x' z’((x’+y’)(w+z’))’ + w’ y’(wxy’z +yz’) w x' z’((xy)’(w’z)’)’ + w’ y’(wxy’z +yz’) (15) (x+y)’ = x’y’ w x' z’(xy + w’z) + w’ y’(wxy’z +yz’) (16) (xy)’ = x’ +y’ wxx'yz’ + + ww’x’zz’ ww’xy’y’z +w’yy’z’ (14) x(y+z) = xy + xz w•0•yz’ + 0•x’•0 + 0•xy’z +w’•0•z’ (6) x•x = x; (8) x•x’ = 0 0 + 0 + 0 + 0 (2) x•0 = 0 0 (5) x+x=x

  1. (10 pts) Given the Boolean function F = x’y’z’+ x’yz’ + xy’z +xyz

x

z

F

5 - 1 or 2 input gates vs. 8-3 or 4 input gates

  1. (5 pts) How would you implement the following Boolean function using only NOR gates and inverters? Draw the logic circuit. Assume your NOR gates can have up to four inputs. F= A′B′C + AB′C′ + A′B′C′

A

B

C

(5 pts) Now redraw the circuit using only 2-input NOR gates.

Do not use gates with inverted inputs, e.g.

C

B

A

  1. (5 pts) How would you implement the following Boolean function using only NAND gates and inverters? Draw the logic circuit. Assume your NAND gates can have up to four inputs. F= (x + y′ + z′) • (x′ + y + z′) • (x + y + z′)

x

y z

(5 pts) Now redraw the circuit using only 2-input NAND gates. Do not use gates with inverted inputs.

x y z

  1. (5 pts) Complete the tutorial in Chapter 6 of the Logicworks manual: Structural Simulation. Show the completed circuit diagram and timing window.

1

0

1

+5V

QA

QB

QC

QD

RCO

P T

A

B

C

D

LOAD CLR

CLK

10

7

1

9

2

3

4

5

6

14

13

12

11

15

+5V

ENABLE CLK

CLK D

D

D

D