diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-03-11 18:54:27 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-03-11 18:54:27 +0100 |
commit | ee83615359f374d7128b64ab0a0c1be40b5a727f (patch) | |
tree | c6ce40da3b8ce0077b0c7df0e32645af5a9277a7 /src/synth/netlists-folds.ads | |
parent | cae204093418e82299b93af809007aadd4cde36d (diff) | |
download | ghdl-ee83615359f374d7128b64ab0a0c1be40b5a727f.tar.gz ghdl-ee83615359f374d7128b64ab0a0c1be40b5a727f.tar.bz2 ghdl-ee83615359f374d7128b64ab0a0c1be40b5a727f.zip |
synth: implement more conversions.
Diffstat (limited to 'src/synth/netlists-folds.ads')
-rw-r--r-- | src/synth/netlists-folds.ads | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/synth/netlists-folds.ads b/src/synth/netlists-folds.ads index 15a1f4ad6..68c6ba5a4 100644 --- a/src/synth/netlists-folds.ads +++ b/src/synth/netlists-folds.ads @@ -58,6 +58,14 @@ package Netlists.Folds is Loc : Location_Type := No_Location) return Net; + -- If IS_SIGNED is true, this is Build2_Sresize, otherwise Build2_Uresize. + function Build2_Resize (Ctxt : Context_Acc; + I : Net; + W : Width; + Is_Signed : Boolean; + Loc : Location_Type := No_Location) + return Net; + -- Same as Build_Extract, but return I iff extract all the bits. function Build2_Extract (Ctxt : Context_Acc; I : Net; Off, W : Width) return Net; |