From 8b3657454b9f9aace48ef5d68016122a7ce657ac Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 4 May 2022 13:08:16 +0200 Subject: [PATCH] map memory location to wire value, if memory is converted to FFs --- kernel/fstdata.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/fstdata.cc b/kernel/fstdata.cc index 1bf43bfdd..41b22d1c5 100644 --- a/kernel/fstdata.cc +++ b/kernel/fstdata.cc @@ -144,6 +144,8 @@ void FstData::extractVarNames() log_error("Error parsing memory address in : %s\n", clean_name.c_str()); } memory_to_handle[var.scope+"."+mem_cell][mem_addr] = var.id; + name_to_handle[stringf("%s.%s[%d]",var.scope.c_str(),mem_cell.c_str(),mem_addr)] = h->u.var.handle; + continue; } pos = clean_name.find_last_of("["); if (pos != std::string::npos) { @@ -156,6 +158,8 @@ void FstData::extractVarNames() log_error("Error parsing memory address in : %s\n", clean_name.c_str()); } memory_to_handle[var.scope+"."+mem_cell][mem_addr] = var.id; + name_to_handle[stringf("%s.%s[%d]",var.scope.c_str(),mem_cell.c_str(),mem_addr)] = h->u.var.handle; + continue; } name_to_handle[var.scope+"."+clean_name] = h->u.var.handle; break; -- 2.30.2