aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/netlists-dump.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-04-18 20:13:10 +0200
committerTristan Gingold <tgingold@free.fr>2019-04-18 20:13:10 +0200
commitc73726c65ed88037d26731352cd779bc66b09c68 (patch)
treef7c03a76ba3e51434db3d2b8cbae33e2efea21ff /src/synth/netlists-dump.adb
parent7c7c8a24f20c62ff08399ddb1d7e18813c1f7fd2 (diff)
downloadghdl-c73726c65ed88037d26731352cd779bc66b09c68.tar.gz
ghdl-c73726c65ed88037d26731352cd779bc66b09c68.tar.bz2
ghdl-c73726c65ed88037d26731352cd779bc66b09c68.zip
[PATCH] synth: add comments.
Diffstat (limited to 'src/synth/netlists-dump.adb')
-rw-r--r--src/synth/netlists-dump.adb14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/synth/netlists-dump.adb b/src/synth/netlists-dump.adb
index ad13b1ee8..dc72f80e5 100644
--- a/src/synth/netlists-dump.adb
+++ b/src/synth/netlists-dump.adb
@@ -310,12 +310,14 @@ package body Netlists.Dump is
case Get_Id (Inst) is
when Id_Signal
| Id_Output =>
+ -- Cut loops.
return False;
when others =>
- return not Is_Self_Instance (Inst)
- and then Get_Nbr_Outputs (Inst) = 1
- and then Has_One_Connection (Get_Output (Inst, 0));
+ null;
end case;
+ return not Is_Self_Instance (Inst)
+ and then Get_Nbr_Outputs (Inst) = 1
+ and then Has_One_Connection (Get_Output (Inst, 0));
end Can_Inline;
procedure Disp_Driver (Drv : Net)
@@ -490,7 +492,11 @@ package body Netlists.Dump is
Put_Indent (Indent + 1);
Dump_Name (Get_Output_Desc (M, Get_Port_Idx (I)).Name);
Put (" := ");
- Disp_Net_Name (Get_Driver (I));
+ if False then
+ Disp_Driver (Get_Driver (I));
+ else
+ Disp_Net_Name (Get_Driver (I));
+ end if;
New_Line;
end loop;
end if;