aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/synth/netlists.ads10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/synth/netlists.ads b/src/synth/netlists.ads
index 58900e748..e5560ba0a 100644
--- a/src/synth/netlists.ads
+++ b/src/synth/netlists.ads
@@ -270,10 +270,8 @@ package Netlists is
Nbr_Params : Param_Nbr)
return Instance;
- -- Mark INST as free, but keep it in the module.
- -- Use Remove_Free_Instances for a cleanup.
- -- TODO: Destroy instance in Remove_Free_Instances.
- procedure Free_Instance (Inst : Instance);
+ -- Remove and free the unconnected instance INST.
+ procedure Remove_Instance (Inst : Instance);
function Is_Self_Instance (I : Instance) return Boolean;
function Get_Module (Inst : Instance) return Module;
@@ -441,8 +439,8 @@ private
-- parent module.
procedure Extract_Instance (Inst : Instance);
- -- Remove and free the unconnected instance INST.
- procedure Remove_Instance (Inst : Instance);
+ -- Mark INST as free. Must be unconnected and removed from its module.
+ procedure Free_Instance (Inst : Instance);
type Input_Record is record
Parent : Instance;