aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-02-08 19:29:36 +0100
committerTristan Gingold <tgingold@free.fr>2021-02-09 20:42:48 +0100
commitf195ad27e1810b1071d9fc72a1686d32597cf882 (patch)
treefadc6add2a2f12b6199994f7e21d05ab676878e7 /src
parentb3c17274354dd048af202eed86d3ef4f7ceb7bfa (diff)
downloadghdl-f195ad27e1810b1071d9fc72a1686d32597cf882.tar.gz
ghdl-f195ad27e1810b1071d9fc72a1686d32597cf882.tar.bz2
ghdl-f195ad27e1810b1071d9fc72a1686d32597cf882.zip
netlists-folds: add comments
Diffstat (limited to 'src')
-rw-r--r--src/synth/netlists-folds.ads4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/synth/netlists-folds.ads b/src/synth/netlists-folds.ads
index fed8f72cb..5eb04a21f 100644
--- a/src/synth/netlists-folds.ads
+++ b/src/synth/netlists-folds.ads
@@ -21,10 +21,14 @@ with Netlists.Builders; use Netlists.Builders;
package Netlists.Folds is
-- Build a const from VAL. Result is either a Const_UB32 or a Const_Bit.
+ -- VAL is zero extended, so any width is allowed.
+ -- But VAL must fit in the width.
function Build2_Const_Uns (Ctxt : Context_Acc; Val : Uns64; W : Width)
return Net;
-- Build a const from VAL. Result is either a Const_SB32 or a Const_Bit.
+ -- VAL is sign extended, so any width is allowed, but it must fit in the
+ -- width.
function Build2_Const_Int (Ctxt : Context_Acc; Val : Int64; W : Width)
return Net;