aboutsummaryrefslogtreecommitdiffstats
path: root/src/simul/simul-vhdl_simul.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-01-08 10:30:26 +0100
committerTristan Gingold <tgingold@free.fr>2023-01-09 06:40:19 +0100
commitdfbc41e9850441a26a678c400d1e2e19491a68e6 (patch)
treed69f6385ceb678d0d80ad3b6ebe7efd62c6773e7 /src/simul/simul-vhdl_simul.adb
parentcd24558291b1406bfeefecd0f50e40e6061af382 (diff)
downloadghdl-dfbc41e9850441a26a678c400d1e2e19491a68e6.tar.gz
ghdl-dfbc41e9850441a26a678c400d1e2e19491a68e6.tar.bz2
ghdl-dfbc41e9850441a26a678c400d1e2e19491a68e6.zip
simul: set assertion hook before elaboration
Diffstat (limited to 'src/simul/simul-vhdl_simul.adb')
-rw-r--r--src/simul/simul-vhdl_simul.adb6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/simul/simul-vhdl_simul.adb b/src/simul/simul-vhdl_simul.adb
index 3bc859f41..5764fe5e3 100644
--- a/src/simul/simul-vhdl_simul.adb
+++ b/src/simul/simul-vhdl_simul.adb
@@ -4048,6 +4048,9 @@ package body Simul.Vhdl_Simul is
Elab.Debugger.Debug_Elab (Vhdl_Elab.Top_Instance);
end if;
+ Grt.Errors.Set_Error_Stream (Grt.Stdio.stdout);
+ Assertion_Report_Handler := Assertion_Report_Msg'Access;
+
Status := Grt.Main.Run_Through_Longjump
(Grt.Processes.Simulation_Init'Access);
@@ -4056,9 +4059,6 @@ package body Simul.Vhdl_Simul is
Grt.Analog_Solver.Start;
end if;
- Grt.Errors.Set_Error_Stream (Grt.Stdio.stdout);
- Assertion_Report_Handler := Assertion_Report_Msg'Access;
-
pragma Assert (Areapools.Is_Empty (Expr_Pool));
pragma Assert (Areapools.Is_Empty (Process_Pool));