From f0dbb54419b7b6cbc8548ed4702ff057942c4cb3 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 3 Jan 2022 18:10:28 +0100 Subject: synth: handle package instantiation in declarations. Fix #1938 --- src/synth/elab-vhdl_decls.adb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/synth/elab-vhdl_decls.adb') diff --git a/src/synth/elab-vhdl_decls.adb b/src/synth/elab-vhdl_decls.adb index 6c4091afd..f8a82be14 100644 --- a/src/synth/elab-vhdl_decls.adb +++ b/src/synth/elab-vhdl_decls.adb @@ -25,6 +25,7 @@ with Elab.Vhdl_Types; use Elab.Vhdl_Types; with Elab.Vhdl_Files; with Elab.Vhdl_Errors; use Elab.Vhdl_Errors; with Elab.Vhdl_Expr; use Elab.Vhdl_Expr; +with Elab.Vhdl_Insts; package body Elab.Vhdl_Decls is procedure Elab_Subprogram_Declaration @@ -260,6 +261,8 @@ package body Elab.Vhdl_Decls is null; when Iir_Kind_File_Declaration => Elab_File_Declaration (Syn_Inst, Decl); + when Iir_Kind_Package_Instantiation_Declaration => + Vhdl_Insts.Elab_Package_Instantiation (Syn_Inst, Decl); when Iir_Kind_Protected_Type_Body => null; when Iir_Kind_Psl_Default_Clock => -- cgit v1.2.3