aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-vhdl_oper.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth/synth-vhdl_oper.adb')
-rw-r--r--src/synth/synth-vhdl_oper.adb12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/synth/synth-vhdl_oper.adb b/src/synth/synth-vhdl_oper.adb
index 0f25e63da..7c589b993 100644
--- a/src/synth/synth-vhdl_oper.adb
+++ b/src/synth/synth-vhdl_oper.adb
@@ -1917,6 +1917,18 @@ package body Synth.Vhdl_Oper is
return Synth_Minmax (Ctxt, L, R, Res_Typ, Id_Slt, Expr);
when Iir_Predefined_Integer_Maximum =>
return Synth_Minmax (Ctxt, L, R, Res_Typ, Id_Sgt, Expr);
+ when Iir_Predefined_Bit_Rising_Edge =>
+ if Hook_Bit_Rising_Edge /= null then
+ return Create_Value_Memtyp
+ (Hook_Bit_Rising_Edge.all (L, Res_Typ));
+ end if;
+ raise Internal_Error;
+ when Iir_Predefined_Bit_Falling_Edge =>
+ if Hook_Bit_Falling_Edge /= null then
+ return Create_Value_Memtyp
+ (Hook_Bit_Falling_Edge.all (L, Res_Typ));
+ end if;
+ raise Internal_Error;
when Iir_Predefined_Ieee_1164_Rising_Edge =>
if Hook_Std_Rising_Edge /= null then
return Create_Value_Memtyp