aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-expr.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-03-26 12:58:46 +0100
committerTristan Gingold <tgingold@free.fr>2020-03-26 12:58:46 +0100
commit643f13aab1704494ceee79c3d8e0ac65b75ea2a1 (patch)
treefd2b9327b88f56132595dda3f6c8c8d688424a2d /src/synth/synth-expr.ads
parent0d36b145f729e5a72822e8f881cb23620a8ffe52 (diff)
downloadghdl-643f13aab1704494ceee79c3d8e0ac65b75ea2a1.tar.gz
ghdl-643f13aab1704494ceee79c3d8e0ac65b75ea2a1.tar.bz2
ghdl-643f13aab1704494ceee79c3d8e0ac65b75ea2a1.zip
synth-expr: handle any object for array attributes.
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 c5969b483..eee5f1d4d 100644
--- a/src/synth/synth-expr.ads
+++ b/src/synth/synth-expr.ads
@@ -118,6 +118,11 @@ package Synth.Expr is
Off : out Uns32;
W : out Width);
+ -- Return the type of EXPR (an object) without evaluating it (except when
+ -- needed, like bounds of a slice).
+ function Synth_Type_Of_Object (Syn_Inst : Synth_Instance_Acc; Expr : Node)
+ return Type_Acc;
+
-- Conversion to logic vector.
type Logic_32 is record