Difference between revisions of "INV Schematic Tutorial"

From Vlsiwiki
Jump to: navigation, search
(Schematic Tutorial)
 
Line 1: Line 1:
<toc>
 
----
 
  
== # Creating a schematic view ==
+
== Creating a schematic view ==
  
 
First create a schematic cell view in your library. If you have not created a library, see the [[Technology Setup]] document.
 
First create a schematic cell view in your library. If you have not created a library, see the [[Technology Setup]] document.
  
[#fig1]
+
[[Image:1-create_cell.jpg|center|500px]]
|| http://bacon.cse.ucsc.edu/vlsi/inv_schematic/1-create_cell.jpg ||
+
|| <i>Figure 1.</i> ||
+
  
== # Schematic editor window ==
+
 
 +
== Schematic editor window ==
  
 
When you open a schematic view, it is opened in the schematic editor which looks like this:
 
When you open a schematic view, it is opened in the schematic editor which looks like this:
[#fig2]
+
[[Image:2-schematic_editor.jpg|center|500px]]
|| http://bacon.cse.ucsc.edu/vlsi/inv_schematic/2-schematic_editor.jpg ||
+
|| <i>Figure 2.</i> ||
+
 
A schematic view basically consists of instances, wires, and pins. You can also make buses, but that is not covered in the tutorial.
 
A schematic view basically consists of instances, wires, and pins. You can also make buses, but that is not covered in the tutorial.
  
== # Creating an instance ==
+
== Creating an instance ==
  
 
Most of our instances will be of already defined library components. To add an instance, select Add->Instance... or press "i". This will open the Component Browser shown here:
 
Most of our instances will be of already defined library components. To add an instance, select Add->Instance... or press "i". This will open the Component Browser shown here:
  
[#fig3]
+
[[Image:3-component_browser.jpg|center|500px]]
|| http://bacon.cse.ucsc.edu/vlsi/inv_schematic/3-component_browser.jpg ||
+
 
|| <i>Figure 3.</i> ||
+
  
 
In the component browser, we will only use a few items in the NCSU Analog Parts library. You can use: nmos and pmos in the N_Transistors and P_Transistors categories; and vdd and gnd in the Supply Nets category. DO NOT USE ANYTHING ELSE. If you use another supply net, it will not work. If you use another transistor, it may not work.
 
In the component browser, we will only use a few items in the NCSU Analog Parts library. You can use: nmos and pmos in the N_Transistors and P_Transistors categories; and vdd and gnd in the Supply Nets category. DO NOT USE ANYTHING ELSE. If you use another supply net, it will not work. If you use another transistor, it may not work.
  
[#fig4]
+
[[Image:4-component_browser.jpg|center|500px]]
|| http://bacon.cse.ucsc.edu/vlsi/inv_schematic/4-component_browser.jpg ||
+
|| <i>Figure 4.</i> ||
+
  
== # Adding instances ==
+
 
 +
== Adding instances ==
  
 
After selecting the comopnent, an Add Instance window will appear like this:
 
After selecting the comopnent, an Add Instance window will appear like this:
  
[#fig5]
+
[[Image:5-add_instance.jpg|center|500px]]
|| http://bacon.cse.ucsc.edu/vlsi/inv_schematic/5-add_instance.jpg ||
+
|| <i>Figure 5.</i> ||
+
  
 
Make sure that you set the appropriate size of the transistor so that it can be matched to your layout. Once you have selected, for example, a pmos device. You can go back to the schematic editor and a pmos transistor instance will be moving around with your mouse cursor. Click on a location and it will instantiate the transistor. If you want to change the instance, use the options in the Edit menu. For supply pins, there are no options you need to set. Add the remainder of the components (vdd, gnd, pmos, nmos) for your inverter.
 
Make sure that you set the appropriate size of the transistor so that it can be matched to your layout. Once you have selected, for example, a pmos device. You can go back to the schematic editor and a pmos transistor instance will be moving around with your mouse cursor. Click on a location and it will instantiate the transistor. If you want to change the instance, use the options in the Edit menu. For supply pins, there are no options you need to set. Add the remainder of the components (vdd, gnd, pmos, nmos) for your inverter.
  
[#fig6]
+
[[Image:6-instances_added.jpg|center|500px]]
|| http://bacon.cse.ucsc.edu/vlsi/inv_schematic/6-instances_added.jpg ||
+
 
|| <i>Figure 6.</i> ||
+
  
== # Creating pins ==
+
== Creating pins ==
  
 
Once you have added the components, you need to add pins for the inputs and outputs. The pins are used to connect between levels of hierarchy and also to match in the layout. You must use the same names in the schematic and the layout. Name inputs A, B, etc. and outputs Y or Z. Be consistent.
 
Once you have added the components, you need to add pins for the inputs and outputs. The pins are used to connect between levels of hierarchy and also to match in the layout. You must use the same names in the schematic and the layout. Name inputs A, B, etc. and outputs Y or Z. Be consistent.
  
== # Adding wires ==
+
== Adding wires ==
  
 
Once you have instantiated the input and output pin, you need to hook everything up with wires. To add wires select Add->Wire (narrow) or press "w" in the schematic editor. You can now point and click everywhere a wire is supposed to go. When you near a terminal you will notice a yellow diamond that shows up. You can press the "s" key to snap the wire to that terminal. This is useful for quickly adding wires and making sure that they are connected to the terminal. If you point and click, it is easy to not really connect the wire.
 
Once you have instantiated the input and output pin, you need to hook everything up with wires. To add wires select Add->Wire (narrow) or press "w" in the schematic editor. You can now point and click everywhere a wire is supposed to go. When you near a terminal you will notice a yellow diamond that shows up. You can press the "s" key to snap the wire to that terminal. This is useful for quickly adding wires and making sure that they are connected to the terminal. If you point and click, it is easy to not really connect the wire.
Line 62: Line 52:
  
  
== # Checking the schematic for errors ==
+
== Checking the schematic for errors ==
  
 
You must check the schematic for simple errors before you can save it. Do this by selecting Design->Check and Save. It will highlight any unconnected pins, for example, before it actually saves the schematic.
 
You must check the schematic for simple errors before you can save it. Do this by selecting Design->Check and Save. It will highlight any unconnected pins, for example, before it actually saves the schematic.
  
== # Creating a symbol view ==
+
== Creating a symbol view ==
  
 
If you wish to instantiate your newly created schematic in another schematic, you will first have to create a symbol view. This can be done by selecting Design->Create Cellview->From Cellview... Press "OK" with the defaults. By default, all symbols are simple boxes. This tutorial does not cover how to change the symbol type -- that is up to you to figure out. Design->Check and Save the symbol view just like the schematic view.
 
If you wish to instantiate your newly created schematic in another schematic, you will first have to create a symbol view. This can be done by selecting Design->Create Cellview->From Cellview... Press "OK" with the defaults. By default, all symbols are simple boxes. This tutorial does not cover how to change the symbol type -- that is up to you to figure out. Design->Check and Save the symbol view just like the schematic view.
  
 
Now you are ready to move on to the layout tutorial.
 
Now you are ready to move on to the layout tutorial.

Revision as of 03:32, 28 September 2007

Creating a schematic view

First create a schematic cell view in your library. If you have not created a library, see the Technology Setup document.

1-create cell.jpg


Schematic editor window

When you open a schematic view, it is opened in the schematic editor which looks like this:

2-schematic editor.jpg

A schematic view basically consists of instances, wires, and pins. You can also make buses, but that is not covered in the tutorial.

Creating an instance

Most of our instances will be of already defined library components. To add an instance, select Add->Instance... or press "i". This will open the Component Browser shown here:

3-component browser.jpg


In the component browser, we will only use a few items in the NCSU Analog Parts library. You can use: nmos and pmos in the N_Transistors and P_Transistors categories; and vdd and gnd in the Supply Nets category. DO NOT USE ANYTHING ELSE. If you use another supply net, it will not work. If you use another transistor, it may not work.

4-component browser.jpg


Adding instances

After selecting the comopnent, an Add Instance window will appear like this:

5-add instance.jpg

Make sure that you set the appropriate size of the transistor so that it can be matched to your layout. Once you have selected, for example, a pmos device. You can go back to the schematic editor and a pmos transistor instance will be moving around with your mouse cursor. Click on a location and it will instantiate the transistor. If you want to change the instance, use the options in the Edit menu. For supply pins, there are no options you need to set. Add the remainder of the components (vdd, gnd, pmos, nmos) for your inverter.

6-instances added.jpg


Creating pins

Once you have added the components, you need to add pins for the inputs and outputs. The pins are used to connect between levels of hierarchy and also to match in the layout. You must use the same names in the schematic and the layout. Name inputs A, B, etc. and outputs Y or Z. Be consistent.

Adding wires

Once you have instantiated the input and output pin, you need to hook everything up with wires. To add wires select Add->Wire (narrow) or press "w" in the schematic editor. You can now point and click everywhere a wire is supposed to go. When you near a terminal you will notice a yellow diamond that shows up. You can press the "s" key to snap the wire to that terminal. This is useful for quickly adding wires and making sure that they are connected to the terminal. If you point and click, it is easy to not really connect the wire.

Your final schematic should look like this:


[#fig7] || http://bacon.cse.ucsc.edu/vlsi/inv_schematic/7-final_schematic.jpg || || Figure 7. ||


Checking the schematic for errors

You must check the schematic for simple errors before you can save it. Do this by selecting Design->Check and Save. It will highlight any unconnected pins, for example, before it actually saves the schematic.

Creating a symbol view

If you wish to instantiate your newly created schematic in another schematic, you will first have to create a symbol view. This can be done by selecting Design->Create Cellview->From Cellview... Press "OK" with the defaults. By default, all symbols are simple boxes. This tutorial does not cover how to change the symbol type -- that is up to you to figure out. Design->Check and Save the symbol view just like the schematic view.

Now you are ready to move on to the layout tutorial.