blob: 051189b10f3bb8f7eea39946d8169aa9384a8f8b [file] [log] [blame]
chrische1136fcf2022-07-22 21:28:05 +02001#----------------------------------------------------------------------
2# PATH DEFINITIONS
3#----------------------------------------------------------------------
4set DESIGN_PATH [exec pwd]
5set PDK_PATH $env(SKY130_PDK_PATH)
6
7#----------------------------------------------------------------------
8# xschem system-wide design library paths: xschem_library_path
9#----------------------------------------------------------------------
10append XSCHEM_LIBRARY_PATH :${DESIGN_PATH}
11set XSCHEM_SKY130_SCRIPTS_PATH ${DESIGN_PATH}/xschem/scripts
12
13# NOTE: You need update this to point to your xschem symbols,
14# or place the symbols in this location:
15append XSCHEM_LIBRARY_PATH :${DESIGN_PATH}/xschem/symbols
16
17#----------------------------------------------------------------------
18# window to open on startup: xschem_start_window
19#----------------------------------------------------------------------
20# set XSCHEM_START_WINDOW ${DESIGN_PATH}/user_analog_project_wrapper.sch
21set XSCHEM_START_WINDOW ${DESIGN_PATH}/top/xschem_top.sch
22
23#----------------------------------------------------------------------
24# DIRECTORY WHERE SIMULATIONS, NETLIST AND SIMULATOR OUTPUTS ARE PLACED
25#----------------------------------------------------------------------
26set netlist_dir ${DESIGN_PATH}/../sim
27
28#----------------------------------------------------------------------
29# change default [] with some other characters for bussed signals
30# in spice netlists (example: data[7] --> data<7>)
31# set bus_replacement_char {<>}
32#----------------------------------------------------------------------
33set bus_replacement_char {__}
34
35#----------------------------------------------------------------------
36# some default behavior
37#----------------------------------------------------------------------
38set netlist_type spice
39set hspice_netlist 1
40set initial_geometry {1920x1080}
41set persistent_command 1
42
43#----------------------------------------------------------------------
44# custom grid / snap value settings
45#----------------------------------------------------------------------
46set grid 20
47set snap 10
48
49#----------------------------------------------------------------------
50# custom colors may be defined here
51#----------------------------------------------------------------------
52
53set dark_colors {
54"#eee4c2" "#268BD2"
55"#aaaaaa" "#222222"
56"#229900" "#bb2200"
57"#00ccee" "#ff0000"
58"#888800" "#00aaaa"
59"#880088" "#00ff00"
60"#0000cc" "#666600"
61"#557755" "#aa2222"
62"#7ccc40" "#00ffcc"
63"#ce0097" "#d2d46b"
64"#ef6158" "#fdb200" }
65
66set light_colors {
67"#222222" "#00ccee"
68"#3f3f3f" "#cccccc"
69"#88dd00" "#bb2200"
70"#00ccee" "#ff0000"
71"#ffff00" "#ffffff"
72"#ff00ff" "#00ff00"
73"#0000cc" "#aaaa00"
74"#aaccaa" "#ff7777"
75"#bfff81" "#00ffcc"
76"#ce0097" "#d2d46b"
77"#ef6158" "#fdb200" }
78
79#----------------------------------------------------------------------
80# set custom colors for xschem libraries matching certain patterns
81#----------------------------------------------------------------------
82array unset dircolor
83set dircolor(sky130_fd_pr$) blue
84set dircolor(sky130_tests$) blue
85set dircolor(xschem_sky130$) blue
86set dircolor(xschem_library$) red
87set dircolor(devices$) red
88
89#----------------------------------------------------------------------
90# keybindings
91#----------------------------------------------------------------------
92
93set replace_key(Key-a) m
94set replace_key(Key-d) Delete
95set replace_key(Key-i) Insert
96set replace_key(Key-r) Control-e
97set replace_key(Key-y) Control-c
98set replace_key(Key-q) Shift-Q
99set replace_key(Shift-Q) q
100set replace_key(Key-l) Alt-Shift-L
101set replace_key(Shift-L) Alt-l
102set replace_key(Shift-L) Alt-l
103set replace_key(Key-p) Control-w
104
105#----------------------------------------------------------------------
106# terminal
107#----------------------------------------------------------------------
108set terminal {gnome-terminal}
109
110#----------------------------------------------------------------------
111# editor
112#----------------------------------------------------------------------
113set editor { xterm -geometry 70x25 -e nvim }
114
115#----------------------------------------------------------------------
116# tcl files to load at startup
117#----------------------------------------------------------------------
118lappend tcl_files ${XSCHEM_SHAREDIR}/ngspice_backannotate.tcl
119lappend tcl_files ${XSCHEM_SKY130_SCRIPTS_PATH}/sky130_models.tcl
120
121#----------------------------------------------------------------------
122# skywater pdk specific variables
123#----------------------------------------------------------------------
124set SKYWATER_MODELS ${PDK_PATH}/sky130_fd_pr_ngspice/latest
125set SKYWATER_STDCELLS ${PDK_PATH}/sky130_fd_sc_hd/latest