summaryrefslogtreecommitdiff
path: root/src/grt/grt-hooks.ads
diff options
context:
space:
mode:
authorTristan Gingold2015-10-30 07:11:28 +0100
committerTristan Gingold2015-10-30 07:11:28 +0100
commitce10f7dbd57cb5d2273567aa536bfce79620849c (patch)
tree62fdd99a17aa09a04166e014444aeb8b732dce81 /src/grt/grt-hooks.ads
parentab70415983fec433dd35aea6cc8b107699a5aff0 (diff)
downloadghdl-ce10f7dbd57cb5d2273567aa536bfce79620849c.tar.gz
ghdl-ce10f7dbd57cb5d2273567aa536bfce79620849c.tar.bz2
ghdl-ce10f7dbd57cb5d2273567aa536bfce79620849c.zip
Rework callbacks, support cocotb.
Diffstat (limited to 'src/grt/grt-hooks.ads')
-rw-r--r--src/grt/grt-hooks.ads22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/grt/grt-hooks.ads b/src/grt/grt-hooks.ads
index 1243908..576ab48 100644
--- a/src/grt/grt-hooks.ads
+++ b/src/grt/grt-hooks.ads
@@ -22,6 +22,8 @@
-- covered by the GNU General Public License. This exception does not
-- however invalidate any other reasons why the executable file might be
-- covered by the GNU Public License.
+with Grt.Callbacks;
+
package Grt.Hooks is
pragma Preelaborate (Grt.Hooks);
@@ -81,4 +83,24 @@ package Grt.Hooks is
-- Nil procedure.
procedure Proc_Hook_Nil;
+
+ -- Callbacks.
+
+ -- Called at the beginning of the cycle at time T.
+ Cb_After_Delay : Callbacks.Callback_Time_List;
+
+ -- Called at the beginning of a non-delta cycle.
+ Cb_Next_Time_Step : Callbacks.Callback_List;
+
+ -- Called after updating the signals. For value change detection.
+ Cb_Signals_Updated : Callbacks.Callback_List;
+
+ -- Called at the last known delta cycle of a timestep, before execution
+ -- of postponed processes.
+ -- The callback may change signals and therefore generating new delta
+ -- cycle.
+ Cb_Last_Known_Delta : Callbacks.Callback_List;
+
+ Cb_End_Of_Time_Step : Callbacks.Callback_List;
+
end Grt.Hooks;