aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-08-14 09:47:16 +0200
committerTristan Gingold <tgingold@free.fr>2022-08-14 20:53:50 +0200
commit11a8554f828436d78e1a01c683219bef4d83db97 (patch)
tree0a4a1756ea42a17674c1f40fa30e1657e313d020 /src/vhdl
parentdb2d8b3e87763acc23d4e113c9e7e37b41b11625 (diff)
downloadghdl-11a8554f828436d78e1a01c683219bef4d83db97.tar.gz
ghdl-11a8554f828436d78e1a01c683219bef4d83db97.tar.bz2
ghdl-11a8554f828436d78e1a01c683219bef4d83db97.zip
vhdl: recognize log10 and sqrt from math_real. Fix #2176
Diffstat (limited to 'src/vhdl')
-rw-r--r--src/vhdl/vhdl-ieee-math_real.adb4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-ieee-math_real.adb b/src/vhdl/vhdl-ieee-math_real.adb
index d52b8ae85..1bee84826 100644
--- a/src/vhdl/vhdl-ieee-math_real.adb
+++ b/src/vhdl/vhdl-ieee-math_real.adb
@@ -42,6 +42,8 @@ package body Vhdl.Ieee.Math_Real is
case Get_Identifier (Decl) is
when Name_Sign =>
Def := Iir_Predefined_Ieee_Math_Real_Sign;
+ when Name_Sqrt =>
+ Def := Iir_Predefined_Ieee_Math_Real_Sqrt;
when Name_Mod =>
Def := Iir_Predefined_Ieee_Math_Real_Mod;
when Name_Ceil =>
@@ -52,6 +54,8 @@ package body Vhdl.Ieee.Math_Real is
Def := Iir_Predefined_Ieee_Math_Real_Round;
when Name_Log2 =>
Def := Iir_Predefined_Ieee_Math_Real_Log2;
+ when Name_Log10 =>
+ Def := Iir_Predefined_Ieee_Math_Real_Log10;
when Name_Sin =>
Def := Iir_Predefined_Ieee_Math_Real_Sin;
when Name_Cos =>