NCSU CDK Setup & Example
ECEPurdue University
Design Kit Setup
2
We will use NCSU TSMC 0.2-µm CDK in this tutorial Open a terminal window,
If you like, you can make your working directory In this tutorial, the working directory is HOME directory
Copy the following files to your working directory cp /package/eda/cells/ncsu-cdk-1.5.1/local/cdssetup/cds.lib ~/ cp /package/eda/cells/ncsu-cdk-1.5.1/local/cdssetup/cdsenv ~/.cdsenv cp /package/eda/cells/ncsu-cdk-1.5.1/local/cdssetup/cdsinit ~/.cdsinit cp /package/eda/cells/ncsu-cdk-1.5.1/local/cdssetup/simrc ~/.simrc Don’t miss ‘dot’
Design Kit Setup
3
In your terminal window, Please type a following to load your cadence/NCSU
setup:source /usr/site/ece/bin/edacfg mmsim ncsu hsp cscope
You need to do the above step whenever you open Cadence. To avoid repetition, you are encouraged to add the command line in your .cshrc
If you use ‘ecegrid-lnx.ecn.purdue.edu’ and ‘grid command’, the above command line should be in your .cshrc
Open Cadence in your working directory You can type ‘icfb &’ or ‘grid icfb &’ to open Cadence We are going to use Cadence version 5.1.41
Design Kit Setup
4
You should see following windows including the libraries:
Design Kit Setup
5
We will design a common-source amplifier using NCSU TSMC 0.2-µm process
Create a library In Library Manage: File > New > Library Type a library name (ex: tutorial) and check ‘Attach
to existing tech library’Then, select ‘TSMC 0.20u CMOS018 (6M, HV FET,…)’ OK
Create a cell view (schematic) In Library Manage: File > New > Cell View Enter Cell Name (ex: Amp). Make sure ‘View Name:
schematic’ and ‘Tool: Composer-Schematic’ OK
Design Kit Setup
6
Create a schematic in a schematic editing window To add an NMOS transistor
Add > Instance Select ‘NCSU_Analog_Parts’ for Library and click
‘N_Transistors’ in ‘Component Browser’. Select ‘nmos4’, which is a 4-terminal transistor
Then you can change the instance properties and add the symbol on your schematic window
To add a passive divice Add > Instance Select ‘NCSU_Analog_Parts’ for Library and click ‘R_L_C’ in
‘Component Browser’. Select a device you want The NCSU design kit unfortunately provides only ideal
passive devices
Design Kit Setup
7
To add an ideal component such as voltage source, current source, etc Add > Instance Select ‘analogLib’ for Library and click a category which
an instance you want belongs to in ‘Component Browser’. Select the component
Then you can change the instance properties and add the symbol on your schematic window
Note: The number of finger of a transistor does not work, and please use the multiplicity instead of the number of finger
Example
8
Common-source amplifier schematic
Example
9
Supply voltage = 1.8V Input vsin:
Amplitude = 10mV Frequency = 20MHz AC magnitude = 1
Idc = 100uA
Example
10
Now, we have finished an initial design In this tutorial, we will cover following analyses
in Analog Design Environment DC
DC operating point Tran
Transient simulation AC
Frequency response
Example
11
For simulation: Open Analog Design Environment (ADE)
Go to Setup > Simulator/Directory/Host…:Change Simulator from ‘hpiceS’ to ‘spectre’After change, you will
see
Example
12
Include model files: Go to Setup > Model Libraries… Browse ‘/package/eda/cells/ncsu-cdk-1.5.1/local/models
/hspice/public/tsmc20N.m’ and add and OK If you want to use PMOS transistors, you also need to
include a file of ‘tsmc20P.m’
Example
13
DC analysis (example setting)
Example
14
Tran analysis (example setting)
Example
15
AC analysis (example setting)
Example
16
DC analysis ADE > Results > Annotate > DC Operating
Points/DC node volt
Example
17
Tran analysis ADE > Results > Direct Plot > Main Form Voltage gain = 187.2mV / 20mV = 19.4 dB
Example
18
AC analysis ADE > Results > Direct Plot > Main Form DC gain = 19.47dB, f-3dB = 336MHz