aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/netlists-folds.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-03-11 18:54:27 +0100
committerTristan Gingold <tgingold@free.fr>2020-03-11 18:54:27 +0100
commitee83615359f374d7128b64ab0a0c1be40b5a727f (patch)
treec6ce40da3b8ce0077b0c7df0e32645af5a9277a7 /src/synth/netlists-folds.adb
parentcae204093418e82299b93af809007aadd4cde36d (diff)
downloadghdl-ee83615359f374d7128b64ab0a0c1be40b5a727f.tar.gz
ghdl-ee83615359f374d7128b64ab0a0c1be40b5a727f.tar.bz2
ghdl-ee83615359f374d7128b64ab0a0c1be40b5a727f.zip
synth: implement more conversions.
Diffstat (limited to 'src/synth/netlists-folds.adb')
-rw-r--r--src/synth/netlists-folds.adb14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/synth/netlists-folds.adb b/src/synth/netlists-folds.adb
index ef5cfdd2c..01c210656 100644
--- a/src/synth/netlists-folds.adb
+++ b/src/synth/netlists-folds.adb
@@ -248,6 +248,20 @@ package body Netlists.Folds is
end if;
end Build2_Sresize;
+ function Build2_Resize (Ctxt : Context_Acc;
+ I : Net;
+ W : Width;
+ Is_Signed : Boolean;
+ Loc : Location_Type := No_Location)
+ return Net is
+ begin
+ if Is_Signed then
+ return Build2_Sresize (Ctxt, I, W, Loc);
+ else
+ return Build2_Uresize (Ctxt, I, W, Loc);
+ end if;
+ end Build2_Resize;
+
function Build2_Extract
(Ctxt : Context_Acc; I : Net; Off, W : Width) return Net is
begin