Docsity

EECS 144 & 244, Fall 2010 Midterm 1 in Computer Engineering, Exams of Computer Aided Design (CAD)

Toggle sidebar
bg1
EECS 144 & 244, Fall 2010 Lee, Roychowdhury, Seshia
Midterm 1
October 13, 2010
YOU R NAME:
Instructions:
This exam is open-book, open-notes. Please turn off and put away electronic devices such
as cell phones, laptops, etc.
You have a total of 80 minutes. There are 5 questions worth a total of 140 points. The
questions vary in difficulty, so if you get stuck on any question, it might help to leave it and
try another one.
Answer each question in the space provided below the question. If you need more space,
you can use the reverse side of that page. You can use without proof any result proved in
class but clearly state the result you are using.
Do not turn this page until the instructor tells you to do so!
Problem 1
Problem 2
Problem 3
Problem 4
Problem 5
Total
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download EECS 144 & 244, Fall 2010 Midterm 1 in Computer Engineering and more Exams Computer Aided Design (CAD) in PDF only on Docsity!

EECS 144 & 244, Fall 2010 Lee, Roychowdhury, Seshia

Midterm 1

October 13, 2010

YOUR NAME:

Instructions:

This exam is open-book, open-notes. Please turn off and put away electronic devices such as cell phones, laptops, etc.

You have a total of 80 minutes. There are 5 questions worth a total of 140 points. The questions vary in difficulty, so if you get stuck on any question, it might help to leave it and try another one.

Answer each question in the space provided below the question. If you need more space, you can use the reverse side of that page. You can use without proof any result proved in class but clearly state the result you are using.

Do not turn this page until the instructor tells you to do so!

Problem 1

Problem 2

Problem 3

Problem 4

Problem 5

Total

Problem 1: [True or False, with justification] (40 points)

For each of the following questions, state TRUE or FALSE. Justify your answer in brief, indicating only the “proof idea” or counterexample, drawing a diagram if needed.

(a) Consider the following Boolean function in sum-of-products (SOP) representation:

F 1 (a, b, c) = abc + ab + ac

Then abc is a prime implicant of F 1.

(b) The Boolean function G 2 = a + b is a Boolean factor of F 2 = b.

(c) Suppose you try to solve g(x) = x^3 using the (standard, unmodified) Newton- Raphson algorithm. Is the following statement TRUE or FALSE? Justify your answer (using a diagram if you like). Assume perfect numerics. Newton-Raphson will succeed in converging to the solution regardless of the initial

Problem 2: (20 points)

Consider the circuit given below.

Delays of gates are indicated in the picture. There are no edge (wire) delays.

a

b

g

g

g

g3 g

g

g

c

(a) Ignoring whether paths are true or false, what is the longest path in the circuit? What is its length?

(b) Is there a statically sensitizable (SS) path in the circuit? If yes, which is the longest SS path and what is its length? Justify your answer.

(c) Use your matrices to determine whether there is a retiming that has clock period 1. If there is such a retiming, sketch it. If not, explain why not.

Problem 4: (30 points)

Figure 1 shows a simple inverter circuit, where u(t) is the input voltage source. The pa- rameters are: R = C = 1.

The inverter is characterized by its Vin vs. Vout transfer characteristic, given by:

Vout = − tanh(5Vin) =

e−^5 Vin^ − e^5 Vin e−^5 Vin^ + e^5 Vin^

u(t)

R

C C

R

Figure 1: A simple inverter circuit.

Vin Vout

i=

Figure 2: Inverter input-output characteristic.

Note that the current flowing into the inverter at the Vin node is always 0, as shown in 2.

2 Write out the TRAP equations using h = 0. 1. Describe briefly how you will solve the TRAP equations. (8 points)

Problem 5: (20 points)

Computing reciprocal square roots ( √^1 x ) has many uses in numerics (e.g., vector normal- ization). Instead of using the sqrt function in the system math library and computing its reciprocal, a smart engineer decided to write her own routine to compute √^1 x , hoping for a speed advantage with acceptable compromise in accuracy.

Assuming 1 ≤ x < 2 , she wrote the following MATLAB code^1 :

1 function y = InvSqrt(x) 2 xhalf = 0.5 (^) * x; 3 y = 0.8; 4 y = y * (1.5 - xhalf * y * y); 5 end

(a) Explain what line 3 and line 4 mean and explain why the above code computes a good approximation of √^1 x. (10 points)

(^1) Note that 0. 8 ' 1 /√ 1. 5.