diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-07-23 05:27:38 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-07-23 05:27:38 +0200 |
commit | 3d683addbbf4bd7a96e202a9949b4820590d6134 (patch) | |
tree | fb79d9861794b89961fca95d475aaa2e132b6039 /src/ghdldrv | |
parent | 654af3d66369926159fb763cfaadf7ba8bc13d44 (diff) | |
download | ghdl-3d683addbbf4bd7a96e202a9949b4820590d6134.tar.gz ghdl-3d683addbbf4bd7a96e202a9949b4820590d6134.tar.bz2 ghdl-3d683addbbf4bd7a96e202a9949b4820590d6134.zip |
synth: use original entity to display netlist.
Diffstat (limited to 'src/ghdldrv')
-rw-r--r-- | src/ghdldrv/ghdlsynth.adb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/ghdldrv/ghdlsynth.adb b/src/ghdldrv/ghdlsynth.adb index d25d649e8..d7f6bb848 100644 --- a/src/ghdldrv/ghdlsynth.adb +++ b/src/ghdldrv/ghdlsynth.adb @@ -33,11 +33,13 @@ with Vhdl.Configuration; with Vhdl.Annotations; with Vhdl.Utils; -with Synthesis; with Netlists; use Netlists; with Netlists.Dump; with Netlists.Disp_Vhdl; +with Synthesis; +with Synth.Disp_Vhdl; + package body Ghdlsynth is type Out_Format is (Format_Raw, Format_Vhdl); @@ -202,6 +204,7 @@ package body Ghdlsynth is is Res : Module; Config : Iir; + Ent : Iir; begin Config := Ghdl_Synth_Configure (Args); @@ -219,7 +222,12 @@ package body Ghdlsynth is Netlists.Dump.Flag_Disp_Inline := Cmd.Disp_Inline; Netlists.Dump.Disp_Module (Res); when Format_Vhdl => - Netlists.Disp_Vhdl.Disp_Vhdl (Res); + if True then + Ent := Vhdl.Utils.Get_Entity_From_Configuration (Config); + Synth.Disp_Vhdl.Disp_Vhdl_Wrapper (Ent, Res); + else + Netlists.Disp_Vhdl.Disp_Vhdl (Res); + end if; end case; end Perform_Action; |