xschem/src/xschemrc

290 lines
12 KiB
Plaintext
Raw Normal View History

2021-01-04 15:19:08 +01:00
## xschemrc system configuration file
2020-08-08 15:47:34 +02:00
2021-01-04 15:19:08 +01:00
## values may be overridden by user's ~/.xschem/xschemrc configuration file
## or by project-local ./xschemrc
2020-08-08 15:47:34 +02:00
###########################################################################
2021-01-04 15:19:08 +01:00
## XSCHEM INSTALLATION DIRECTORY: XSCHEM_SHAREDIR
2020-08-08 15:47:34 +02:00
###########################################################################
2021-01-04 15:19:08 +01:00
## Normally there is no reason to set this variable if using standard
## installation. Location of files is set at compile time but may be overridden
## with following line:
2020-08-08 15:47:34 +02:00
# set XSCHEM_SHAREDIR $env(HOME)/share/xschem
###########################################################################
2021-01-04 15:19:08 +01:00
## XSCHEM SYSTEM-WIDE DESIGN LIBRARY PATHS: XSCHEM_LIBRARY_PATH
2020-08-08 15:47:34 +02:00
###########################################################################
2021-01-04 15:19:08 +01:00
## If unset xschem starts with XSCHEM_LIBRARY_PATH set to the default, typically:
# .
# /home/schippes/.xschem/xschem_library
# /home/schippes/share/xschem/xschem_library/devices
# /home/schippes/share/doc/xschem/examples
# /home/schippes/share/doc/xschem/ngspice
# /home/schippes/share/doc/xschem/logic
2021-01-04 15:19:08 +01:00
# /home/schippes/share/doc/xschem/xschem_simulator
# /home/schippes/share/doc/xschem/binto7seg
# /home/schippes/share/doc/xschem/pcb
# /home/schippes/share/doc/xschem/rom8k
2020-08-08 15:47:34 +02:00
2021-01-04 15:19:08 +01:00
## For testing in build src directory
## if unset following paths are set:
# .
# ../xschem_library/devices
2020-08-08 15:47:34 +02:00
2021-01-04 15:19:08 +01:00
## For testing after installation: uncomment following lines
# set xschem_doc_dir [file dirname ${XSCHEM_SHAREDIR}]/doc/xschem
2021-01-04 15:19:08 +01:00
# set XSCHEM_LIBRARY_PATH {}
2020-08-08 15:47:34 +02:00
# append XSCHEM_LIBRARY_PATH :~/.xschem/xschem_library
# append XSCHEM_LIBRARY_PATH :${XSCHEM_SHAREDIR}/xschem_library/devices
# append XSCHEM_LIBRARY_PATH ${xschem_doc_dir}/examples
# append XSCHEM_LIBRARY_PATH ${xschem_doc_dir}/ngspice
# append XSCHEM_LIBRARY_PATH ${xschem_doc_dir}/xschem_simulator
# append XSCHEM_LIBRARY_PATH ${xschem_doc_dir}/rom8k
2021-01-04 15:19:08 +01:00
# append XSCHEM_LIBRARY_PATH ${xschem_doc_dir}/logic
# append XSCHEM_LIBRARY_PATH ${xschem_doc_dir}/pcb
2021-01-04 15:19:08 +01:00
# append XSCHEM_LIBRARY_PATH ${xschem_doc_dir}/binto7seg
# append XSCHEM_LIBRARY_PATH ${xschem_doc_dir}/symgen
2021-01-04 15:19:08 +01:00
# append XSCHEM_LIBRARY_PATH ${xschem_doc_dir}/xTAG
# append XSCHEM_LIBRARY_PATH ${xschem_doc_dir}/rulz-r8c33
# append XSCHEM_LIBRARY_PATH ${xschem_doc_dir}/gschem_import
# append XSCHEM_LIBRARY_PATH ${xschem_doc_dir}/gschem_import/sym
2020-08-08 15:47:34 +02:00
2021-01-04 15:19:08 +01:00
## For Windows, use ; instead of :, and enclosed pathname with ""
2020-08-08 15:47:34 +02:00
#append XSCHEM_LIBRARY_PATH ";${XSCHEM_SHAREDIR}/../xschem_library"
#append XSCHEM_LIBRARY_PATH ";${XSCHEM_SHAREDIR}/../xschem_library/devices"
#append XSCHEM_LIBRARY_PATH ";${XSCHEM_SHAREDIR}/../xschem_library/examples"
#append XSCHEM_LIBRARY_PATH ";${XSCHEM_SHAREDIR}/../xschem_library/ngspice"
2021-01-04 15:19:08 +01:00
#append XSCHEM_LIBRARY_PATH ";${XSCHEM_SHAREDIR}/../xschem_library/xschem_simulator"
#append XSCHEM_LIBRARY_PATH ";${XSCHEM_SHAREDIR}/../xschem_library/rom8k"
#append XSCHEM_LIBRARY_PATH ";${XSCHEM_SHAREDIR}/../xschem_library/logic"
#append XSCHEM_LIBRARY_PATH ";${XSCHEM_SHAREDIR}/../xschem_library/pcb"
2021-01-04 15:19:08 +01:00
#append XSCHEM_LIBRARY_PATH ";${XSCHEM_SHAREDIR}/../xschem_library/binto7seg"
2020-08-08 15:47:34 +02:00
###########################################################################
2021-01-04 15:19:08 +01:00
## SET CUSTOM COLORS FOR XSCHEM LIBRARIES MATCHING CERTAIN PATTERNS
###########################################################################
## each line contains a dircolor(pattern) followed by a color
2020-08-08 15:47:34 +02:00
## color can be an ordinary name (grey, brown, blue) or a hex code {#77aaff}
## hex code must be enclosed in braces
2021-01-04 15:19:08 +01:00
## these are the defaults:
# set dircolor(/share/xschem/) red
# set dircolor(/share/doc/xschem/) {#338844}
2020-08-08 15:47:34 +02:00
###########################################################################
2021-01-04 15:19:08 +01:00
## WINDOW TO OPEN ON STARTUP: XSCHEM_START_WINDOW
2020-08-08 15:47:34 +02:00
###########################################################################
2021-01-04 15:19:08 +01:00
## Start without a design if no filename given on command line:
## To avoid absolute paths, use a path that is relative to one of the
## XSCHEM_LIBRARY_PATH directories. Default: empty
2020-08-08 15:47:34 +02:00
# set XSCHEM_START_WINDOW {0_examples_top.sch}
###########################################################################
2021-01-04 15:19:08 +01:00
## DIRECTORY WHERE SIMULATIONS, NETLIST AND SIMULATOR OUTPUTS ARE PLACED
2020-08-08 15:47:34 +02:00
###########################################################################
2021-01-04 15:19:08 +01:00
## If unset $USER_CONF_DIR/simulations is assumed (normally ~/.xschem/simulations)
2020-08-08 15:47:34 +02:00
# set netlist_dir $env(HOME)/.xschem/simulations
###########################################################################
2021-01-04 15:19:08 +01:00
## CHANGE DEFAULT [] WITH SOME OTHER CHARACTERS FOR BUSSED SIGNALS
## IN SPICE NETLISTS (EXAMPLE: DATA[7] --> DATA<7>)
2020-08-08 15:47:34 +02:00
###########################################################################
2021-01-04 15:19:08 +01:00
## default: empty (use xschem default, [ ])
2020-08-08 15:47:34 +02:00
# set bus_replacement_char {<>}
2021-01-04 15:19:08 +01:00
## for XSPICE: replace square brackets as the are used for XSPICE vector nodes.
2020-08-08 15:47:34 +02:00
# set bus_replacement_char {__}
###########################################################################
2021-01-04 15:19:08 +01:00
## SOME DEFAULT BEHAVIOR
2020-08-08 15:47:34 +02:00
###########################################################################
2021-01-04 15:19:08 +01:00
## Allowed values: spice, verilog, vhdl, tedax, default: spice
# set netlist_type spice
2020-08-08 15:47:34 +02:00
2021-01-04 15:19:08 +01:00
## Some netlisting options (these are the defaults)
# set hspice_netlist 1
# set verilog_2001 1
2021-01-04 15:19:08 +01:00
## to use a fixed line with set change_lw to 0 and set some value to line_width
## these are the defaults
# set line_width 0
# set change_lw 1
2021-01-04 15:19:08 +01:00
## allow color postscript and svg exports. Default: 1, enable color
# set color_ps 1
## initial size of xschem window you can specify also position with (wxh+x+y)
## this is the default:
# set initial_geometry {900x600}
## if set to 0, when zooming out allow the viewport do drift toward the mouse position,
## allowing to move away by zooming / unzooming with mouse wheel
## default setting: 0
2020-08-08 15:47:34 +02:00
# set unzoom_nodrift 0
## if set to 1 allow to place multiple components with same name.
## Warning: this is normally not allowed in any simulation netlist.
2021-01-04 15:19:08 +01:00
## default: 0, do not allow place multiple elements with same name (refdes)
# set disable_unique_names 0
2020-08-08 15:47:34 +02:00
## if set to 1 continue drawing lines / wires after click
2021-01-04 15:19:08 +01:00
## default: 0
2020-08-08 15:47:34 +02:00
# set persistent_command 1
## if set to 1 automatically join/trim wires while editing
2021-01-04 15:19:08 +01:00
## this may slow down on rally big designs. Can be disabled via menu
## default: 0
# set autotrim_wires 0
2020-08-08 15:47:34 +02:00
2021-01-04 15:19:08 +01:00
## set widget scaling (mainly for font display), this is useful on 4K displays
## default: unset (tk uses its default) > 1.0 ==> bigger
2020-08-08 15:47:34 +02:00
# set tk_scaling 1.7
2021-01-04 15:19:08 +01:00
## disable some symbol layers. Default: none, all layers are visible.
2020-08-08 15:47:34 +02:00
# set enable_layer(5) 0 ;# example to disable pin red boxes
## enable to scale grid point size as done with lines at close zoom
# set big_grid_points 0
2020-08-08 15:47:34 +02:00
###########################################################################
2021-01-04 15:19:08 +01:00
## EXPORT FORMAT TRANSLATORS, PNG AND PDF
2020-08-08 15:47:34 +02:00
###########################################################################
2021-01-04 15:19:08 +01:00
## command to translate xpm to png; (assumes command takes source
## and dest file as arguments, example: gm convert plot.xpm plot.png)
## default: {gm convert}
# set to_png {gm convert}
2020-08-08 15:47:34 +02:00
2021-01-04 15:19:08 +01:00
## command to translate ps to pdf; (assumes command takes source
## and dest file as arguments, example: ps2pdf plot.ps plot.pdf)
## default: ps2pdf
# set to_pdf ps2pdf
2020-08-08 15:47:34 +02:00
###########################################################################
2021-01-04 15:19:08 +01:00
## CUSTOM GRID / SNAP VALUE SETTINGS
2020-08-08 15:47:34 +02:00
###########################################################################
2021-01-04 15:19:08 +01:00
## Warning: changing these values will likely break compatibility
## with existing symbol libraries. Defaults: grid 20, snap 10.
# set grid 20
# set snap 10
2020-08-08 15:47:34 +02:00
2021-01-04 15:19:08 +01:00
###########################################################################
## CUSTOM COLORS MAY BE DEFINED HERE
###########################################################################
2020-08-08 15:47:34 +02:00
# set cadlayers 22
# set light_colors {
# "#ffffff" "#0044ee" "#aaaaaa" "#222222" "#229900"
# "#bb2200" "#00ccee" "#ff0000" "#888800" "#00aaaa"
# "#880088" "#00ff00" "#0000cc" "#666600" "#557755"
# "#aa2222" "#7ccc40" "#00ffcc" "#ce0097" "#d2d46b"
# "#ef6158" "#fdb200" }
# set dark_colors {
# "#000000" "#00ccee" "#3f3f3f" "#cccccc" "#88dd00"
# "#bb2200" "#00ccee" "#ff0000" "#ffff00" "#ffffff"
# "#ff00ff" "#00ff00" "#0000cc" "#aaaa00" "#aaccaa"
# "#ff7777" "#bfff81" "#00ffcc" "#ce0097" "#d2d46b"
# "#ef6158" "#fdb200" }
###########################################################################
## CAIRO STUFF
###########################################################################
#### Scale all fonts by this number
# set cairo_font_scale 1.0
#### default for following two is 0.85 (xscale) and 0.88 (yscale) to
#### match cairo font spacing
# set nocairo_font_xscale 1.0
2021-01-04 15:19:08 +01:00
## set nocairo_font_yscale 1.0
2020-08-08 15:47:34 +02:00
#### Scale line spacing by this number
# set cairo_font_line_spacing 1.0
#### Specify a font
# set cairo_font_name {Sans-Serif}
# set svg_font_name {Sans-Serif}
2020-08-08 15:47:34 +02:00
#### Lift up text by some zoom-corrected pixels for
#### better compatibility wrt no cairo version.
#### Useful values in the range [-1, 3]
# set cairo_vert_correct 0
# set nocairo_vert_correct 0
###########################################################################
## KEYBINDINGS
###########################################################################
#### General format for specifying a replacement for a keybind
#### Replace Ctrl-d with Escape (so you wont kill the program)
# set replace_key(Control-d) Escape
#### swap w and W keybinds; Always specify Shift for capital letters
# set replace_key(Shift-W) w
# set replace_key(w) Shift-W
2021-01-04 15:19:08 +01:00
###########################################################################
## TERMINAL
###########################################################################
## default for linux: xterm
# set terminal {xterm -geometry 100x35 -fn 9x15 -bg black -fg white -cr white -ms white }
2020-08-08 15:47:34 +02:00
## lxterminal is not OK since it will not inherit env vars:
## In order to reduce memory usage and increase the performance, all instances
## of the terminal are sharing a single process. LXTerminal is part of LXDE
2021-01-04 15:19:08 +01:00
###########################################################################
## EDITOR
###########################################################################
2020-08-08 15:47:34 +02:00
## editor must not detach from launching shell (-f mandatory for gvim)
2021-01-04 15:19:08 +01:00
## default for linux: gvim -f
# set editor {gvim -f -geometry 90x28}
2020-08-08 15:47:34 +02:00
# set editor { xterm -geometry 100x40 -e nano }
# set editor { xterm -geometry 100x40 -e pico }
2021-01-04 15:19:08 +01:00
## For Windows
# set editor {notepad.exe}
2020-08-08 15:47:34 +02:00
2021-01-04 15:19:08 +01:00
###########################################################################
## SHOW ERC INFO WINDOW (erc errors, warnings etc)
###########################################################################
## default: 0 (can be enabled by menu)
# set show_infowindow 0
2020-08-08 15:47:34 +02:00
2021-01-04 15:19:08 +01:00
###########################################################################
## CONFIGURE COMPUTER FARM JOB REDIRECTORS FOR SIMULATIONS
###########################################################################
## RTDA NC
2020-08-08 15:47:34 +02:00
# set computerfarm {nc run -Il}
2021-01-04 15:19:08 +01:00
## LSF BSUB
2020-08-08 15:47:34 +02:00
# set computerfarm {bsub -Is}
2021-01-04 15:19:08 +01:00
###########################################################################
## TCP CONNECTION WITH GAW
###########################################################################
## set gaw address for socket connection: {host port}
## default: set to localhost, port 2020
# set gaw_tcp_address {localhost 2020}
2020-08-08 15:47:34 +02:00
2021-01-04 15:19:08 +01:00
###########################################################################
## XSCHEM LISTEN TO TCP PORT
###########################################################################
## set xschem listening port; default: not enabled
2020-08-08 15:47:34 +02:00
# set xschem_listen_port 2021
2021-01-04 15:19:08 +01:00
###########################################################################
## UTILE SPICE STIMULI DESCRIPTION LANGUAGE AND TRANSLATOR
###########################################################################
## default paths are set as shown here:
# set utile_gui_path ${XSCHEM_SHAREDIR}/utile/utile3
# set utile_cmd_path ${XSCHEM_SHAREDIR}/utile/utile
2020-08-08 15:47:34 +02:00
2021-01-04 15:19:08 +01:00
###########################################################################
## TCL FILES TO LOAD AT STARTUP
###########################################################################
## list of tcl files to preload.
2020-08-08 15:47:34 +02:00
# lappend tcl_files ${XSCHEM_SHAREDIR}/change_index.tcl
# lappend tcl_files ${XSCHEM_SHAREDIR}/ngspice_backannotate.tcl
2021-01-04 15:19:08 +01:00
###########################################################################
## XSCHEM TOOLBAR
###########################################################################
## default: not enabled.
2020-08-08 15:47:34 +02:00
# set toolbar_visible 1
# set toolbar_horiz 1