From ee83615359f374d7128b64ab0a0c1be40b5a727f Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 11 Mar 2020 18:54:27 +0100 Subject: synth: implement more conversions. --- src/synth/netlists-folds.adb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/synth/netlists-folds.adb') 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 -- cgit v1.2.3