diff options
author | tmeissner <programming@goodcleanfun.de> | 2021-10-25 11:56:23 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-11-02 19:31:25 +0100 |
commit | f911b6b97b379415eb5620d29d4579541bb5facd (patch) | |
tree | 18e0f1ef8277c844657086aa2b5bdf4cf56f2fff /src/vhdl | |
parent | 86fd1ab3079b50c5b7234db2cedf3d1e8c0f081b (diff) | |
download | ghdl-f911b6b97b379415eb5620d29d4579541bb5facd.tar.gz ghdl-f911b6b97b379415eb5620d29d4579541bb5facd.tar.bz2 ghdl-f911b6b97b379415eb5620d29d4579541bb5facd.zip |
synth: Support alias declarations in vunit
Diffstat (limited to 'src/vhdl')
-rw-r--r-- | src/vhdl/vhdl-annotations.adb | 4 | ||||
-rw-r--r-- | src/vhdl/vhdl-canon.adb | 4 | ||||
-rw-r--r-- | src/vhdl/vhdl-sem_psl.adb | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/src/vhdl/vhdl-annotations.adb b/src/vhdl/vhdl-annotations.adb index 9daa19abc..a1d8c7611 100644 --- a/src/vhdl/vhdl-annotations.adb +++ b/src/vhdl/vhdl-annotations.adb @@ -1167,7 +1167,9 @@ package body Vhdl.Annotations is | Iir_Kind_Function_Body | Iir_Kind_Procedure_Body | Iir_Kind_Attribute_Declaration - | Iir_Kind_Attribute_Specification => + | Iir_Kind_Attribute_Specification + | Iir_Kind_Object_Alias_Declaration + | Iir_Kind_Non_Object_Alias_Declaration => Annotate_Declaration (Vunit_Info, Item); when Iir_Kinds_Concurrent_Signal_Assignment | Iir_Kinds_Process_Statement diff --git a/src/vhdl/vhdl-canon.adb b/src/vhdl/vhdl-canon.adb index ddaed3792..aba586eae 100644 --- a/src/vhdl/vhdl-canon.adb +++ b/src/vhdl/vhdl-canon.adb @@ -3433,7 +3433,9 @@ package body Vhdl.Canon is | Iir_Kind_Function_Body | Iir_Kind_Procedure_Body | Iir_Kind_Attribute_Declaration - | Iir_Kind_Attribute_Specification => + | Iir_Kind_Attribute_Specification + | Iir_Kind_Object_Alias_Declaration + | Iir_Kind_Non_Object_Alias_Declaration => Item := Canon_Declaration (Unit, Item, Null_Iir); when Iir_Kinds_Concurrent_Signal_Assignment | Iir_Kinds_Process_Statement diff --git a/src/vhdl/vhdl-sem_psl.adb b/src/vhdl/vhdl-sem_psl.adb index c000c1a47..058d4a393 100644 --- a/src/vhdl/vhdl-sem_psl.adb +++ b/src/vhdl/vhdl-sem_psl.adb @@ -1190,7 +1190,9 @@ package body Vhdl.Sem_Psl is | Iir_Kind_Function_Body | Iir_Kind_Procedure_Body | Iir_Kind_Attribute_Declaration - | Iir_Kind_Attribute_Specification => + | Iir_Kind_Attribute_Specification + | Iir_Kind_Object_Alias_Declaration + | Iir_Kind_Non_Object_Alias_Declaration => Sem_Decls.Sem_Declaration (Item, Prev_Item, False, Attr_Spec_Chain); when Iir_Kinds_Concurrent_Signal_Assignment |