aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/netlists-folds.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-04-22 06:29:09 +0200
committerTristan Gingold <tgingold@free.fr>2020-04-22 06:29:09 +0200
commit5841b245ee5f3d31b1c1856a443d6aed26fcf582 (patch)
tree87c52f61ccee86476f7f87b7d1d33431f9ecf735 /src/synth/netlists-folds.adb
parent5b9fb81982ef2405772013509016ecede70fd238 (diff)
downloadghdl-5841b245ee5f3d31b1c1856a443d6aed26fcf582.tar.gz
ghdl-5841b245ee5f3d31b1c1856a443d6aed26fcf582.tar.bz2
ghdl-5841b245ee5f3d31b1c1856a443d6aed26fcf582.zip
synth: minor refactoring.
Diffstat (limited to 'src/synth/netlists-folds.adb')
-rw-r--r--src/synth/netlists-folds.adb3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/synth/netlists-folds.adb b/src/synth/netlists-folds.adb
index 01c210656..e591c35cf 100644
--- a/src/synth/netlists-folds.adb
+++ b/src/synth/netlists-folds.adb
@@ -231,8 +231,7 @@ package body Netlists.Folds is
Sh : constant Natural := Natural (Width'Min (Wn, W));
begin
V := Get_Net_Uns64 (I);
- V := Shift_Left (V, 64 - Sh);
- V := Shift_Right_Arithmetic (V, 64 - Sh);
+ V := Sext (V, Sh);
Res := Build2_Const_Int (Ctxt, To_Int64 (V), W);
end;
else