diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-07-20 19:45:00 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-07-20 20:40:58 +0200 |
commit | 4aeedde7cb7935df8c4f57494c2675b9e32dd424 (patch) | |
tree | 51fe9400ce4962c1bede3f55682ec206f076d366 | |
parent | 2b0197dda7f18a1bd0d36da325b43ebd43e46b61 (diff) | |
download | ghdl-4aeedde7cb7935df8c4f57494c2675b9e32dd424.tar.gz ghdl-4aeedde7cb7935df8c4f57494c2675b9e32dd424.tar.bz2 ghdl-4aeedde7cb7935df8c4f57494c2675b9e32dd424.zip |
elab-vhdl_debug: handle signals in packages
-rw-r--r-- | src/synth/elab-vhdl_debug.adb | 10 |
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; |