From f8eab0dd6bffcb1a035b6a600bebe94991ab9629 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 2 Sep 2019 20:39:56 +0200 Subject: synth-disp_vhdl: handle record for input ports. --- src/ghdldrv/ghdlsynth.adb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/ghdldrv/ghdlsynth.adb') 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; -- cgit v1.2.3