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.adb6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/synth/synth-vhdl_expr.adb b/src/synth/synth-vhdl_expr.adb
index ff44a926d..5b5034986 100644
--- a/src/synth/synth-vhdl_expr.adb
+++ b/src/synth/synth-vhdl_expr.adb
@@ -2208,6 +2208,12 @@ package body Synth.Vhdl_Expr is
when Iir_Kind_Overflow_Literal =>
Error_Msg_Synth (+Expr, "out of bound expression");
return No_Valtyp;
+ when Iir_Kind_Event_Attribute =>
+ if Hook_Signal_Attribute /= null then
+ return Hook_Signal_Attribute (Syn_Inst, Expr);
+ end if;
+ Error_Msg_Synth (+Expr, "signal attributes not allowed");
+ return No_Valtyp;
when others =>
Error_Kind ("synth_expression_with_type", Expr);
end case;