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.
- 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.
- From Linux/MacOSX: "ssh user@host -X"
- From HP-UX: "ssh user@host +X"
- 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.
- Once your display is working you should be able to run
magic and irsim.
Windows (XMING/PuTTY)
- 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.
- 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.
- 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.
- Start PuTTY by clicking "Programs -> PuTTY ->
PuTTY."
- 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".
- Type in your ECE login and password. Verify your display is
working using the tests above then start magic or irsim.
- Remember that each time you start PuTTY, you will have to enable X11 Forwarding.
Windows (RealVNC Sever)
- Please following the following instructions to intall and run RealVNC Server:
RealVNC Installation.
- After VNC Server is running, then you can run magic the same way as you do on the
ECE computers.
Magic/IRSIM Binaries
- Windows/Cygwin Binaries
(magic-7.4.19, irsim-9.7.23, blt-2.4z, tcl-8.4.12, tk-8.4.12)
- Install Notes
- Download cygwin
- Download technology files below
- Install these packages:
X11/xorg-x11-xwin
- Start cygwin shell
- cd /usr/local
- tar zxvf /path/to/magic-cygwin-*.tgz
- tar zxvf /path/to/magic-mosis-*.tgz
- mv SCN6M_DEEP.09.tech27 /usr/local/lib/magic/sys/
- mv TSMC.18.prm /usr/local/lib/irsim/prm/
- startx
- Run magic/irsim using:
magic -T SCN6M_DEEP.09 file.mag
irsim TSMC.18 file.sim
- MacOS X Binaries
(magic-7.4.19, irsim-9.7.23, blt-2.4z, tcl-8.4.12, tk-8.4.12)
- Install Notes
- Install Apple X11
- Open Terminal.app
- Become root: sudo su
- mkdir /usr/local
- cd /usr/local
- tar zxvf /path/to/magic-macosx-*.tgz
- tar zxvf /path/to/magic-mosis-*.tgz
- mv SCN6M_DEEP.09.tech27 /usr/local/lib/magic/sys/
- mv TSMC.18.prm /usr/local/lib/irsim/prm/
- Become a normal user: exit
- Append the following to ~/.bash_profile
(pico ~/.bash_profile) :
export PATH=$PATH:/usr/local/bin
export DISPLAY=":0.0"
- Start X11
- Run magic/irsim using:
magic -T SCN6M_DEEP.09 file.mag
irsim TSMC.18 file.sim
- Linux Magic RPM
(magic-7.4.19) [Built on FC5]
Linux IRSIM RPM
(irsim-9.7.23) [Built on FC5]
- Install Notes
- Download technology files below
- Become root: sudo su
- Satisfy dependencies if the following fails
- rpm -ivh magic-version.i386.rpm
- rpm -ivh irsim-version.i386.rpm
- tar zxvf /path/to/magic-mosis-*.tgz
- mv SCN6M_DEEP.09.tech27 /usr/lib/magic/sys/
- mv TSMC.18.prm /usr/lib/irsim/prm/
- Become a normal user: exit
- Run magic/irsim using:
magic -T SCN6M_DEEP.09 file.mag
irsim TSMC.18 file.sim
- Optional: Add the following line to ~/.Xresources
irsim.background: black
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:
- GCC compiler
- Magic/IRSIM source code
- Tcl/Tk development libraries (X11 version)
- Optional: BLT development libraries
- 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:
- Extract Source: 'tar zxvf magic-version.tgz'
- Configure Source: './configure --prefix=install_path'
- Build Magic: 'make'
- Install Magic: 'make install'
- Extract Technology Files: 'tar zxvf magic-mosis-*.tgz'
- Install Technology File: 'cp SCN6M_DEEP.09.tech27 install_path/lib/magic/sys/'
- Run Magic: 'magic -T SCN6M_DEEP.09 file.mag'
Compiling IRSIM:
- Extract Source: 'tar zxvf irsim-version.tgz'
- Configure Source: './configure --prefix=install_path'
- Build IRSIM: 'make'
- Install IRSIM: 'make install'
- Extract Technology Files: 'tar zxvf magic-mosis-*.tgz'
- Install Technology File: 'cp TSMC.18.prm install_path/lib/irsim/prm/'
- 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