EEC 116 - Magic Macros

You can see all the macros by typing macro while running magic. Some of the more useful macros are listed here:

Shortcut Command Description
: (;)   Set keyboard focus to the text entry window
[ load Types load in the console and sets keyboard focus to the console.
Follow-up with the name of the cell you want to open.
] save Save current cell
s select
(select an electrically-connected node)
Press one time to select a rectangle
Press two times to select the entire material
Press three times to select the entire electrical node
S select more Select more material, similar to "Ctrl + LClick" in Windows
a select visible Select material within the box
A select more visible Similar to 'select more' but select material within the box
c copy Copy the selected material to the cursor position
C select clear Clear the selection
u undo Undo last action
U redo Redo last command
d delete Delete the currently selected material
Ctrl + d erase $ Delete material within the box matching what's under the cursor
t move Move the selected material to cursor position
NOTE: Relative to the box bottom-left corner and the cursor position
q/w/e/r move [dir] 1 Move the selected material left/down/up/right
Keypad Direction move [dir] 1 Move the selected material in the direction pressed
Q/W/E/R stretch [dir] 1 Stretch the selected material left/down/up/right.
Like moving but maintains any connections it has.
Shift + Keypad Direction stretch [dir] 1 Stretch the selected material in the direction pressed
NOTE: This also happens when Numlock is on
Ctrl + Direction box grow [dir] 1 Increase the box in the direction pressed (arrow keys)
Ctrl + Shift + Direction box shrink [dir] 1 Decrease the box in the direction pressed (arrow keys)
z findbox zoom Zoom to fit the selection box
Z zoom 2 Zoom out by 2x
v view View entire layout
i or f select cell Select a cell, useful for grabbing instanced cells or your current working cell.
, center Center view on the box
x expand Expand, i.e. reveal internals of, selected/boxed instanced layout cells
X unexpand Unexpand, i.e. hide internals of, selected/boxed instanced layout cells
Ctrl + x / m expand toggle Toggles if the cell is expanded
k getnode Print out the labeled name of the node/paint selected
y drc why Explain the DRC problem under the selection box
Y drc find Move the box to a DRC error and print out the problem

Reference: Magic Notes, contains additional long commands by Mark Horowitz, though some macros have changed.



EEC 116 | B. Baas | ECE Dept. | UC Davis
2010/10/21  Three new macros added (Trevin Murakami)
2010/10/01  Updated to match current DOT.magicrc file (Trevin Murakami)
2008/04/16  Updated (BB)
2006/04/06  Updated for Spring 2006
2004/04/08  Written