aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-01-10 19:19:38 +0100
committerTristan Gingold <tgingold@free.fr>2020-01-10 19:19:38 +0100
commite17215ff6b3ca865aa09111a15c551e5f0cf1fac (patch)
tree63d3cdac91540f36737f8757343c2e0d25fe10fa /src/vhdl
parentadaacc8794fbbdb62ba90abe1ba6a53021c84c48 (diff)
downloadghdl-e17215ff6b3ca865aa09111a15c551e5f0cf1fac.tar.gz
ghdl-e17215ff6b3ca865aa09111a15c551e5f0cf1fac.tar.bz2
ghdl-e17215ff6b3ca865aa09111a15c551e5f0cf1fac.zip
synth: handle ieee.math_real.round Fix #1075
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 1ac5a9b10..d4f83e62c 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_Round =>
+ Predef := Iir_Predefined_Ieee_Math_Real_Round;
when Name_Log2 =>
Predef := Iir_Predefined_Ieee_Math_Real_Log2;
when Name_Sin =>
diff --git a/src/vhdl/vhdl-nodes.ads b/src/vhdl/vhdl-nodes.ads
index 4ed10957d..15e21d738 100644
--- a/src/vhdl/vhdl-nodes.ads
+++ b/src/vhdl/vhdl-nodes.ads
@@ -5593,6 +5593,7 @@ package Vhdl.Nodes is
-- Math_Real
Iir_Predefined_Ieee_Math_Real_Ceil,
+ Iir_Predefined_Ieee_Math_Real_Round,
Iir_Predefined_Ieee_Math_Real_Log2,
Iir_Predefined_Ieee_Math_Real_Sin,
Iir_Predefined_Ieee_Math_Real_Cos,