chrische | 1136fcf | 2022-07-22 21:28:05 +0200 | [diff] [blame] | 1 | #---------------------------------------------------------------------- |
| 2 | # PATH DEFINITIONS |
| 3 | #---------------------------------------------------------------------- |
| 4 | set DESIGN_PATH [exec pwd] |
| 5 | set PDK_PATH $env(SKY130_PDK_PATH) |
| 6 | |
| 7 | #---------------------------------------------------------------------- |
| 8 | # xschem system-wide design library paths: xschem_library_path |
| 9 | #---------------------------------------------------------------------- |
| 10 | append XSCHEM_LIBRARY_PATH :${DESIGN_PATH} |
| 11 | set 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: |
| 15 | append 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 |
| 21 | set XSCHEM_START_WINDOW ${DESIGN_PATH}/top/xschem_top.sch |
| 22 | |
| 23 | #---------------------------------------------------------------------- |
| 24 | # DIRECTORY WHERE SIMULATIONS, NETLIST AND SIMULATOR OUTPUTS ARE PLACED |
| 25 | #---------------------------------------------------------------------- |
| 26 | set 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 | #---------------------------------------------------------------------- |
| 33 | set bus_replacement_char {__} |
| 34 | |
| 35 | #---------------------------------------------------------------------- |
| 36 | # some default behavior |
| 37 | #---------------------------------------------------------------------- |
| 38 | set netlist_type spice |
| 39 | set hspice_netlist 1 |
| 40 | set initial_geometry {1920x1080} |
| 41 | set persistent_command 1 |
| 42 | |
| 43 | #---------------------------------------------------------------------- |
| 44 | # custom grid / snap value settings |
| 45 | #---------------------------------------------------------------------- |
| 46 | set grid 20 |
| 47 | set snap 10 |
| 48 | |
| 49 | #---------------------------------------------------------------------- |
| 50 | # custom colors may be defined here |
| 51 | #---------------------------------------------------------------------- |
| 52 | |
| 53 | set 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 | |
| 66 | set 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 | #---------------------------------------------------------------------- |
| 82 | array unset dircolor |
| 83 | set dircolor(sky130_fd_pr$) blue |
| 84 | set dircolor(sky130_tests$) blue |
| 85 | set dircolor(xschem_sky130$) blue |
| 86 | set dircolor(xschem_library$) red |
| 87 | set dircolor(devices$) red |
| 88 | |
| 89 | #---------------------------------------------------------------------- |
| 90 | # keybindings |
| 91 | #---------------------------------------------------------------------- |
| 92 | |
| 93 | set replace_key(Key-a) m |
| 94 | set replace_key(Key-d) Delete |
| 95 | set replace_key(Key-i) Insert |
| 96 | set replace_key(Key-r) Control-e |
| 97 | set replace_key(Key-y) Control-c |
| 98 | set replace_key(Key-q) Shift-Q |
| 99 | set replace_key(Shift-Q) q |
| 100 | set replace_key(Key-l) Alt-Shift-L |
| 101 | set replace_key(Shift-L) Alt-l |
| 102 | set replace_key(Shift-L) Alt-l |
| 103 | set replace_key(Key-p) Control-w |
| 104 | |
| 105 | #---------------------------------------------------------------------- |
| 106 | # terminal |
| 107 | #---------------------------------------------------------------------- |
| 108 | set terminal {gnome-terminal} |
| 109 | |
| 110 | #---------------------------------------------------------------------- |
| 111 | # editor |
| 112 | #---------------------------------------------------------------------- |
| 113 | set editor { xterm -geometry 70x25 -e nvim } |
| 114 | |
| 115 | #---------------------------------------------------------------------- |
| 116 | # tcl files to load at startup |
| 117 | #---------------------------------------------------------------------- |
| 118 | lappend tcl_files ${XSCHEM_SHAREDIR}/ngspice_backannotate.tcl |
| 119 | lappend tcl_files ${XSCHEM_SKY130_SCRIPTS_PATH}/sky130_models.tcl |
| 120 | |
| 121 | #---------------------------------------------------------------------- |
| 122 | # skywater pdk specific variables |
| 123 | #---------------------------------------------------------------------- |
| 124 | set SKYWATER_MODELS ${PDK_PATH}/sky130_fd_pr_ngspice/latest |
| 125 | set SKYWATER_STDCELLS ${PDK_PATH}/sky130_fd_sc_hd/latest |