Sei sulla pagina 1di 26

PROJECT REPORT

ON

Double Sequence Detector

GUIDED BY: SUBMITTED BY:

Dr. Dipankar Nagchoudhuri Vivek Kr. Choudhary (200611029)

Sudhir Kr. Sa (200711040)

K. Ram Prasad Rao (200711039)

Dhirubhai Ambani Institute of

Information and Communication Technology Gandhinagar India

November 2007
Contents:

 Symbols used

 Project Description

 Application of Double Sequence Detector

 State Diagram

 State Table

 Karnaugh Map

 Design Issues

 Design Strategy

 Design Goals

 Design Approach

 Logic Effort Calculation

 Area Estimation

 Transistor sizing and Logical area calculation

 Floor Plan

 Specifications

 Simulations results and waveforms

 References
Symbols Used: -
Symbol Description

VDD Supply Voltage

GND Ground

CLK Clock signal

X Input sequence

Y Output

I D Drain current .

tr Rise time

tf Fall time

µ Ratio of mobility of PMOS and NMOS transistor


L Channel Length

Project Description

 Aim is to design a Double Sequence Detector with one input


and two outputs.

 The output of the circuit will be a 1 and 0 corresponding on


input depending on sequence and goes to the inverter relay
circuits.

Overall circuit as a black box:

Battery Voltage Controller


or
Periodically charger
I/p
O/P’s

Figure 1: Inverter Circuit controlled Logic

Application of double sequence detector:

ste p D o w n X -m e r
ste p u p X -m e r

T
555
A m p. U
T im e r
B
E

D .C . B a tte r y

V o lta g e c o n t r o lle r o r
P e r io d ic a lly c h a r g e r

Figure 2: Inverter Circuit with controlled Logic


The above schematic arrangement summarizes the application we are aiming at through this
project. In brief the circuit operation can be summed up as under:
The voltage of the D.C battery is sampled and quantized continuously. The
so obtained value of voltage is fed into the charger , which in turn monitors the voltage by
detecting the sequence being fed into it. In case the sequence detector encounters a sequence 011
it switches the relay circuit on there by initiating the process of charging the battery. The
charging continues until a sequence 101 is encountered which indicates the completion of
charging process there by switching the relay circuitry off and hence terminating the process.
Thus the voltage of the battery is monitored continuously and maintained between the required
levels.

State Diagram of Double Sequence Detector:


Figure 3: State diagram for double sequence detector
State Table:

Present Next State Outp


State ut
A B C X DA=A(t DB=B(t DC=C(t Y
+1) +1) +1)
0 0 0 0 0 0 1 0

0 0 0 1 0 1 0 0

0 0 1 0 0 0 1 0

0 0 1 1 0 1 1 0

0 1 0 0 1 0 0 0

0 1 0 1 0 1 0 0

0 1 1 0 1 0 0 0

0 1 1 1 1 0 1 1

1 0 0 0 0 0 1 0

1 0 0 1 1 1 0 1

1 0 1 0 1 0 0 0

1 0 1 1 0 1 0 0

1 1 0 0 1 0 0 0

1 1 0 1 1 0 1 0

1 1 1 0 x x x x

1 1 1 1 x x x x

Figure 4: State Table for double sequence detector


Karnaugh map:

C X C X
00 01 11 10 00 01 11 10
AB AB

00 00 1 1

01 1 1 1 01 1

11 1 1 x x 11 x x

10 1 1 10 1 1

D a = C B + A C X ' + B X ' + A C 'X D B = X B ' + A 'C 'X


s

C X C X
00 01 11 10 00 01 11 10
AB AB

00 1 1 1 00

01 1 01 1

11 1 x x 11 x x

1 10 1
10

D c = X 'B ' C ' + A 'B 'C + A 'C X + A B X O /P Y = A B ' C 'X + B C X

Figure 5: Maps for double sequence detector


Design Issues
 If the logic expressions are derived directly from the K -map shown before, then
expressions of length 16 terms with each term containing 4 variables on an average were
obtained.
 Hence NAND /NOT based design are adopted.
 We opted D-flip flop because it has a single input hence the resulting circuit is less
complex.
 The use of D-flip flop avoids occurrance of race around condition because it’s an edge
triggered flip flop.

Design Strategy
 Standard Cell based design
 Inverter based design for standard cells with equivalent Inverter ratio of 2:1 (minimum
average delay)
 NAND based Combinational logic blocks (Minimum Logical effort)
 We opted for Static Logic because NAND implementation is easier in case of this logic
style; besides this our application required low power consumption, low noise sensitivity
and negligible power dissipation.
 We preferred Static Logic because it detects both low and high logic strongly.
 Static Logic also supports large fan in which is a major requirement while using multiple
input NAND gates.

Design Goals
 Compact and simple layout
 Power considerations

Design approach
We used the following standard cells:

 Inverter
 NAND-2
 NAND-3
 NAND-4
B
X
C

B
X'

X'

A
D Q
C

A CLK Q
C'
X

A' y
C' D Q
X

+
B' 1 0 0 0 fF
X CLK Q

B' D Q
C' 1 fF

CLK Q
A'
B'
C

A'
C CLK
X

A
B
X

Figure 6: Double Sequence Detector


Table: Summary of terms and equations for concepts in the
method of logical Effort
To find the best number of stages, the best size of each gate, and the
minimum delay of a circuit with the following procedure:
Logical Effort Calculation:

A'
C'
X
1 fF x
Y = X B ' + A 'C 'X

+
B' y 1 0 0 0 fF
X

P = 3 + 2 = 5
G = 5 /3 x 4 /3 = 2 0 /9
B = 1
h = 1000
F = G x B x H = 2 0 0 0 0 /9
f = (2 0 0 0 0 /9 ) ^ (1 /2 ) = 4 7 .1 5
d = N x f + P = 2 x 4 7 .1 4 + 5
= 9 9 .2 8 0 9
x - t e r S iz in g y = 1 0 0 0 x ( 4 / 3 ) / 4 7 . 1 4
= 2 8 .2 8
x = 2 8 .2 8 x (5 /3 )/4 7 .1 4 = 1

Figure 7: Logical effort for double sequence detector


Logical Effort Calculation:

A
B'
C'
X
1 fF x Y = X B C + A 'B 'C 'X

+
B y
C 1 0 0 0 fF
X

P = 4 + 2 = 6
G = 6 /3 x 4 /3 = 8 /3
B = 1
h = 1000
F = G x B x H = 8 0 0 0 /3
f = (8 0 0 0 /3 ) ^ (1 /2 ) = 5 1 .6 3 9 7 8
d = N x f + P = 2 x 5 1 .6 3 9 8 + 6
= 1 0 9 .2 7 9 5 6
x - t e r S iz in g y = 1 0 0 0 x ( 4 / 3 ) / 5 1 . 6 3
= 2 5 .8 1 9 8 9
x = 2 5 .8 1 9 8 9 x (5 /3 )/5 1 .6 3 = 1
Figure 8: Logical effort for double sequence detector

Logical Effort Calculation:


X'

B'
x
C'

Y = X 'B 'C ' + A 'B 'C + A 'C X + A B X


1 fF y

A'

+
B'
C
1 0 0 0 fF
z
A'
C
X

A
B
X

P = 1+ 3 + 4 = 8
G = 1 x 5 /3 x 2 = 1 0 /3
B = 1
H = 1000
F = G x B x H = 1 0 0 0 0 /3
f = (1 0 0 0 0 /3 ) ^ (1 /3 ) = 1 4 .9 3 8 0 2
d = N x f + P = 3 x 1 4 .9 3 8 0 2 + 8
= 5 2 .8 1 4 0 5
x - t e r S iz in g z = 1 0 0 0 x ( 6 / 3 ) / 1 4 . 9 3 8 0 2
= 1 3 3 .8 8 6 5 5
y = 1 3 3 .8 8 6 5 5 x (5 /3 )/1 4 .9 3 8 0 2 = 1 4 .9 3 8 0 9
x = 1 4 .9 3 8 0 9 x 1 /1 4 .9 3 8 0 2 = 1

Figure 9: Logical effort for double sequence detector


Logical Effort Calculation:

B
C
1 fF
x
B Y = C B + A C X ' + B X ' + A C 'X
X y'

+
X' z 1 0 0 0 fF
y
A
C x
w A
C'
X

P = 2 + 1 + 2 + 3 = 8
G = 4 /3 x 1 x 4 /3 x 5 /3 = 8 0 /2 7
B = 1
h = 1000
F = G x B x H = 8 0 0 0 0 /2 7
f = (8 0 0 0 0 /2 7 ) ^ (1 /4 ) = 7 .3 7 7
d = N x f + P = 4 x 7 .3 7 7 + 8
= 3 7 .5 1 1
x -te r S iz in g z = 1 0 0 0 x (5 /3 )/7 .3 7 7
= 2 2 5 .9 2 7
y = 2 2 5 .9 2 7 x (4 /3 )/7 .3 7 7 = 4 0 .8 3 4 5 6
x = 4 0 .8 3 4 5 6 x 1 /7 .3 7 7 = 5 .5 3 5 3 9
w = 5 .5 3 5 3 9 x (4 /3 )/7 .3 7 7 = 1
Figure 10: Logical effort for double sequence detector

V D D

V D D 2 0 .4 2 2 0 .4 2
X' B
V D D 2 0 .4 2 2 0 .4 2

A
3 .6 9
X'
2 0 .4 2
A 2 0 .4 2
1 .8 4
B 2 0 .4 2

2 0 .4 2
X'
7 5 .3 1
7 5 .3 1 V D D

V D D 7 5 .3 1
V D D 7 5 .3 1

0 .5 0 .5
C 3 .6 9
To D A
A
1 5 0 .6 1 1 0 0 0 fF

1 .8 4
A 0 .5
1 5 0 .6 1

1 5 0 .6 1
C 0 .5
X
1 5 0 .6 1

V D D
V D D

A '
2 0 .4 2 2 0 .4 2
1 6 .3 4 1 6 .3 4 1 6 .3 4
B C A
C ' X

B A
2 0 .4 2 2 4 .5 0

2 0 .4 2 C ' 2 4 .5 0
C

X 2 4 .5 0
Figure 11: X-ter sizing and Logical area calculation

V D D
0 .5 0 .5
X
B ' V D D

1 4 .1 4
0 .5
X 1 4 .1 4
To D B

0 .5
B ' 1 0 0 0 fF
1 4 .1 4

V DD
1 4 .1 4
0 .4 0 .4 0 .4
X A ' C '

0 .6
X

A ' 0 .6

C ' 0 .6

Figure 12: X-ter sizing and Logical area calculation.


V D D

V D D 5 .9 8 5 .9 8 5 .9 8
X B ' C '
V D D 5 .9 8
5 .9 8 5 .9 8
A B

X ' 8 .9 6

A 8 .9 6

B ' 8 .9 6

B 8 .9 6

C ' 8 .9 6
X'
8 .9 6 4 4 .6 3
4 4 .6 3 V D D
4 4 .6 3
4 4 .6
V D D 3

5 .9 8 5 .9 8 5 .9 8
A ' T o D c
C X
8 9 .2 5 1 0 0 0 fF

A ' 8 .9 6 8 9 .2 5

8 9 .2 5
C 8 .9 6

8 9 .2 5

X 8 .9 6

V D D

5 .9 8 5 .9 8 5 .9 8
A '
C
B '

A ' 8 .9 6

B ' 8 .9 6

C 8 .9 6

Figure 13: X-ter sizing and Logical area calculation.


V DD

0 .3 0 .3 0 .3 0 .3
X A B ' C '

1 2 .9 1 V DD
A 0 .6
1 2 .9 1
T o O /P Y
B ' 0 .6
1 0 0 0 fF
1 2 .9 1
C ' 0 .6

X 0 .6 1 2 .9 1

V DD

0 .4 0 .4 0 .4
X B C

X
0 .6

B 0 .6

C 0 .6

Figure 14: X-ter sizing and Logical area calculation.


Logical Area Estimation

N-Channel Transistor Sizes:


2 x14.14 + 0.5 x 2 + 0.6 x 3 + ( 25.81 / 2 ) + ( 3 / 5 )x 3 + ( 4 / 6 ) x 4 + ( 4 / 6 ) x
133.88 x 4 + ( 3 / 6 ) x 14.93 x 3 x 4 + ( 1 / 3 ) x 1 + ( 4 / 6 ) x 225.92 x 4 + ( 2 / 4 )
x 40.83 x 2 x 3 + 40.83 x ( 3 / 5 ) x 3 + 5.53 x ( 1 / 3 ) x 2 + ( 2 / 4 ) x 1 x 2

= 1298.50233 λ2

P-Channel transistor Sizes:


2 x 14.14 + 0.5 x 2 + 0.4 x 3 + ( 25.81 / 2 ) + ( 2 / 5 ) x 3 + ( 2 / 6 ) x 4 + ( 2/ 6 ) x
133.88 x 4 + ( 2 / 6 ) x 14.93 x 3 x 4 + ( 2 / 3 ) x 1 + ( 2 / 6 ) x 225.92 x 4 + ( 2 / 4 )
x 40.83 x 2 x 3 + 40.83 x ( 2 / 5 ) x 3 + 5.53 x ( 2 / 3 ) x 2 + ( 2 / 4 ) x 1 x 2

= 765.89767 λ2

Total Area:
P-Channel area + N-Channel area = 765.89767 λ2+ 1298.50233 λ2

=2064.4 λ2

= 722.54 µm2

where λ = 0.35µm
D-Flip flop:
Single edge Triggered (SET flip flop)
Master Slave configuration
CLK CLK
CLK QM
D Q
CLK CLK CLK CLK
CLK
Latch

Latch

QM
D Q
CLK CLK

Figure 15: Single Edge triggered D-flip Flop

Floor Plan:

I /P f r o m b a t t e r y

555 V o lta g e c o n tr o lle r R e la y


T im e r or a n d s u p p ly
P e r io d ic a lly C h a r g e r C ir c u it

S te p U p
R e c t if ie r a nd
P o w e r A m p lif ie r
C ir c u it S te p D ow n
C ir c u it
Tran s fo rm e r
Figure 16: Overall floor Plan of Design.

Specifications
 No of transistor in combinational circuit = 100
 No of transistor in D-flipflop= 48
 Total Transistor count = 148
 Total Estimated logical area = 2064.4 λ2 (722.54 µm2)
 Operating Voltage Vdd = 3-5Volts
 Operating frequency range = 10MHz-100MHz
Spice simulation results:
Supply

(Vdd) 3 3.5 4 4.5 5

O/P Delay 0.58 .69 0.82 0.95 1.10

Y (psec)

Input Delay 0.20 0.24 0.28 0.32 0.38

DA (psec)
Input Delay 0.53 0.63 0.75 0.86 1.0

DB (psec)
Input Delay 0.28 0.33 0.40 0.46 0.53

DC (psec)
Rise time 1 1.5 2 2.5 3

Tr (nsec)

Fall time 1 1.5 2 2.5 3

Tf (nsec)

Power 3.78*10^(- 5.11*10^ 6.88*10^( 8.42*10^(- 1.03*10^(


5) (-5) -5) 5) -4)
Dissipation(
uW)
(Id*Vdd)
References
 Sabih H.Gerez “Algorithms for VLSI Design Automation ”,Wiley Publications ,June
2000 Edition

 Etienne Sicard , Sonia Delmas Bendhia “Basics of CMOS Cell Design”,Tata McGraw-
Hill Publications,2005 Edition

 John P.Uyemura “Introduction to VLSI circuits and system”,Wiley Publications,2006


Edition

 Jan M.Rabaey , A. Chandrakasan , B.Nikolic “Digital Integrated Circuits”,Prentice –


Hall India, Second Edition 2006

 Sung-Mo Kang ,Yusuf Leblebici “CMOS Digital Integrated Circuits”, Tata McGraw-
Hill Publications, Third Edition 2003.

Potrebbero piacerti anche