Method for using the Magic layout tool:

1. Type the following UNIX command:
   % module load ecad/magic/6.5

2. Download a technology file for HP AMOS14TB (0.5um process):
   a. Go to website: ftp://ftp.isi.edu/pub/sondeen/magic/new/beta/current/
   b. Click on SCN3M_SUBM.30.tech27 using the right mouse button.
   c. Release the mouse button at Save As Link.

3. Launch the Magic layout tool:
   % magic -T SCN3M_SUBM.30 file_name
 
4. Draw your layout. 
   (Do the following grid command before creating your layout:
   :grid 1
   Then the each grid space is 1 lambda.)
 
5. Save your layout and extract it:
   :save xxx
   :extract
   :quit
   Then you can see the extracted file, xxx.ext

6. Do the following command for creating the hspice netlist:
   % ext2spice xxx
   Then you can see the netlist file, xxx.spice

7. Modify the netlist file(xxx.spice) as needed for hspice simulation.
   (i.e., add voltage sources, input signal waveforms, etc.)

8. Simulate the hspice file and view the waveforms by using:
   % hspice xxx.spice
   % awaves xxx.spice