EEC 116 - CAD Environment Setup

Recommended Setup

Log into an ECE Linux computer and do the following:

  1. Type the following line in any terminal window:
    ln -s /software/magic/116/DOT.magic ~/.magicrc
  2. ln -s /net/pizza/tools/magic/116/DOT.magic ~/.magicrc     # Seems to be broken Oct 2016

  3. 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 /software/magic/116/DOT2.cshrc
    source /net/pizza/tools/magic/116/DOT.cshrc     # Seems to be broken Oct 2016

    1. Use your favorite editor or another such as one of these:
      gedit ~/.cshrc
      vim ~/.cshrc   (vim is a great unix editor, with a long learning curve however; type "ZZ" to quit)

    2. Paste the line above into the file and save it.

  4. Add the following line to the end of your ~/.Xdefaults file to keep irsim from printing white on white:
    irsim.traceColor: black
  5. The edits affect only 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
If you see the error message, "/net/pizza/tools/magic/116/DOT.cshrc: No such file or directory.", we suspect a slow automount issue, so type "ls /net/pizza/tools/magic/116/DOT.cshrc" and then magic116 should restart without a problem.

Custom Installation (not recommended)

The following instructions are for advanced users--users who want to build the magic binaries and install magic in their own home directory.
  1. Go to
  2. Download the stable distribution of magic (Magic 7.5) called magic-7.5.175.tgz
  3. Move this tar ball to your /tmp directory
  4. Go to the /tmp directory and type tar -xf magic-7.5.175.tgz to unzip the tar ball
  5. This should create a new directory called magic-7.5.175.tgz
  6. Go to that directory and type the following set of commands on the terminal:
    ./configure --prefix=/tmp/magic-build
    make install
  7. This should build the magic binaries in the folder /tmp/magic-build/
  8. Copy the magic-build folder to your home directory
  9. 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
  10. 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
  11. 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.
  12. If everything went well, magic should be up and running now.

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)
2013/10/03, 16:00  Minor update (BB)
2013/11/30, 15:00  Fix typo (BB)
2014/10/13, 18:45  Comments on suspected automount problem (BB)
2014/10/22         Cosmetic edits (BB)
2017/10/05         Updated editors (TA,BB)