Docsity

Assignment 3 with Solution Key for Computer Engineering | ECE 2030, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
GEORGIA INSTITUTE OF TECHNOLOGY
School of Electrical and Computer Engineering
ECE 2030: Sections C & D
Spring 2008
Assignment #3 Solutions
3.1) Assume that the encoders output zeros when all their inputs are zero. Also, the
convention used is MSB to LSB are read top to bottom.
Mux Control De-Mux Outputs Priority Encoder
Inputs
A B C D0
D1
D2
D3
D4
D5
D6
D7
I0 I1 I2 I3 S1 S0
0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 1
0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0
0 1 1 0 0 0 1 0 0 0 0 1 1 0 0 0 0
1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
1 0 1 0 0 0 0 0 1 0 0 0 0 0 1 1 1
1 1 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0
1 1 1 0 0 0 0 0 0 0 1 0 0 1 1 1 1
3.2)
Cin A B S Cout
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
pf3
pf4
pf5

Partial preview of the text

Download Assignment 3 with Solution Key for Computer Engineering | ECE 2030 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

GEORGIA INSTITUTE OF TECHNOLOGY

School of Electrical and Computer Engineering

ECE 2030: Sections C & D

Spring 2008

Assignment #3 Solutions

3.1) Assume that the encoders output zeros when all their inputs are zero. Also, the convention used is MSB to LSB are read top to bottom.

Mux Control De-Mux Outputs Priority Encoder Inputs A B C D0 D1 D2 D3 D4 D5 D6 D7 I0 I1 I2 I3 S1 S 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 1 0 0 0 0 1 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0 1 1 1 0 0 0 0 0 0 0 1 0 0 1 1 1 1

Cin A B S Cout 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1

3.3) 4 bits will be needed to represent the output. The truth table is given below:

A B C D P Q R 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 0 1 1 0 1 0 0 1 0 0 0 0 1 0 1 0 1 0 1 0 0 1 1 0 0 1 0 0 1 1 1 0 1 1 1 0 0 0 0 0 1 1 0 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 1 1 1 0 0 0 1 0 1 1 0 1 0 1 1 1 1 1 0 0 1 1 1 1 1 1 1 0 0

P = A.B.C.D Q (use a K-map to simplify) = A.B.C’ + A’.B.C + A.B’.D + B.C’.D + A.C.D’ + A’.C.D R = A’.B’.C’.D + A’.B’.C.D’ + A’.B.C’.D’ + A’.B.C.D + A.B.C’.D + A.B.C.D’ + A.B’.C’.D’ + A.B’.C.D

A two level logic diagram can be drawn based on these expressions.

smallest positive number exponent bits will be 000001 corresponding to an exponent of 1 – exponent bias = 1 – ((2^6 /2)-1) = 1-31 = -30. Since it’s a positive number, sign bit = 0. Since its the smallest positive number, no decimal places, so all mantissa bits will be 0. => (-1)^0 2-30(1 + 2-1(0) + … 2-9(0)) = 2-30^ is the smallest representable positive number. (b) Consequently, the largest negative number that can be represented will be -2-30. (c) By the same approach as (a) we get (-1)^1 262-31(1+2-1(1) + … + 2-9(1)) = - 231 *(1+1-2-9) = -2^32 +2^22 (d) Just include 000000 and 111111 exponents in the regular range. (However, note that 0 and infinity cannot be represented).

3.7) Textbook problem 5.

3.8) Textbook problem 5.