Você está na página 1de 15

I.

Objective:

The objective of this project is to design a 4-bit counter and implement it with the help of Cadence (custom IC design tool) following necessary steps and rules dependent on selected process technology.

II. Selection of counter to be designed:


In my project I have designed a 4-bit synchronous counter with serial carry look ahead and synchronous reset. Some salient features and advantages have inspired me to go for this type of counter, which are given belowSynchronous counter is considered as one of the most popular and widely used counter. Since same clock signal is given to all the fundamental blocks (Flip Flop) of the counter, no interrupt can occur in the middle of a state transition. It provides low propagation delay in comparison to asynchronous counter. The output level of the counter is free from glitch, which ensures us about the reliability of digital logic control.

III. Selection of Flip flop:


Flip-flop is the fundamental building block of counter. So, wise selection of flip flop is a vital point in designing a counter. Toggling operation of T -flip flop is very efficient in designing synchronous counter. But I have decided to design a JK flip flop due to following reasonsJK flip-flop is the most versatile of basic flip-flops. Both T and D flip flop can be easily generated from it. We can easily implement set and reset logic of the counter by using set and reset mode of JK flip-flop.

IV. Design Steps:


Cadence is one of the most popular, efficient and commercial custom IC design tool. There are some sequential steps that we have to follow strictly for fruitful IC design. These steps are mentioned belowDesign Specification

Schematic Capture

Create Symbol

Simulation

Layout

DRC- Design rule Check

Extraction

LVS - Layout vs Schematic Check

Post layout Simulation

Figure 1: Flowchart of design steps

V. JK Filp Flop:
Master salve edge triggered flip flop is more preferable in IC design due to its reliable output. The characteristics table of JK flip-flop is: Table 1: Truth table of JK flip flop J 0 0 1 1 Schematic: K 0 1 0 1 Qn+1 Qn 0 1 Qn

Figure 2: Schematic diagram of JK flip flop Master-slave cross couple NAND gate method is used in designing negative edge triggered JK flip flop. The status of output stage (Q and Q) depends on the latched data of master stage just before the negative going edge of the clock signal. Before the next negative edge of the clock, the input of J and K has no effect on the output stage. This reduces the effect of noise signal.

AMI-0.6 micron process is used in drawing the schematic of all basic gates like inverter, AND, OR and NAND. Same W/L ratio (3/0.6) is used for both pmos and nmos. This selection has made little bit variation between rise time and fall time. But this variation is negligible in case of digital circuit in comparison to the effect produced by load capacitance. To implement synchronous reset logic 1 AND gate, 1 OR gate and 1 inverter are used at the beginning of the circuit. When the reset pin will be high, it will force the flip flop to go to reset mode. Symbol: The customized symbol of the JK flip flop is given below:

Figure 3: Symbol of JK flip flop with synchronous reset Layout:

Figure 4: Layout of JK flip flop

VI. 4 Bit Synchronous Counter:


The truth table for 4 bit up counter is: Table 2: Truth table of 4 bit synchronous up counter.
States D 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 C 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 B 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 A 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Count

According to the truth table, it can be noted that A must change state with every input clock pulse. This can be easily implemented by using a T flip-flop. But even with JK flipflops, all we need to do here is to connect both the J and K inputs of this flip-flop to logic 1 in order to get the correct activity. B must change state only when output A is a logic 1,

but not when A is a logic 0. So, if we connect output A to the J and K inputs of flip-flop B, we will see output B behaving correctly. Again, C must change state only when both A and B are logic 1. We can't use only output B as the control for flip-flop C; that will allow C to change state when the counter is in state 2, causing it to switch directly from a count of 2 to a count of 7, and again from a count of 10 to a count of 15 not a good way to count. Therefore we will need a two-input AND gate at the inputs to flip-flop C. The state of D will change only when the logic level of A, B and C are high. So we can use same method for D flip flop. An additional pin for serial carry look ahead is implemented for cascading purpose. Sometimes we may need to construct a 8bit synchronous counter by using two 4 bit counter. Then we will need the serial carry bit generated from previous counter.

Schematic:

Figure 5: Schematic diagram of 4 bit synchronous counter

Simulated waveform from schematic at 200MHz clock frequency:

Figure 6: Simulated wave shape from schematic

Layout: The layout of the counter has been tried to make as small as possible using few interconnection. Four flip flops are placed at four corners and 3 and gates are placed in the middle. I have used up to metal2 layer for interconnection. The layout would have been more compact if I would use metal3 layer. The final size of the layout is 114.45 m by 83 m, which can be considered as a usual size of a 4bit counter.

Figure 7: Cadence layout of 4 bit counter Extracted Layout:

Figure 8: Extracted layout of 4 bit counter 8

Simulated waveform from extracted layout at 1MHz clock frequency:

Figure 9: Waveform of counter at 1 MHz clock. Simulated waveform from extracted layout at 1MHz clock frequency with Reset:

Figure 10: Waveform of counter at 1 MHz clock with reset operation. 9

VII. Some Extreme Cases:


Simulated waveform from extracted layout at 200MHz clock frequency:

Figure 11: Waveform of counter at 200 MHz clock Simulated waveform from extracted layout at 10MHz clock frequency with 4pF load:

Figure 12: Waveform of counter at 10 MHz clock with 4pf load capacitance 10

VIII. Measurement of Rise Time, Fall Time and Propagation Delay:


30%~70% method is used to measure the rise time and fall time. On the other hand 50%~50% method is used in case of measuring propagation delay. At first these parameters are measured with out load, which represent the effect of parasitic capacitance. Afterward, same capacitive load is applied to the output node of each flip flop to analyze the loading effect. Measured data at different clock frequencies: Table 3: Rise time, fall time and delay at different output nodes. Rise Time (ps) fclock (MHz)
1 10 50 100

Fall Time (ps) D A B C D A

Delay (ps) B C D

329.41 221.22 190.29 197.69 220.72 157.27 133.91 136.95 631.71 522.66 489.98 495.63 323.83 217.49 189.45 196.48 217.96 155.65 132.94 134.57 628.58 522.96 489.23 495.61 329.48 218.41 189.13 195.65 225.56 155.08 132.89 134.21 631.74 522.64 489.97 495.29 324.49 218.44 189.33 195.67 218.83 154.93 133.04 134.73 628.55 523.03 488.86 495.68

Measured data at different capacitive loads with 10MHz clock frequency: Table 4: Rise time, fall time and delay at different output nodes in loaded condition.. Rise Time (ns) Cload (pF)
1 2 3 4

Fall Time (ns) D


3.05 5.75 8.42 11.02

Delay (ns) D
3.31 6.51 9.67 12.86

A
3.16 5.85 8.53 11.21

B
3.06 5.72 8.41 11.06

C
3.03 5.73 8.37 11.03

A
3.42 6.57 9.76 12.95

B
3.34 6.46 9.69 12.88

C
3.32 6.51 9.68 12.86

A
4.84 8.92 12.95 16.97

B
4.7 8.79 12.81 16.83

C
4.69 8.76 12.81 16.81

D
4.72 8.77 12.83 16.85

Above tables show the loading effect on the output node of the counter. There is negligible variation in rise time, fall time and propagation delay, if we increase the clock

11

frequency at no load condition. But there is almost linear increment of these values with the increase of capacitive load. Following figures show the variation of rise time, fall time and propagation delay with frequency at no load condition:

Rise Time without Load


350 300 250 Time (ps) 200 150 100 50 0 1 10 50 100 Clock Frequency (MHz) A B C D

Figure 13: Variation of rise time with frequency

Fall Time without Load


250 200 Time (ps) 150 100 50 0 1 10 50 100 Clock Frequency (MHz) A B C D

Figure 14: Variation of fall time with frequency

12

Propagation Delay without Load


700 600 500 Time (ps) 400 300 200 100 0 1 10 50 100 Clock Frequency (MHz) A B C D

Figure 15: Variation of propagation delay with frequency Following figures show the variation of rise time, fall time and propagation delay with load capacitance at 10MHz clock frequency:

Rise Time with Load


12 10 Time (ns) 8 6 4 2 0 1 2 3 4 Load Capacitance (pF) A B C D

Figure 16: Variation of rise time with load capacitance.

13

Fall Time without Load


14 12 10 Time (ns) 8 6 4 2 0 1 2 3 4 Load Capacitance (pF) A B C D

Figure 17: Variation of fall time with load capacitance.

Propagation Delay with Load


18 16 14 Time (ns) 12 10 8 6 4 2 0 1 2 3 4 Load Capacitance (pF) A B C D

Figure 18: Variation of propagation delay with load capacitance. Though there are slight variations in rise time fall time and propagation delay among four output nodes, they show exactly same behavior at loaded condition. So, parasitic capacitance has negligible effect in comparison to load capacitance.

14

IX. Application:
Counter can be considered as a heart of different digital and analog circuit. There are vast applications of counter in the field of electronics. Only few of them are mentioned belowSome times we need different clock frequencies for the operation of different parts of a large circuit. In that case counter can be efficiently used as a frequency divider. From a 4 bit synchronous counter we can get four different frequencies with a multiple of two. Digital counter acts as a key part in the implementation of time dependent digital logic control circuit. Coffee vending machine, microwave oven etc.- are some very good example of such kind of circuits

15

Você também pode gostar