- Type the following line in any terminal window:
ln -s /net/pizza/tools/magic/116/DOT.magic ~/.magicrc
- Create a new .cshrc file (or edit your existing
.cshrc) in your home directory and add the following line
to the end of the file:
source /net/pizza/tools/magic/116/DOT.cshrc
- Use your favorite editor or another one such as one of
these three:
nedit ~/.cshrc
pico ~/.cshrc
vim ~/.cshrc (vim is a great unix editor, with
a long learning curve however; type "ZZ" to quit)
- Paste the line above into the file and save it.
- Add the following line to the end of your ~/.Xdefaults
file to keep irsim from printing white on white:
irsim.traceColor: black
- This change will only effect new windows, so you will need
to close and re-open any terminals windows or type
source ~/.cshrc before magic will work.
- To start magic or irsim using the class libraries, type
these special commands where CellName is the name of
your top-level cell.
magic116 CellName.mag
irsim116 CellName.sim
Setup for Advanced Users
The following instructions are for advanced users--users who want to
build the magic binaries and install magic in their own home directory.
- Go to http://opencircuitdesign.com/magic/download.html
- Download the stable distribution of magic (Magic 7.5) called magic-7.5.175.tgz
- Move this tar ball to your /tmp directory
- Go to the /tmp directory and type tar -xf magic-7.5.175.tgz to unzip the tar ball
- This should create a new directory called magic-7.5.175.tgz
- Go to that directory and type the following set of commands on the terminal:
./configure --prefix=/tmp/magic-build
make
make install
- This should build the magic binaries in the folder /tmp/magic-build/
- Copy the magic-build folder to your home directory
- Configure the $CAD_ROOT environmental variable so that magic
knows where to look for the technology files. To do this type:
setenv CAD_ROOT /home/username/magic-build/lib
where you should replace the 'username' with your own username
- Copy or link the SCN6M_DEEP.09 technology file to your
/home/USERNAME/magic-build/lib/magic/sys directory. For example,
a machine with access to pizza would require only the following command
to create the necessary symbolic link:
ln -s /net/pizza/tools/magic/116/eec116_config/SCN6M_DEEP.09.tech27-116
~/magic-build/lib/magic/sys/SCN6M_DEEP.09
- Once this is done, go to /home/username/magic-build/bin/ and
type the following to test your installation:
./magic -T SCN6M_DEEP.09
It is then advisable to create an alias so magic can be run in any
directory. Normally aliases are placed into either a .alias file
(if one exists) or the .cshrc file.
- If everything went well, magic should be up and running now.
Updates:
2005/04/08, 18:00 Updated for Spring 2005
2006/04/06, 17:45 Updated for Spring 2006
2006/04/12, 09:45 Added more .cshrc info
2007/03/29, 10:00 Added nedit and vim plus a few small edits
2009/04/10, 11:30 Added the instructions to install magic for advanced users (Swapnil)
2010/01/15, 00:30 Moved path to /net/pizza/... (BB)
2010/01/15, 15:00 Added .magicrc to new installation with symbolic link command (BB)