






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







1
ECE 465—Spring 2010 , Instructor: Prof. Shantanu Dutt Homework 5 : Due Thurs, April 29
A B
C (^) D
E
F
0/
1/ 1/
1/
1/
0/
0/
1/
0/
1/
0/
0/
2
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
nsecs (ns), respectively, where
is the number of inputs of a gate. The sequential circuit uses edge-triggered D-FFs. After clock rout-
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
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.
Figure 2.1.
For a safe level of Tskew, the following inequality must hold
( ) ( )
skew p,logic hold
skew
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.
2/
7/
11/
13/
2/
7/
11/
13/
1
2
3 4
6
8
9
10
11
12
13
5
7
11/
13/
1
2
3 4
6
8
9
10
11
12
13
5
7
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
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