aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/synth/elab-vhdl_debug.adb10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/synth/elab-vhdl_debug.adb b/src/synth/elab-vhdl_debug.adb
index 75132f49c..23b098b69 100644
--- a/src/synth/elab-vhdl_debug.adb
+++ b/src/synth/elab-vhdl_debug.adb
@@ -501,7 +501,8 @@ package body Elab.Vhdl_Debug is
end;
when Iir_Kinds_Concurrent_Signal_Assignment
| Iir_Kind_Concurrent_Assertion_Statement
- | Iir_Kind_Concurrent_Procedure_Call_Statement =>
+ | Iir_Kind_Concurrent_Procedure_Call_Statement
+ | Iir_Kind_Simple_Simultaneous_Statement =>
null;
when Iir_Kinds_Process_Statement =>
-- Note: processes are not elaborated.
@@ -1013,7 +1014,12 @@ package body Elab.Vhdl_Debug is
-- The top unit
Put ('/');
Parent_Scope := Get_Source_Scope (Inst);
- Put (Image (Get_Identifier (Get_Entity (Parent_Scope))));
+ if Get_Kind (Parent_Scope) = Iir_Kind_Package_Declaration then
+ Scope := Parent_Scope;
+ else
+ Scope := Get_Entity (Parent_Scope);
+ end if;
+ Put (Image (Get_Identifier (Scope)));
return;
end if;