diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-11-17 21:43:10 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-11-17 21:43:10 +0100 |
commit | 29b56efcbdaea0002b4f71e229ee44c1ebe75a08 (patch) | |
tree | 5d9792f5a8a3532f695a83f20b3e4cf54fc71b5e /src/synth/netlists-disp_vhdl.adb | |
parent | d6f1c6a47fb8df07fca517fb68078c324c761a97 (diff) | |
download | ghdl-29b56efcbdaea0002b4f71e229ee44c1ebe75a08.tar.gz ghdl-29b56efcbdaea0002b4f71e229ee44c1ebe75a08.tar.bz2 ghdl-29b56efcbdaea0002b4f71e229ee44c1ebe75a08.zip |
synth: put direction into port desc
Diffstat (limited to 'src/synth/netlists-disp_vhdl.adb')
-rw-r--r-- | src/synth/netlists-disp_vhdl.adb | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/synth/netlists-disp_vhdl.adb b/src/synth/netlists-disp_vhdl.adb index a9db40b11..580eec452 100644 --- a/src/synth/netlists-disp_vhdl.adb +++ b/src/synth/netlists-disp_vhdl.adb @@ -1521,8 +1521,7 @@ package body Netlists.Disp_Vhdl is New_Line; end Disp_Architecture; - procedure Disp_Entity_Port - (Desc : Port_Desc; Dir : Port_Kind; First : in out Boolean) is + procedure Disp_Entity_Port (Desc : Port_Desc; First : in out Boolean) is begin if First then Put_Line (" port ("); @@ -1533,7 +1532,7 @@ package body Netlists.Disp_Vhdl is Put (" "); Put_Name (Desc.Name); Put (" : "); - case Dir is + case Desc.Dir is when Port_In => Put ("in"); when Port_Out => @@ -1552,15 +1551,12 @@ package body Netlists.Disp_Vhdl is begin First := True; for I in 1 .. Get_Nbr_Inputs (M) loop - Disp_Entity_Port (Get_Input_Desc (M, I - 1), Port_In, First); + Desc := Get_Input_Desc (M, I - 1); + Disp_Entity_Port (Desc, First); end loop; for I in 1 .. Get_Nbr_Outputs (M) loop Desc := Get_Output_Desc (M, I - 1); - if Desc.Is_Inout then - Disp_Entity_Port (Desc, Port_Inout, First); - else - Disp_Entity_Port (Desc, Port_Out, First); - end if; + Disp_Entity_Port (Desc, First); end loop; if not First then Put_Line (");"); |