Difference between revisions of "How to use inherited connections"

From EDA Wiki
Jump to navigationJump to search
 
Line 35: Line 35:
  
 
First, in the Library Manager, create a new schematic cell view using '''File → New → Cell View...'''.  Then under the field ''Cell'', type '''nand2'''.  For ''Type'' select '''schematic'''.  And for the ''View'' type '''schematic'''.  Then draw the nand2 gate as shown below using the '''vdd_inherit''' and '''gnd_inherit''' symbols from the '''basic_cds''' library.
 
First, in the Library Manager, create a new schematic cell view using '''File → New → Cell View...'''.  Then under the field ''Cell'', type '''nand2'''.  For ''Type'' select '''schematic'''.  And for the ''View'' type '''schematic'''.  Then draw the nand2 gate as shown below using the '''vdd_inherit''' and '''gnd_inherit''' symbols from the '''basic_cds''' library.
 +
  
 
: [[File:Inherited_connections_001.png]]
 
: [[File:Inherited_connections_001.png]]
Line 40: Line 41:
  
 
Next, create a test schematic for the '''nand2''' gate called '''nand2_test'''.  This test schematic is designed to override the power supply nets by using Net Expressions.  The overrides are shown in yellow on the schematic.  The global '''vdd!''' net is set to ''5V'' and the vdd power supply of the ''nand2'' gate is set to ''3.3V!'':
 
Next, create a test schematic for the '''nand2''' gate called '''nand2_test'''.  This test schematic is designed to override the power supply nets by using Net Expressions.  The overrides are shown in yellow on the schematic.  The global '''vdd!''' net is set to ''5V'' and the vdd power supply of the ''nand2'' gate is set to ''3.3V!'':
 +
  
 
: [[File:Inherited_connections_002.png]]
 
: [[File:Inherited_connections_002.png]]
Line 45: Line 47:
  
 
The Net Expressions can be set by '''Edit → Net Expressions → Available Properties...'''.  This brings up the window below.  The net expressions will be shown for the currently selected components.  Select the '''nand2''' component to show its Net Expressions.
 
The Net Expressions can be set by '''Edit → Net Expressions → Available Properties...'''.  This brings up the window below.  The net expressions will be shown for the currently selected components.  Select the '''nand2''' component to show its Net Expressions.
 +
  
 
: [[File:Inherited_connections_003.png]]
 
: [[File:Inherited_connections_003.png]]
Line 50: Line 53:
  
 
Select the '''vdd''' connection.  Under '''Action''', select '''Overrride with specific net'''.  Type the net name '''3.3V!'''.  This now corresponds to the '''3.3V!''' net defined in the test schematic.
 
Select the '''vdd''' connection.  Under '''Action''', select '''Overrride with specific net'''.  Type the net name '''3.3V!'''.  This now corresponds to the '''3.3V!''' net defined in the test schematic.
 +
  
 
: [[File:Inherited_connections_004.png]]
 
: [[File:Inherited_connections_004.png]]
Line 55: Line 59:
  
 
Next, a simulation is done to show that the power supply of the output from the nand2 gate is at 3.3V and not 5V.  The simulation setup is shown below:
 
Next, a simulation is done to show that the power supply of the output from the nand2 gate is at 3.3V and not 5V.  The simulation setup is shown below:
 +
  
 
: [[File:Inherited_connections_005.png]]
 
: [[File:Inherited_connections_005.png]]
Line 60: Line 65:
  
 
The simulations results here show that the '''OUT''' net swings from 0V to 3.3V.
 
The simulations results here show that the '''OUT''' net swings from 0V to 3.3V.
 +
  
 
: [[File:Inherited_connections_006.png]]
 
: [[File:Inherited_connections_006.png]]
Line 65: Line 71:
  
 
Then, a layout of the '''nand2''' gate is constructed.  The pins on this layout are defined using Net Expressions:
 
Then, a layout of the '''nand2''' gate is constructed.  The pins on this layout are defined using Net Expressions:
 +
  
 
: [[File:Inherited_connections_007.png]]
 
: [[File:Inherited_connections_007.png]]
Line 70: Line 77:
  
 
When creating a pin for an inherited power supply (such as ''vdd_inherit''), define the terminal name using the ''default global search name''.  In the case of the '''vdd''' inherited connection, this would be '''vdd!''':
 
When creating a pin for an inherited power supply (such as ''vdd_inherit''), define the terminal name using the ''default global search name''.  In the case of the '''vdd''' inherited connection, this would be '''vdd!''':
 +
  
 
: [[File:Inherited_connections_008.png]]
 
: [[File:Inherited_connections_008.png]]
Line 75: Line 83:
  
 
After placing the pin in the layout, select it and open up the properties (''Edit → Basic → Properties...'' or bind key ''q'').  This shows the terminal name is ''vdd!'' under the ''Attribute'' tab as was defined earlier.
 
After placing the pin in the layout, select it and open up the properties (''Edit → Basic → Properties...'' or bind key ''q'').  This shows the terminal name is ''vdd!'' under the ''Attribute'' tab as was defined earlier.
 +
  
 
: [[File:Inherited_connections_009.png]]
 
: [[File:Inherited_connections_009.png]]
Line 80: Line 89:
  
 
Then click on the '''Connectivity''' tab.  Here, Net Expressions can be defined on the pin.  Under '''Net Expression Property''', type '''vdd''' for the inherited net name, and under '''Default''', type '''vdd!''' for the ''default global search name''.
 
Then click on the '''Connectivity''' tab.  Here, Net Expressions can be defined on the pin.  Under '''Net Expression Property''', type '''vdd''' for the inherited net name, and under '''Default''', type '''vdd!''' for the ''default global search name''.
 +
  
 
: [[File:Inherited_connections_010.png]]
 
: [[File:Inherited_connections_010.png]]
 +
 +
 +
Next, a DRC check is performed on the layout, followed by an extraction of the layout.  Then the LVS tool is brought up as shown below to compare between the extracted view and schematic:
 +
  
 
: [[File:Inherited_connections_011.png]]
 
: [[File:Inherited_connections_011.png]]
 +
 +
 +
The results of the LVS check show that everything matches between the layout and the schematic:
 +
  
 
: [[File:Inherited_connections_012.png]]
 
: [[File:Inherited_connections_012.png]]
 +
 +
 +
Next, a new cell is created called '''nand2_override'''.  This cell is designed to override the power and gnd supplies and route them to explicit pins.  The schematic is drawn below:
 +
  
 
: [[File:Inherited_connections_013.png]]
 
: [[File:Inherited_connections_013.png]]
 +
 +
 +
Net Expressions are set on the '''nand2''' gate to connect the '''gnd''' and '''vdd''' connections to the '''GND''' and '''VDD''' pins:
 +
  
 
: [[File:Inherited_connections_014.png]]
 
: [[File:Inherited_connections_014.png]]
 +
 +
 +
Then, a test schematic is drawn for the '''nand2_override''' cell called '''nand2_override_test'''.  In this test schematic, the VDD input pin is set to the '''3.3V!''' net.
 +
  
 
: [[File:Inherited_connections_015.png]]
 
: [[File:Inherited_connections_015.png]]
 +
 +
 +
The simulation results on this test schematic show that the '''OUT''' net swings between ''0V'' and ''3.3V''.
 +
  
 
: [[File:Inherited_connections_016.png]]
 
: [[File:Inherited_connections_016.png]]
 +
 +
 +
The layout for the '''nand2_override''' cell is then drawn as shown below.  It is the same layout as the '''nand2''' cell, but the pins are redefined to be '''VDD''' and '''GND''' as shown below.
 +
  
 
: [[File:Inherited_connections_017.png]]
 
: [[File:Inherited_connections_017.png]]
 +
 +
 +
Here is the pin properties for the '''VDD''' pin:
 +
  
 
: [[File:Inherited_connections_018.png]]
 
: [[File:Inherited_connections_018.png]]
 +
 +
 +
Under the '''Connectivity''' tab, there is no net expression defined as it is unnecessary.
 +
  
 
: [[File:Inherited_connections_019.png]]
 
: [[File:Inherited_connections_019.png]]
 +
 +
 +
The LVS tool then is used to compare the layout and schematic view:
 +
  
 
: [[File:Inherited_connections_020.png]]
 
: [[File:Inherited_connections_020.png]]
 +
 +
 +
The results of the LVS check show that the layout and schematic views match.
 +
  
 
: [[File:Inherited_connections_021.png]]
 
: [[File:Inherited_connections_021.png]]
 +
 +
 +
The extracted view of this cell can be used in simulation by creating a '''config''' view of the '''nand2_override_test''' schematic.  The '''config''' view is shown below.  In this case, the '''nand2_override''' cell view in the '''Cell Bindings''' is set to use the '''extracted''' view.
 +
  
 
: [[File:Inherited_connections_022.png]]
 
: [[File:Inherited_connections_022.png]]
 +
 +
 +
Simulations using the config view show that the output swings between ''0V'' and ''3.3V''.
 +
  
 
: [[File:Inherited_connections_023.png]]
 
: [[File:Inherited_connections_023.png]]

Latest revision as of 17:58, 9 May 2011

Help resources

  • IC-6146.14 → Virtuoso Schematic Editor → Virtuoso Schematic Editor L User Guide; → Understanding Connectivity and Naming Conventions → Inherited Connections
  • IC-6146.14 → Virtuoso Layout Suite → Virtuoso Layout Suite L User Guide → Editing and Defining Properties → Using Net Expressions and Inherited Connections

Inherited connections provide a convenient way to use multiple power supplies in a design by defining a single power supply in a low-level schematic that is overridable. This can reduce the need to draw power and gnd pin connections explicitly on each symbol (useful for digital gates). In this how-to, a method for using and defining inherited connections will be given.

Note, the NCSU Design Toolkit replaces the basic library from Cadence with its own which may not have the vdd_inherit or gnd_inherit cells. To add this library to your CDS project with the name basic_cds, add the following line to the cds.lib file:

DEFINE basic_cds $IC/tools/dfII/etc/cdslib/basic

Inherited connections use Net Expressions in Cadence which provide a way of renaming a net. There are four components of a net expression (ex. [@search property name:%:default global search name]):

  1. search scope
  2. search property name
  3. format instruction
  4. default global search name - shows what the wire or pin is connected to by default

When a net expression is formed, an asterisk (*) is shown after the global name indicating that it is a net expression.

In the basic_cds library, there are four inherited supply symbols. These are given in the table below along with their associated net exprssion label:

Inherited Supply Symbol Net Expression Label
vcc_inherit [@vcc:%:vcc!]
vdd_inherit [@vdd:%:vdd!]
gnd_inherit [@gnd:%:gnd!]
vss_inherit [@vss:%:vss!]

nand2 gate

Here, is an example of using inherited connections using a 2-input NAND gate (nand2).

First, in the Library Manager, create a new schematic cell view using File → New → Cell View.... Then under the field Cell, type nand2. For Type select schematic. And for the View type schematic. Then draw the nand2 gate as shown below using the vdd_inherit and gnd_inherit symbols from the basic_cds library.


Inherited connections 001.png


Next, create a test schematic for the nand2 gate called nand2_test. This test schematic is designed to override the power supply nets by using Net Expressions. The overrides are shown in yellow on the schematic. The global vdd! net is set to 5V and the vdd power supply of the nand2 gate is set to 3.3V!:


Inherited connections 002.png


The Net Expressions can be set by Edit → Net Expressions → Available Properties.... This brings up the window below. The net expressions will be shown for the currently selected components. Select the nand2 component to show its Net Expressions.


Inherited connections 003.png


Select the vdd connection. Under Action, select Overrride with specific net. Type the net name 3.3V!. This now corresponds to the 3.3V! net defined in the test schematic.


Inherited connections 004.png


Next, a simulation is done to show that the power supply of the output from the nand2 gate is at 3.3V and not 5V. The simulation setup is shown below:


Inherited connections 005.png


The simulations results here show that the OUT net swings from 0V to 3.3V.


Inherited connections 006.png


Then, a layout of the nand2 gate is constructed. The pins on this layout are defined using Net Expressions:


Inherited connections 007.png


When creating a pin for an inherited power supply (such as vdd_inherit), define the terminal name using the default global search name. In the case of the vdd inherited connection, this would be vdd!:


Inherited connections 008.png


After placing the pin in the layout, select it and open up the properties (Edit → Basic → Properties... or bind key q). This shows the terminal name is vdd! under the Attribute tab as was defined earlier.


Inherited connections 009.png


Then click on the Connectivity tab. Here, Net Expressions can be defined on the pin. Under Net Expression Property, type vdd for the inherited net name, and under Default, type vdd! for the default global search name.


Inherited connections 010.png


Next, a DRC check is performed on the layout, followed by an extraction of the layout. Then the LVS tool is brought up as shown below to compare between the extracted view and schematic:


Inherited connections 011.png


The results of the LVS check show that everything matches between the layout and the schematic:


Inherited connections 012.png


Next, a new cell is created called nand2_override. This cell is designed to override the power and gnd supplies and route them to explicit pins. The schematic is drawn below:


Inherited connections 013.png


Net Expressions are set on the nand2 gate to connect the gnd and vdd connections to the GND and VDD pins:


Inherited connections 014.png


Then, a test schematic is drawn for the nand2_override cell called nand2_override_test. In this test schematic, the VDD input pin is set to the 3.3V! net.


Inherited connections 015.png


The simulation results on this test schematic show that the OUT net swings between 0V and 3.3V.


Inherited connections 016.png


The layout for the nand2_override cell is then drawn as shown below. It is the same layout as the nand2 cell, but the pins are redefined to be VDD and GND as shown below.


Inherited connections 017.png


Here is the pin properties for the VDD pin:


Inherited connections 018.png


Under the Connectivity tab, there is no net expression defined as it is unnecessary.


Inherited connections 019.png


The LVS tool then is used to compare the layout and schematic view:


Inherited connections 020.png


The results of the LVS check show that the layout and schematic views match.


Inherited connections 021.png


The extracted view of this cell can be used in simulation by creating a config view of the nand2_override_test schematic. The config view is shown below. In this case, the nand2_override cell view in the Cell Bindings is set to use the extracted view.


Inherited connections 022.png


Simulations using the config view show that the output swings between 0V and 3.3V.


Inherited connections 023.png