aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/synth/netlists-disp_vhdl.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/synth/netlists-disp_vhdl.adb b/src/synth/netlists-disp_vhdl.adb
index 84a53c866..c1289935c 100644
--- a/src/synth/netlists-disp_vhdl.adb
+++ b/src/synth/netlists-disp_vhdl.adb
@@ -1235,7 +1235,7 @@ package body Netlists.Disp_Vhdl is
Disp_Template (" \o0 <= ", Inst);
if Iw = 1 then
Disp_Template ("(\n0 downto 0 => \i0); -- sext" & NL,
- Inst, (0 => Ow));
+ Inst, (0 => Ow - 1));
else
Disp_Template
("std_logic_vector (resize (\si0, \n0)); -- sext" & NL,