Lab 01 - EE 421L 

Authored by Matthew Parker,

parke179@unlv.nevada.edu

September 8th, 2014 

  

Lab description: To follow the directions in tutorial 1 in order to learn how to use cadence.

 

Part I: Setup

 

Step 1: Download the Cadence Design Kit (NCSU version 6.0 beta). temp link

 

Step 2: Move the extracted folder to $Home and open .bashrc

 

Step 3: Add the following lines with .bashrc open in bash

export SPECTRE_DEFAULTS=-E

export CDS_Netlisting_Mode=Analog

export CDS_LOAD_ENV=CWDElseHome

export CDK_DIR=$HOME/ncsu-cdk-1.6.0.beta

Step 4: Afterwards, type ". .bashrc" into bash from the $Home directory.

 

Step 5: Create a directory in $Home called CMOSedu and copy all files from $HOME/ncsu-cdk-1.6.0.beta/cdssetup to it.

cp $HOME/ncsu-cdk-1.6.0.beta/cdssetup $HOME/CMOSedu

Step 6: Inside the CMOSedu folder, rename cdsinit, simrc, and cdsenv to .cdsinit, .simrc, and .cdsenv

mv cdsinit .cdsinit

mv simrc .simrc

mv cdsenv .cdsenv

Step 7: Open cds.lib and verify the install path of Cadence matches /usr/cadence/IC615/tools.lnx86/, then add these lines:

DEFINE analogLib /usr/cadence/IC615/tools.lnx86/dfII/etc/cdslib/artist/analogLib

DEFINE functional /usr/cadence/IC615/tools.lnx86/dfII/etc/cdslib/artist/functional

DEFINE sbaLib /usr/cadence/IC615/tools.lnx86/dfII/etc/cdslib/artist/sbaLib

Step 8: Open .cdsinit and add this line to the bottom of the config file to make Spectre the default simulator for Cadence:

       envSetVal("asimenv.startup" "simulator" 'string "spectre")

 

Step 9: Run these commands to delete the files divaDRC.rul, divaEXT.rul, and divaLVS.rul.

rm $HOME/ncsu-cdk-1.6.0.beta/lib/NCSU_TechLib_ami06/divaDRC.rul

rm $HOME/ncsu-cdk-1.6.0.beta/lib/NCSU_TechLib_ami06/divaEXT.rul

rm $HOME/ncsu-cdk-1.6.0.beta/lib/NCSU_TechLib_ami06/divaLVS.ru

Step 10: Download  and extract diva_rul_files.zip and use these commands to replace the deleted files:

mv divaDRC.rul $HOME/ncsu-cdk-1.6.0.beta/lib/NCSU_TechLib_ami06/divaDRC.rul

mv divaEXT.rul $HOME/ncsu-cdk-1.6.0.beta/lib/NCSU_TechLib_ami06/divaEXT.rul

mv divaLVS.ru $HOME/ncsu-cdk-1.6.0.beta/lib/NCSU_TechLib_ami06/divaLVS.ru

 

Part II: Starting Cadence

 

Step 1: Change to the working directory and run Virtuoso in the background.

cd CMOSedu

virtuoso &

Step 2: Create a new Library and attach the AMI 0.60u C5N process. Name it Tutorial_1.
            Note: Creating a new Library will add a definition to the
cds.lib file.
 
Step 3: Select the Tutorial_1 library in the Manager and create a new cell view (File->New->Cell View).
            Note: Windows may appear behind windows in the foreground.
 
Step 4: Go to
Create -> Instance or Press i to create a new resistor. Select NCSU_Analog_Parts from Browse and choose R_L_C.
 
Step 5: Set the resistance to 10k, then minimize the instance window and component browser. Right click to rotate and then press ESC when done placing two resistors. Press F to fit the contents to the screen.
            Note: To change the resistor's value after placing it, Press Q.
 
Step 6: Create a Ground by pressing i and browsing to
Supply_Nets and gnd.
 
Step 7: Create a 1V DC power supply, found under Voltage_Sources.
 
Step 8: Press W to start placing a wire. After placing the wires, label them by Pressing L.
 
Step 9: Press Check and Save before simulating, then go to 
Launch->ADE L.
 
Step 10: Verify the default simulator is Spectre by going to
Setup->Simulator/Directory/Host within the ADE window.
 
Step 11:
Go to Analyses->Choose and select transtop time of 1, and Enabled. Then choose the output to plot by going to Outputs->To Be Plotted->Select on Schematic. Choose both the input and output labeled wires. Then go to Session->Save State and choose Cell View.
            Note: To load this state, go to Session->Load State and Cell View
 
Step 12: Click the green Netlist and Run button to simulate the circuit.

 

Part III: Backing up Data

 

For the purpose of backing up my lab reports, I will be saving a copy to my laptop and home computer, as well as uploading the most recent version to dropbox.
 
 Dropbox_pic.png