diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-09-02 20:39:56 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-09-03 06:38:59 +0200 |
commit | f8eab0dd6bffcb1a035b6a600bebe94991ab9629 (patch) | |
tree | b7a258afeda8454abc735579ad900111169e1af9 /src/ghdldrv | |
parent | dac322e43b97e0d3bfd9cdf0e98f1a7c458501cb (diff) | |
download | ghdl-f8eab0dd6bffcb1a035b6a600bebe94991ab9629.tar.gz ghdl-f8eab0dd6bffcb1a035b6a600bebe94991ab9629.tar.bz2 ghdl-f8eab0dd6bffcb1a035b6a600bebe94991ab9629.zip |
synth-disp_vhdl: handle record for input ports.
Diffstat (limited to 'src/ghdldrv')
-rw-r--r-- | src/ghdldrv/ghdlsynth.adb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ghdldrv/ghdlsynth.adb b/src/ghdldrv/ghdlsynth.adb index 8f423f5d9..0f566ad6b 100644 --- a/src/ghdldrv/ghdlsynth.adb +++ b/src/ghdldrv/ghdlsynth.adb @@ -44,6 +44,7 @@ with Netlists.Disp_Vhdl; with Synthesis; with Synth.Disp_Vhdl; +with Synth.Context; use Synth.Context; package body Ghdlsynth is type Out_Format is (Format_Raw, Format_Vhdl); @@ -210,6 +211,7 @@ package body Ghdlsynth is Cmd : Command_Acc; First_Arg : Natural; Config : Node; + Inst : Synth_Instance_Acc; begin -- Create arguments list. for I in 0 .. Argc - 1 loop @@ -229,7 +231,7 @@ package body Ghdlsynth is return No_Module; end if; - Res := Synthesis.Synth_Design (Config); + Synthesis.Synth_Design (Config, Res, Inst); return Res; exception @@ -244,6 +246,7 @@ package body Ghdlsynth is Args : Argument_List) is Res : Module; + Inst : Synth_Instance_Acc; Config : Iir; Ent : Iir; begin @@ -253,7 +256,7 @@ package body Ghdlsynth is raise Errorout.Compilation_Error; end if; - Res := Synthesis.Synth_Design (Config); + Synthesis.Synth_Design (Config, Res, Inst); if Res = No_Module then raise Errorout.Compilation_Error; end if; @@ -265,7 +268,7 @@ package body Ghdlsynth is when Format_Vhdl => if Boolean'(True) then Ent := Vhdl.Utils.Get_Entity_From_Configuration (Config); - Synth.Disp_Vhdl.Disp_Vhdl_Wrapper (Ent, Res); + Synth.Disp_Vhdl.Disp_Vhdl_Wrapper (Ent, Res, Inst); else Netlists.Disp_Vhdl.Disp_Vhdl (Res); end if; |