auto_set_wire_bus(): launch prepare_netlist_structs(0) before checking wires

This commit is contained in:
stefan schippers 2026-04-30 15:19:19 +02:00
parent 1cd23c0ddb
commit 3f789fc749
1 changed files with 2 additions and 1 deletions

View File

@ -1619,7 +1619,8 @@ void auto_set_wire_bus(int start, int end)
if(xctx->netlist_count) return; /* do this only in top level */
if(end > xctx->wires) return;
if(start < 0) return;
if(!xctx->prep_hi_structs) return;
prepare_netlist_structs(0); /* update all wires .node fields */
cc = WIRELAYER; if(xctx->only_probes) cc = GRIDLAYER;
regcomp(&re, "(.+\\[.+(:|\\.\\.)[^.]+\\])|(,)", REG_NOSUB | REG_EXTENDED);