Rice University

Elec 422, VLSI Design I

Running magic and irsim on Owlnet at Rice University

 

Automatic Enivronment set-up:

 

To setup Magic, Irsim, Pplot, and other utilities for Elec422, type:

 

register cad-2.0

 

You can see the environment variables it creates by looking in:

 

/usr/site/cad-2.0/setup/environment

 

Note: At this point, you cad type cad or cad-2.0, but there is a logical link between cad and cad-2.0, so everything should be found properly.

 

Manual Environment set-up:

 

You can manually set your “path” variable and “CAD_HOME” environment variable in your .cshrc file as in

 

setenv CAD_HOME /usr/site/cad

 

Your path (for .cshrc on OwlNet) should contain:

/usr/site/cad/bin

to access magic, irsim, ext2sim, pplot, etc.

 

A corrected template .cshrc file that only supports the Elec422 Magic tools is here. It should be renamed .cshrc and placed in your home directory after carefully comparing with any existing special features of your existing .cshrc file.

 

Running on remote machines:

 

If you need to run Magic remotely on a different Owlnet compute server, then please use secure shell “ssh” to access the remote Owlnet server. As in other X Windows applications, “ssh” should properly pass all of your environment variables including the DISPLAY variable. It sometimes is worthwhile to use a simple application like “xclock” to verify your X environment.

 

If you are using a version of X-Win32 for Windows as your X server, then there are some configuration issues between the number of color planes in your graphics display and the number of colors that magic expects. If you have problems related to colormaps, then enable the selection "PseudoColor support in TrueColor Mode" in the Colors menu of the X-Win32 setup utility.

 

If you are off-campus on a broadband connection, then you will need to get Virtual Private Network (VPN) access to the Rice Owlnet systems. Please see: http://www.rice.edu/IT/network/remote_access/vpn/

 

Configuration for 0.5 Micron AMI Process:

 

We will use the 0.5 micron process as a default for the homeworks and the project. This process invokes a slightly different set of VLSI design rules than the default 1.5 micron process. Please edit your .cshrc start up file (or your shell’s equivalent) and set up this command alias, being careful to use the exact punctuation and capitalization:

 

alias magic_05   "/usr/site/cad/bin/magic_subm -T SCN3ME_SUBM.30"

 

After you have editied your .cshrc file, please “source .cshrc” or start a new shell. Then type magic_05 instead or plain magic when starting up the layout editor.

 

Important Command lines:

 

magic

ext2sim -R -t! <file>.ext

irsim scmos100.prm <file>.sim

where <file> is the name of your magic design file. If you see “Using NULL graphics device.” when magic starts up, try the following argument with magic :

magic -d X11

to force the X11 Xwindows display.

 

Tutorials:

 

Please go through the Magic tutorial documents on the Elec422 Web page for further details. If you are having trouble finding the tutorial magic files (tut1.mag), please check your magic path and type

:path ".:/usr/site/cad/lib/magic/tutorial:"

within magic (that is a long keyboard command staring with a “:”).

 

Demo Files:

 

A demo of a simple inverter pair or buffer is available at (on Owlnet):

/home/cavallar/demo/BASIC

The magic file is called buffer.mag

The “files.txt” file contains a summary of important input and output files used by

magic and irsim. Send mail to cavallar@ece.rice.edu or the labbies if you have any problem starting up magic.