Docsity

Digital System Design - Assignment 5 | ECE 465, Assignments of Digital Systems Design

Toggle sidebar
bg1
1
ECE 465—Spring 2010,Instructor: Prof. Shantanu Dutt
Homework 5 : Due Thurs, April 29
1. (a) Give the basic definition of state equivalency in a completely specified FSM (this definition in-
volves only the equality of outputs). 10
(b) For the FSM shown below, without using any minimization method (e.g., partitioning method, im-
plication table method), determine which state pairs are equivalent and give the proof of equivalency
of one of these state pairs (the proofs for the other equivalent pairs, if any, will follow by symmetry for
this case) from first principles using the basic definition of state equivalency given above. Give your
proof clearly, methodically and convincingly. Note that we have done similar proofs “informally”
when discussing the implication table method. 200
A
B
CD
E
F
0/1
1/0 1/0
1/1
1/1
0/0
0/0
1/1
0/1
1/1
0/0
0/0
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Digital System Design - Assignment 5 | ECE 465 and more Assignments Digital Systems Design in PDF only on Docsity!

1

ECE 465—Spring 2010 , Instructor: Prof. Shantanu Dutt Homework 5 : Due Thurs, April 29

  1. (a) Give the basic definition of state equivalency in a completely specified FSM (this definition in- volves only the equality of outputs). 10 (b) For the FSM shown below, without using any minimization method (e.g., partitioning method, im- plication table method), determine which state pairs are equivalent and give the proof of equivalency of one of these state pairs (the proofs for the other equivalent pairs, if any, will follow by symmetry for this case) from first principles using the basic definition of state equivalency given above. Give your proof clearly, methodically and convincingly. Note that we have done similar proofs “informally” when discussing the implication table method. 200

A B

C (^) D

E

F

0/

1/ 1/

1/

1/

0/

0/

1/

0/

1/

0/

0/

2

  1. The next-state (NS) combinational logic for an edge-triggered synchronous sequential circuit is shown below.

B

C

Q

A Q x

y

Next−State Logic: External inputs: A, B, C; Current state bits: Q0, Q1; FF excitation inputs: x, y

The maximum and minimum delay for each gate are

and 

nsecs (ns), respectively, where

is the number of inputs of a gate. The sequential circuit uses edge-triggered D-FFs. After clock rout-

ing, the maximum clock skew is 7 ns. The delay and other timing data for a D-FF are as follows:    ! #"

typical

, typical

.

(a) Is the skew at a safe level? Why or why not? If not, then how would you change the circuit structure (note that you cannot change its functionality) in an incremental way so that the given clock skew is safe (note that you cannot decrease the clock skew amount, as we assume here that a minimized clock skew has been obtained). 40 (b) Draw the complete sequential circuit by augmenting the above NS combinational logic as (and if) required for the skew to be safe, and connecting the needed D-FFs to the inputs and outputs of the combinational logic. 20 (c) Keeping a 10% safety marging, determine the minimum clock period for operating the sequential circuit correctly. 40

  1. 12.3 40
  2. 12.6 80
  3. 12.8 plus determine a minimal set of test vectors for covering all faults in the fault table. As mentioned in class, this is done in a similar manner as the PIT stage of the single-function QM method—think of the test vectors as PIs in QM, faults as MTs in QM, and the fault table as the PI table in QM. In other words, this is a classical min-cost covering problem, as is the PIT part of QM. The minimal test vector set problem is actually slightly simpler than the PIT part of the QM method for gate-based digital circuits, as all test vectors have cost = 1. 100

in state X, and starting from B, it ends up in state Y, then X, Y are 1-equivalent. Thus when the last input S 1 of Sm+1 is applied, then starting from either X or Y, the FSM outputs are identical. Hence on application of Sm+1 , the FSM output sequence is identical, irrespective of whether we start from A or B. This proves part (i).

From the hypothesis, (X,Y) can be one of the following pairs: (A,B), (C,D) or (E,F). If (X,Y) = (A,B), we see that is implied next state pairs are (A,B) or (C,D), which are 1- equivalent. If (X,Y)=(C,D), we see that is implied next state pairs are (C,D) or (E,F), which are 1-equivalent. Finally, if (X,Y)=(E,F), its implied next state pairs are (E,F) and (A,B) which are 1-equivalent. Thus after application of S 1 , starting from either X or Y, the FSM ends up in states X’, Y’ that are 1-equivalent. Thus after application of Sm+ starting from either A or B, the FSM ends up in states X’ or Y’, respectively, that are 1- equivalent. We also showed above that (X’,Y’) can be either (A,B), (C,D) or (E,F). This proves the induction step for part (ii).

The theorem statement is thus true. 

The above theorem proves that states A, B are k -equivalent for any k. Thus they are equivalent. The other equivalent state pairs are (C,D) and (E,F), and their equivalency can be proved in a similar manner.

2. (a)

Figure 2.1.

For a safe level of Tskew, the following inequality must hold

( ) ( )

skew p,logic hold

skew

T min min T , min T min T T
T 7+4-5 ns = 6 ns
< plh phl + −

The given Tskew is 7 ns. Therefore, it is not at safe level. A safe level of Tskew can be obtained by slowing down the next state logic. This is done by inserting buffers (even numbers of inverters in series) on the min Tp,logic path. For the circuit shown in Figure 2.1, two buffers are inserted at the output signal paths as shown in Figure 2.1.2. This increases the delays of the two min-delay paths shown above by 2 ns (min delay of an inverter is 1 ns). In this case, min Tp,logic = 6 ns and a safe level of Tskew is obtained.

Figure 2.1.

Note: Tests for some sample faults derived
(a) 2/0:
G

2/

(in the order ( x 1 x 2 x 3 x 4 x 5 )) = {11001, 11011, 11101} and is a subset
of G

7/

, G

11/

, G

13/

This derived test set for G2/0^ is also a subset of the test sets for (i.e., each test
in G

2/

is also a test in) G

7/

, G

11/

and G

13/

. The following property is used
here:
“Each test for Gp/d^ is a test for various other wires w/x, where w is a wire
on the sensitizing path from f p/d^ and x = d if the signal that propagates on
wire w is z and x=d' if signal propagated on w is z' ( z is the logic value on
wire p)”.
(c) 9/0:

1

2

3 4

6

8

9

10

11

12

13

5

7

X
x 1
x 3
x 4
x 5
g
x 2
z
0-1-1 z z
G9/0^ ={00001,00011,00101,01001,01011,01101,10001,10011,10101}
and is a subset of G

11/

, G

13/

(d) 5/0:

1

2

3 4

6

8

9

10

11

12

13

5

7

X
x 1
x 3
x 4
x 5
g
x 2
z z
z
z
z
G5/0^ ={11001,11011,11101} and is a subset of G6/1, G12/0, G13/

f = ( ( x x 1 2 ) x 3 ) = x x 1 2 + x 3

x 1 x 2 x 3 f (^) f^1 /^0 f^1 /^1 f^2 /^0 f^2 /^1 f^3 /^0 f^3 /^1 f^4 /^0 f^4 /^1 f^5 /^0 f^5 /^1 0 0 0 1 1 1 1 1 1 0 1 1 0 1 0 0 1 0 0 0 0 0 1 0 1 0 0 1 0 1 0 1 1 1 1 1 1 0 1 1 0 1 0 1 1 0 0 1 0 0 1 0 1 0 0 1 1 0 0 1 1 1 1 1 1 0 1 1 0 1 1 0 1 0 0 0 0 1 1 0 1 0 0 1 1 1 0 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 0 1 0 1 1 1 1 0 0 1

1/ 0 1/ 3 2 3 2 / 0 2 / 3 1 3 3/ 0 3/ 1 2 4 / 0 4 / 3 5/ 0 1/

/ /

p d p d

f x f x x
f x f x x
f f x x
f f x
f f
F f f

The Fp/d^ ‘s are determined below using a bit-wise XOR of the f and fp/d^ columns of the above table (as opposed to determining Fp/d^ algebraically).

x 1 x 2 x (^3) F^1 /^0 F^1 /^1 F^2 /^0 F^2 /^1 F^3 /^0 F^3 /^1 F^4 /^0 F^4 /^1 F^5 /^0 F^5 /^1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 0 1 0 0 1 0 0 1 1 0 1 0 0 1 0 1 0 0 1 1 0 0 0 0 0 0 0 1 0 0 1 0 1 0 1 0 0 0 1 1 0 1 0 0 1 1 1 0 0 0 0 0 0 0 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 1 0