aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/elab-vhdl_insts.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth/elab-vhdl_insts.adb')
-rw-r--r--src/synth/elab-vhdl_insts.adb5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/synth/elab-vhdl_insts.adb b/src/synth/elab-vhdl_insts.adb
index 56fdfcacf..a16b0cdf2 100644
--- a/src/synth/elab-vhdl_insts.adb
+++ b/src/synth/elab-vhdl_insts.adb
@@ -381,6 +381,8 @@ package body Elab.Vhdl_Insts is
Item : Node;
Last_Type : Node;
begin
+ Elab_Dependencies (Root_Instance, Get_Design_Unit (Unit));
+
Unit_Inst := Make_Elab_Instance (Syn_Inst, Unit, Config => Null_Node);
Add_Extra_Instance (Syn_Inst, Unit_Inst);
@@ -409,7 +411,8 @@ package body Elab.Vhdl_Insts is
| Iir_Kind_Attribute_Declaration
| Iir_Kind_Attribute_Specification
| Iir_Kind_Object_Alias_Declaration
- | Iir_Kind_Non_Object_Alias_Declaration =>
+ | Iir_Kind_Non_Object_Alias_Declaration
+ | Iir_Kind_Subtype_Declaration =>
Elab_Declaration (Unit_Inst, Item, Last_Type);
when Iir_Kinds_Concurrent_Signal_Assignment
| Iir_Kinds_Process_Statement