diff options
Diffstat (limited to 'src/synth/netlists-folds.adb')
-rw-r--r-- | src/synth/netlists-folds.adb | 14 |
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 |