aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-04-03 11:43:42 +0200
committerTristan Gingold <tgingold@free.fr>2020-04-06 20:10:54 +0200
commit77d71c72f10cb8a1779dfddcf2a5053c728300ec (patch)
treea6adcc528dc1845e16cf7b4c992a5384a5cf6f1a /python
parent6ccedcb1f76081df973776f0e4e6909e21de8760 (diff)
downloadghdl-77d71c72f10cb8a1779dfddcf2a5053c728300ec.tar.gz
ghdl-77d71c72f10cb8a1779dfddcf2a5053c728300ec.tar.bz2
ghdl-77d71c72f10cb8a1779dfddcf2a5053c728300ec.zip
vhdl: add scalar_size. Size of scalar types is computed during analysis.
Diffstat (limited to 'python')
-rw-r--r--python/libghdl/thin/vhdl/nodes.py4
-rw-r--r--python/libghdl/thin/vhdl/nodes_meta.py201
2 files changed, 108 insertions, 97 deletions
diff --git a/python/libghdl/thin/vhdl/nodes.py b/python/libghdl/thin/vhdl/nodes.py
index 9a2a05f60..17c70ddea 100644
--- a/python/libghdl/thin/vhdl/nodes.py
+++ b/python/libghdl/thin/vhdl/nodes.py
@@ -2545,6 +2545,10 @@ Get_Expr_Staticness = libghdl.vhdl__nodes__get_expr_staticness
Set_Expr_Staticness = libghdl.vhdl__nodes__set_expr_staticness
+Get_Scalar_Size = libghdl.vhdl__nodes__get_scalar_size
+
+Set_Scalar_Size = libghdl.vhdl__nodes__set_scalar_size
+
Get_Error_Origin = libghdl.vhdl__nodes__get_error_origin
Set_Error_Origin = libghdl.vhdl__nodes__set_error_origin
diff --git a/python/libghdl/thin/vhdl/nodes_meta.py b/python/libghdl/thin/vhdl/nodes_meta.py
index d6387d3ca..e8091798d 100644
--- a/python/libghdl/thin/vhdl/nodes_meta.py
+++ b/python/libghdl/thin/vhdl/nodes_meta.py
@@ -40,12 +40,13 @@ class types:
Number_Base_Type = 22
PSL_NFA = 23
PSL_Node = 24
- Source_File_Entry = 25
- Source_Ptr = 26
- String8_Id = 27
- Time_Stamp_Id = 28
- Token_Type = 29
- Tri_State_Type = 30
+ Scalar_Size = 25
+ Source_File_Entry = 26
+ Source_Ptr = 27
+ String8_Id = 28
+ Time_Stamp_Id = 29
+ Token_Type = 30
+ Tri_State_Type = 31
class Attr:
@@ -329,97 +330,98 @@ class fields:
Alias_Declaration = 265
Referenced_Name = 266
Expr_Staticness = 267
- Error_Origin = 268
- Operand = 269
- Left = 270
- Right = 271
- Unit_Name = 272
- Name = 273
- Group_Template_Name = 274
- Name_Staticness = 275
- Prefix = 276
- Signature_Prefix = 277
- External_Pathname = 278
- Pathname_Suffix = 279
- Pathname_Expression = 280
- In_Formal_Flag = 281
- Slice_Subtype = 282
- Suffix = 283
- Index_Subtype = 284
- Parameter = 285
- Parameter_2 = 286
- Parameter_3 = 287
- Parameter_4 = 288
- Attr_Chain = 289
- Signal_Attribute_Declaration = 290
- Actual_Type = 291
- Actual_Type_Definition = 292
- Association_Chain = 293
- Individual_Association_Chain = 294
- Subprogram_Association_Chain = 295
- Aggregate_Info = 296
- Sub_Aggregate_Info = 297
- Aggr_Dynamic_Flag = 298
- Aggr_Min_Length = 299
- Aggr_Low_Limit = 300
- Aggr_High_Limit = 301
- Aggr_Others_Flag = 302
- Aggr_Named_Flag = 303
- Aggregate_Expand_Flag = 304
- Association_Choices_Chain = 305
- Case_Statement_Alternative_Chain = 306
- Choice_Staticness = 307
- Procedure_Call = 308
- Implementation = 309
- Parameter_Association_Chain = 310
- Method_Object = 311
- Subtype_Type_Mark = 312
- Subnature_Nature_Mark = 313
- Type_Conversion_Subtype = 314
- Type_Mark = 315
- File_Type_Mark = 316
- Return_Type_Mark = 317
- Has_Disconnect_Flag = 318
- Has_Active_Flag = 319
- Is_Within_Flag = 320
- Type_Marks_List = 321
- Implicit_Alias_Flag = 322
- Alias_Signature = 323
- Attribute_Signature = 324
- Overload_List = 325
- Simple_Name_Identifier = 326
- Simple_Name_Subtype = 327
- Protected_Type_Body = 328
- Protected_Type_Declaration = 329
- Use_Flag = 330
- End_Has_Reserved_Id = 331
- End_Has_Identifier = 332
- End_Has_Postponed = 333
- Has_Label = 334
- Has_Begin = 335
- Has_End = 336
- Has_Is = 337
- Has_Pure = 338
- Has_Body = 339
- Has_Parameter = 340
- Has_Component = 341
- Has_Identifier_List = 342
- Has_Mode = 343
- Has_Class = 344
- Has_Delay_Mechanism = 345
- Suspend_Flag = 346
- Is_Ref = 347
- Is_Forward_Ref = 348
- Psl_Property = 349
- Psl_Sequence = 350
- Psl_Declaration = 351
- Psl_Expression = 352
- Psl_Boolean = 353
- PSL_Clock = 354
- PSL_NFA = 355
- PSL_Nbr_States = 356
- PSL_Clock_Sensitivity = 357
- PSL_EOS_Flag = 358
+ Scalar_Size = 268
+ Error_Origin = 269
+ Operand = 270
+ Left = 271
+ Right = 272
+ Unit_Name = 273
+ Name = 274
+ Group_Template_Name = 275
+ Name_Staticness = 276
+ Prefix = 277
+ Signature_Prefix = 278
+ External_Pathname = 279
+ Pathname_Suffix = 280
+ Pathname_Expression = 281
+ In_Formal_Flag = 282
+ Slice_Subtype = 283
+ Suffix = 284
+ Index_Subtype = 285
+ Parameter = 286
+ Parameter_2 = 287
+ Parameter_3 = 288
+ Parameter_4 = 289
+ Attr_Chain = 290
+ Signal_Attribute_Declaration = 291
+ Actual_Type = 292
+ Actual_Type_Definition = 293
+ Association_Chain = 294
+ Individual_Association_Chain = 295
+ Subprogram_Association_Chain = 296
+ Aggregate_Info = 297
+ Sub_Aggregate_Info = 298
+ Aggr_Dynamic_Flag = 299
+ Aggr_Min_Length = 300
+ Aggr_Low_Limit = 301
+ Aggr_High_Limit = 302
+ Aggr_Others_Flag = 303
+ Aggr_Named_Flag = 304
+ Aggregate_Expand_Flag = 305
+ Association_Choices_Chain = 306
+ Case_Statement_Alternative_Chain = 307
+ Choice_Staticness = 308
+ Procedure_Call = 309
+ Implementation = 310
+ Parameter_Association_Chain = 311
+ Method_Object = 312
+ Subtype_Type_Mark = 313
+ Subnature_Nature_Mark = 314
+ Type_Conversion_Subtype = 315
+ Type_Mark = 316
+ File_Type_Mark = 317
+ Return_Type_Mark = 318
+ Has_Disconnect_Flag = 319
+ Has_Active_Flag = 320
+ Is_Within_Flag = 321
+ Type_Marks_List = 322
+ Implicit_Alias_Flag = 323
+ Alias_Signature = 324
+ Attribute_Signature = 325
+ Overload_List = 326
+ Simple_Name_Identifier = 327
+ Simple_Name_Subtype = 328
+ Protected_Type_Body = 329
+ Protected_Type_Declaration = 330
+ Use_Flag = 331
+ End_Has_Reserved_Id = 332
+ End_Has_Identifier = 333
+ End_Has_Postponed = 334
+ Has_Label = 335
+ Has_Begin = 336
+ Has_End = 337
+ Has_Is = 338
+ Has_Pure = 339
+ Has_Body = 340
+ Has_Parameter = 341
+ Has_Component = 342
+ Has_Identifier_List = 343
+ Has_Mode = 344
+ Has_Class = 345
+ Has_Delay_Mechanism = 346
+ Suspend_Flag = 347
+ Is_Ref = 348
+ Is_Forward_Ref = 349
+ Psl_Property = 350
+ Psl_Sequence = 351
+ Psl_Declaration = 352
+ Psl_Expression = 353
+ Psl_Boolean = 354
+ PSL_Clock = 355
+ PSL_NFA = 356
+ PSL_Nbr_States = 357
+ PSL_Clock_Sensitivity = 358
+ PSL_EOS_Flag = 359
Get_Boolean = libghdl.vhdl__nodes_meta__get_boolean
@@ -472,6 +474,8 @@ Get_PSL_NFA = libghdl.vhdl__nodes_meta__get_psl_nfa
Get_PSL_Node = libghdl.vhdl__nodes_meta__get_psl_node
+Get_Scalar_Size = libghdl.vhdl__nodes_meta__get_scalar_size
+
Get_Source_File_Entry = libghdl.vhdl__nodes_meta__get_source_file_entry
Get_Source_Ptr = libghdl.vhdl__nodes_meta__get_source_ptr
@@ -1289,6 +1293,9 @@ Has_Referenced_Name =\
Has_Expr_Staticness =\
libghdl.vhdl__nodes_meta__has_expr_staticness
+Has_Scalar_Size =\
+ libghdl.vhdl__nodes_meta__has_scalar_size
+
Has_Error_Origin =\
libghdl.vhdl__nodes_meta__has_error_origin