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.adb7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/synth/elab-vhdl_insts.adb b/src/synth/elab-vhdl_insts.adb
index f97b4335b..19b02a745 100644
--- a/src/synth/elab-vhdl_insts.adb
+++ b/src/synth/elab-vhdl_insts.adb
@@ -629,8 +629,11 @@ package body Elab.Vhdl_Insts is
end case;
if Get_Kind (Ent) = Iir_Kind_Foreign_Module then
- -- TODO.
- raise Internal_Error;
+ Sub_Inst := Make_Elab_Instance (Comp_Inst, Ent, Null_Node);
+ Create_Component_Instance (Comp_Inst, Sub_Inst);
+
+ Elab_Foreign_Instance (Sub_Inst, Comp_Inst, Bind, Ent);
+ return;
end if;
if Arch = Null_Node then