aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-vhdl_expr.ads
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth/synth-vhdl_expr.ads')
-rw-r--r--src/synth/synth-vhdl_expr.ads6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/synth/synth-vhdl_expr.ads b/src/synth/synth-vhdl_expr.ads
index 5591234bb..0aacd8cbf 100644
--- a/src/synth/synth-vhdl_expr.ads
+++ b/src/synth/synth-vhdl_expr.ads
@@ -72,6 +72,12 @@ package Synth.Vhdl_Expr is
procedure Concat_Array
(Ctxt : Context_Acc; Arr : in out Net_Array; N : out Net);
+ -- Hook to convert a signal to a value.
+ -- If not defined, the signal are not allowed (like in expressions during
+ -- elaboration).
+ type Hook_Signal_Expr_Acc is access function (Val : Valtyp) return Valtyp;
+ Hook_Signal_Expr : Hook_Signal_Expr_Acc;
+
-- Synthesize EXPR. The expression must be self-constrained.
-- If EN is not No_Net, the execution is controlled by EN. This is used
-- for assertions and checks.