next up previous contents
Next: Extensions of SPICE3 Up: SPICECAD The Schematic Entry Previous: Creating 'other'- elements semi-automatically

Hotkeys and key redefinitions

 

Hotkeys are very useful for fast access of often-used functions like redraw, save etc. Using hotkyes requires that SPICECAD recognizes these keys well. Many X11 users customize the behaviour of their keyboards by using the program 'xmodmap'. The usage of this program may change some keycodes. This might cause the decoding of the hitted kotkey to fail. To circumvent this problem, you can define the new keycodes in file   'keys.spi'.   The file has to look as follows, where the numbers given here are an example:

CTRL_KEY_R 65507
CTRL_KEY_L 65508
ALT_KEY_R 44567
ALT_KEY_L 44568
SHIFT_KEY_L 34565
SHIFT_KEY_R 34566
ESC_KEY 45452
CURUP_KEY 34456
CURDOWN_KEY 34457
CURLEFT_KEY 34458
CURRIGHT_KEY 34459
DEL_KEY 34460
INSERT_KEY 34461

The numbers behind the key names have to changed individully according to your keyboard map table. For example, if CTRL_KEY_R is not recognized (the right Control key), press this key and find the number of this key in the error message appearing in the x-terminal window:

key unknown : 65513 offset 2000

The offset is debugging information for SPICECAD DEVELOPMENT. So, take the 65513 and write it behind CTRL_KEY_R in file 'keys.spi'.

CTRL_KEY_R 65513
CTRL_KEY_L 65507
ALT_KEY_R 44567
ALT_KEY_L 44568
SHIFT_KEY_L 34565
SHIFT_KEY_R 34566
ESC_KEY 45452

If you do not get a message when a key remains undetected, start the schematic entry using
'cad -key -c cellname'
.

Then, you will get the keycode in the X11 terminal window where you started SPICECAD each time you hit a key.

Only those keys which are not recognized have to be re-defined in file 'keys.spi'. Simple keys like function keys, number keys ( 0 1 2 3 4 .. 9) and letter keys (a b c .. z A B C ... Z) can be re-defined, too:

CTRL_KEY_R 65513
CTRL_KEY_L 65507
ALT_KEY_R 44567
ALT_KEY_L 44568
XK_a 65
XK_e 68
XK_z 91
XK_A 92
XK_F 102
XK_Y 112
XK_3 123
XK_F1 165
XK_F11 174

Here is a list of all used hotkeys:

a: Pop one hierarchy level (return from symbol or schematic editing)
b:
c: copy without filter
d: delete without filter
e: Push one hierarchy level (go to symbol or schematic editing)
f: full (fit window to schematic size)
g: Edit properties
h: plot next net segment in 'horizontal -then - vertical' mode
i
j
k
l
m: move without filter
n: Begin net editing
o: zoomout (default zoom coordinate system. Primarily useful for debugging purposes.)
p: pan
q: copy properties between devices of the same kind. nmos->nmos4 is possible, too.
r: redraw
s: Snap to next net or contact, continue net editing.
t: Pop all hierarchy levels (return from symbol or schematic editing, go to top level)
u
v: plot next net segment in 'vertical -then - horizontal' mode
w
x
y
z
A
B
C: copy with filter (default filter : no nets)
D: delete with filter(default filter : no nets)
E
F
G
H
I
J
K
L
M: move with filter(default filter : no nets)
N
O
P
Q
R
S : Snap to next net or contact, finish net editing T
U
V
W
X
Y
Z
1 : plot setup 1 (plot the plot-setup which you have saved using CTRL 1)
2 : plot setup 2
3 : plot setup 3
4 : plot setup 4
5 : plot setup 5
6
7
8
9
0
CTRL 1 : save plot setup 1
CTRL 2 : save plot setup 2
CTRL 3 : save plot setup 3
CTRL 4 : save plot setup 4
CTRL 5 : save plot setup 5
CTRL 6
CTRL 7
CTRL 8
CTRL 9
CTRL 0
ALT a
ALT b
ALT c
ALT d
ALT e
ALT f
ALT g
ALT h
ALT i i: select terminal current to plot
ALT j
ALT k
ALT l
ALT m
ALT n: netlist
ALT o
ALT p
ALT q
ALT r
ALT s
ALT t
ALT u d : undo delete
ALT v v: select voltage to plot
ALT w
ALT x
ALT y
ALT z
ALT 1: pop up main manu
ALT 2: pop up simulation menu
ALT 3: pop up zoom menu
ALT 4: pop up symbol menu
ALT 5: pop up library menu
ALT 6: pop up plot menu
ALT 7: pop up first options box
ALT 8: pop up second options box
ALT 9: pop up parametric simulation menu
ALT 0: pop up undo menu
CTRL a : load ac simulation data (not necessary in SPICE3)
CTRL b
CTRL c
CTRL d: load dc transfer simulation data (not necessary in SPICE3)
CTRL e: exit SPICECAD. SPICECAD will ask you for saving your schematic if you did some changes after the last saving.
CTRL f
CTRL g
CTRL h : Enter help mode.   After doing this, you can select menu entries or objects on the schematics screen. If available, a help text will appear.
CTRL i
CTRL j
CTRL k: run monte carlo simulation  
CTRL l
CTRL m
CTRL n
CTRL o: load dc op point simulation data (not necessary in SPICE3)
CTRL p
CTRL r: run ordinary simulation (no paramsweep, no monte carlo, no optimization)
CTRL s: save all what you are currently editing CTRL t: load transient simulation data (not necessary in SPICE3)
CTRL u
CTRL v
CTRL w: exit SPICECAD. All changes you did after the last saving will be lost, and SPICECAD will not ask you to save before leaving.
CTRL x
CTRL y
CTRL z
F1: pop up main manu
F2: pop up simulation menu
F3: pop up zoom menu
F4: pop up symbol menu
F5: pop up library menu
F6: pop up plot menu
F7: pop up first options box
F8: pop up second options box
F9: pop up parametric simulation menu
F10: pop up undo menu
Cursor right: Scroll into right direction in screen and plot window.
Cursor left: Scroll into left direction in screen and plot window.
Cursor up: Scroll to top in screen and plot window.
Cursor down: Scroll to bottom in screen and plot window.
. : Rotate
- : Mirror
/ : Mirror


next up previous contents
Next: Extensions of SPICE3 Up: SPICECAD The Schematic Entry Previous: Creating 'other'- elements semi-automatically
Martin Maschmann
1999-10-10