Professional Documents
Culture Documents
Installationof the
NCSUDesignKit
IC DESIGN GROUP SAN JOSE STATE UNIVERSITY
David W. Parent
Assistant Professor
Electrical Engineering, SJSU
One Washington Square
San Jose, CA 95192-0084
Phone 408.924.3963 • Fax 408.924.2925
Table of Contents
2
LIST OF FIGURES:
Figure 1: NCSU Kit Down load Site. .......................................................................................................................................................................... 12
Figure 3: Download Page............................................................................................................................................................................................... 13
Figure 4: Web Form to Receive Kit............................................................................................................................................................................. 13
Figure 5: Temporary Page............................................................................................................................................................................................. 14
Figure 6: http://www.cadence.ncsu.edu/................................................................................................................................................................... 14
Figure 7: Download Page............................................................................................................................................................................................... 15
Figure 8: UNIX Command for Installing the Kit...................................................................................................................................................... 16
Figure 9: Untarred Data. ............................................................................................................................................................................................... 16
Figure 10: Starting Netscape......................................................................................................................................................................................... 17
Figure 12: Open Page.................................................................................................................................................................................................... 17
Figure 13: Choose File. ................................................................................................................................................................................................. 18
Figure 14: File Browser. ................................................................................................................................................................................................. 18
Figure 15: Open Page.................................................................................................................................................................................................... 18
Figure 16: Design Kit's Main Page............................................................................................................................................................................... 19
Acknowledgements:
This tutorial is based on the NCSU design kit. For more information, see
http://www.ece.ncsu.edu/cadence/CDK.html. Note: The Kit from NCSU is extremely helpful
in teaching IC design, this document just explains how to install it a little easier than NCSU’s
method.
3
4
Chapter
1) Specter spice decks have been added for the AMI16, TSMC30 and TSMC18 processes
2) The file layerDefinitions1.tf has been updated from NCSU. (Basically the kit as given
from NCSU does not work, and you have to get them to set you an update. If you
cannot compile a new tech library then you will have to do this yourself. Note: This has
already been done in the kit linked above. If you are going to sue the kit from their site
put layerDefinitions1.tf in $cdk_dir/techfile )
untar the file by typing: (Do not type the symbol %.)
Change into the local/bin directory where the install perl script is kept.
%cd local/bin
5
Edit install.pl to reflect were the perl binary is located on your system.
% install.pl
Answer the questions that the script asks. It should work with out a hitch.
#######################################################
#######################
# #
# .environment - Sourced by the 'add' alias to perform locker-specific #
# setup. The ${dir} variable is set by 'add' to be the #
# name of the directory where the locker was attached. #
# #
#######################################################
########################
set base_dir = "/apps/cadence"
set info_dir = "${base_dir}/.info"
set locker_desc = "${info_dir}/Description"
set cat = "/bin/cat"
set uname = "/bin/uname"
6
#---- Cadence setup only done if .environment.@sys is present ----------
7
# this sets things so we no longer use cdsd. this won't be a problem,
# since we're not running 442 anymore. plus it makes the tools run on
# solaris 2.6! yay!
setenv CLS_CDSD_COMPATIBILITY_LOCKING NO
# this next one sets a path to our wrapper script; the script
# removes this PATH component to unmask the real executable
#
# note that we have to do this explicitly, rather than using prepend,
# because the "add" that got us here already added $CDS/bin, and we want
# it at the front of PATH (prepend won't add it if it's already there)
8
extend MANPATH $IC/share/man
extend MANPATH $IC/tools/man
9
# Let's set the DISPLAY variable
#
if ( ! $?DISPLAY ) then
set tty = `tty|sed "s,/dev/,,"`
set who = `who | /bin/grep $tty`
set where = `echo $who | awk '{print $6}'`
set loc = `echo $where | sed "s/[(,),:]//g"`
setenv DISPLAY ${loc}:0.0
unset tty who where loc
endif
#---- Display the Cadence options after the xhost message -------------
if ( -f ${locker_desc} ) ${cat} ${locker_desc}
10
if ( ! -f /etc/rc.conf.d/rpc/enable ) then
${base_dir}/bin/startrpcbind
endif
endif
11
Chapter
12
Figure 2: Download Page.
13
A temporary page is displayed as in Figure 4.
Figure 5: http://www.cadence.ncsu.edu/
You will receive an email message detailing how to down load the kit:
Hello David W. Parent,
You have recently registered to download one or more components of the NCSU CDK. This message simply verifies that the email
address you submitted is valid. Please follow the link below to continue with the download.
http://www.cadence.ncsu.edu/get_NCSU_CDK.php?id=364&name=David%20W.%20Parent&a=827133649
Thank you,
NCSU Cadence Download Manager
14
Follow the link specified in the email and a down load page will appear as in Figure 6.
After downloading, uncompressing and untarring, use your HTML browser to view
local/README.html, which has links to the documentation and installation instructions. Note
that the CDK wants to live in $CDS_ROOT/local but can be installed in any directory. In either
case, since files in the Cadence install directory need to be modified/added, you will probably
need some sort of sysadmin-type privileges to install it.
It is probably better not to install it in the ICC446 directory so that it will not get wiped out during
an upgrade.
Make sure you are in the correct directory with pwd (Figure 7).
Use gzip –d to decompress the file (Figure 7). Note gzip is not a standard UNIX command you
will have to download a version that works on your UNIX station.
15
Figure 7: UNIX Command for Installing the Kit.
When the tar command is finished, the output should look like Figure 8.
Use the ls command to make sure a directory called local has been created. Use the command
cd local to enter into this directory.
16
Use the pwd command to show where you have installed the local directory and then start
Netscape (Figure 9).
When Netscape comes up, go to File ... Open page (Figure 10).
A pop up will appear (Figure 11). Click on Choose File...., and a file browser will appear (Figure
12).
17
Figure 11: Choose File.
Click on README.html and the click OK. The Open Page Dialog Box should then be filled out
(Figure 13). Click on Open in Navigator to view page.
18
The Kit’s main page will appear (Figure 14).
• Verifying Installation
19
Installation instructions
These instructions assume you already have the Cadence tool set (e.g. IC 4.4.5) installed
and operational. At NCSU we run Cadence (basically IC 4.4.5 and LDV 3.0) on Sun
workstations under Solaris 2.6. Our kit has not been tested on other platforms, but there
should not be any platform dependent operations in the kit.
You should now have a local/ sub-directory with the unpacked kit. We'll refer to this
directory as $cdk_dir from here on.
20
• Edit the plotter setup file, $cdk_dir/cdssetup/cdsplotinit to reflect your
installation.
Verifying Installation
There's no formal way to verify everything's hooked in properly, but you can check pretty
quickly to see if things look ok:
1. Set any environment variables necessary (e.g., $CDS_SITE, $USE_NCSU_CDK)
and start Cadence.
2. Make sure you see the message Loading NCSU SKILL routines... in the CIW
during startup. If you're running DFII 4.4.2.100.22 or later, you should also see
the message Loading NCSU Library Manager customizations...done. in
the Library Manager.
3. Type NCSU_CDK_version in the CIW and hit RETURN; you should get back a
version string, e.g. ``NCSU_CDK 1.2''.
4. Select the ``File->New->Library...'' menu entry in the CIW. A form should appear
that looks like the picture below:
Click the ``Help'' button and make sure the appropriate OpenBook entry appears.
5. Create a library by choosing ``Compile tech file'' and selecting a MOSIS process
from the popup menu that appears. You should see the following messages in the
CIW:
6. Loading technology files...
7. Compiling class 'controls'....
8. Compiling class 'layerDefinitions'....
9. Compiling class 'devices'....
10.Compiling class 'layerRules'....
11.Compiling class 'physicalRules'....
12.Compiling class 'dleRules'....
13.Compiling class 'dlrRules'....
14.Storing symbolic cells...
15.Generating Pcell for 'm1_n layout'.
16.Generating Pcell for 'm1_p layout'.
17.Generating Pcell for 'm1_poly layout'.
18.Generating Pcell for 'm2_m1 layout'.
19.Generating Pcell for 'nmos layout'.
21
20.Generating Pcell for 'pmos layout'.
21.Generating Pcell for 'ntap layout'.
22.Generating Pcell for 'ptap layout'.
23.Generating Pcell for 'm1_elec layout'.
24.Creating links to Diva verification rules files...
25.Library creation successfully completed.
You might also see some lines like Loading XXX.cxt. Also, the exact Pcells
generated will depend on the process you chose.
26. Create and open a layout in the new library. In the LSW, nwell should be green
slash, metal 1 should be blue backslash, metal 2 should be magenta dots. The last
menu in the layout window's menu bar should be ``NCSU'' and have the
following entries:
o Hilite Object...
o Align Objects...
o Import text...
22
.cshrc file used at SJSU
#set verbose
set filec
set history=100
setenv EDITOR /home/dparent/nedit
stty erase ^H
# setenv PRINTER xxxxxxxx
limit coredumpsize 0
23
setenv SFLM_SERVER cadence1
# XTERM STUFF
alias xt "xterm -bg gold -fg black &"
alias con 'xterm -g 98x6+0+0 -fg lightgreen -bg black -title CONSOLE -sb -sl 15000 -C'
alias xt1 'xterm -g 80x43+0+200 -fg cyan -bg black -title TERMINAL1 -cr pink -sb -sl 30000 -
n TERMINAL1'
alias xt2 'xterm -g 80x43+0+119 -fg green -bg darkslategrey -title TERMINAL2 -cr wheat -sb -
sl 30000 -n TERMINAL2'
alias xt4 'xterm -g 80x43+0+119 -fg white -bg darkgreen -title TERMINAL3 -cr lightgreen -sb
-sl 30000 -n TERMINAL3'
alias xt5 'xterm -g 80x43+0+119 -fg green -bg darkgreen -title TERMINAL4 -cr lightgreen -sb
-sl 30000 -n TERMINAL4'
alias xt3 'xterm -g 80x43+0+100 -fg purple -bg wheat -title TERMINAL5 -cr wheat -sb -sl
50000 -n TERMINAL5'
24
#************************************************
umask 002
#************************************************
#######################################################
#######################
# #
# .environment - Sourced by the 'add' alias to perform locker-specific #
25
# setup. The ${dir} variable is set by 'add' to be the #
# name of the directory where the locker was attached. #
# #
#######################################################
########################
set base_dir = "/apps/cadence"
set info_dir = "${base_dir}/.info"
set locker_desc = "${info_dir}/Description"
set cat = "/bin/cat"
set uname = "/bin/uname"
26
setenv CDS_VHDL $LDV/tools/leapfrog
setenv CLS_CDSD_COMPATIBILITY_LOCKING NO
# this next one sets a path to our wrapper script; the script
# removes this PATH component to unmask the real executable
#
# note that we have to do this explicitly, rather than using prepend,
# because the "add" that got us here already added $CDS/bin, and we want
# it at the front of PATH (prepend won't add it if it's already there)
27
set path=($path $CDS/bin )
set path=($path $CDS_VHDL )
set path=($path $IC/tools/bin)
set path=($path $IC/tools/dfII/bin )
set path=($path $IC/tools/concice/bin )
set path=($path $IC/tools/dracula/bin )
set path=($path $LDV/tools/bin )
set path=($path /opt/NSCPcom )
28
# chapter 11 of "Cadence Application Infrastructure User Guide" for more
# info on cls.)
#
# Let's set the DISPLAY variable
#
if ( ! $?DISPLAY ) then
set tty = `tty|sed "s,/dev/,,"`
set who = `who | /bin/grep $tty`
set where = `echo $who | awk '{print $6}'`
set loc = `echo $where | sed "s/[(,),:]//g"`
setenv DISPLAY ${loc}:0.0
unset tty who where loc
endif
29
endif
#---- Display the Cadence options after the xhost message -------------
if ( -f ${locker_desc} ) ${cat} ${locker_desc}
30