Commit Graph

701 Commits

Author SHA1 Message Date
stefan schippers 8c844cc0c9 added xschemrc tcl var "auto_set_wire_bus": if set to 1 (default: 0) wires with/without bus labels (xxx[3:0]) will get bus=1 attribute set/deleted automatically. 2026-04-30 14:56:55 +02:00
stefan schippers 0a10889abd fix argc check in xschem setprop wire command 2026-04-28 00:02:00 +02:00
stefan schippers a8fab9fac8 add "xschem setprop wire n tok val" command to add/change wire attributes via CLI 2026-04-27 23:31:21 +02:00
stefan schippers b3f4c4f5f7 fix: xschem setprop instance <tok> <val> did not set schematic to modified state, so following xschem save did not work 2026-04-27 18:21:39 +02:00
stefan schippers 933805fded proc graph_edit_properties: add another row of buttons, added legend text size textbox, separated from y label text size 2026-04-24 13:07:06 +02:00
stefan schippers 0a1512201f fix View->Toggle variable line width menu command not working, add "xschem set line_width n", equivalent to "xschem line_width n", these commands now update the tcl var line_width. 2026-04-22 15:48:58 +02:00
stefan schippers 18afca425e expr(): introduced conditional ( ... ? ... :... ) operator, translate(): introduced @lvs_ignore token, fix wrong resetwin() restore after rasterizing graphs for svg print 2026-04-21 19:21:32 +02:00
stefan schippers 92fc6e06cb proc tab_queue: a queue of MRU tabs, so ctrl-tab will switch to most recently used. This gets rid of previous_win_path with only depth 1 2026-04-07 18:59:05 +02:00
stefan schippers c1e518e8a1 store_geom, set_geom: store rel_sym_path of file instead of abs_sym_path 2026-04-07 09:57:25 +02:00
stefan schippers 346a9704df add optional "sim_type" parameter to command "xschem annotate_op filename level sim_type" 2026-02-24 13:40:18 +01:00
stefan schippers 26b67ba137 annotate_op: if no OP and no DC dataset found load TRAN dataset and use 1st tran point in schematic annotation 2026-02-22 12:35:04 +01:00
stefan schippers 629e0fa5af remove trailing spaces on some lines 2026-02-19 18:03:16 +01:00
stefan schippers 1abfe583b0 store_geom: fix typo (xschem get toplevel --> xschem get topwindow) 2026-01-31 23:14:53 +01:00
stefan schippers 52b0f98dac better apply store_geom when closing or loading a new schematic into a window/tab with an existing schematic 2026-01-31 11:17:32 +01:00
stefan schippers cee25ab335 add round(), round1(), round6() expr functions 2026-01-30 18:58:45 +01:00
stefan schippers 6d86b73c81 "xschem getprop text xxx ...": allow "xxx" to be the name attribute in addition of the text index number 2026-01-28 12:34:09 +01:00
stefan schippers 309697499c Tools->insert image: fix to allow filenames with spaces 2026-01-14 01:09:53 +01:00
stef 7d8ce2f9ad remove spaces on line ends, brace expr tcl expression when possible, resize rectangle in intuitive interface made easier at far zoom levels 2025-12-13 11:51:05 +01:00
stefan schippers a61f2cba2a fix arbitrary widths in shapes, add "xschem get change_lw", "xschem get min_lw", "xschem set change_lw", cached tcl var "change_lw" into xctx->change_lw 2025-12-01 10:11:19 +01:00
stefan schippers b628d66e8f arbitrary box widths (and some fixes on wire widths) 2025-11-29 14:36:15 +01:00
stefan schippers f25b40861c allow arbitrary widths (via ex. bus=5.0 attr) on wires 2025-11-29 00:47:46 +01:00
stefan schippers a41d142562 do not show "already open" warning if re-opening same schematic in same window/tab; new_file_browser: "Save current window" button will ask where to save, to avoid dangerous overwrites 2025-11-02 10:23:58 +01:00
stefan schippers aa240c4244 xschem table_read (not the recommended xschem raw table_read): set raw->sim_type to "table" 2025-11-01 23:04:23 +01:00
stefan schippers bf344309f0 implement "nodraw" flag in all object selections in the "xschem select" command, implement the "nodraw" flag in "xschem search" command 2025-10-29 09:06:07 +01:00
stefan schippers 2763c6010f improved xschem arc command (allow user parameters in addition to GUI plaecment) 2025-10-29 08:20:08 +01:00
stefan schippers 5c41eabcd6 fix error in "xschem text" command arguments 2025-10-24 07:42:10 +02:00
stefan schippers eb934e6e7d further improvements in file_chooser when switching windows (trace variables to update) 2025-10-06 16:18:09 +02:00
stefan schippers 136a61b4fc various enhancements / fixes in file_chooser; removed new_file_browser_paths 2025-10-05 12:38:24 +02:00
stefan schippers 56019e3e31 new file browser (proc file_chooser) refactor with many improvements, enabled with "set new_file_browser 1" 2025-10-05 03:01:37 +02:00
stefan schippers 15c141a480 removed unneeded Shift-Backspace and Ctrl-Backspace keybindings, add Ctrl-Shift-T for open last closed (Ctrl-Shift-O already opens most recent). Tcl var "open_in_new_window" will open in new tab/windows as does ctrl-o 2025-09-29 23:30:31 +02:00
stefan schippers 50c593ed65 various fixes about "lastopened" and "lastclosed" file load options 2025-09-29 13:38:52 +02:00
stefan schippers 2195596902 implement -lastclosed and -lastopened options in "xschem load" and "xschem load_new_window" commands 2025-09-29 09:28:24 +02:00
stefan schippers bdd09f2db2 add cli options --lastclosed and --lastopened, as well as gui commands Shift-Backspace and Ctrl-Backspace to load last closed or last opened schematic respectively 2025-09-28 23:47:45 +02:00
stefan schippers 63d1897050 various fixes in persistent window geometry save 2025-09-27 03:15:43 +02:00
stefan schippers 05e7f36148 replace const string literal XSCHEM_LIBRARY_PATH with array of const string literals, one per path, to get rid of C89 509 character limit 2025-09-26 15:57:40 +02:00
stefan schippers 916027ddba cleanup code for add and delete waves in graphdialog 2025-09-22 17:33:28 +02:00
stefan schippers 92bc9cad34 some fixes for gcc-15 (-std=c23), smaller threshold for click & move that will abort move, added smaller verilog cosim example (tb_counter_wrapper.sch), arbitrary top level names allowed in create_new_window() and switch_window() (no tabbed interface) 2025-09-19 14:18:06 +02:00
stefan schippers ee920560ff update docs for new bindkeys 2025-09-13 11:06:00 +02:00
stefan schippers dbdfb3015e implement Alt-o and menu "File->Open in new window" 2025-09-13 10:46:14 +02:00
stefan schippers 1a898f63ef proc is_xschem_file: if symbol contains instances of "logo" or "launcher" type do not consider it as a schematic. add "xschem get_sym_type" command 2025-09-09 11:24:39 +02:00
stefan schippers 458de325cc add command "xschem attach_labels 2" to attach lab_show.sym on selected component with unconnected pins, add command "xschem show_unconnected_pins" to add to all instances, added also in Highlight menu 2025-09-07 13:06:47 +02:00
stefan schippers fc6fefff35 ctrl-Tab: toggle to previously active tab (only tabbed i/f) 2025-08-22 12:09:04 +02:00
stefan schippers 3c65268de6 do not backannotate if cursor_b is not enabled when swapping or setting with CLI the cursor_b position 2025-08-21 21:18:35 +02:00
stefan schippers 854b0969a7 fix "xschem get netlist_name" command for spectre (.spectre ext instead of .sim) 2025-08-19 12:04:20 +02:00
stefan schippers 059ac92695 fix catch command in tclvareval(....menubar entryconfigure ...) commands 2025-08-19 09:00:09 +02:00
stefan schippers cd41540c5d record_global_node(): handle ground nodes (spectre netlist only); use global=ground for nodes that need to be declared as ground nodes. Ground nodes in Spectre netlist are also considered global 2025-08-19 08:37:33 +02:00
stefan schippers 7e20ea0127 catch all calls to .menubar entruconfigure commands to change bg color of buttons to avoid errors if buttons are removed 2025-08-09 10:57:17 +02:00
stefan schippers 5a3c97d64e add vccs_limit.sym and vcvs_limit.sym that use the XSPICE limit code model (saturated controlled sources). [WIP] support for spectre netlist format (for the VACASK simulator) - still incomplete 2025-07-16 00:12:26 +02:00
stefan schippers 8fe82cf4ce set netlist_dir if unset or empty before netlisting, add env(PDK) and env(PDK_ROOT) to list of tcl preserved globals in ctx switch 2025-07-02 11:18:20 +02:00
stefan schippers 2300597ca3 propagate hilight nets when descending with "Alt-e" (in new window or tab) - ***needs some testing*** 2025-06-23 09:39:46 +02:00