EEC 116 - Magic From Home

Department Computers

Host Name Architecture Room
ugrad-linux.ece.ucdavis.edu Linux (i686) 2110,1105,1101
snake.ece.ucdavis.edu Linux (i686 SMP) 2107

Remote SSH

NOTE: You will need an SSH client and X server to be able to run magic from a department computer. These applications come standard on most UNIX based systems. Some helpful links to various programs for other systems are listed at the bottom of this page.

  1. Start your X Server and SSH Client. Refer to the program documentation on how to setup "X11 Forwarding". In Linux and HP-UX the X server is always running. For Windows and MacOSX you will need to download an X Server from the links below.
  2. Connect to one of the hosts listed above. Type "xeyes" to verify that your display is working correctly. You can also type "setenv | grep DISPLAY" and verify that a line of the form 'DISPLAY=localhost:10.0' is displayed. If neither appear to be correct check your local client settings.
  3. Once your display is working you should be able to run magic and irsim.

Windows (XMING/PuTTY)

  1. Download and install XMING and PuTTY from the links below. Installing XMING will require that you first download the executable file (.exe), then install the program.
  2. After installation, start XMING from the start menu by clicking "Programs -> XMING -> XMING ". A big x should show up in the taskbar on the lower right hand side of your screen after the program starts.
  3. If you want to configure the connection display settings, use Xlaunch, the XMING configuration utility by clicking "Programs -> Xming -> Xlaunch".
    NOTE: The colors will look slightly different in XMING than in Linux due to limitations in XMING.
  4. Start PuTTY by clicking "Programs -> PuTTY -> PuTTY."
  5. In PuTTY under "Connection -> SSH -> X11" check "Enable X11 forwarding". Under "Session" type a host from the table above into "Host Name" and click "Open".
  6. Type in your ECE login and password. Verify your display is working using the tests above then start magic or irsim.
  7. Remember that each time you start PuTTY, you will have to enable X11 Forwarding.

Windows (RealVNC Sever)

  1. Please following the following instructions to intall and run RealVNC Server: RealVNC Installation.
  2. After VNC Server is running, then you can run magic the same way as you do on the ECE computers.

Magic/IRSIM Binaries

Source Code

NOTE: This is only for more advanced users. You can build the programs yourself if you want to run magic from your home computer. We recommend using the class installation for simplicity and compatability. You can also try the binaries listed above if you do not want to compile the programs yourself.

You will need the following things from below:
  1. GCC compiler
  2. Magic/IRSIM source code
  3. Tcl/Tk development libraries (X11 version)
  4. Optional: BLT development libraries
  5. Technology files
The build process is very system dependent but these are the basic steps required to get magic/irsim running. For more information refer to Tim Edward's Magic Page.

Compiling Magic:

  1. Extract Source: 'tar zxvf magic-version.tgz'
  2. Configure Source: './configure --prefix=install_path'
  3. Build Magic: 'make'
  4. Install Magic: 'make install'
  5. Extract Technology Files: 'tar zxvf magic-mosis-*.tgz'
  6. Install Technology File: 'cp SCN6M_DEEP.09.tech27 install_path/lib/magic/sys/'
  7. Run Magic: 'magic -T SCN6M_DEEP.09 file.mag'
Compiling IRSIM:
  1. Extract Source: 'tar zxvf irsim-version.tgz'
  2. Configure Source: './configure --prefix=install_path'
  3. Build IRSIM: 'make'
  4. Install IRSIM: 'make install'
  5. Extract Technology Files: 'tar zxvf magic-mosis-*.tgz'
  6. Install Technology File: 'cp TSMC.18.prm install_path/lib/irsim/prm/'
  7. Run IRSIM: 'irsim TSMC.18 file.sim'

Additional Links



Updates:
2006/04/12  Updated for Spring 2006
2006/06/06  Updated magic/irsim technology files
2006/06/08  Updated magic/irsim binaries
2008/04/11  Updated to include XMING
2009/04/11  Updated to include RealVNC