aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-06-28 18:30:22 +0200
committerTristan Gingold <tgingold@free.fr>2019-06-28 18:30:22 +0200
commit12e5e54325111f11d7bb6283eed7fd4a3760a899 (patch)
tree1a392cb18edb4ec1e1a3e641cd434eb152169388
parent1048f7b66fc74c09e7fc2afc2df1bac6516c9912 (diff)
downloadghdl-12e5e54325111f11d7bb6283eed7fd4a3760a899.tar.gz
ghdl-12e5e54325111f11d7bb6283eed7fd4a3760a899.tar.bz2
ghdl-12e5e54325111f11d7bb6283eed7fd4a3760a899.zip
std_names: add names for math_real.
-rw-r--r--src/std_names.adb3
-rw-r--r--src/std_names.ads5
2 files changed, 7 insertions, 1 deletions
diff --git a/src/std_names.adb b/src/std_names.adb
index f19556bc1..3a5cb9c9f 100644
--- a/src/std_names.adb
+++ b/src/std_names.adb
@@ -625,6 +625,9 @@ package body Std_Names is
Def ("to_integer", Name_To_Integer);
Def ("to_unsigned", Name_To_Unsigned);
Def ("to_signed", Name_To_Signed);
+ Def ("math_real", Name_Math_Real);
+ Def ("ceil", Name_Ceil);
+ Def ("log2", Name_Log2);
-- Verilog directives
Def ("define", Name_Define);
diff --git a/src/std_names.ads b/src/std_names.ads
index de5af8131..44a6b8495 100644
--- a/src/std_names.ads
+++ b/src/std_names.ads
@@ -708,7 +708,10 @@ package Std_Names is
Name_To_Integer : constant Name_Id := Name_First_Ieee + 019;
Name_To_Unsigned : constant Name_Id := Name_First_Ieee + 020;
Name_To_Signed : constant Name_Id := Name_First_Ieee + 021;
- Name_Last_Ieee : constant Name_Id := Name_To_Signed;
+ Name_Math_Real : constant Name_Id := Name_First_Ieee + 022;
+ Name_Ceil : constant Name_Id := Name_First_Ieee + 023;
+ Name_Log2 : constant Name_Id := Name_First_Ieee + 024;
+ Name_Last_Ieee : constant Name_Id := Name_Log2;
-- Verilog Directives.
Name_First_Directive : constant Name_Id := Name_Last_Ieee + 1;