aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-environment.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-08-28 12:19:39 +0200
committerTristan Gingold <tgingold@free.fr>2021-08-29 11:50:17 +0200
commit886fdeb52c4d37540e854dc2d57f8f95de09d4dc (patch)
tree2bed706cf4eedcba44bd7a3a35e6b3b9d723f82e /src/synth/synth-environment.adb
parent132fde15a4d4bffd31bff341dfeaf11317c82130 (diff)
downloadghdl-886fdeb52c4d37540e854dc2d57f8f95de09d4dc.tar.gz
ghdl-886fdeb52c4d37540e854dc2d57f8f95de09d4dc.tar.bz2
ghdl-886fdeb52c4d37540e854dc2d57f8f95de09d4dc.zip
synth: improve result of is_positive
Diffstat (limited to 'src/synth/synth-environment.adb')
-rw-r--r--src/synth/synth-environment.adb5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/synth/synth-environment.adb b/src/synth/synth-environment.adb
index 873e8d1e8..7b5eb5c50 100644
--- a/src/synth/synth-environment.adb
+++ b/src/synth/synth-environment.adb
@@ -1972,15 +1972,10 @@ package body Synth.Environment is
end if;
end Phi_Assign_Static;
- -- Return the net driving WID when it is known to be possibly constant.
- -- Return No_Net is not constant.
function Is_Static_Wire (Wid : Wire_Id) return Boolean
is
Wire_Rec : Wire_Id_Record renames Wire_Id_Table.Table (Wid);
begin
- if Wire_Rec.Kind /= Wire_Variable then
- return False;
- end if;
if Wire_Rec.Cur_Assign = No_Seq_Assign then
return False;
end if;