Difference between revisions of "CDS LAB1/en"

From ATI public wiki
Jump to: navigation, search
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 67: Line 67:
  
  
: overview of some of the schematic shortcuts  
+
: Overview of some of the schematic shortcuts  
 
:* ''''i'''' - '''''instance''''' , adding new instance of a cell to the schematic
 
:* ''''i'''' - '''''instance''''' , adding new instance of a cell to the schematic
 
:* ''''w'''' - '''''wire''''' , adding wire to the schematic for connecting elements  
 
:* ''''w'''' - '''''wire''''' , adding wire to the schematic for connecting elements  
Line 75: Line 75:
 
:* ''''u'''' - '''''undo''''' , undo the last action
 
:* ''''u'''' - '''''undo''''' , undo the last action
 
:* ''''X'''' - '''''Check and Save'''' , checks the schematic and saves it
 
:* ''''X'''' - '''''Check and Save'''' , checks the schematic and saves it
 +
 +
 +
:: Zooming in can be done by holding down the right mouse button and selecting an area. To leave the zoom quickly, press '''f'''
 +
:: From every insertion mode you can quickly exit by pressing '''ESC'''
 +
:: When in the '''wire''' mode, you can press '''s''' for snap functionality.
 +
:: '''NB!''' Undo works until last save. Changes made before the save can not be taken back.
 +
 +
===Creating a sheet border and title===
 +
: Press the key '''i''' and in the opening window press '''Browse'''
 +
:[[File:Cds lab1 13.png|Cadence add instance window]]
 +
: '''Library Browser''' will open where you should navigate to '''Library->BORDERS->Cell->A5'''.
 +
: We can close the '''Library Manager''' window by pressing '''Close'''
 +
: Also we can hide the '''Add Instance''' window temporarily by pressing '''Hide'''
 +
 +
: After that the border can be placed by moving mouse in the black area of schematic editor and pressing left mouse button.
 +
:[[File:Cds lab1 14.png|Cadence schematic editor]]
 +
: When the border is placed, you can press '''f''' to ''fit the view''.
 +
 +
===Adding schematic elemenets of half-adder===
 +
: Press the key '''i''' and choose '''Browse'''
 +
: In the '''Library Browser''' window that opened, navigate to '''Library->CORELIB''' where the schematic elements can be found.
 +
 +
 +
: First of all we need to place some AND gates.
 +
:[[File:Cds lab1 15.png|Cadence Library Manager, AND element]]
 +
: To do that, navigate to '''Category->AND->Cell->AND2X1'''
 +
: The numbers after the gate name show how many inputs does it have and its fan-out (number of gate inputs it can feed or connect to). In this case we have a two input AND with 1 fan-out.

Revision as of 19:00, 9 June 2016

The objective of the tutorial is to design a digital circuit and simulate it using Cadence

Setting up the work environment

All the actions in this and the followin paragprah will be happening in terminal

  • create a new directory lab1
  • move to the new directory
  • insert 'cad' and from the menu choose '1' (initializes environmental variables for Cadence)
  • insert setenv EDITOR SciTE for making SciTE as the default text editor
Work enviornment setup

Starting Cadence

According to Cadence 2016 EDA ver.
  • If it is the first time launching Cadence, then using terminal:
ams_cds -64 -tech c18a6 -add CORELIB -add IOLIB_6AM -add GATES_ANA
here we choose AMS 0.18μm with 6 metal layers as the technology and add three gate libraries
  • For the subsequent launches of Cadence use the command:
ams_cds
Launching Cadence
The actions from this point on will be executed using the Graphical User Interface of Cadence
Several windows will open. On a dialog window asking about designkit simply press OK.
Designkit dialog


Cadence main window will be also opening, which is located by default near the left bottom corner.
Cadence main window
Cadence will log messages in this window, including error messages.
Also Cadence Library Manager window will open
Library Manager
It is recommended to check the checkbox Show Categories

Creating a new library

In the Library Manager window choose from menu File->New->Library
Loome uue library


A new window will open, where a name can be inserted. In here labor_1 will be used. After inserting the name, press OK
Loome uue library
Another window will appear with couple of choices. Choose Attach to an existing technology library and press OK
new library technology
In the next window choose TECH_C18A6 and press OK
new library technology

Creating new circuit into our library

Choose the newly created library labor_1 in the Library Manager window. In the menu choose File->New->Cell View
creating new cell


In the window opened fill the field Cell by giving your new circuit a name, e.g. half_adder. On the images below poolsummaator is used as the name.
creating new cell
Choose Applications->Schematics XL and select checkbox Always use this application for this type of file and press OK. As a result the schematic editor window will open.


Editing the half-adder schematic

As a result of the previous actions we should have a schematic editor window open.
Cadence schematic editor


Overview of some of the schematic shortcuts
  • 'i' - instance , adding new instance of a cell to the schematic
  • 'w' - wire , adding wire to the schematic for connecting elements
  • 'l' - label , inserting a label on a connection
  • 'p' - pin , creating a new input/output pin
  • 'f' - fit to view , changes to zoom to fit the whole schematic to the view
  • 'u' - undo , undo the last action
  • 'X' - Check and Save' , checks the schematic and saves it


Zooming in can be done by holding down the right mouse button and selecting an area. To leave the zoom quickly, press f
From every insertion mode you can quickly exit by pressing ESC
When in the wire mode, you can press s for snap functionality.
NB! Undo works until last save. Changes made before the save can not be taken back.

Creating a sheet border and title

Press the key i and in the opening window press Browse
Cadence add instance window
Library Browser will open where you should navigate to Library->BORDERS->Cell->A5.
We can close the Library Manager window by pressing Close
Also we can hide the Add Instance window temporarily by pressing Hide
After that the border can be placed by moving mouse in the black area of schematic editor and pressing left mouse button.
Cadence schematic editor
When the border is placed, you can press f to fit the view.

Adding schematic elemenets of half-adder

Press the key i and choose Browse
In the Library Browser window that opened, navigate to Library->CORELIB where the schematic elements can be found.


First of all we need to place some AND gates.
Cadence Library Manager, AND element
To do that, navigate to Category->AND->Cell->AND2X1
The numbers after the gate name show how many inputs does it have and its fan-out (number of gate inputs it can feed or connect to). In this case we have a two input AND with 1 fan-out.