aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/netlists-disp_vhdl.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-05-21 17:27:49 +0200
committerTristan Gingold <tgingold@free.fr>2020-05-21 17:27:49 +0200
commit8274d3ac100c1a05dd9fe74bb5d9aa7a371aa42e (patch)
treed887a772a58c7c4654e3b5e2cace8fe9cdeef45b /src/synth/netlists-disp_vhdl.adb
parent8755491e46edf4e0cc0ae080409c1b7d5ee9c5bf (diff)
downloadghdl-8274d3ac100c1a05dd9fe74bb5d9aa7a371aa42e.tar.gz
ghdl-8274d3ac100c1a05dd9fe74bb5d9aa7a371aa42e.tar.bz2
ghdl-8274d3ac100c1a05dd9fe74bb5d9aa7a371aa42e.zip
netlists-disp_vhdl: fix id_sextend for 1 bit.
Diffstat (limited to 'src/synth/netlists-disp_vhdl.adb')
-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,