EEC 116 - CAD Environment Setup


1) Recommended Method

Log into an ECE Linux computer and perform the following tasks:

  1. Type the following line in any terminal window:
    ln -s /software/magic/116/DOT.magic ~/.magicrc

  2. Edit your existing ~/.cshrc file (or create a new one) in your home directory and add the following line to the end of the file:
    source /software/magic/116/DOT2.cshrc

    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.

  3. Add the following line to the end of your ~/.Xdefaults file to keep irsim from printing white on white or black on black:
    irsim.traceColor: black
    irsim.background: white

  4. 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.


2) Custom Local Installation for Windows computers (generally not recommended unless option #1 is not possible)


3) Custom Installation circa ~2015 (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 http://opencircuitdesign.com/magic/download.html
  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
    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.


EEC 116 | B. Baas | ECE Dept. | UC Davis
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)
2018/09/26         Minor edits (BB)
2018/11/21         Added irsim.background command (BB)
2019/10/09         Removed references to pizza and cleaned up a little (BB)