Beruflich Dokumente
Kultur Dokumente
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.
Schematic Capture
Create Symbol
Simulation
Layout
Extraction
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:
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:
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 9: Waveform of counter at 1 MHz clock. Simulated waveform from extracted layout at 1MHz clock frequency with Reset:
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
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
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:
12
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:
13
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