do a "xschem redraw" instead of a "xschem save; xschem reload" when use spiceprefix is toggled in menu

This commit is contained in:
Stefan Schippers 2023-04-09 20:05:45 +02:00
parent ebfcde42de
commit 4482ac3705
2 changed files with 2 additions and 4 deletions

View File

@ -238,7 +238,6 @@ int global_spice_netlist(int global) /* netlister driver */
Str_hashentry *model_entry;
split_f = tclgetboolvar("split_files");
top_sub = tclgetboolvar("lvs_netlist");
dbg(1, "global_spice_netlist(): invoking push_undo()\n");
xctx->push_undo();
xctx->netlist_unconn_cnt=0; /* unique count of unconnected pins while netlisting */
@ -246,7 +245,6 @@ int global_spice_netlist(int global) /* netlister driver */
str_hash_init(&subckt_table, HASHSIZE);
str_hash_init(&model_table, HASHSIZE);
record_global_node(2, NULL, NULL); /* delete list of global nodes */
top_sub = 0;
bus_char[0] = bus_char[1] = '\0';
xctx->hiersep[0]='.'; xctx->hiersep[1]='\0';
str_tmp = tclgetvar("bus_replacement_char");

View File

@ -6123,8 +6123,8 @@ tclcommand=\"xschem raw_read \$netlist_dir/[file tail [file rootname [xschem get
viewdata [list_hierarchy]
}
$topwin.menubar.simulation.menu add checkbutton -label "Use 'spiceprefix' attribute" -variable spiceprefix \
-command {xschem save; xschem reload}
-command {xschem redraw}
# {xschem save; xschem reload}
toolbar_add Netlist { xschem netlist } "Create netlist" $topwin
toolbar_add Simulate "simulate_button $topwin.menubar.simulate" "Run simulation" $topwin
toolbar_add Waves { waves } "View results" $topwin