Docsity

Exam Questions on Logic Circuits, FSMs, and Floating Point Numbers, Exams of Digital Systems Design

Partial preview of the text

Download Exam Questions on Logic Circuits, FSMs, and Floating Point Numbers and more Exams Digital Systems Design in PDF only on Docsity!

Final Exam

Problem Maximum points Your points

Problem 1 25

Problem 2 25

Problem 3 25

Problem 4 25

Total 100

  1. Consider the circuit shown below.

f 2 f 1

a

b a b

Figure 1: Circuits for Question 1

(a) What is the logic function of f 1 and f 2 in this circuit? (b) Consider the function g = a · b · c. Using only NMOS devices, modify the circuitry in the dotted boxes, so that both f 1 and f 2 are equal to g. If it is not possible to achieve this, then state why. Assume that you have each of three variables a, b, c and their complemented literals available to you.

  1. Consider the FSM f gure below. Assume that the delays of circuit elements are as follows. DFFs have setup and hold times of 1ns. The DFF clock-to-output delay is 2ns. Each gate has a delay which is 5ns.

D

D

b

c

a

a

Q

Q

Q

Q

CLK

CLK

Figure 2: Circuits for Question 2

(a) What is the maximum clock frequency at which I can operate the circuit above? (b) Can you simplify the circuit so that the clock frequency can be increased? Assume that you can use any gate with up to 4 inputs. Also assume that any of the inputs, as well as the f ip- f op outputs, are available in their complemented form (at the same time as the corresponding uncomplemented variables).

  1. Consider the single-precision (32-bit) IEEE f oating point standard. Suppose I was to list all possible numbers in this format, sorted from the smallest possible number to the largest possible number. What is the maximum value of the difference between any two consecutive numbers in the list?
  1. Consider the State Transition Table (STT) shown below. It expresses the behavior of a f nite state machine (FSM) with 3 state variables (i.e. three f ip-f ops), and one input. Assume that the reset state is 111.

PS1 PS2 PS3 X NS1 NS2 NS 0 0 0 - 0 1 0 1 0 1 0 1 0 1 0 1 0 - 0 1 0 1 1 0 1 1 1 0 0 1 1 0 0 0 0 0 0 1 - 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 0 0 1 1 1 0 1 0 1 1 0 0 1 0 1 1 0 0 1 0 0 1 1 0 1 1 1 0 0

(a) How many outputs does the above FSM have? (b) Draw the State Transition Graph (STG) from the above STT. (c) A STT is said to be completely specif ed if, from every state and for every input, some transition is specif ed in the STT. Based on this def nition, is the above STT completely specif ed? (d) Are there some states of the above state machine which will never be encountered when the machine operates? If so, what are these states?

This page intentionally left blank