From dcc64636cf5e066b8409fe8d8526c4848e2319df Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Tue, 27 May 2025 09:39:06 +0200 Subject: [PATCH] propagate highlighted global nets when navigating the hierarchy --- src/hilight.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/hilight.c b/src/hilight.c index c3520bb7..d2b4cf83 100644 --- a/src/hilight.c +++ b/src/hilight.c @@ -585,6 +585,18 @@ void hilight_parent_pins(void) rects = (xctx->inst[i].ptr+ xctx->sym)->rects[PINLAYER]; + /* propagate global nets */ + for(j=0;jhilight_table[j]; + for( entry=xctx->hilight_table[j]; entry; entry = entry->next) { + if(entry->token[0] == ' ') continue; /* skip instances, process only nets */ + if(record_global_node(3, NULL, entry->token)) { + dbg(1, "entry token=%s, value=%d\n", entry->token, entry->value); + bus_hilight_hash_lookup(entry->token, entry->value, XINSERT); + } + } + } + for(j=0;jinst[i].ptr+ xctx->sym)->rects[PINLAYER]; inst_number = xctx->sch_inst_number[xctx->currsch-1]; + /* propagate global nets */ + for(j=0;jhilight_table[j]; + for( entry=xctx->hilight_table[j]; entry; entry = entry->next) { + if(entry->token[0] == ' ') continue; /* skip instances, process only nets */ + if(record_global_node(3, NULL, entry->token)) { + dbg(1, "entry token=%s, value=%d\n", entry->token, entry->value); + bus_hilight_hash_lookup(entry->token, entry->value, XINSERT); + } + } + } + /* may be set to -1 by descend_symbol to notify we are * descending into a smbol from an instance with no embed flag set * this is used when descending into symbols created from generators */