aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-vhdl_expr.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-09-16 04:40:32 +0200
committerTristan Gingold <tgingold@free.fr>2022-09-16 04:40:32 +0200
commit7f411fd357bc9a17dc3d0593b86f4b8412a94632 (patch)
tree85eba7a6cd7cfb5e36972c1f8a7ca7b0308048e3 /src/synth/synth-vhdl_expr.adb
parent2e7f15755f0c4b8956ab3f102fce2f0afb6277e5 (diff)
downloadghdl-7f411fd357bc9a17dc3d0593b86f4b8412a94632.tar.gz
ghdl-7f411fd357bc9a17dc3d0593b86f4b8412a94632.tar.bz2
ghdl-7f411fd357bc9a17dc3d0593b86f4b8412a94632.zip
simul: handle active attribute
Diffstat (limited to 'src/synth/synth-vhdl_expr.adb')
-rw-r--r--src/synth/synth-vhdl_expr.adb8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/synth/synth-vhdl_expr.adb b/src/synth/synth-vhdl_expr.adb
index 98dd16f7b..99ab99ea2 100644
--- a/src/synth/synth-vhdl_expr.adb
+++ b/src/synth/synth-vhdl_expr.adb
@@ -2352,7 +2352,13 @@ package body Synth.Vhdl_Expr is
if Hook_Event_Attribute /= null then
return Hook_Event_Attribute (Syn_Inst, Expr);
end if;
- Error_Msg_Synth (+Expr, "event attributes not allowed");
+ Error_Msg_Synth (+Expr, "event attribute not allowed");
+ return No_Valtyp;
+ when Iir_Kind_Active_Attribute =>
+ if Hook_Active_Attribute /= null then
+ return Hook_Active_Attribute (Syn_Inst, Expr);
+ end if;
+ Error_Msg_Synth (+Expr, "active attribute not allowed");
return No_Valtyp;
when Iir_Kind_Dot_Attribute =>
if Hook_Dot_Attribute /= null then