From 6cf78dc917710a6e6d962f2d7ddaa6137b34ab6d Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 28 Sep 2020 07:47:35 +0200 Subject: vhdl-canon: canon generic associations for subprogram instantiations. --- src/vhdl/vhdl-canon.adb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/vhdl/vhdl-canon.adb b/src/vhdl/vhdl-canon.adb index 50bad4ce8..4694c0d36 100644 --- a/src/vhdl/vhdl-canon.adb +++ b/src/vhdl/vhdl-canon.adb @@ -2926,7 +2926,12 @@ package body Vhdl.Canon is null; when Iir_Kind_Function_Instantiation_Declaration | Iir_Kind_Procedure_Instantiation_Declaration => - null; + -- Canon map aspect. + Set_Generic_Map_Aspect_Chain + (Decl, + Canon_Association_Chain_And_Actuals + (Get_Generic_Chain (Decl), + Get_Generic_Map_Aspect_Chain (Decl), Decl)); when Iir_Kind_Type_Declaration => declare -- cgit v1.2.3