VLSI Lab Compendium
VLSI Lab Compendium
VLSI Lab Compendium
Student Name: ___________________________ Registration No: ___________________________ Semester: ___________________________ Date: ___________________________
Shahzad Asif
February, 2009
Page 1 of 46
Page 2 of 46
Figure 1. Test Circuit for NMOS 4. Lab Instructions 4.1. Schematic Design (DSCH) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. Open DSCH. Select the CMOS 025 foundry by selecting File Select Foundry Save the design frequently, during the elapse of the lab session. Drag the required components from the symbol library. The symbol library can be opened from View Symbol Library Connect the components as shown in figure 1. Check if there are any floating lines. Simulated Check Floating Lines. Simulate the design. Simulate Simulation. Carefully observe the results and fill table 1 given below. The timing diagram can be viewed by selecting View Timing Diagrams. To create a Verilog file, select File Make Verilog File. A window will appear as shown below, uncheck all the check boxes and click on OK.
Page 3 of 46
4.2. Layout Editor (Microwind) To see the layout of this design follow the following steps. 1. 2. 3. 4. Open Microwind. Select the cmos025 foundry by selecting File Select Foundry. Select Compile Compile Verilog File. Select the file generated by DSCH2. A window will be opened as shown below.
Page 4 of 46
Figure 3. 5. 6. 7. 8. 9. Click on the Compile button. Click on the Back to Editor button, the layout will be generated. Save your design. To check if there are any errors, select Analysis Design Rule Checker To see the simulation results, select Simulate Run Simulation.
The characteristics of PMOS are similar to the NMOS. Design the test circuits for PMOS and Study its behaviour. 5. Simulation Max Time Delay for NMOS: ________________ Max Time Delay for PMOS: ________________ Dimension of the Layout for NMOS (in Lambda): ________________ Dimension of the Layout for PMOS (in Lambda): ________________ 6. Results Explain the functionality of the designed NMOS ________________________________________________________________________ ________________________________________________________________________ ________________________________________________________________________
Page 5 of 46
Department of Electrical Engineering COMSATS Institute of Information Technology Explain the functionality of the designed PMOS ________________________________________________________________________ ________________________________________________________________________ ________________________________________________________________________ Draw the circuit designed for PMOS
Find out the maximum drain current when Vd is varied through 0 values of Vg given in the table. Note: Use low-leakage NMOS device to fill the table.
Page 6 of 46
Table 2. What is the affect of W/L on IDs? Explain the affect of Vb to the threshold voltage for NMOS devices. Explain the affect of Vb to the threshold voltage for PMOS devices. Explain the affect of Vb to Ids for NMOS devices. Explain the affect of Vb to Ids for NMOS devices. What is the affect of Vg to Cgs (gate to source capacitance). What is the affect of Vg to Cgd (gate to drain capacitance). What is the affect of temperature on the following? 1. 2. 3. Capacitance Threshold Voltage Drain Current (IDs)
Page 7 of 46
2. Design
Department of Electrical Engineering COMSATS Institute of Information Technology 3. Select Compile Compile Verilog File. 4. Select the file that you have generated by DSCH2 and compile it. 5. Save the Layout.
2. Check the X(50%) checkbox and click on reset button. Note the value of Vc in the table 1. 3. You can change the simulation parameters by selecting simulate Simulation Parameters. Fill the table 1 for different values of Vdd. Repeat the same experiment with different length of NMOS & PMOS, and fill table 2 for the default simulation parameters. Sr. # Vdd Supply (in Volts) Vc at y = Vdd/2 1 2 3 4 5 Table 1.
VLSI Design EEE 434 Page 9 of 46
Sr. #
Width of NMOS
Width of PMOS
Vc at y = Vdd/2
1 2 Table 2. When we use NMOS and PMOS transistors of same size, the time that it takes to change the output from 0 to 1 is more than the time for 1 to 0. The reason for this is that the mobility of electrons is more than the mobility of holes. To solve this problem we use PMOS with larger width than NMOS. Keeping the length of transistors constant fill the table 3 for different values of widths for which the inverter becomes symmetric. Sr. # 1 2 3 Width of NMOS Width of PMOS 0 1 time 1 0 time
Table 3 Explain the affect on Input to Output delay due to different size of transistors. ________________________________________________________________________ ________________________________________________________________________ ________________________________________________________________________ Explain the affect of different size of transistors on the voltage curve of output. ________________________________________________________________________ ________________________________________________________________________ ________________________________________________________________________ Explain the relationship of Vdd and output curve. ________________________________________________________________________ ________________________________________________________________________ ________________________________________________________________________
Page 10 of 46
Complementary CMOS is explained in the book (Digital Integrated Circuits by Jan M. Rabaey) on page 236-240.
Page 11 of 46
Page 12 of 46
Design the circuits for XOR & XNOR in DSCH2 and fill the tables 1 & 2 respectively.
Sr. # 1 2 3 4
A 0 0 1 1
B 0 1 0 1
Out
Sr. # 1 2 3 4
A 0 0 1 1
B 0 1 0 1
Out
Table 2. XNOR Gate Results Draw the circuits designed for XOR & XNOR gates.
Page 13 of 46
Sum Cout
Page 14 of 46
3. Lab Instructions Design the circuit for Cout according to equations (1) & (2), and find out the difference in the design and results. Write the equation for sum and complete the full adder circuit. 4. Results and Observations
1) Number of transistors used for Cout using equation (1) _____________________________ 2) Number of transistors used for Cout using equation (2) _____________________________ 3) Input to Output delay for Cout using equation (1) _____________________________ 4) Input to Output delay for Cout using equation (2) _____________________________ 5) Equation for the sum _____________________________ 6) Number of transistors used for Sum _____________________________ 7) Input to Output delay for Sum _____________________________ 8) Attach the circuit diagram for complete circuit (optimized for area and speed).
Page 15 of 46
Page 16 of 46
Department of Electrical Engineering COMSATS Institute of Information Technology for this then for 0.25 process will be 1.92. As is an integer value so the rounded value for is 2. More information can be found in the book (Basic VLSI Design by Douglas A. Pucknell) on page 79.
3. Lab Instructions
Use 0.25 design rule file for the CMOS inverter design.
Page 17 of 46
Figure 1. MOS Generator Tool Select the device type (PMOS or NMOS). Set the number of figures to generate and then click on the Generate Device button. Click on the window and the device will be placed there.
3. Connect the gates (poly silicon) and drains (metals) of the two devices as shown in figure 3.
Figure 3. Connecting gates and drains 4. Connect the Vdd supply (first button on third row) to the source of PMOS. 5. Connect the Ground (third button on third row) to the source of NMOS. 6. Click on the Design Rule Checker and correct the errors if any. The layout of CMOS Inverter is completed.
Page 19 of 46
Figure 4. Adding a Clock to input 2. Set the properties of clock according to figure 4 and then click on Assign button. 3. Click on the Visible Node (last button on third row) and then click on the drain of MOS. Then click on Assign button in the window displayed. 4. Click on the Add Virtual Capacitance (third button on second row) and then click on the output of the inverter. Set the desired value of capacitance and click on Assign button.
Page 20 of 46
Sr. No 1 2 3 4 5 6 7 8 9 10
Virtual Capacitance Value 0.0001 pf 0.001 pf 0.010 pf 0.050 pf 0.100 pf 0.500 pf 1.000 pf 2.000 pf 5.000 pf 10.00 pf
1 Time
0 Time
Page 21 of 46
Figure 1. Schematic of AND Gate There are 2 NMOS and 2 PMOS in the design excluding inverter. NMOS are in series while PMOS are in parallel. The important thing to note is that NMOS are connected such that the drain of one is connected to the source of other, and there is not any other connection at their joining. But in PMOS both the source and the drains are connected with each other and every terminal of the PMOS transistor is connected to some other wire in the circuit. This thing will result in a complex layout for PMOS as compared to NMOS. We can draw the same circuit as in the figure 2 or in figure 3 for having a different view of the circuit. The implementation of circuit given in figure 3 can be understood more easily so we will consider this circuit for our layout design.
Page 22 of 46
Page 23 of 46
3. Lab Instructions
Use 0.25 design rule file for the CMOS inverter design.
Page 24 of 46
9. Connect the gates (poly silicon) of PMOS and NMOS. As there is no connection at the junction of two NMOS transistors so we can remove this metal as shown in figure 5.
Figure 5. Connecting Gates and removing extra metal 10. Connect the drains of PMOS with each other and then the drain of NMOS as shown in figure 6.
Page 25 of 46
Figure 6. Connecting the drains of PMOS and NMOS 11. Place an inverter layout next to this design as shown in figure 7.
Department of Electrical Engineering COMSATS Institute of Information Technology 12. Connect the drain of first layout to the gate of the inverter as shown in figure 8.
Figure 8. Connecting drain of first layout with the inverter gate 13. Connect the source of NMOS with each other and connect them to Ground. 14. Connect the source of PMOS with each other and connect them to Vdd as shown in figure 9.
Page 27 of 46
Page 28 of 46
Page 29 of 46
3. Homework
You must complete the following tasks before coming to lab to save the time. 1. Find the optimal number of stages of inverter Nopt. 2. Find the Scaling Factor A for the problem. 3. Find the total delay of the design.
VLSI Design EEE 434 Page 30 of 46
4. Lab Instructions
1. Use 0.25 design rule file for the layout design. 2. Design each inverter separately and test each of them before combining with the other inverters. 3. Combine inverters one by one, and after adding each inverter simulate the design carefully. 4. Add the specified load capacitance, and check the timings of the design.
Page 31 of 46
3. Lab Instructions
5. Use 0.25 design rule file for the layout design. 6. The two designs are quite similar so you will not need to draw each transistor separately. 7. Do not forget to save the design during the work.
Page 33 of 46
Sr. # 1 2 3 4 5 6
_____________________________________________________________ _____________________________________________________________ _____________________________________________________________ _____________________________________________________________ _____________________________________________________________ _____________________________________________________________ _____________________________________________________________ _____________________________________________________________ _____________________________________________________________ _____________________________________________________________
Page 34 of 46
2. Schematics
VDD P0 P1 P2 P3 C3 Ci,0 G0 G1 G2 G3
C0
C1
C2
C3
3. Lab Instructions
8. Use 0.25 design rule file for the layout design. 9. Do not forget to save the design during the work.
Page 35 of 46
Page 36 of 46
2. Schematics
HA
HA
HA
HA
HA
FA
FA
FA
HA
FA
FA
FA
HA
FA
FA
HA
3. Lab Instructions
10. Use 0.25 design rule file for the layout design. 11. Do not forget to save the design during the work.
Page 37 of 46
Page 38 of 46
2. Schematics
A3
B3
Sh1 A2 B2
Sh2 A1 B1 Sh3 A0 B0
Sh0
Sh1
Sh2
Sh3
3. Lab Instructions
12. Use 0.25 design rule file for the layout design. 13. Do not forget to save the design during the work.
VLSI Design EEE 434 Page 39 of 46
Page 40 of 46
2. Schematics
V DD Pull-up devices BL [0] BL [1] BL [2] VD Pull-up devices BL [3]
WL [0]
WL [0] GND WL [1] WL [1] WL [2] WL [2] GND WL [3] WL [3] BL [0] BL [1] BL [2] BL [3]
3. Lab Instructions
14. Use 0.25 design rule file for the layout design. 15. Do not forget to save the design during the work. 16. You have to store the following datas: 0110,1000,0111,1001.
Page 41 of 46
Department of Electrical Engineering COMSATS Institute of Information Technology Latency1: ______________ Tplh for design2: _____________________________ Tphl for design2: _____________________________ Number of Transistors in design2: ______________ Latency2: ______________
Page 42 of 46
2. Schematics
W VD M2 M5 Q M1 B M4 Q M6
M3 B
3. Lab Instructions
17. Use 0.25 design rule file for the layout design. 18. Do not forget to save the design during the work.
Page 43 of 46
Page 44 of 46
2. Schematics
B 1 WW RW M3 M1 CS X M2 WWL RWL X BL 1 BL 2 V DD V DD 2 V T DV V DD 2 V T B 2
3. Lab Instructions
19. Use 0.25 design rule file for the layout design. 20. Do not forget to save the design during the work.
Page 45 of 46
11 Design Rules
11.1 Select a Design Rule File The software can handle various technologies. The process parameters are stored in files with the appendix '.RUL'. The default technology corresponds to a generic 6-metal 0.25m CMOS process. The default file is CMOS025.RUL. To select a new foundry, click on File -> Select Foundry and choose the appropriate technology in the list. To set a specific foundry as the default foundry, click Files -> Properties , 'Set as Default Technology'. 11.2 Start Microwind with a specific design Rule File To start Microwind with a specific design rule file, click with the right button of the mouse on the Microwind icon, select the "Properties" item, then the target. The default target may be: C:\microwind2\Microwind2.exe The command line may include two more parameters: The First parameter is the default mask file loaded at initialization The Second parameter is the design rule file loaded at initialization
The following command executes MICROWIND2 with a default mask file test.MSK and the rule file cmos018.RUL . C:\microwind2\Microwind2.exe test cmos018.rul
11.3 Nwell Design Rules r101 r102 r110 Minimum well size : 12 Between wells : 12 Minimum surface : 144 2
r101 r102 nwell p substrate nwell
92
18/05/02
11.4 Diffusion Design Rules r201 Minimum N+ and P+ diffusion width : 4 r202 Between two P+ and N+ diffusions : 4 r203 Extra nwell after P+ diffusion : 6 r204 Between N+ diffusion and nwell : 6 r205 Border of well after N+ polarization 2 r206 Distance between Nwell and P+ polarization 6 r210 Minimum surface : 24 2
Nwell polarization r205
N+
r203
r202
11.5 Polysilicon Design Rules r301 r302 r303 r304 r305 r306 r307 r310 Polysilicon width : 2 Polysilicon gate on diffusion: 2 Polysilicon gate on diffusion for high voltage MOS: 4 Between two polysilicon boxes : 3 Polysilicon vs. other diffusion : 2 Diffusion after polysilicon : 4 Extra gate after polysilicium : 3 Minimum surface : 8 2
r305
P+dif r302 r304 r303 N+dif r307 High voltage MOS r306 r306
r301
93
18/05/02
r305
r301
r304
r306 N+diff
r307
11.6 2nd Polysilicon Design Rules r311 r312 Polysilicon2 width : 2 Polysilicon2 gate on diffusion: 2
r311 Poly2
r312
11.7 Option Design Rules rOpt Border of option layer over diff N+ and diff P+
N+dif rOp
11.8 Contact Design Rules r401 r402 r403 r404 r405 r406 Contact width : 2 Between two contacts : 5 Extra diffusion over contact: 2 Extra poly over contact: 2 Extra metal over contact: 2 Distance between contact and poly gate: 3
r403 r406 gate diffusion metal r404 r402
r401 contact
contact
polysilicium r405
94
18/05/02
11.9 Metal & Via Design Rules r501 r502 r510 Metal width : 4 Between two metals : 4 Minimum surface : 32 2
r501
metal
r502
metal
Via width : 2 Between two Via: 5 Between Via and contact: 0 Extra metal over via: 2 Extra metal2 over via: 2 When r603=0, stacked via over contact is allowed
r604 r602 via r601 r603 contact metal2 Stacked via over contact when r603 is 0
11.10 Metal2 & Via2 Design Rules r701 r702 r710 Metal width: 4 Between two metal2 : 4 Minimum surface : 32 2
r701
metal2
r702
metal2
Via2 width : 2 Between two Via2: 5 Extra metal2 over via2: 2 Extra metal3 over via2: 2
11.11 Metal3 & Via3 Design Rules r901 r902 r910 Metal3 width: 4 Between two metal3 : 4 Minimum surface : 32 2
r901 metal3 r902 metal3
95
18/05/02
Via3 width : 2 Between two Via3: 5 Extra metal3 over via3: 2 Extra metal4 over via3: 2
11.12 Metal4 & Via4 Design Rules rb01 rb02 rb10 Metal4 width: 4 Between two metal4 : 4 Minimum surface : 32 2
rb01 Metal4 rb02 Metal4
Via4 width : 2 Between two Via4: 5 Extra metal4 over via2: 3 Extra metal5 over via2: 3
rc01
11.13 Metal5 & Via5 Design Rules rd01 rd02 rd10 Metal5 width: 8 Between two metal5 : 8 Minimum surface : 100 2
rd01 Metal5 rd02 Metal5
Via5 width : 4 Between two Via5: 6 Extra metal5 over via5: 3 Extra metal6 over via5: 3
re01
re04
re02 Metal5,6
Via5
11.14 Metal6 Design Rules rf01 rf02 rf10 Metal6 width: 8 Between two metal6 : 15 Minimum surface : 300 2
rf01 Metal6 rf02 Metal6
96
18/05/02
11.15 Pad Design Rules rp01 rp02 rp03 rp04 rp05 Pad width: 100 m Between two pads 100 m Opening in passivation v.s via : 5m Opening in passivation v.s metals: 5m Between pad and unrelated active area : 20 m
rp03
PAD rp02
rp01
97
18/05/02