aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-insts.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-07-15 04:07:31 +0200
committerTristan Gingold <tgingold@free.fr>2019-07-15 04:07:31 +0200
commitd92d035ba972cedc03356113eb0d8cf0087eed39 (patch)
tree1d783877f2202de206ae93e9029b418813e0e434 /src/synth/synth-insts.adb
parent7059373425a274869b5be2b9042578f410b12fe4 (diff)
downloadghdl-d92d035ba972cedc03356113eb0d8cf0087eed39.tar.gz
ghdl-d92d035ba972cedc03356113eb0d8cf0087eed39.tar.bz2
ghdl-d92d035ba972cedc03356113eb0d8cf0087eed39.zip
synth: remove extra elaboration of port types.
Diffstat (limited to 'src/synth/synth-insts.adb')
-rw-r--r--src/synth/synth-insts.adb20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/synth/synth-insts.adb b/src/synth/synth-insts.adb
index cdee1d7e7..a45ed8590 100644
--- a/src/synth/synth-insts.adb
+++ b/src/synth/synth-insts.adb
@@ -463,7 +463,7 @@ package body Synth.Insts is
Get_Generic_Chain (Component),
Get_Generic_Map_Aspect_Chain (Stmt));
- -- Assign inputs.
+ -- Create objects for inputs and outputs, assign inputs.
declare
Assoc : Node;
Assoc_Inter : Node;
@@ -501,6 +501,7 @@ package body Synth.Insts is
end loop;
end;
+ -- Extract entity/architecture instantiated by the component.
case Get_Kind (Aspect) is
when Iir_Kind_Entity_Aspect_Entity =>
Ent := Get_Entity (Aspect);
@@ -526,23 +527,6 @@ package body Synth.Insts is
Get_Generic_Chain (Ent),
Get_Generic_Map_Aspect_Chain (Bind));
- -- Elaborate port types.
- -- FIXME: what about unconstrained ports ? Get the type from the
- -- association.
- declare
- Inter : Node;
- begin
- Inter := Get_Port_Chain (Ent);
- while Is_Valid (Inter) loop
- if not Is_Fully_Constrained_Type (Get_Type (Inter)) then
- -- TODO
- raise Internal_Error;
- end if;
- Synth_Declaration_Type (Sub_Inst, Inter);
- Inter := Get_Chain (Inter);
- end loop;
- end;
-
-- Search if corresponding module has already been used.
-- If not create a new module
-- * create a name from the generics and the library