aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/elab-vhdl_decls.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-01-03 18:10:28 +0100
committerTristan Gingold <tgingold@free.fr>2022-01-03 18:10:28 +0100
commitf0dbb54419b7b6cbc8548ed4702ff057942c4cb3 (patch)
treee897f8557c7b0236f3b63cbb51676ab6c7d4efed /src/synth/elab-vhdl_decls.adb
parent8d512a44b79e8ef25183a4a06c5f6dfd0361d13b (diff)
downloadghdl-f0dbb54419b7b6cbc8548ed4702ff057942c4cb3.tar.gz
ghdl-f0dbb54419b7b6cbc8548ed4702ff057942c4cb3.tar.bz2
ghdl-f0dbb54419b7b6cbc8548ed4702ff057942c4cb3.zip
synth: handle package instantiation in declarations. Fix #1938
Diffstat (limited to 'src/synth/elab-vhdl_decls.adb')
-rw-r--r--src/synth/elab-vhdl_decls.adb3
1 files changed, 3 insertions, 0 deletions
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 =>