Docsity

Quiz Solutions for Cmpe 2030 A - Introduction to Computer Engineering - Quiz II, Exams of Computer Science

Partial preview of the text

Download Quiz Solutions for Cmpe 2030 A - Introduction to Computer Engineering - Quiz II and more Exams Computer Science in PDF only on Docsity!

Cmpe 2030 A

Introduction to Computer Engineering

Quiz -II - Solutions

May 7th, 1999

1. Implement a synchronous binary counter that counts to ten. Use the minimum number of a

basic toggle cell shown below. In addition you have at your all of the basic gates. Assume

that the phi1 and phi2 clocks are available to all cells. Your design should include a global

Enable signal and a global CLR signal (active low) that works for all counters.

TE

CLR

Q

TE - Toggle Enable

CLR - Clear

3. This question is based on the following description of a priority encoder.

3 (a) List the inputs from highest to lowest priority order.

3 (b) Implement OUT1 and OUT0 using basic gates.

IN0 IN1 IN2 IN3 OUT1^ OUT0 Valid

0 0 0 0 X X 0

X 0 X 1 1 1 1

X 0 1 0 1 0 1

X 1 X X 0 1 1

1 0 X 0 0 0 1

IN1, IN3, IN2, IN

IN

IN

OUT

IN

IN

OUT

4. Complete the timing diagram below for a single bit register cell constructed from a pair of

transparent latches.

phi

phi

Input

Out

input output

phi

phi

register

cell

6. Complete the following timing diagram. Assume initial values of signals are zero. Ignore

any propagation delays.

C C C C C C C C

S S S

phi phi

3-bit Synch Binary Counter

Binary Decoder

C

C

phi

phi

7. Using 4:1 multiplexors shown below construct shift logic that will produce an output

( b3b2b1b0 ) that is computed as a right shift or left shift of two bits of the input ( a3a2a1a0 ).

Assume a zero fill for the values shifted into the output B. For example, a right shift of

1100 by 2 bits will produce 0011.Fill in the truth table to reflect the operation being per-

formed for each value of the select lines.

S0 S1 Operation 0 0 no shift 0 1 no shift 1 0 right shift 1 1 left shift

s s

(^0) a3 a2 a1 a

b3 b2^ b1^ b

4:1 Mux 4:1 Mux (^) 4:1 Mux 4:1 Mux

shift right shift left no shift