From 0253646671c6000da87d12bebb2166284273ae04 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 26 Sep 2022 07:53:37 +0200 Subject: synth: handle attributes in configurations --- src/simul/simul-vhdl_elab.adb | 4 +++- src/simul/simul-vhdl_simul.adb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/simul') diff --git a/src/simul/simul-vhdl_elab.adb b/src/simul/simul-vhdl_elab.adb index 0fd99b551..ac2bc25c1 100644 --- a/src/simul/simul-vhdl_elab.adb +++ b/src/simul/simul-vhdl_elab.adb @@ -912,8 +912,10 @@ package body Simul.Vhdl_Elab is when Iir_Kind_Package_Declaration => Gather_Processes_Decls (Inst, Get_Declaration_Chain (N)); + when Iir_Kind_Configuration_Declaration => + null; when others => - Vhdl.Errors.Error_Kind ("gater_processes_1", N); + Vhdl.Errors.Error_Kind ("gather_processes_1", N); end case; pragma Assert (Areapools.Is_Empty (Expr_Pool)); diff --git a/src/simul/simul-vhdl_simul.adb b/src/simul/simul-vhdl_simul.adb index f7a51b822..e5ca86a53 100644 --- a/src/simul/simul-vhdl_simul.adb +++ b/src/simul/simul-vhdl_simul.adb @@ -2581,8 +2581,8 @@ package body Simul.Vhdl_Simul is Grt.Errors.Fatal_Error; end if; - pragma Assert (Dst_Val.Typ.Wkind = Wkind_Sim); Convert_Type_Width (Dst_Val.Typ); + pragma Assert (Dst_Val.Typ.Wkind = Wkind_Sim); Dst := Synth.Vhdl_Expr.Get_Value_Memtyp (Dst_Val); case Conv.Mode is -- cgit v1.2.3