diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-07-22 03:30:41 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-07-22 07:32:57 +0200 |
commit | 13f04d9fbf5ca617b9f0cef692556c5639b0033e (patch) | |
tree | 7df329be04ee08a026777f359ef2bbc9acd7e373 | |
parent | 2cc224085058ddc27fac18092dc06bedfb1a6baf (diff) | |
download | ghdl-13f04d9fbf5ca617b9f0cef692556c5639b0033e.tar.gz ghdl-13f04d9fbf5ca617b9f0cef692556c5639b0033e.tar.bz2 ghdl-13f04d9fbf5ca617b9f0cef692556c5639b0033e.zip |
synth: remove bounds (unused) for ports.
-rw-r--r-- | src/synth/netlists-builders.adb | 6 | ||||
-rw-r--r-- | src/synth/netlists.adb | 4 | ||||
-rw-r--r-- | src/synth/netlists.ads | 4 | ||||
-rw-r--r-- | src/synth/synth-insts.adb | 3 |
4 files changed, 4 insertions, 13 deletions
diff --git a/src/synth/netlists-builders.adb b/src/synth/netlists-builders.adb index 5457a8514..7274fc0a6 100644 --- a/src/synth/netlists-builders.adb +++ b/src/synth/netlists-builders.adb @@ -27,16 +27,14 @@ package body Netlists.Builders is begin return (Name => New_Sname_Artificial (Get_Identifier (Id)), W => W, - Dir => Port_In, - Left | Right => 0); + Dir => Port_In); end Create_Input; function Create_Output (Id : String; W : Width := 0) return Port_Desc is begin return (Name => New_Sname_Artificial (Get_Identifier (Id)), W => W, - Dir => Port_Out, - Left | Right => 0); + Dir => Port_Out); end Create_Output; procedure Create_Dyadic_Module (Design : Module; diff --git a/src/synth/netlists.adb b/src/synth/netlists.adb index f6180f715..edc66dbf8 100644 --- a/src/synth/netlists.adb +++ b/src/synth/netlists.adb @@ -831,9 +831,7 @@ begin Port_Desc_Table.Append ((Name => No_Sname, W => 0, - Dir => Port_In, - Left => 0, - Right => 0)); + Dir => Port_In)); pragma Assert (Port_Desc_Table.Last = No_Port_Desc_Idx); Param_Desc_Table.Append ((Name => No_Sname, diff --git a/src/synth/netlists.ads b/src/synth/netlists.ads index 6cf021ec1..56393ac28 100644 --- a/src/synth/netlists.ads +++ b/src/synth/netlists.ads @@ -151,10 +151,6 @@ package Netlists is -- Direction. Dir : Port_Kind; - - -- For a bus: left and right bounds of the bus, ie [L:R]. - Left : Int32; - Right : Int32; end record; type Port_Desc_Array is array (Port_Idx range <>) of Port_Desc; diff --git a/src/synth/synth-insts.adb b/src/synth/synth-insts.adb index 0adb9f28b..ec63d2d1d 100644 --- a/src/synth/synth-insts.adb +++ b/src/synth/synth-insts.adb @@ -78,8 +78,7 @@ package body Synth.Insts is Idx := Idx + 1; Ports (Idx) := (Name => Name, W => Wd, - Dir => Dir, - Left | Right => 0); + Dir => Dir); when others => raise Internal_Error; -- TODO end case; |