From b7a9e4b9b5ac2c195da6f3549dd06b5c6e999a0f Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 27 Dec 2022 08:53:00 +0100 Subject: synth: add statement in context, adjust path/instance name attributes --- src/synth/elab-vhdl_debug.adb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/synth/elab-vhdl_debug.adb') diff --git a/src/synth/elab-vhdl_debug.adb b/src/synth/elab-vhdl_debug.adb index e5e40011e..2cea530d7 100644 --- a/src/synth/elab-vhdl_debug.adb +++ b/src/synth/elab-vhdl_debug.adb @@ -1199,6 +1199,8 @@ package body Elab.Vhdl_Debug is | Iir_Kind_For_Generate_Statement => Open_Declarative_Region; Add_Name (Get_Parameter_Specification (N)); + when Iir_Kind_If_Generate_Statement => + Open_Declarative_Region; when Iir_Kind_Block_Statement => declare Header : constant Iir := Get_Block_Header (N); @@ -1216,7 +1218,7 @@ package body Elab.Vhdl_Debug is Add_Declarations (Get_Declaration_Chain (N), False); Add_Declarations_Of_Concurrent_Statement (N); when others => - Vhdl.Errors.Error_Kind ("enter_scope(2)", N); + Vhdl.Errors.Error_Kind ("add_decls_for", N); end case; end Add_Decls_For; -- cgit v1.2.3