diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-04-20 04:43:52 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-04-20 07:34:00 +0200 |
commit | 1c081e799d51ce644d33910ff801dc0479ab4a06 (patch) | |
tree | 4a1a6d9970e0ade12a345a6ac67129e0b4ee0ccb /src/synth/netlists-disp_vhdl.adb | |
parent | 70cf91a7ccc9e8cce2277897efa10d9c6f59f1f1 (diff) | |
download | ghdl-1c081e799d51ce644d33910ff801dc0479ab4a06.tar.gz ghdl-1c081e799d51ce644d33910ff801dc0479ab4a06.tar.bz2 ghdl-1c081e799d51ce644d33910ff801dc0479ab4a06.zip |
synth: improve handling of nested memories. Fix #1250
Diffstat (limited to 'src/synth/netlists-disp_vhdl.adb')
-rw-r--r-- | src/synth/netlists-disp_vhdl.adb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/synth/netlists-disp_vhdl.adb b/src/synth/netlists-disp_vhdl.adb index 8fdffbdc5..c772be71b 100644 --- a/src/synth/netlists-disp_vhdl.adb +++ b/src/synth/netlists-disp_vhdl.adb @@ -856,7 +856,11 @@ package body Netlists.Disp_Vhdl is when Id_Signal => Disp_Template (" \o0 <= \i0; -- (signal)" & NL, Inst); when Id_Isignal => - Disp_Template (" \o0 <= \i0; -- (isignal)" & NL, Inst); + if Get_Driver (Get_Input (Inst, 0)) /= No_Net then + -- It is possible (and meaningful) to have unassigned + -- isignal. + Disp_Template (" \o0 <= \i0; -- (isignal)" & NL, Inst); + end if; when Id_Port => Disp_Template (" \o0 <= \i0; -- (port)" & NL, Inst); when Id_Nop => |