Docsity

ECE 2030 Midterm II Solutions: Digital Logic Design - Prof. Sudhakar Yalamanchili, Exams of Electrical and Electronics Engineering

Partial preview of the text

Download ECE 2030 Midterm II Solutions: Digital Logic Design - Prof. Sudhakar Yalamanchili and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

ECE 2030

Section D

Midterm II

March 7

th

Solutions

  1. Consider the following network of building block components. Fill in the table below to show the input to which an output is connected after each successive clock cycle. The input to the priority encoder is a shift register that performs a rotate right operation on each clock cycle and is initialized to the value shown after clock cycle 0.

Priority Encoder

4:1 Mux 1: DeMux

S1 S

S1 S0 S1^ S

A

B

C

D

W

X

Y

Z

I 0 I 1 I 2 I 3 S 1 S 0

0 1 X 0 0 1

0 X X 1 1 1

1 X X X 0 0

Clock Cycle

W X Y Z

1 0 0 0 D

2 A 0 0 0

3 0 0 0 D

4 A 0 0 0

5 0 0 0 D

Priority Encoder Specification

  1. Implement the following expression in the PLA by providing all of the appropriate annotations.

F = AB + BC + AC = A + B + BC + AC

0 or 1?: ___

0 or 1?: ___

A B C

Note that further expression simplification is possible with a different answer.

  1. Convert the following numbers from one notation to the other. a. Between number systems

(10011.10001) 2 = (13.88) (^16)

(124) 8 = (84) (^10)

b. Compute the error in the following computation, if any, assuming 6 significant bits (this includes the implicit bit).

(1.0) 2 x 2^131 + (1.101) 2 x 2^139

= (1.00000) 2 x 2^131 + (110100000) 2 x 2 131 = (110100001) 2 x 2^131. Since we only have 6 significant bits, the answer will be represented as (1.10100) 2 x 2^139 thus the error is (1.0) 2 x 2^131

  1. Arithmetic a. Perform the following signed operations. The numbers are represented in two’s complement form. Identify the operations for which overflow occurs assuming they are 6 bit two’s complement numbers.

___________ ________

b. Perform the addition of the following unsigned numbers and identify those operations for which overflow occurs assuming the number of bits available are the number of bits in the operands.

111011 010011

  • 100001 + 110001

011100 0001000

Overflow? _____Yes_____ _____Yes_____

Overflow? No^

No

  1. Consider the following arrangement of two single bit D flip flops.

FF

D

FF

WE

WE

Q

  1. Using D Flip Flops (as shown below) and basic building blocks and gates, design a 2-bit register that includes the following functionality – load a new value from input A 1 A 0 , initialize to 0, and initialize to 1, and Rotate Right. Provide the truth table for the control signals.

S0 S1 Function 0 0 Load A0 A1 into registers 0 1 Initialize to 1 1 0 Initialize to 0 1 1 Rotate right

Flip Flop

D

Φ 1 Φ^2

Q

Q