Commit Graph

2291 Commits

Author SHA1 Message Date
Stefan Frederik 77d76e1a8f add commands "xschem set format ..." and "xschem get format" to change format attribute used for netlisting, overriding defaults 2022-08-31 10:47:16 +02:00
Stefan Frederik 5da8f777b2 monospaced font in code_shown.sym 2022-08-30 15:54:18 +02:00
Stefan Frederik adc4eb96c8 fix net_name() crashing if inst[i].node==NULL. This may happen when pasting a component that contains a @@xxx token, that needs to be expanded to attached netname, however since we are moving the component no net name is defined --> .node==NULL. 2022-08-30 02:44:28 +02:00
Stefan Frederik f5b0cd933c compacted a bit the ctxmenu 2022-08-29 18:06:56 +02:00
Stefan Frederik 11babab5cf faster toolbar creation, 2px reduction in toolbar height, better add_custom_button.tcl and add_custom_menu.tcl example codes 2022-08-29 13:24:43 +02:00
Stefan Frederik 4c849c44fa force setting line width if window geometry changed and fixed/non variable line width was set. 2022-08-29 09:27:23 +02:00
Stefan Frederik bd64f86dbc no filled circles if layer has no fill (fill_type[c] == 0) 2022-08-28 23:50:57 +02:00
Stefan Frederik 050807ebe4 yet another fix in svg export code for solid/stipple/no-fill options 2022-08-28 23:11:55 +02:00
Stefan Frederik 75147ab8cc if solid pattern fill is selected globally do solid pattern fills in svg export too.; enforce 24 pixel toolbar button heights, remove border width to gain space. 2022-08-28 22:08:18 +02:00
Stefan Frederik 8be273b9f7 fix regression on menu fullscreen command 2022-08-28 11:23:51 +02:00
Stefan Frederik 1519afa241 various fixes in compare_schematics() 2022-08-28 10:23:32 +02:00
Stefan Frederik eebd2b38fa add sample add_custom_button.tcl script to add custom toolbar buttons 2022-08-28 00:27:52 +02:00
Stefan Frederik 3434331f2f add better error reporting in case of tcp port conflicts 2022-08-27 14:14:06 +02:00
Stefan Frederik 4136f7cf10 return loaded filename in xschem load command 2022-08-27 13:30:30 +02:00
Stefan Frederik 41acfd91dd some small code refactoring, allow multiple selected (bold) waves, one per graph, store the bold waves into file 2022-08-27 12:56:33 +02:00
Stefan Frederik 53efa4c381 if ALt-x (compare schematics) is given before setting a compare filename, schematic is compared with saved version of itself 2022-08-26 15:56:48 +02:00
Stefan Frederik 3c980ce956 compare schematics does not require to save schematic 1, so a comparison with the saved version of itself is possible, showing the differences after editing. 2022-08-26 15:29:10 +02:00
Stefan Frederik 5100803673 translate() optimization 2022-08-26 09:20:30 +02:00
Stefan Frederik a53fc67404 save schematic before doing schematic compare as it will be reloaded from disk at end. 2022-08-25 23:01:56 +02:00
Stefan Frederik 279e4604ea compare_schematics() do not hash wire prop_ptr (unnecessary) 2022-08-25 14:19:19 +02:00
Stefan Frederik d279783faa added menu entries to set and conmpare with schematic. 2022-08-25 13:59:36 +02:00
Stefan Frederik a2de3e9c1b Added compare_schematics() function. Empty graphs (no data loaded) are not editable. Set window title if opening a non-existent file. 2022-08-25 00:25:29 +02:00
Stefan Frederik 67ff8844f5 add xschem get zoom to query zoom factor 2022-08-24 11:22:26 +02:00
Stefan Frederik dffc266e0d improve test_backannotated_subckt.sch example, remove dbg messages 2022-08-23 10:44:00 +02:00
Stefan Frederik 0f5881cd61 print_spice_subckt(): check for tcl_hook2() errors, check for NULL in strtoupper/strtolower, fix unitialized local variable 2022-08-23 10:01:32 +02:00
Stefan Frederik bd5cb7b9df add license info on traversal.tcl 2022-08-21 13:35:37 +02:00
Stefan Frederik c99282e463 fix typo in src/Makefile.in 2022-08-21 13:21:31 +02:00
Stefan Frederik a14c541d9e allow "xschem descned -<n>" (n=number) to descend into nth rightmost instance; added traversal.awk script 2022-08-21 13:18:39 +02:00
Stefan Frederik 0dfbc9ded9 added return status from descend_schematic() 2022-08-21 12:24:26 +02:00
Stefan Frederik 20d1080171 improve uniqueness name checking (do not consider non netlist elements, like pins, title, etc) 2022-08-21 11:55:34 +02:00
Stefan Frederik ef2e059c59 instance names (refdes) are hashed as uppercase, so collision check will be case insensitive, if enabled 2022-08-21 10:22:56 +02:00
Stefan Frederik 0a61fb8362 added scconfig files 2022-08-20 13:53:58 +02:00
Stefan Frederik 9ed7d3b039 remove ## from netlist if "#@attribute\\#@name" is used in format string and "attribute" is undefined or empty 2022-08-20 13:51:20 +02:00
Stefan Frederik 2502208671 if a subcircuit has spiceprefix set in template string do not consider it as an attribute to dump in netlist as a subckt parameter (.subckt xxxx A B C spiceprefix=X) 2022-08-20 11:23:18 +02:00
Stefan Frederik 5df286bec5 spice netlister code was incorrectly resetting spiceprefix to 1 2022-08-20 09:23:38 +02:00
Stefan Frederik 6c8d20fdc2 better bbox hashing to avoid false overlap positives 2022-08-19 12:46:35 +02:00
Stefan Frederik c134175687 better overlap detection hash calculation 2022-08-19 12:00:02 +02:00
Stefan Frederik d3cc957fa3 warning and highlight perfectly overlapped symbols 2022-08-19 10:56:26 +02:00
Stefan Frederik 84f9497755 fix graph zoom by area with mouse drag and absolute x positioning of locked graphs that are not vertically aligned 2022-08-19 01:23:45 +02:00
Stefan Frederik 3419db3601 remove extra blank in .subckt spice netlist lines 2022-08-18 12:14:23 +02:00
Stefan Frederik 9b3251b85e clear "Simulate" button background if new window/tab is created while simulation running in original window 2022-08-18 11:26:41 +02:00
Stefan Frederik c1d229b917 better str_replace() implementation 2022-08-18 10:21:14 +02:00
Stefan Frederik a3828e6641 redo r2216 change in a different way to avoid regressions 2022-08-18 01:45:02 +02:00
Stefan Frederik 15d8b8f1c8 reverted 2216 changes as these cause regressions. token.c back to r2215 2022-08-17 20:37:29 +02:00
Stefan Frederik 6e8af5410b all get_tok_value() calls in netlisting code will do tcl substitution (if attributes wrapped into tcleval()) to allow full conditional symbol netlisting 2022-08-17 09:09:00 +02:00
Stefan Frederik d86fed06de update cmos_example.sch 2022-08-15 10:53:16 +02:00
Stefan Frederik cc49909282 better clip off-graph data 2022-08-14 15:05:08 +02:00
Stefan Frederik 2e37724959 add "Plotname: constants" to the list of recognized ngspice plots in raw file 2022-08-14 14:14:19 +02:00
Stefan Frederik 86311f8d47 focus main window when mouse leaves SNAP or GRID text entries 2022-08-14 08:17:44 +02:00
Stefan Frederik 4d97eb809e sys-lib-path: add /devices in configure log shown text 2022-08-13 11:02:18 +02:00