aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-expr.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-06-24 07:21:02 +0200
committerTristan Gingold <tgingold@free.fr>2019-06-24 07:21:02 +0200
commit6c773bf9ac1fb8adbde68cf293fe4748d0719ead (patch)
tree6b99483c48bc75111d1ed76e169d98657d50f2d4 /src/synth/synth-expr.ads
parentc98cd530f2e58ecff06c6065c6e7427bf727875d (diff)
downloadghdl-6c773bf9ac1fb8adbde68cf293fe4748d0719ead.tar.gz
ghdl-6c773bf9ac1fb8adbde68cf293fe4748d0719ead.tar.bz2
ghdl-6c773bf9ac1fb8adbde68cf293fe4748d0719ead.zip
synth: add insert gate.
Diffstat (limited to 'src/synth/synth-expr.ads')
-rw-r--r--src/synth/synth-expr.ads5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/synth/synth-expr.ads b/src/synth/synth-expr.ads
index 0061767a0..1f4cf3ee2 100644
--- a/src/synth/synth-expr.ads
+++ b/src/synth/synth-expr.ads
@@ -50,4 +50,9 @@ package Synth.Expr is
function Synth_Range_Expression
(Syn_Inst : Synth_Instance_Acc; Rng : Node) return Value_Acc;
+
+ -- Convert index IDX in PFX to an offset. LOC is used in case of error.
+ function Index_To_Offset (Pfx : Value_Acc; Idx : Int64; Loc : Node)
+ return Uns32;
+
end Synth.Expr;