diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-11-28 10:35:20 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-11-28 12:13:25 +0100 |
commit | d4c36d398f9ca32e5fad23298bcef1ed9473e7f9 (patch) | |
tree | 37b24a84457892134f874471bd49ade18cdc2394 /src/synth/elab-vhdl_insts.adb | |
parent | 53a2fdc7927300233c9aec1a4772bd339f930ef5 (diff) | |
download | ghdl-d4c36d398f9ca32e5fad23298bcef1ed9473e7f9.tar.gz ghdl-d4c36d398f9ca32e5fad23298bcef1ed9473e7f9.tar.bz2 ghdl-d4c36d398f9ca32e5fad23298bcef1ed9473e7f9.zip |
synth: add hooks to support elaboration of foreign instances
Diffstat (limited to 'src/synth/elab-vhdl_insts.adb')
-rw-r--r-- | src/synth/elab-vhdl_insts.adb | 7 |
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 |