diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/synth/elab-vhdl_insts.adb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/synth/elab-vhdl_insts.adb b/src/synth/elab-vhdl_insts.adb index 19b02a745..eb8d6b124 100644 --- a/src/synth/elab-vhdl_insts.adb +++ b/src/synth/elab-vhdl_insts.adb @@ -509,8 +509,13 @@ package body Elab.Vhdl_Insts is is Arch : constant Node := Get_Source_Scope (Syn_Inst); Config : constant Node := Get_Instance_Config (Syn_Inst); - Entity : constant Node := Get_Entity (Arch); + Entity : Node; begin + if Get_Kind (Arch) = Iir_Kind_Foreign_Module then + return; + end if; + + Entity := Get_Entity (Arch); Apply_Block_Configuration (Config, Arch); Elab_Declarations (Syn_Inst, Get_Declaration_Chain (Entity)); |