diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-04-25 08:24:37 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-04-25 08:24:52 +0200 |
commit | 921cb0654f792406ffc64c530634d61290acd098 (patch) | |
tree | 5a00d71d9a8b12c04cbe830bd25516bc11b751d6 /src/ghdldrv | |
parent | a2677efdb3f0a455f1f783f710c7ea4903749c57 (diff) | |
download | ghdl-921cb0654f792406ffc64c530634d61290acd098.tar.gz ghdl-921cb0654f792406ffc64c530634d61290acd098.tar.bz2 ghdl-921cb0654f792406ffc64c530634d61290acd098.zip |
netlists: add a very simple dot dump.
Diffstat (limited to 'src/ghdldrv')
-rw-r--r-- | src/ghdldrv/ghdlsynth.adb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ghdldrv/ghdlsynth.adb b/src/ghdldrv/ghdlsynth.adb index ad0ea91c6..d7d1965fc 100644 --- a/src/ghdldrv/ghdlsynth.adb +++ b/src/ghdldrv/ghdlsynth.adb @@ -43,6 +43,7 @@ with Vhdl.Utils; with Netlists.Dump; with Netlists.Disp_Vhdl; +with Netlists.Disp_Dot; with Netlists.Errors; with Synthesis; @@ -52,7 +53,10 @@ with Synth.Flags; use Synth.Flags; package body Ghdlsynth is type Out_Format is - (Format_Default, Format_Raw, Format_Dump, Format_Vhdl, Format_None); + (Format_Default, + Format_Raw, Format_Dump, Format_Dot, + Format_Vhdl, + Format_None); type Name_Id_Array is array (Natural range <>) of Name_Id; @@ -147,6 +151,8 @@ package body Ghdlsynth is Cmd.Oformat := Format_Raw; elsif Option = "--out=dump" then Cmd.Oformat := Format_Dump; + elsif Option = "--out=dot" then + Cmd.Oformat := Format_Dot; elsif Option = "--out=none" then Cmd.Oformat := Format_None; elsif Option = "--out=vhdl" then @@ -340,6 +346,8 @@ package body Ghdlsynth is when Format_Dump => Netlists.Dump.Flag_Disp_Inline := Cmd.Disp_Inline; Netlists.Dump.Dump_Module (Res); + when Format_Dot => + Netlists.Disp_Dot.Disp_Dot_Top_Module (Res); when Format_Vhdl => if Boolean'(True) then Ent := Vhdl.Utils.Get_Entity_From_Configuration (Config); |