aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-context.ads
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth/synth-context.ads')
-rw-r--r--src/synth/synth-context.ads10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/synth/synth-context.ads b/src/synth/synth-context.ads
index 630639083..f569a092e 100644
--- a/src/synth/synth-context.ads
+++ b/src/synth/synth-context.ads
@@ -72,6 +72,9 @@ package Synth.Context is
function Get_Instance_Const (Inst : Synth_Instance_Acc) return Boolean;
procedure Set_Instance_Const (Inst : Synth_Instance_Acc; Val : Boolean);
+ -- Get the corresponding source for the scope of the instance.
+ function Get_Source_Scope (Inst : Synth_Instance_Acc) return Node;
+
procedure Create_Object
(Syn_Inst : Synth_Instance_Acc; Decl : Node; Val : Value_Acc);
@@ -131,12 +134,15 @@ private
-- Name prefix for declarations.
Name : Sname;
- -- The corresponding info for this instance.
+ -- The corresponding info for this instance. This is used for lookup.
Block_Scope : Sim_Info_Acc;
- -- Parent instance.
+ -- Instance of the parent scope.
Up_Block : Synth_Instance_Acc;
+ -- Source construct corresponding to this instance/
+ Source_Scope : Node;
+
Elab_Objects : Object_Slot_Type;
-- Instance for synthesis.