Short Magic tutorial for VLSI lab
 
 
 Running magic
Type:

    magic file_name

This will start Magic with the file file_name open. If this file does not exist, Magic will create a new empty design file. If this file already exists, Magic will open it and you will be able to continue your work on the design saved in the file_name file.

 

 Simple Commands
Every command starts with ':'.

Putting layers:

   :paint layer

The layer specified as layer will be painted on your design.  To see the possible layers that can be put in a design, use the layers command.


Listing possible layers

   :layers

This command lists all the possible layers that can be put in the design.


Erasing layers

   :erase

This command erases all the elements in the region pointed by the cursor rectangle in the design window.

   :erase layer

This command erases all the elements of the layer layer from the region pointed by the cursor rectangle in the design window.


Undoing actions

   :undo 

This command undoes the previously invoked command.


Labeling a design

   :label label position

This command puts a text label in the position indicated by position relative to the coursor rectangle in the design window. The position can be either of those: up, down, left, right.


Saving your work

   :save 

This command saves the current design in the same file that was open by Magic.

   :save file_name

This command saves the current design in the file file_name.


Quiting

   :quit

This command ends your work with magic. Make sure to save your work first.



 
 Printing your design

To print a design use  XV .

 
 
 
 Online Magic tutorials
  •  The Magic Home Page 
  •  Magic at Compaq Research site 
  •  Magic description at University of Colorado 

  •