aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-10-14 19:52:59 +0200
committerTristan Gingold <tgingold@free.fr>2019-10-14 19:52:59 +0200
commit1f01e14d5ee7290ae4af76127d0d31067389f893 (patch)
tree9fd2da546e25dabc14d76f2555855d2c893d5a45 /src
parentd37ba8b009f0a8954bfcf37720f6c3f13038ed63 (diff)
downloadghdl-1f01e14d5ee7290ae4af76127d0d31067389f893.tar.gz
ghdl-1f01e14d5ee7290ae4af76127d0d31067389f893.tar.bz2
ghdl-1f01e14d5ee7290ae4af76127d0d31067389f893.zip
netlists-dump: do not print name of anonymous parameters.
Diffstat (limited to 'src')
-rw-r--r--src/synth/netlists-dump.adb8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/synth/netlists-dump.adb b/src/synth/netlists-dump.adb
index aa7dbe3e7..85080050d 100644
--- a/src/synth/netlists-dump.adb
+++ b/src/synth/netlists-dump.adb
@@ -131,8 +131,12 @@ package body Netlists.Dump is
is
Desc : constant Param_Desc := Get_Param_Desc (Inst, Idx);
begin
- Dump_Name (Desc.Name);
- Put ('=');
+ if Desc.Name /= No_Sname then
+ -- Const_Bit/Log gates have anonymous parameters.
+ Dump_Name (Desc.Name);
+ Put ('=');
+ end if;
+
case Desc.Typ is
when Param_Invalid =>
Put ("invalid");