Difference between revisions of "INV Schematic Tutorial"
(→Creating an instance) |
|||
(23 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | <div style="float:left" align=left>[[Creating_a_New_Project|<--2. Creating a New Project]]</div><div style="float:right" align=right>[[INV_Layout_Tutorial|4. INV Layout Tutorial-->]]</div> | ||
+ | |||
+ | |||
== Creating a schematic view == | == Creating a schematic view == | ||
− | First create a schematic cell view in your library. | + | First create a schematic cell view in your library manager window by using File->New->Cellview. In the options for "Application -> Open with" select "Schematics XL". |
[[Image:1-create_cell.jpg|center|200px]] | [[Image:1-create_cell.jpg|center|200px]] | ||
Line 13: | Line 16: | ||
== Creating an instance == | == Creating an instance == | ||
− | Most of our instances will be of already defined library components. To add an instance, select | + | Most of our instances will be of already defined library components. To add an instance, select Create->Instance... or press "i", then click the "Browse" button. This will open the Component Browser shown here: |
− | [[Image:3-component_browser.jpg|center| | + | [[Image:3-component_browser.jpg|center|400px]] |
− | In the component browser, we will only use a few items in the | + | In the component browser, we will only use a few items in the NCSU_Devices_FreePDK45 library. You can use: NMOS_VTL and PMOS_VTL; and vdd and gnd in the basic library. DO NOT USE ANYTHING ELSE. If you use another supply net, it will not work. If you use another transistor, it may not work. |
− | + | For SCMOS, 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. | |
== Adding instances == | == Adding instances == | ||
− | After selecting the comopnent, an Add Instance window will appear like this: | + | After selecting the comopnent, an Add Instance window with more detail will appear like this: |
[[Image:5-add_instance.jpg|center|300px]] | [[Image:5-add_instance.jpg|center|300px]] | ||
− | Make sure that you set the appropriate | + | Note that the picture shows the _VTG devices, but use _VTL!!! Make sure that you set the appropriate length and width of the transistor so that it can be matched to your layout. For example, type "90n" in the space for 90 nanometers. |
+ | |||
+ | Once you have selected, for example, a PMOS_VTG device. You can go back to the schematic editor and a pmos transistor instance will be moving around with your mouse cursor. Each click on a location and will instantiate a copy of the same transistor. If you want to change the instance later, use the options in the Edit menu. | ||
+ | |||
+ | The procedure for supply pins is the same except that, for supply pins, there are no options you need to set. Add the remainder of the components (vdd, gnd) for your inverter. | ||
[[Image:6-instances_added.jpg|center|400px]] | [[Image:6-instances_added.jpg|center|400px]] | ||
Line 34: | Line 41: | ||
== 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 | + | You can leave the Add Instance mode (or any mode) by pressing Escape. |
+ | |||
+ | Once you have added the components, you need to add pins for the inputs and outputs with Create->Pins (or press "p"). The pins are used to connect between levels of hierarchy and also to match in the layout. Select the appropriate direction (Input, Output, InputOutput). You should 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 | + | Once you have instantiated the input and output pin, you need to hook everything up with wires. To add wires select Create->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: | Your final schematic should look like this: | ||
Line 46: | Line 55: | ||
== 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 | + | You must check the schematic for simple errors before you can save it. Do this by selecting File->Check and Save (or press f8). 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 | + | 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 Create->Cellview->From Cellview... Press "OK" with the defaults. By default, all symbols are simple boxes. |
− | To change the shape of the symbol, select the auto generated square box and delete it. Draw a new one by select menu Add->Shape->(Choose any shape you want) in the symbol editor. | + | To change the shape of the symbol, select the auto generated square box and delete it. Draw a new one by select menu Add->Shape->(Choose any shape you want) in the symbol editor. Don't waste time making a pretty symbol for your homework. |
− | + | File->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. | ||
+ | |||
+ | |||
+ | <div style="float:left" align=left>[[Creating_a_New_Project|<--2. Creating a New Project]]</div><div style="float:right" align=right>[[INV_Layout_Tutorial|4. INV Layout Tutorial-->]]</div> |
Latest revision as of 17:22, 23 September 2011
Contents
Creating a schematic view
First create a schematic cell view in your library manager window by using File->New->Cellview. In the options for "Application -> Open with" select "Schematics XL".
Schematic editor window
When you open a schematic view, it is opened in the schematic editor which looks like this:
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 Create->Instance... or press "i", then click the "Browse" button. This will open the Component Browser shown here:
In the component browser, we will only use a few items in the NCSU_Devices_FreePDK45 library. You can use: NMOS_VTL and PMOS_VTL; and vdd and gnd in the basic library. DO NOT USE ANYTHING ELSE. If you use another supply net, it will not work. If you use another transistor, it may not work.
For SCMOS, 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.
Adding instances
After selecting the comopnent, an Add Instance window with more detail will appear like this:
Note that the picture shows the _VTG devices, but use _VTL!!! Make sure that you set the appropriate length and width of the transistor so that it can be matched to your layout. For example, type "90n" in the space for 90 nanometers.
Once you have selected, for example, a PMOS_VTG device. You can go back to the schematic editor and a pmos transistor instance will be moving around with your mouse cursor. Each click on a location and will instantiate a copy of the same transistor. If you want to change the instance later, use the options in the Edit menu.
The procedure for supply pins is the same except that, for supply pins, there are no options you need to set. Add the remainder of the components (vdd, gnd) for your inverter.
Creating pins
You can leave the Add Instance mode (or any mode) by pressing Escape.
Once you have added the components, you need to add pins for the inputs and outputs with Create->Pins (or press "p"). The pins are used to connect between levels of hierarchy and also to match in the layout. Select the appropriate direction (Input, Output, InputOutput). You should 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 Create->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:
Checking the schematic for errors
You must check the schematic for simple errors before you can save it. Do this by selecting File->Check and Save (or press f8). 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 Create->Cellview->From Cellview... Press "OK" with the defaults. By default, all symbols are simple boxes.
To change the shape of the symbol, select the auto generated square box and delete it. Draw a new one by select menu Add->Shape->(Choose any shape you want) in the symbol editor. Don't waste time making a pretty symbol for your homework.
File->Check and Save the symbol view just like the schematic view.
Now you are ready to move on to the layout tutorial.