diff options
author | Tristan Gingold <tgingold@free.fr> | 2023-01-08 10:30:26 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2023-01-09 06:40:19 +0100 |
commit | dfbc41e9850441a26a678c400d1e2e19491a68e6 (patch) | |
tree | d69f6385ceb678d0d80ad3b6ebe7efd62c6773e7 /src/simul | |
parent | cd24558291b1406bfeefecd0f50e40e6061af382 (diff) | |
download | ghdl-dfbc41e9850441a26a678c400d1e2e19491a68e6.tar.gz ghdl-dfbc41e9850441a26a678c400d1e2e19491a68e6.tar.bz2 ghdl-dfbc41e9850441a26a678c400d1e2e19491a68e6.zip |
simul: set assertion hook before elaboration
Diffstat (limited to 'src/simul')
-rw-r--r-- | src/simul/simul-vhdl_simul.adb | 6 |
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)); |