diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-01-30 06:16:48 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-01-30 06:27:04 +0100 |
commit | ce7b33d5af8fe3a4ecdc5b342142a16cce3af0ac (patch) | |
tree | db053cbd30f5b4bd87598e3635183d83f6863ceb /src/synth/synth-expr.ads | |
parent | f4e47ad72f6b7ec7b519b3ea00dcf411dd46f7b8 (diff) | |
download | ghdl-ce7b33d5af8fe3a4ecdc5b342142a16cce3af0ac.tar.gz ghdl-ce7b33d5af8fe3a4ecdc5b342142a16cce3af0ac.tar.bz2 ghdl-ce7b33d5af8fe3a4ecdc5b342142a16cce3af0ac.zip |
synth: handle some rotation and shifts. Fix #1077
Diffstat (limited to 'src/synth/synth-expr.ads')
-rw-r--r-- | src/synth/synth-expr.ads | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/synth/synth-expr.ads b/src/synth/synth-expr.ads index 08936a15a..c5969b483 100644 --- a/src/synth/synth-expr.ads +++ b/src/synth/synth-expr.ads @@ -38,13 +38,19 @@ package Synth.Expr is Loc : Source.Syn_Src) return Value_Acc; + -- For a static value V, return the value. function Get_Static_Discrete (V : Value_Acc) return Int64; + -- Return True only if discrete value V is known to be positive or 0. + -- False means either not positive or unknown. + function Is_Positive (V : Value_Acc) return Boolean; + -- Return the bounds of a one dimensional array/vector type and the -- width of the element. procedure Get_Onedimensional_Array_Bounds (Typ : Type_Acc; Bnd : out Bound_Type; El_Typ : out Type_Acc); + -- Create an array subtype from bound BND. function Create_Onedimensional_Array_Subtype (Btyp : Type_Acc; Bnd : Bound_Type) return Type_Acc; |