aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-04-11 15:35:20 +0200
committerTristan Gingold <tgingold@free.fr>2020-04-11 15:35:20 +0200
commitaecf3b2208358bb60ab27c17fadcdedf137be2c8 (patch)
treeec215e27b74280fd643d5f9ea3950c54a602b758 /src/vhdl
parentf6b61769014221f190b68c3bae4acac1441f79b5 (diff)
downloadghdl-aecf3b2208358bb60ab27c17fadcdedf137be2c8.tar.gz
ghdl-aecf3b2208358bb60ab27c17fadcdedf137be2c8.tar.bz2
ghdl-aecf3b2208358bb60ab27c17fadcdedf137be2c8.zip
vhdl: recognize math_real.floor. For #1210
Diffstat (limited to 'src/vhdl')
-rw-r--r--src/vhdl/vhdl-ieee-math_real.adb2
-rw-r--r--src/vhdl/vhdl-nodes.ads1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-ieee-math_real.adb b/src/vhdl/vhdl-ieee-math_real.adb
index d4f83e62c..bb3a50ab5 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_Ceil =>
Predef := Iir_Predefined_Ieee_Math_Real_Ceil;
+ when Name_Floor =>
+ Predef := Iir_Predefined_Ieee_Math_Real_Floor;
when Name_Round =>
Predef := Iir_Predefined_Ieee_Math_Real_Round;
when Name_Log2 =>
diff --git a/src/vhdl/vhdl-nodes.ads b/src/vhdl/vhdl-nodes.ads
index 393780a3f..8b9345d00 100644
--- a/src/vhdl/vhdl-nodes.ads
+++ b/src/vhdl/vhdl-nodes.ads
@@ -5705,6 +5705,7 @@ package Vhdl.Nodes is
-- Math_Real
Iir_Predefined_Ieee_Math_Real_Ceil,
+ Iir_Predefined_Ieee_Math_Real_Floor,
Iir_Predefined_Ieee_Math_Real_Round,
Iir_Predefined_Ieee_Math_Real_Log2,
Iir_Predefined_Ieee_Math_Real_Sin,