From 93aa98b608bae5993cd45d53036ed6fde3cbebc6 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 12 Jan 2020 20:59:52 +0100 Subject: netlists-disp_vhdl: handle 0 bit truncation. --- src/synth/netlists-disp_vhdl.adb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/synth/netlists-disp_vhdl.adb b/src/synth/netlists-disp_vhdl.adb index 121016cac..6fd40a773 100644 --- a/src/synth/netlists-disp_vhdl.adb +++ b/src/synth/netlists-disp_vhdl.adb @@ -1046,6 +1046,8 @@ package body Netlists.Disp_Vhdl is Disp_Template (" \o0 <= \i0 ", Inst); if W = 1 then Disp_Template ("(0)", Inst); + elsif W = 0 then + Disp_Template ("(-1 downto 0)", Inst); else Disp_Template ("(\n0 downto 0)", Inst, (0 => W - 1)); end if; -- cgit v1.2.3