Commit Graph

1448 Commits

Author SHA1 Message Date
stefan schippers 339c523f0b align symbol types, reducing number of different types (remove ngprobe, current_probe, differential_probe, raw_data_show --> probe 2023-05-10 17:46:16 +02:00
stefan schippers 4308b86744 add noconn symbol type to list of symbols NOT to grey out even if they have *_ignore=true attributes set 2023-05-10 14:53:49 +02:00
stefan schippers 626f2729ce remove used_symbols feature (may fail in some hierarchical situations) 2023-05-10 10:13:38 +02:00
stefan schippers d7557d7945 fix netlisting schematics with generator name containing extension ( like symgen.tcl(1,2,3) ) 2023-05-10 04:40:22 +02:00
stefan schippers 1e74b21c49 get_trailing_path(): do not confuse generator extension with schematic/symbol extension 2023-05-10 04:08:47 +02:00
stefan schippers 7ad930e7f0 istances with *_ignore=true attribute will be drawn greyed out in schematics in the corresponding netlisting mode; command in Properties menu to toggle this attribute on selected instances 2023-05-10 03:13:13 +02:00
stefan schippers f2214150ae tedax, verilog, spice netlists: do not expand unused subcircuits (due to *_ignore attrs on instances/symbols) 2023-05-10 01:02:28 +02:00
stefan schippers 0a4f942fb7 symbol_ignore=true attribute can be set on all symbol elements (text, lines, rectangles, arcs, polys, instances, nets) such that these marked elements are not displayed when symbol is instantiated. 2023-05-09 23:26:46 +02:00
stefan schippers 376e547c48 find_file and match_file utility functions: do not try to descend unreadable dirs 2023-05-08 12:29:44 +02:00
stefan schippers b233963079 update xschem_library/Makefile to include generators in install 2023-05-06 09:04:06 +02:00
stefan schippers 4baf5f9803 add warnings in my_strdup() and my_strdup2() if src and *dest are the same address 2023-05-05 10:44:04 +02:00
stefan schippers b4b2c91481 fix yet another error in "cmd" string handling in load_sym_def(). Added realloc of freed pointers detection in track_memory.awk 2023-05-05 09:29:30 +02:00
stefan schippers d23388ff71 fix cmd memory leak in load_ym_def(), make copy of returned string in some routines to reduce dependencies 2023-05-04 23:23:54 +02:00
stefan schippers 35f4826198 Fix a corruption found by joanne in load_sym_def() where a static result returned from tcl_hook2() was accidentally freed. 2023-05-04 21:20:58 +02:00
stefan schippers f282a96cec better output formatting in "xschem instance_list" command, fix test_mosgen.sch absolute paths in symbols 2023-05-04 01:59:17 +02:00
stefan schippers 2438d0fa95 translate2(): better handle %xxx tokens in LCC symbols (propagate %xxx to upper level if not assigned to anything in instance) 2023-05-02 23:21:20 +02:00
stefan schippers 7e1f591b18 align TOK_TOKEN state change of translate() and translate2() to all other parsers 2023-05-02 18:54:27 +02:00
stefan schippers 4b9f61612b symbol generators may now take attributes like: "mosgen( @model )", with @model expanded to instance (or symbol template) value. update_symbol() updated to reflect this change. 2023-05-02 17:49:44 +02:00
stefan schippers eb50f9c26a code formatting in update_symbol() 2023-05-02 14:12:37 +02:00
stefan schippers e6224bfb09 when changing a symbol on an instance do not force change prefix (1st name char) if old and new symbol have same prefix 2023-05-02 13:00:14 +02:00
stefan schippers 9533b17a20 Allow to pass instance attributes (via translate() ) to symbol generators 2023-05-02 12:42:53 +02:00
stefan schippers fd0e036492 remove dbg message 2023-05-01 23:20:11 +02:00
stefan schippers a9ffa50ed8 add "ndir" parameter to get_sym_name(), some fixes in sym_vs_sch_pins() 2023-05-01 23:17:57 +02:00
stefan schippers ae8931c788 remove bbox() START/ADD/SET/END from some drawing operations. No observable performance impact and redraw is now more pixel precise, reducing artifacts. 2023-05-01 22:28:56 +02:00
stefan schippers 4c3b4d0321 various tcl_hook2() additions on instance names to handle procedures, fix bbox calculation in xschem replace_symbol command 2023-05-01 14:37:10 +02:00
stefan schippers aeea23a84d load_sym_def(): fix a debug message possibly printing garbage due to uninitialized variable 2023-04-29 11:02:23 +02:00
stefan schippers 3f2e4f2647 yet another small improvement in load_file_dialog to reduce redundant verbosity 2023-04-29 09:09:06 +02:00
stefan schippers 0703f90629 make persistent load_file_dialog work correctly for xschem files, non xschem files and generators 2023-04-29 03:48:20 +02:00
stefan schippers c7c69cc5de invoke myload_place_symbol when leaving .load (instead of leaving .load.buttons_bot.entry) if persistent load dialog is displayed 2023-04-29 02:20:36 +02:00
stefan schippers 67e9e305ec fix persistent insert symbol dialog by not placing anything if selecting multiple times the same symbol. proc myload_place_symbol: add an update statement to resolve race conditions. 2023-04-29 01:59:35 +02:00
stefan schippers a3347710db improve persistent insert symbol dialog (Shift-Insert) by not asking multiple times what to do when selecting a non xschem file 2023-04-29 01:41:02 +02:00
stefan schippers 9593d41f09 persistent load file dialog (Shift-Insert) now correctly handles generator script selection (do nothing until user adds () or (param1,param2,...) to generator name). 2023-04-29 00:28:24 +02:00
Stefan Schippers ee7dc8982a load_sym_def: if loading a symbol reading from a pipe (generator script) do not attempt to seek forward looking for embedded symbols. Assume no embedded symbols exist here 2023-04-28 20:33:57 +02:00
stefan schippers e044ed4c54 proc load_file_dialog: do not clear search pattern (if any) when changing directory in left listbox 2023-04-28 18:19:46 +02:00
stefan schippers b30eda3bb0 remove unused file 2023-04-28 17:58:35 +02:00
stefan schippers 710e694f40 merge_file(): handle generators so generated schematics (pcells) can be merged into an existing schematic 2023-04-28 17:34:04 +02:00
stefan schippers 26e088e729 add graph_linewidth_mult xschemrc variable to set default multiplier for graph line width w.r.t. xschem (current) line width. Add "Line width:" entry in graph_edit_properties dialog box 2023-04-28 10:45:56 +02:00
stefan schippers 410135cf44 align set_thick_waves() to comply with previous commit 2023-04-27 22:49:43 +02:00
stefan schippers 36f71708e6 added linewidth_mult=<double> attribute in graphs for per-graph line width adjustment 2023-04-27 20:55:17 +02:00
stefan schippers 0bb345f764 fix data corruption when netlisting hierarchical symbols with *_stop attribute set, thanks to Joanne Low regression tests, add option in pop_undo() to avoid saving state (push_undo()) for redo. 2023-04-27 11:52:51 +02:00
stefan schippers 52f35e30c2 avoid video updating when loading multiple files in hierarchical ps/pdf export 2023-04-27 08:49:52 +02:00
stefan schippers 2e7eb9e38b instance based schematic selection: place get_additional_symbols(1) after every load_schematic() to consistently add new virtual symbols for every instance based "schematic" attribute across the whole hierarchy. This is done for all netlisting code and hier_psprint() 2023-04-27 01:14:10 +02:00
stefan schippers 2189aaa932 fix unbalanced gsave/grestore in psprint (setting colors of empty text strings) 2023-04-27 00:36:50 +02:00
stefan schippers d9d66c1c90 removed redundant skip_dir(...) (use get_cell(..., 0) ), fix a couple of glitches in postscript export (filled polygons with self-coincident edgs, fix filled arc pies (missing point) 2023-04-26 23:00:20 +02:00
stefan schippers 3e320b56d2 fix wrong pdfmarks in hierarchical pdf export, after changes to handle generated sch/sym 2023-04-26 18:50:39 +02:00
stefan schippers 07fcdfbde4 fix hier_psprint() to handle all previous enhancements 2023-04-26 11:35:32 +02:00
stefan schippers 7a16859702 update tedax netlister with previous enhancements 2023-04-26 10:26:21 +02:00
stefan schippers 10441ef901 allow tcl procedures to generate generator script and parameters, update vhdl and verilog netlisters to handle generator schematic/symbol references 2023-04-26 09:54:35 +02:00
stefan schippers 3142279d02 Add inst_sch_select/ example directory (instance based implementation selection) 2023-04-25 09:15:17 +02:00
stefan schippers a111c116d9 set netlisting type to symbol when descending into a generator-created symbol 2023-04-25 00:27:58 +02:00