aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-stmts.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth/synth-stmts.adb')
-rw-r--r--src/synth/synth-stmts.adb14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/synth/synth-stmts.adb b/src/synth/synth-stmts.adb
index a28367d0a..f5426f178 100644
--- a/src/synth/synth-stmts.adb
+++ b/src/synth/synth-stmts.adb
@@ -1230,7 +1230,19 @@ package body Synth.Stmts is
Synth_Concurrent_Assertion_Statement (Syn_Inst, Stmt);
when Iir_Kind_Component_Instantiation_Statement =>
if Is_Component_Instantiation (Stmt) then
- Synth_Component_Instantiation_Statement (Syn_Inst, Stmt);
+ declare
+ Comp_Config : constant Node :=
+ Get_Component_Configuration (Stmt);
+ begin
+ if Get_Binding_Indication (Comp_Config) = Null_Node then
+ -- Not bound.
+ Synth_Blackbox_Instantiation_Statement
+ (Syn_Inst, Stmt);
+ else
+ Synth_Component_Instantiation_Statement
+ (Syn_Inst, Stmt);
+ end if;
+ end;
else
Synth_Design_Instantiation_Statement (Syn_Inst, Stmt);
end if;