diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-02-08 19:29:36 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-02-09 20:42:48 +0100 |
commit | f195ad27e1810b1071d9fc72a1686d32597cf882 (patch) | |
tree | fadc6add2a2f12b6199994f7e21d05ab676878e7 /src/synth | |
parent | b3c17274354dd048af202eed86d3ef4f7ceb7bfa (diff) | |
download | ghdl-f195ad27e1810b1071d9fc72a1686d32597cf882.tar.gz ghdl-f195ad27e1810b1071d9fc72a1686d32597cf882.tar.bz2 ghdl-f195ad27e1810b1071d9fc72a1686d32597cf882.zip |
netlists-folds: add comments
Diffstat (limited to 'src/synth')
-rw-r--r-- | src/synth/netlists-folds.ads | 4 |
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; |