diff options
author | Tristan Gingold <tgingold@free.fr> | 2018-12-07 07:53:28 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2018-12-07 07:53:28 +0100 |
commit | 57bdc5b65bc84bb3a38466a5dda952c9f5a89ef7 (patch) | |
tree | 68619c706b5d46f1b0dbe278f3929e346078577a /src | |
parent | 702a75324371bf316fd3ef1563355f94bb8b9c06 (diff) | |
download | ghdl-57bdc5b65bc84bb3a38466a5dda952c9f5a89ef7.tar.gz ghdl-57bdc5b65bc84bb3a38466a5dda952c9f5a89ef7.tar.bz2 ghdl-57bdc5b65bc84bb3a38466a5dda952c9f5a89ef7.zip |
std_names: add new names.
Diffstat (limited to 'src')
-rw-r--r-- | src/std_names.adb | 27 | ||||
-rw-r--r-- | src/std_names.ads | 21 |
2 files changed, 40 insertions, 8 deletions
diff --git a/src/std_names.adb b/src/std_names.adb index 834d662e2..3f28b4c5a 100644 --- a/src/std_names.adb +++ b/src/std_names.adb @@ -300,6 +300,7 @@ package body Std_Names is Def ("typedef", Name_Typedef); Def ("union", Name_Union); Def ("unique", Name_Unique); + Def ("unique0", Name_Unique0); Def ("void", Name_Void); -- SystemVerilog 3.1 @@ -590,6 +591,7 @@ package body Std_Names is Def ("control_simulation", Name_Control_Simulation); Def ("step", Name_Step); Def ("index", Name_Index); + Def ("item", Name_Item); Def ("__FILE__", Name_Uu_File_Uu); Def ("__LINE__", Name_Uu_Line_Uu); @@ -634,6 +636,28 @@ package body Std_Names is Def ("$unit", Name_D_Unit); -- SV methods. + Def ("size", Name_Size); + Def ("insert", Name_Insert); + Def ("delete", Name_Delete); + Def ("pop_front", Name_Pop_Front); + Def ("pop_back", Name_Pop_Back); + Def ("push_front", Name_Push_Front); + Def ("push_back", Name_Push_Back); + Def ("name", Name_Name); + Def ("len", Name_Len); + Def ("substr", Name_Substr); + Def ("exists", Name_Exists); + Def ("atoi", Name_Atoi); + Def ("itoa", Name_Itoa); + Def ("find", Name_Find); + Def ("find_index", Name_Find_Index); + Def ("find_first", Name_Find_First); + Def ("find_first_index", Name_Find_First_Index); + Def ("find_last", Name_Find_Last); + Def ("find_last_index", Name_Find_Last_Index); + Def ("num", Name_Num); + + -- SV methods. Def ("size", Name_Size); Def ("insert", Name_Insert); Def ("delete", Name_Delete); @@ -642,9 +666,6 @@ package body Std_Names is Def ("push_front", Name_Push_Front); Def ("push_back", Name_Push_Back); Def ("name", Name_Name); - Def ("len", Name_Len); - Def ("substr", Name_Substr); - Def ("exists", Name_Exists); -- BSV keywords Def ("Action", Name_uAction); diff --git a/src/std_names.ads b/src/std_names.ads index ae0c0cfc3..21762632b 100644 --- a/src/std_names.ads +++ b/src/std_names.ads @@ -338,8 +338,9 @@ package Std_Names is Name_Typedef : constant Name_Id := Name_First_SV3_0 + 33; Name_Union : constant Name_Id := Name_First_SV3_0 + 34; Name_Unique : constant Name_Id := Name_First_SV3_0 + 35; - Name_Void : constant Name_Id := Name_First_SV3_0 + 36; - Name_Last_SV3_0 : constant Name_Id := Name_First_SV3_0 + 36; + Name_Unique0 : constant Name_Id := Name_First_SV3_0 + 36; + Name_Void : constant Name_Id := Name_First_SV3_0 + 37; + Name_Last_SV3_0 : constant Name_Id := Name_First_SV3_0 + 37; Name_First_SV3_1 : constant Name_Id := Name_Last_SV3_0 + 1; Name_Chandle : constant Name_Id := Name_First_SV3_1 + 0; @@ -670,8 +671,9 @@ package Std_Names is Name_Control_Simulation : constant Name_Id := Name_First_Misc + 030; Name_Step : constant Name_Id := Name_First_Misc + 031; Name_Index : constant Name_Id := Name_First_Misc + 032; - Name_Uu_File_Uu : constant Name_Id := Name_First_Misc + 033; - Name_Uu_Line_Uu : constant Name_Id := Name_First_Misc + 034; + Name_Item : constant Name_Id := Name_First_Misc + 033; + Name_Uu_File_Uu : constant Name_Id := Name_First_Misc + 034; + Name_Uu_Line_Uu : constant Name_Id := Name_First_Misc + 035; Name_Last_Misc : constant Name_Id := Name_Uu_Line_Uu; Name_First_Ieee : constant Name_Id := Name_Last_Misc + 1; @@ -733,7 +735,16 @@ package Std_Names is Name_Len : constant Name_Id := Name_First_SV_Method + 8; Name_Substr : constant Name_Id := Name_First_SV_Method + 9; Name_Exists : constant Name_Id := Name_First_SV_Method + 10; - Name_Last_SV_Method : constant Name_Id := Name_Exists; + Name_Atoi : constant Name_Id := Name_First_SV_Method + 11; + Name_Itoa : constant Name_Id := Name_First_SV_Method + 12; + Name_Find : constant Name_Id := Name_First_SV_Method + 13; + Name_Find_Index : constant Name_Id := Name_First_SV_Method + 14; + Name_Find_First : constant Name_Id := Name_First_SV_Method + 15; + Name_Find_First_Index : constant Name_Id := Name_First_SV_Method + 16; + Name_Find_Last : constant Name_Id := Name_First_SV_Method + 17; + Name_Find_Last_Index : constant Name_Id := Name_First_SV_Method + 18; + Name_Num : constant Name_Id := Name_First_SV_Method + 19; + Name_Last_SV_Method : constant Name_Id := Name_Num; -- BSV names Name_First_BSV : constant Name_Id := Name_Last_SV_Method + 1; |