Docsity

ICS 151 Digital Logic Design Final Exam, Spring Quarter 2006, Lecture notes of Logic

Toggle sidebar
bg1
Student ID: ____________
ICS 151 Digital Logic Design, Spring Quarter 2006, Final Page 1
ICS 151
Final
Name : _________________ , _________________
(Last Name) (First Name)
Student ID : _______________
Signature : ________________
Instructions:
1. Please verify that your paper contains 19 pages including this cover and 3 blank pages.
2. Write down your Student-Id on the top of each page of this quiz.
3. This exam is closed book. No notes or other materials are permitted.
4. Total credits of this quiz are 110 points.
5. To receive the whole credit you must show your work clearly.
6. Calculators are NOT allowed.
Solutions
Q1 Q2 Q3 Q4 Total
Credit 40 30 10 30 110
Score
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download ICS 151 Digital Logic Design Final Exam, Spring Quarter 2006 and more Lecture notes Logic in PDF only on Docsity!

ICS 151

Final

Name : _________________ , _________________ (Last Name) (First Name)

Student ID : _______________

Signature : ________________

Instructions:

  1. Please verify that your paper contains 19 pages including this cover and 3 blank pages.
  2. Write down your Student-Id on the top of each page of this quiz.
  3. This exam is closed book. No notes or other materials are permitted.
  4. Total credits of this quiz are 110 points.
  5. To receive the whole credit you must show your work clearly.
  6. Calculators are NOT allowed.

Solutions

Q1 Q2 Q3 Q4 Total

Credit 40 30 10 30 110

Score

Q1: Combinational Logic Design & Optimization [40 points]

For function F(x, y, z) = x’y’z + x’yz + x’yz’ + xyz’ + xy’z

We want to design a circuit to implement function F(x,y,z) using three different methods.

First design is called design MUX. Function F(x,y,z) is implemented using Multiplexer. Second design is design DEC. F(x,y,z) is designed using Decoder. Then we want to optimize the function F(x, y, z), called design OPT, by two-level logic optimization using K-map and Implicants.

Finally, we want to compare three designs (design MUX, design DEC, and design OPT) in terms of area (number of 2-input gates) and critical path delay (number of 2-input gate levels). For computation of area and delay, refer to the following table:

Component Area (number of 2-input gates)

Delay (number of 2-input gate levels) 2-to-1 Mux 5 2 4-to-1 Mux 11 4 3-to-8 Decoder 16 3 N-input gate (N≥2) (N-1) (N-1) [Note 1: Assume that the area and delay of inverter is negligible and is not considered. Also any link overhead is ignored.]

[Note 2: You are NOT supposed to minimize the function F for design MUX and design DEC]

(b) [design MUX] Implement F by means of only 4-to-1 Mux and 2-to-1 Mux. [Hint: You may use multiple Muxes in a hierarchical method] (5 points)

Area (two 4-to-1 Mux and one 2-to-1 Mux) = 2*11 + 5 = 27 2-input gates

Delay (two 4-to-1 Mux and one 2-to-1 Mux) = 2*4 + 2 = 10 2-input gate level

4-to-1 Mux

I

I

I

I3 S1 S

y z

4-to-1 Mux

I

I

I

I3 S1 S

y z

I0 2-to-1 Mux I S

x

F

(c) [design DEC] Implement F by means of a 3-to-8 Decoder (5 points)

Area (one 3-to-8 Decoder and one 5-input OR gate) = 16 + 4 = 20 2-input gates

Delay (one 3-to-8 Decoder and one 5-input OR gate) = 3 + 4 = 7 2-input gate level

3-to- Decoder

z y x

I

I

I

En

F

D

D

D

D

D

D

D

D

OR

(g) Calculate the area (number of 2-input gates) and critical path delay (number of 2-input gate levels) for each design (design MUX, design DEC, and design OPT), and place each design with correct values of area and delay at the following graph (10 points) Which design gives the best delay? design OPT Which design gives the best area?

  • design MUX (27, 10)

  • design DEC (7, 20)

  • design OPT (5, 5)

Delay (number of 2-input gate levels)

Area (number of 2-input gates)

Q2: FSM Design – Moore and Mealy Machines [30 points]

We want to design a non-resetting sequence detector using a finite state machine with one input X and one output Y. The FSM asserts its output Y when it recognizes the following input bit sequence: " 1101 ". The machine will keep checking for the proper bit sequence and does not reset to the initial state after it has recognized the string. [Note: As an example the input string X= "..1101101.." will cause the output to go high twice: Y = "..0001001.."]

(a) Capture the Moore FSM. (5 points)

(b) Create the architecture (3 points)

(e) Implement the combinational logic (NO NEED to draw the gates, just write the equations) (5 points)

(f) Convert the Moore FSM into the Mealy FSM (10 points)

Q4: RTL Design [30 points]

Using RTL design method, we want to design a 4-bit up/down counter as shown in the following block diagram, which can count either up or down. It requires an input signal dir to indicate the count direction, an input signal ld to load the input data from I [i3..i0], and an input signal clr to reset the counter. We’ll let “dir=0” mean to count up and “dir=1” mean to count down. If “ld = 1”, it loads from input data I [i3..i0] regardless of the value of dir. When “clr = 1”, it clears the output Q [q3..q0] regardless of the value of dir or ld.

(a) Capture a high-level state machine (10 points)

4-bit up/down counter

I [i3..i0]

dir

Q [q3..q0]

ld

clr

(c) Connect the datapath to the controller (5 points)

(d) Derive the controller’s FSM (Moore machine) (5 points)