diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-10-13 04:01:58 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-10-13 04:01:58 +0200 |
commit | 10a478df597403fc6c5c268cdaa6ea4ee916a5ef (patch) | |
tree | acd477b6b9d20624b8da5690cedfd6420a685203 /src/synth/synth-vhdl_expr.adb | |
parent | 26d6de24d7f93a1dde14ac457d67e3258b946c94 (diff) | |
download | ghdl-10a478df597403fc6c5c268cdaa6ea4ee916a5ef.tar.gz ghdl-10a478df597403fc6c5c268cdaa6ea4ee916a5ef.tar.bz2 ghdl-10a478df597403fc6c5c268cdaa6ea4ee916a5ef.zip |
simul: handle last_event and last_active
Diffstat (limited to 'src/synth/synth-vhdl_expr.adb')
-rw-r--r-- | src/synth/synth-vhdl_expr.adb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/synth/synth-vhdl_expr.adb b/src/synth/synth-vhdl_expr.adb index 33e5ab8ce..3d2d2f3f8 100644 --- a/src/synth/synth-vhdl_expr.adb +++ b/src/synth/synth-vhdl_expr.adb @@ -2425,6 +2425,20 @@ package body Synth.Vhdl_Expr is Error_Msg_Synth (Syn_Inst, Expr, "last_value attribute not allowed"); return No_Valtyp; + when Iir_Kind_Last_Event_Attribute => + if Hook_Last_Event_Attribute /= null then + return Hook_Last_Event_Attribute (Syn_Inst, Expr); + end if; + Error_Msg_Synth (Syn_Inst, Expr, + "last_event attribute not allowed"); + return No_Valtyp; + when Iir_Kind_Last_Active_Attribute => + if Hook_Last_Active_Attribute /= null then + return Hook_Last_Active_Attribute (Syn_Inst, Expr); + end if; + Error_Msg_Synth (Syn_Inst, Expr, + "last_active attribute not allowed"); + return No_Valtyp; when Iir_Kind_Dot_Attribute => if Hook_Dot_Attribute /= null then return Hook_Dot_Attribute (Syn_Inst, Expr); |