From 61665a183e94cf8edaebb336c34df24a02ef45fd Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 21 Aug 2022 10:39:12 +0200 Subject: simul: rework assertions execution and error handling --- src/simul/simul-vhdl_simul.adb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/simul') diff --git a/src/simul/simul-vhdl_simul.adb b/src/simul/simul-vhdl_simul.adb index 63e747e9d..383203e92 100644 --- a/src/simul/simul-vhdl_simul.adb +++ b/src/simul/simul-vhdl_simul.adb @@ -1067,7 +1067,7 @@ package body Simul.Vhdl_Simul is end; when Iir_Kind_Assertion_Statement => - Synth.Vhdl_Stmts.Execute_Assertion_Statement (Inst, Stmt); + Execute_Assertion_Statement (Inst, Stmt); Next_Statement (Process, Stmt); when Iir_Kind_Report_Statement => Synth.Vhdl_Stmts.Execute_Report_Statement (Inst, Stmt); @@ -1275,8 +1275,7 @@ package body Simul.Vhdl_Simul is if Elab.Debugger.Flag_Need_Debug then Elab.Debugger.Debug_Break (Process.Instance, Process.Proc); end if; - Synth.Vhdl_Stmts.Execute_Assertion_Statement - (Process.Instance, Process.Proc); + Execute_Assertion_Statement (Process.Instance, Process.Proc); when Iir_Kind_Concurrent_Simple_Signal_Assignment => if Elab.Debugger.Flag_Need_Debug then Elab.Debugger.Debug_Break (Process.Instance, Process.Proc); @@ -2671,6 +2670,8 @@ package body Simul.Vhdl_Simul is Grt.Options.Progname := To_Ghdl_C_String (Ghdl_Progname'Address); Grt.Errors.Set_Error_Stream (Grt.Stdio.stdout); + Elab.Debugger.Error_Hook := Grt.Errors.Fatal_Error'Access; + -- Grt.Errors.Error_Hook := Debug_Error'Access; if Flag_Debug_Elab then -- cgit v1.2.3