aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-04-29 05:02:23 +0200
committerTristan Gingold <tgingold@free.fr>2022-04-29 05:02:23 +0200
commit4433b25c12938ddd2d3a673148fe7a7aee844fb3 (patch)
tree596e086bc61e9a72c24e9ad9aeb4763d6298e124
parent12938904c0413f9b7398a9a1fe2ee54b74f1b1d0 (diff)
downloadghdl-4433b25c12938ddd2d3a673148fe7a7aee844fb3.tar.gz
ghdl-4433b25c12938ddd2d3a673148fe7a7aee844fb3.tar.bz2
ghdl-4433b25c12938ddd2d3a673148fe7a7aee844fb3.zip
elab-vhdl_insts: handle open unconstrained port association
-rw-r--r--src/synth/elab-vhdl_insts.adb3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/synth/elab-vhdl_insts.adb b/src/synth/elab-vhdl_insts.adb
index 3816cb9a4..96272af7c 100644
--- a/src/synth/elab-vhdl_insts.adb
+++ b/src/synth/elab-vhdl_insts.adb
@@ -342,6 +342,9 @@ package body Elab.Vhdl_Insts is
when Iir_Kind_Association_Element_By_Individual =>
return Synth_Subtype_Indication
(Syn_Inst, Get_Actual_Type (Assoc));
+ when Iir_Kind_Association_Element_Open =>
+ return Exec_Type_Of_Object
+ (Syn_Inst, Get_Default_Value (Inter));
when others =>
raise Internal_Error;
end case;