aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-vhdl_expr.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth/synth-vhdl_expr.adb')
-rw-r--r--src/synth/synth-vhdl_expr.adb14
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);