blob: 98fead500dc640c46bab3a1575405acde3a05220 [file] [log] [blame]
Tim Edwardsdfc24ad2021-04-29 16:18:51 -04001#### xschemrc system configuration file
2
3#### values may be overridden by user's ~/.xschem/xschemrc configuration file
4#### or by project-local ./xschemrc
5
6###########################################################################
7#### XSCHEM INSTALLATION DIRECTORY: XSCHEM_SHAREDIR
8###########################################################################
9#### Normally there is no reason to set this variable if using standard
10#### installation. Location of files is set at compile time but may be overridden
11#### with following line:
12# set XSCHEM_SHAREDIR $env(HOME)/share/xschem
13
14###########################################################################
15#### XSCHEM SYSTEM-WIDE DESIGN LIBRARY PATHS: XSCHEM_LIBRARY_PATH
16###########################################################################
17#### If unset xschem starts with XSCHEM_LIBRARY_PATH set to the default, typically:
18# /home/schippes/.xschem/xschem_library
19# /home/schippes/share/xschem/xschem_library/devices
20# /home/schippes/share/doc/xschem/examples
21# /home/schippes/share/doc/xschem/ngspice
22# /home/schippes/share/doc/xschem/logic
23# /home/schippes/share/doc/xschem/xschem_simulator
24# /home/schippes/share/doc/xschem/binto7seg
25# /home/schippes/share/doc/xschem/pcb
26# /home/schippes/share/doc/xschem/rom8k
27
28#### Flush any previous definition
29set XSCHEM_LIBRARY_PATH {}
30#### include devices/*.sym
31append XSCHEM_LIBRARY_PATH ${XSCHEM_SHAREDIR}/xschem_library
32#### include skywater libraries. Here i use [pwd]. This works if i start xschem from here.
33append XSCHEM_LIBRARY_PATH :$env(PWD)
34append XSCHEM_LIBRARY_PATH :/usr/share/pdk/sky130A/libs.tech/xschem
35#### add ~/.xschem/xschem_library (USER_CONF_DIR is normally ~/.xschem)
36append XSCHEM_LIBRARY_PATH :$USER_CONF_DIR/xschem_library
37
38###########################################################################
39#### SET CUSTOM COLORS FOR XSCHEM LIBRARIES MATCHING CERTAIN PATTERNS
40###########################################################################
41#### each line contains a dircolor(pattern) followed by a color
42#### color can be an ordinary name (grey, brown, blue) or a hex code {#77aaff}
43#### hex code must be enclosed in braces
44array unset dircolor
45set dircolor(sky130_fd_pr$) blue
46set dircolor(sky130_tests$) blue
47set dircolor(xschem_sky130$) blue
48set dircolor(xschem_library$) red
49set dircolor(devices$) red
50
51###########################################################################
52#### WINDOW TO OPEN ON STARTUP: XSCHEM_START_WINDOW
53###########################################################################
54#### Start without a design if no filename given on command line:
55#### To avoid absolute paths, use a path that is relative to one of the
56#### XSCHEM_LIBRARY_PATH directories. Default: empty
57set XSCHEM_START_WINDOW {sky130_tests/top.sch}
58
59###########################################################################
60#### DIRECTORY WHERE SIMULATIONS, NETLIST AND SIMULATOR OUTPUTS ARE PLACED
61###########################################################################
62#### If unset $USER_CONF_DIR/simulations is assumed (normally ~/.xschem/simulations)
63# set netlist_dir $env(HOME)/.xschem/simulations
64set netlist_dir .
65
66###########################################################################
67#### CHANGE DEFAULT [] WITH SOME OTHER CHARACTERS FOR BUSSED SIGNALS
68#### IN SPICE NETLISTS (EXAMPLE: DATA[7] --> DATA<7>)
69###########################################################################
70#### default: empty (use xschem default, [ ])
71# set bus_replacement_char {<>}
72#### for XSPICE: replace square brackets as the are used for XSPICE vector nodes.
73# set bus_replacement_char {__}
74
75###########################################################################
76#### SOME DEFAULT BEHAVIOR
77###########################################################################
78#### Allowed values: spice, verilog, vhdl, tedax, default: spice
79# set netlist_type spice
80
81#### Some netlisting options (these are the defaults)
82# set hspice_netlist 1
83# set verilog_2001 1
84
85#### to use a fixed line with set change_lw to 0 and set some value to line_width
86#### these are the defaults
87# set line_width 0
88# set change_lw 1
89
90#### allow color postscript and svg exports. Default: 1, enable color
91# set color_ps 1
92
93#### initial size of xschem window you can specify also position with (wxh+x+y)
94#### this is the default:
95# set initial_geometry {900x600}
96
97#### if set to 0, when zooming out allow the viewport do drift toward the mouse position,
98#### allowing to move away by zooming / unzooming with mouse wheel
99#### default setting: 0
100# set unzoom_nodrift 0
101
102#### if set to 1 allow to place multiple components with same name.
103#### Warning: this is normally not allowed in any simulation netlist.
104#### default: 0, do not allow place multiple elements with same name (refdes)
105# set disable_unique_names 0
106
107#### if set to 1 continue drawing lines / wires after click
108#### default: 0
109# set persistent_command 1
110
111#### if set to 1 automatically join/trim wires while editing
112#### this may slow down on rally big designs. Can be disabled via menu
113#### default: 0
114# set autotrim_wires 0
115
116#### set widget scaling (mainly for font display), this is useful on 4K displays
117#### default: unset (tk uses its default) > 1.0 ==> bigger
118# set tk_scaling 1.7
119
120#### disable some symbol layers. Default: none, all layers are visible.
121# set enable_layer(5) 0 ;# example to disable pin red boxes
122
123#### enable to scale grid point size as done with lines at close zoom, default: 0
124# set big_grid_points 0
125
126###########################################################################
127#### EXPORT FORMAT TRANSLATORS, PNG AND PDF
128###########################################################################
129#### command to translate xpm to png; (assumes command takes source
130#### and dest file as arguments, example: gm convert plot.xpm plot.png)
131#### default: {gm convert}
132# set to_png {gm convert}
133
134#### command to translate ps to pdf; (assumes command takes source
135#### and dest file as arguments, example: ps2pdf plot.ps plot.pdf)
136#### default: ps2pdf
137# set to_pdf ps2pdf
138
139###########################################################################
140#### CUSTOM GRID / SNAP VALUE SETTINGS
141###########################################################################
142#### Warning: changing these values will likely break compatibility
143#### with existing symbol libraries. Defaults: grid 20, snap 10.
144# set grid 20
145# set snap 10
146
147###########################################################################
148#### CUSTOM COLORS MAY BE DEFINED HERE
149###########################################################################
150# set cadlayers 22
151# set light_colors {
152# "#ffffff" "#0044ee" "#aaaaaa" "#222222" "#229900"
153# "#bb2200" "#00ccee" "#ff0000" "#888800" "#00aaaa"
154# "#880088" "#00ff00" "#0000cc" "#666600" "#557755"
155# "#aa2222" "#7ccc40" "#00ffcc" "#ce0097" "#d2d46b"
156# "#ef6158" "#fdb200" }
157
158# set dark_colors {
159# "#000000" "#00ccee" "#3f3f3f" "#cccccc" "#88dd00"
160# "#bb2200" "#00ccee" "#ff0000" "#ffff00" "#ffffff"
161# "#ff00ff" "#00ff00" "#0000cc" "#aaaa00" "#aaccaa"
162# "#ff7777" "#bfff81" "#00ffcc" "#ce0097" "#d2d46b"
163# "#ef6158" "#fdb200" }
164
165###########################################################################
166#### CAIRO STUFF
167###########################################################################
168#### Scale all fonts by this number
169# set cairo_font_scale 1.0
170
171#### default for following two is 0.85 (xscale) and 0.88 (yscale) to
172#### match cairo font spacing
173# set nocairo_font_xscale 1.0
174#### set nocairo_font_yscale 1.0
175
176#### Scale line spacing by this number
177# set cairo_font_line_spacing 1.0
178
179#### Specify a font
180# set cairo_font_name {Sans-Serif}
181# set svg_font_name {Sans-Serif}
182
183#### Lift up text by some zoom-corrected pixels for
184#### better compatibility wrt no cairo version.
185#### Useful values in the range [-1, 3]
186# set cairo_vert_correct 0
187# set nocairo_vert_correct 0
188
189###########################################################################
190#### KEYBINDINGS
191###########################################################################
192#### General format for specifying a replacement for a keybind
193#### Replace Ctrl-d with Escape (so you wont kill the program)
194# set replace_key(Control-d) Escape
195
196#### swap w and W keybinds; Always specify Shift for capital letters
197# set replace_key(Shift-W) w
198# set replace_key(w) Shift-W
199
200###########################################################################
201#### TERMINAL
202###########################################################################
203#### default for linux: xterm
204# set terminal {xterm -geometry 100x35 -fn 9x15 -bg black -fg white -cr white -ms white }
205#### lxterminal is not OK since it will not inherit env vars:
206#### In order to reduce memory usage and increase the performance, all instances
207#### of the lxterminal are sharing a single process. LXTerminal is part of LXDE
208
209###########################################################################
210#### EDITOR
211###########################################################################
212#### editor must not detach from launching shell (-f mandatory for gvim)
213#### default for linux: gvim -f
214# set editor {gvim -f -geometry 90x28}
215# set editor { xterm -geometry 100x40 -e nano }
216# set editor { xterm -geometry 100x40 -e pico }
217
218#### For Windows
219# set editor {notepad.exe}
220
221###########################################################################
222#### SHOW ERC INFO WINDOW (erc errors, warnings etc)
223###########################################################################
224#### default: 0 (can be enabled by menu)
225# set show_infowindow 0
226
227###########################################################################
228#### CONFIGURE COMPUTER FARM JOB REDIRECTORS FOR SIMULATIONS
229###########################################################################
230#### RTDA NC
231# set computerfarm {nc run -Il}
232#### LSF BSUB
233# set computerfarm {bsub -Is}
234
235###########################################################################
236#### TCP CONNECTION WITH GAW
237###########################################################################
238#### set gaw address for socket connection: {host port}
239#### default: set to localhost, port 2020
240# set gaw_tcp_address {localhost 2020}
241
242###########################################################################
243#### XSCHEM LISTEN TO TCP PORT
244###########################################################################
245#### set xschem listening port; default: not enabled
246# set xschem_listen_port 2021
247
248###########################################################################
249#### UTILE SPICE STIMULI DESCRIPTION LANGUAGE AND TRANSLATOR
250###########################################################################
251#### default paths are set as shown here:
252# set utile_gui_path ${XSCHEM_SHAREDIR}/utile/utile3
253# set utile_cmd_path ${XSCHEM_SHAREDIR}/utile/utile
254
255###########################################################################
256#### TCL FILES TO LOAD AT STARTUP
257###########################################################################
258#### list of tcl files to preload.
259# lappend tcl_files ${XSCHEM_SHAREDIR}/change_index.tcl
260lappend tcl_files ${XSCHEM_SHAREDIR}/ngspice_backannotate.tcl
261lappend tcl_files /usr/share/pdk/sky130A/libs.tech/xschem/scripts/sky130_models.tcl
262###########################################################################
263#### XSCHEM TOOLBAR
264###########################################################################
265#### default: not enabled.
266# set toolbar_visible 1
267# set toolbar_horiz 1
268
269###########################################################################
270#### SKYWATER PDK SPECIFIC VARIABLES
271###########################################################################
272set SKYWATER_MODELS ~/skywater-pdk/libraries/sky130_fd_pr_ngspice/latest
273set SKYWATER_STDCELLS ~/skywater-pdk/libraries/sky130_fd_sc_hd/latest