From 4f8c339981dc50e7e896a12df8b9cef9705c26af Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 13 Apr 2022 21:19:46 +0200 Subject: synth: handle type declarations in vunit. Fix #2034 --- src/vhdl/vhdl-annotations.adb | 4 +++- src/vhdl/vhdl-canon.adb | 1 + src/vhdl/vhdl-sem_psl.adb | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/vhdl') diff --git a/src/vhdl/vhdl-annotations.adb b/src/vhdl/vhdl-annotations.adb index 6ac0e982b..6b645b8b4 100644 --- a/src/vhdl/vhdl-annotations.adb +++ b/src/vhdl/vhdl-annotations.adb @@ -1213,7 +1213,9 @@ package body Vhdl.Annotations is | Iir_Kind_Attribute_Specification | Iir_Kind_Object_Alias_Declaration | Iir_Kind_Non_Object_Alias_Declaration - | Iir_Kind_Subtype_Declaration => + | Iir_Kind_Subtype_Declaration + | Iir_Kind_Type_Declaration + | Iir_Kind_Anonymous_Type_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 8d0c08bc3..2b43f6368 100644 --- a/src/vhdl/vhdl-canon.adb +++ b/src/vhdl/vhdl-canon.adb @@ -3429,6 +3429,7 @@ package body Vhdl.Canon is | Iir_Kind_Constant_Declaration | Iir_Kind_Type_Declaration | Iir_Kind_Subtype_Declaration + | Iir_Kind_Anonymous_Type_Declaration | Iir_Kind_Function_Declaration | Iir_Kind_Procedure_Declaration | Iir_Kind_Function_Body diff --git a/src/vhdl/vhdl-sem_psl.adb b/src/vhdl/vhdl-sem_psl.adb index 55a4d7257..f17c49791 100644 --- a/src/vhdl/vhdl-sem_psl.adb +++ b/src/vhdl/vhdl-sem_psl.adb @@ -1234,6 +1234,7 @@ package body Vhdl.Sem_Psl is | Iir_Kind_Constant_Declaration | Iir_Kind_Type_Declaration | Iir_Kind_Subtype_Declaration + | Iir_Kind_Anonymous_Type_Declaration | Iir_Kind_Function_Declaration | Iir_Kind_Procedure_Declaration | Iir_Kind_Function_Body -- cgit v1.2.3