From 020e7d55e49116f5bed02a7913823cd09770a1f2 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 13 Sep 2022 04:39:50 +0200 Subject: synth-vhdl_stmts: handle attribute names in expressions --- src/synth/synth-vhdl_stmts.adb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/synth/synth-vhdl_stmts.adb b/src/synth/synth-vhdl_stmts.adb index f2abd6df7..ad7382da9 100644 --- a/src/synth/synth-vhdl_stmts.adb +++ b/src/synth/synth-vhdl_stmts.adb @@ -108,7 +108,8 @@ package body Synth.Vhdl_Stmts is Dest_Dyn : out Dyn_Name) is begin case Get_Kind (Pfx) is - when Iir_Kind_Simple_Name => + when Iir_Kind_Simple_Name + | Iir_Kind_Attribute_Name => Synth_Assignment_Prefix (Syn_Inst, Get_Named_Entity (Pfx), Dest_Base, Dest_Typ, Dest_Off, Dest_Dyn); when Iir_Kind_Interface_Signal_Declaration @@ -121,6 +122,7 @@ package body Synth.Vhdl_Stmts is | Iir_Kind_Interface_File_Declaration | Iir_Kind_Non_Object_Alias_Declaration | Iir_Kind_Object_Alias_Declaration + | Iir_Kind_Attribute_Value | Iir_Kind_Free_Quantity_Declaration | Iir_Kinds_Branch_Quantity_Declaration | Iir_Kind_Dot_Attribute => -- cgit v1.2.3