diff options
| author | Tristan Gingold <tgingold@free.fr> | 2019-11-01 18:19:08 +0100 | 
|---|---|---|
| committer | Tristan Gingold <tgingold@free.fr> | 2019-11-01 18:19:08 +0100 | 
| commit | d4b148035ddbf84657d18d927a28885c494d5875 (patch) | |
| tree | 01f116051e516afd54e0b864120f05c7f1880b55 | |
| parent | e918d6e9030ac611ecd9c9c78b31c3c742c7cc13 (diff) | |
| download | ghdl-d4b148035ddbf84657d18d927a28885c494d5875.tar.gz ghdl-d4b148035ddbf84657d18d927a28885c494d5875.tar.bz2 ghdl-d4b148035ddbf84657d18d927a28885c494d5875.zip | |
netlists-dump: improve output.
| -rw-r--r-- | src/synth/netlists-dump.adb | 21 | 
1 files changed, 11 insertions, 10 deletions
| diff --git a/src/synth/netlists-dump.adb b/src/synth/netlists-dump.adb index 7a68839a6..701be8f7d 100644 --- a/src/synth/netlists-dump.adb +++ b/src/synth/netlists-dump.adb @@ -350,17 +350,22 @@ package body Netlists.Dump is        end if;     end Disp_Net_Name; +   procedure Put_Net_Width (N : Net) is +   begin +      Put ("{n"); +      Put_Trim (Net'Image (N)); +      Put ('w'); +      Put_Trim (Width'Image (Get_Width (N))); +      Put ('}'); +   end Put_Net_Width; +     procedure Dump_Net_Name_And_Width (N : Net) is     begin        if N = No_Net then           Put ("?");        else           Disp_Net_Name (N); -         Disp_Width (Get_Width (N)); - -         Put ("{n"); -         Put_Trim (Net'Image (N)); -         Put ('}'); +         Put_Net_Width (N);        end if;     end Dump_Net_Name_And_Width; @@ -502,11 +507,7 @@ package body Netlists.Dump is                 Drv := Get_Driver (I); -               Put ("{n"); -               Put_Trim (Net'Image (Drv)); -               Put ('w'); -               Put_Trim (Width'Image (Get_Width (Drv))); -               Put ('}'); +               Put_Net_Width (Drv);                 Disp_Driver (Drv);              end loop; | 
