From 8be1c7f59f6f824ab3a90f9fe3767984c50c45b6 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 10 Oct 2019 07:34:03 +0200 Subject: vhdl: recognize conv_unsigned from ieee.std_logic_arith. --- python/libghdl/thin/std_names.py | 343 +++++++++++++++++++------------------- python/libghdl/thin/vhdl/nodes.py | 4 + 2 files changed, 176 insertions(+), 171 deletions(-) (limited to 'python') diff --git a/python/libghdl/thin/std_names.py b/python/libghdl/thin/std_names.py index 5ff5879d9..c2ddef117 100644 --- a/python/libghdl/thin/std_names.py +++ b/python/libghdl/thin/std_names.py @@ -595,174 +595,175 @@ class Name: Rotate_Left = 809 Rotate_Right = 810 To_Bitvector = 811 - Math_Real = 812 - Ceil = 813 - Log2 = 814 - Last_Ieee = 814 - First_Directive = 815 - Define = 815 - Endif = 816 - Ifdef = 817 - Ifndef = 818 - Include = 819 - Timescale = 820 - Undef = 821 - Protect = 822 - Begin_Protected = 823 - End_Protected = 824 - Key_Block = 825 - Data_Block = 826 - Line = 827 - Celldefine = 828 - Endcelldefine = 829 - Default_Nettype = 830 - Resetall = 831 - Last_Directive = 831 - First_Systask = 832 - Bits = 832 - D_Root = 833 - D_Unit = 834 - Last_Systask = 834 - First_SV_Method = 835 - Size = 835 - Insert = 836 - Delete = 837 - Pop_Front = 838 - Pop_Back = 839 - Push_Front = 840 - Push_Back = 841 - Name = 842 - Len = 843 - Substr = 844 - Exists = 845 - Atoi = 846 - Itoa = 847 - Find = 848 - Find_Index = 849 - Find_First = 850 - Find_First_Index = 851 - Find_Last = 852 - Find_Last_Index = 853 - Num = 854 - Randomize = 855 - Pre_Randomize = 856 - Post_Randomize = 857 - Srandom = 858 - Get_Randstate = 859 - Set_Randstate = 860 - Seed = 861 - State = 862 - Last_SV_Method = 862 - First_BSV = 863 - uAction = 863 - uActionValue = 864 - BVI = 865 - uC = 866 - uCF = 867 - uE = 868 - uSB = 869 - uSBR = 870 - Action = 871 - Endaction = 872 - Actionvalue = 873 - Endactionvalue = 874 - Ancestor = 875 - Clocked_By = 876 - Default_Clock = 877 - Default_Reset = 878 - Dependencies = 879 - Deriving = 880 - Determines = 881 - Enable = 882 - Ifc_Inout = 883 - Input_Clock = 884 - Input_Reset = 885 - Instance = 886 - Endinstance = 887 - Let = 888 - Match = 889 - Method = 890 - Endmethod = 891 - Numeric = 892 - Output_Clock = 893 - Output_Reset = 894 - Par = 895 - Endpar = 896 - Path = 897 - Provisos = 898 - Ready = 899 - Reset_By = 900 - Rule = 901 - Endrule = 902 - Rules = 903 - Endrules = 904 - Same_Family = 905 - Schedule = 906 - Seq = 907 - Endseq = 908 - Typeclass = 909 - Endtypeclass = 910 - Valueof = 911 - uValueof = 912 - Last_BSV = 912 - First_Comment = 913 - Psl = 913 - Pragma = 914 - Last_Comment = 914 - First_PSL = 915 - A = 915 - Af = 916 - Ag = 917 - Ax = 918 - Abort = 919 - Assume_Guarantee = 920 - Before = 921 - Clock = 922 - E = 923 - Ef = 924 - Eg = 925 - Ex = 926 - Endpoint = 927 - Eventually = 928 - Fairness = 929 - Fell = 930 - Forall = 931 - G = 932 - Inf = 933 - Inherit = 934 - Never = 935 - Next_A = 936 - Next_E = 937 - Next_Event = 938 - Next_Event_A = 939 - Next_Event_E = 940 - Prev = 941 - Rose = 942 - Strong = 943 - W = 944 - Whilenot = 945 - Within = 946 - X = 947 - Last_PSL = 947 - First_Edif = 948 - Celltype = 958 - View = 959 - Viewtype = 960 - Direction = 961 - Contents = 962 - Net = 963 - Viewref = 964 - Cellref = 965 - Libraryref = 966 - Portinstance = 967 - Joined = 968 - Portref = 969 - Instanceref = 970 - Design = 971 - Designator = 972 - Owner = 973 - Member = 974 - Number = 975 - Rename = 976 - Userdata = 977 - Last_Edif = 977 + Conv_Unsigned = 812 + Math_Real = 813 + Ceil = 814 + Log2 = 815 + Last_Ieee = 815 + First_Directive = 816 + Define = 816 + Endif = 817 + Ifdef = 818 + Ifndef = 819 + Include = 820 + Timescale = 821 + Undef = 822 + Protect = 823 + Begin_Protected = 824 + End_Protected = 825 + Key_Block = 826 + Data_Block = 827 + Line = 828 + Celldefine = 829 + Endcelldefine = 830 + Default_Nettype = 831 + Resetall = 832 + Last_Directive = 832 + First_Systask = 833 + Bits = 833 + D_Root = 834 + D_Unit = 835 + Last_Systask = 835 + First_SV_Method = 836 + Size = 836 + Insert = 837 + Delete = 838 + Pop_Front = 839 + Pop_Back = 840 + Push_Front = 841 + Push_Back = 842 + Name = 843 + Len = 844 + Substr = 845 + Exists = 846 + Atoi = 847 + Itoa = 848 + Find = 849 + Find_Index = 850 + Find_First = 851 + Find_First_Index = 852 + Find_Last = 853 + Find_Last_Index = 854 + Num = 855 + Randomize = 856 + Pre_Randomize = 857 + Post_Randomize = 858 + Srandom = 859 + Get_Randstate = 860 + Set_Randstate = 861 + Seed = 862 + State = 863 + Last_SV_Method = 863 + First_BSV = 864 + uAction = 864 + uActionValue = 865 + BVI = 866 + uC = 867 + uCF = 868 + uE = 869 + uSB = 870 + uSBR = 871 + Action = 872 + Endaction = 873 + Actionvalue = 874 + Endactionvalue = 875 + Ancestor = 876 + Clocked_By = 877 + Default_Clock = 878 + Default_Reset = 879 + Dependencies = 880 + Deriving = 881 + Determines = 882 + Enable = 883 + Ifc_Inout = 884 + Input_Clock = 885 + Input_Reset = 886 + Instance = 887 + Endinstance = 888 + Let = 889 + Match = 890 + Method = 891 + Endmethod = 892 + Numeric = 893 + Output_Clock = 894 + Output_Reset = 895 + Par = 896 + Endpar = 897 + Path = 898 + Provisos = 899 + Ready = 900 + Reset_By = 901 + Rule = 902 + Endrule = 903 + Rules = 904 + Endrules = 905 + Same_Family = 906 + Schedule = 907 + Seq = 908 + Endseq = 909 + Typeclass = 910 + Endtypeclass = 911 + Valueof = 912 + uValueof = 913 + Last_BSV = 913 + First_Comment = 914 + Psl = 914 + Pragma = 915 + Last_Comment = 915 + First_PSL = 916 + A = 916 + Af = 917 + Ag = 918 + Ax = 919 + Abort = 920 + Assume_Guarantee = 921 + Before = 922 + Clock = 923 + E = 924 + Ef = 925 + Eg = 926 + Ex = 927 + Endpoint = 928 + Eventually = 929 + Fairness = 930 + Fell = 931 + Forall = 932 + G = 933 + Inf = 934 + Inherit = 935 + Never = 936 + Next_A = 937 + Next_E = 938 + Next_Event = 939 + Next_Event_A = 940 + Next_Event_E = 941 + Prev = 942 + Rose = 943 + Strong = 944 + W = 945 + Whilenot = 946 + Within = 947 + X = 948 + Last_PSL = 948 + First_Edif = 949 + Celltype = 959 + View = 960 + Viewtype = 961 + Direction = 962 + Contents = 963 + Net = 964 + Viewref = 965 + Cellref = 966 + Libraryref = 967 + Portinstance = 968 + Joined = 969 + Portref = 970 + Instanceref = 971 + Design = 972 + Designator = 973 + Owner = 974 + Member = 975 + Number = 976 + Rename = 977 + Userdata = 978 + Last_Edif = 978 diff --git a/python/libghdl/thin/vhdl/nodes.py b/python/libghdl/thin/vhdl/nodes.py index 3d3323bc6..08feba5fc 100644 --- a/python/libghdl/thin/vhdl/nodes.py +++ b/python/libghdl/thin/vhdl/nodes.py @@ -1194,6 +1194,10 @@ class Iir_Predefined: Ieee_Std_Logic_Unsigned_Ne_Slv_Slv = 315 Ieee_Std_Logic_Unsigned_Ne_Slv_Int = 316 Ieee_Std_Logic_Unsigned_Ne_Int_Slv = 317 + Ieee_Std_Logic_Arith_Conv_Unsigned_Int = 318 + Ieee_Std_Logic_Arith_Conv_Unsigned_Uns = 319 + Ieee_Std_Logic_Arith_Conv_Unsigned_Sgn = 320 + Ieee_Std_Logic_Arith_Conv_Unsigned_Log = 321 Get_Kind = libghdl.vhdl__nodes__get_kind Get_Location = libghdl.vhdl__nodes__get_location -- cgit v1.2.3