aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/netlists-disp_vhdl.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-02-11 19:11:02 +0100
committerTristan Gingold <tgingold@free.fr>2020-02-11 19:11:02 +0100
commite81655535e5a95385d8ac6e9fb68d5c9c4b30a5a (patch)
tree87c4ab00f10cdc9a051886fb0f54ce84561e25a4 /src/synth/netlists-disp_vhdl.adb
parent568b3a849e6a4e8ebadbd21ca0f41e646a4b9c3d (diff)
downloadghdl-e81655535e5a95385d8ac6e9fb68d5c9c4b30a5a.tar.gz
ghdl-e81655535e5a95385d8ac6e9fb68d5c9c4b30a5a.tar.bz2
ghdl-e81655535e5a95385d8ac6e9fb68d5c9c4b30a5a.zip
synth: handle null vector for vec-vec concat. Fix #1133
Diffstat (limited to 'src/synth/netlists-disp_vhdl.adb')
-rw-r--r--src/synth/netlists-disp_vhdl.adb4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/synth/netlists-disp_vhdl.adb b/src/synth/netlists-disp_vhdl.adb
index f629fd21a..67d51d552 100644
--- a/src/synth/netlists-disp_vhdl.adb
+++ b/src/synth/netlists-disp_vhdl.adb
@@ -612,8 +612,10 @@ package body Netlists.Disp_Vhdl is
if Wd > 1 then
Disp_Template (" (\n0 downto \n1)", Inst,
(0 => Off + Wd - 1, 1 => Off));
- else
+ elsif Wd = 1 then
Disp_Template (" (\n0)", Inst, (0 => Off));
+ else
+ Disp_Template (" (-1 downto 0)", Inst);
end if;
end if;
end Disp_Extract;