aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/libghdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-12-18 21:09:43 +0100
committerTristan Gingold <tgingold@free.fr>2022-12-18 21:09:43 +0100
commit0e76825a8170af3be3ee0f5a89c209262828d254 (patch)
treebd960ef3fbf1f0f81edc071652faa6b35ae791a8 /pyGHDL/libghdl
parentc0095f3f0c37a2db4d56dc289854252e2e6e67d4 (diff)
downloadghdl-0e76825a8170af3be3ee0f5a89c209262828d254.tar.gz
ghdl-0e76825a8170af3be3ee0f5a89c209262828d254.tar.bz2
ghdl-0e76825a8170af3be3ee0f5a89c209262828d254.zip
vhdl: add Get/Set_Associated_package. For #2264
Diffstat (limited to 'pyGHDL/libghdl')
-rw-r--r--pyGHDL/libghdl/vhdl/nodes.py13
-rw-r--r--pyGHDL/libghdl/vhdl/nodes_meta.py253
2 files changed, 143 insertions, 123 deletions
diff --git a/pyGHDL/libghdl/vhdl/nodes.py b/pyGHDL/libghdl/vhdl/nodes.py
index 19f26583a..f662ad6a7 100644
--- a/pyGHDL/libghdl/vhdl/nodes.py
+++ b/pyGHDL/libghdl/vhdl/nodes.py
@@ -5371,6 +5371,19 @@ def Set_Uninstantiated_Package_Decl(obj: Iir, value: Iir) -> None:
@export
+@BindToLibGHDL("vhdl__nodes__get_associated_package")
+def Get_Associated_Package(obj: Iir) -> Iir:
+ """"""
+ return 0
+
+
+@export
+@BindToLibGHDL("vhdl__nodes__set_associated_package")
+def Set_Associated_Package(obj: Iir, value: Iir) -> None:
+ """"""
+
+
+@export
@BindToLibGHDL("vhdl__nodes__get_instance_source_file")
def Get_Instance_Source_File(obj: Iir) -> SourceFileEntry:
""""""
diff --git a/pyGHDL/libghdl/vhdl/nodes_meta.py b/pyGHDL/libghdl/vhdl/nodes_meta.py
index 5f23a6894..f2b4ec7e2 100644
--- a/pyGHDL/libghdl/vhdl/nodes_meta.py
+++ b/pyGHDL/libghdl/vhdl/nodes_meta.py
@@ -378,129 +378,130 @@ class fields(IntEnum):
Block_Header = 258
Uninstantiated_Package_Name = 259
Uninstantiated_Package_Decl = 260
- Instance_Source_File = 261
- Generate_Block_Configuration = 262
- Generate_Statement_Body = 263
- Alternative_Label = 264
- Generate_Else_Clause = 265
- Condition = 266
- Else_Clause = 267
- Parameter_Specification = 268
- Parent = 269
- Loop_Label = 270
- Exit_Flag = 271
- Next_Flag = 272
- Component_Name = 273
- Instantiation_List = 274
- Entity_Aspect = 275
- Default_Entity_Aspect = 276
- Binding_Indication = 277
- Named_Entity = 278
- Referenced_Name = 279
- Expr_Staticness = 280
- Scalar_Size = 281
- Error_Origin = 282
- Operand = 283
- Left = 284
- Right = 285
- Unit_Name = 286
- Name = 287
- Group_Template_Name = 288
- Name_Staticness = 289
- Prefix = 290
- Signature_Prefix = 291
- External_Pathname = 292
- Pathname_Suffix = 293
- Pathname_Expression = 294
- In_Formal_Flag = 295
- Inertial_Flag = 296
- Slice_Subtype = 297
- Suffix = 298
- Index_Subtype = 299
- Parameter = 300
- Parameter_2 = 301
- Parameter_3 = 302
- Parameter_4 = 303
- Attr_Chain = 304
- Attribute_Implicit_Declaration = 305
- Actual_Type = 306
- Actual_Type_Definition = 307
- Association_Chain = 308
- Individual_Association_Chain = 309
- Subprogram_Association_Chain = 310
- Aggregate_Info = 311
- Sub_Aggregate_Info = 312
- Aggr_Dynamic_Flag = 313
- Aggr_Min_Length = 314
- Aggr_Low_Limit = 315
- Aggr_High_Limit = 316
- Aggr_Others_Flag = 317
- Aggr_Named_Flag = 318
- Aggregate_Expand_Flag = 319
- Determined_Aggregate_Flag = 320
- Association_Choices_Chain = 321
- Case_Statement_Alternative_Chain = 322
- Matching_Flag = 323
- Choice_Staticness = 324
- Procedure_Call = 325
- Implementation = 326
- Parameter_Association_Chain = 327
- Method_Object = 328
- Subtype_Type_Mark = 329
- Subnature_Nature_Mark = 330
- Type_Conversion_Subtype = 331
- Type_Mark = 332
- File_Type_Mark = 333
- Return_Type_Mark = 334
- Has_Disconnect_Flag = 335
- Has_Active_Flag = 336
- Is_Within_Flag = 337
- Type_Marks_List = 338
- Implicit_Alias_Flag = 339
- Alias_Signature = 340
- Attribute_Signature = 341
- Overload_List = 342
- Simple_Name_Identifier = 343
- Simple_Name_Subtype = 344
- Protected_Type_Body = 345
- Protected_Type_Declaration = 346
- Use_Flag = 347
- End_Has_Reserved_Id = 348
- End_Has_Identifier = 349
- End_Has_Postponed = 350
- Has_Label = 351
- Has_Begin = 352
- Has_End = 353
- Has_Is = 354
- Has_Pure = 355
- Has_Body = 356
- Has_Parameter = 357
- Has_Component = 358
- Has_Identifier_List = 359
- Has_Mode = 360
- Has_Class = 361
- Has_Delay_Mechanism = 362
- Suspend_Flag = 363
- Stop_Flag = 364
- Is_Ref = 365
- Is_Forward_Ref = 366
- Psl_Property = 367
- Psl_Sequence = 368
- Psl_Declaration = 369
- Psl_Expression = 370
- Psl_Boolean = 371
- PSL_Clock = 372
- PSL_NFA = 373
- PSL_Nbr_States = 374
- PSL_Clock_Sensitivity = 375
- PSL_EOS_Flag = 376
- PSL_Abort_Flag = 377
- Count_Expression = 378
- Clock_Expression = 379
- Default_Clock = 380
- Foreign_Node = 381
- Suspend_State_Index = 382
- Suspend_State_Chain = 383
+ Associated_Package = 261
+ Instance_Source_File = 262
+ Generate_Block_Configuration = 263
+ Generate_Statement_Body = 264
+ Alternative_Label = 265
+ Generate_Else_Clause = 266
+ Condition = 267
+ Else_Clause = 268
+ Parameter_Specification = 269
+ Parent = 270
+ Loop_Label = 271
+ Exit_Flag = 272
+ Next_Flag = 273
+ Component_Name = 274
+ Instantiation_List = 275
+ Entity_Aspect = 276
+ Default_Entity_Aspect = 277
+ Binding_Indication = 278
+ Named_Entity = 279
+ Referenced_Name = 280
+ Expr_Staticness = 281
+ Scalar_Size = 282
+ Error_Origin = 283
+ Operand = 284
+ Left = 285
+ Right = 286
+ Unit_Name = 287
+ Name = 288
+ Group_Template_Name = 289
+ Name_Staticness = 290
+ Prefix = 291
+ Signature_Prefix = 292
+ External_Pathname = 293
+ Pathname_Suffix = 294
+ Pathname_Expression = 295
+ In_Formal_Flag = 296
+ Inertial_Flag = 297
+ Slice_Subtype = 298
+ Suffix = 299
+ Index_Subtype = 300
+ Parameter = 301
+ Parameter_2 = 302
+ Parameter_3 = 303
+ Parameter_4 = 304
+ Attr_Chain = 305
+ Attribute_Implicit_Declaration = 306
+ Actual_Type = 307
+ Actual_Type_Definition = 308
+ Association_Chain = 309
+ Individual_Association_Chain = 310
+ Subprogram_Association_Chain = 311
+ Aggregate_Info = 312
+ Sub_Aggregate_Info = 313
+ Aggr_Dynamic_Flag = 314
+ Aggr_Min_Length = 315
+ Aggr_Low_Limit = 316
+ Aggr_High_Limit = 317
+ Aggr_Others_Flag = 318
+ Aggr_Named_Flag = 319
+ Aggregate_Expand_Flag = 320
+ Determined_Aggregate_Flag = 321
+ Association_Choices_Chain = 322
+ Case_Statement_Alternative_Chain = 323
+ Matching_Flag = 324
+ Choice_Staticness = 325
+ Procedure_Call = 326
+ Implementation = 327
+ Parameter_Association_Chain = 328
+ Method_Object = 329
+ Subtype_Type_Mark = 330
+ Subnature_Nature_Mark = 331
+ Type_Conversion_Subtype = 332
+ Type_Mark = 333
+ File_Type_Mark = 334
+ Return_Type_Mark = 335
+ Has_Disconnect_Flag = 336
+ Has_Active_Flag = 337
+ Is_Within_Flag = 338
+ Type_Marks_List = 339
+ Implicit_Alias_Flag = 340
+ Alias_Signature = 341
+ Attribute_Signature = 342
+ Overload_List = 343
+ Simple_Name_Identifier = 344
+ Simple_Name_Subtype = 345
+ Protected_Type_Body = 346
+ Protected_Type_Declaration = 347
+ Use_Flag = 348
+ End_Has_Reserved_Id = 349
+ End_Has_Identifier = 350
+ End_Has_Postponed = 351
+ Has_Label = 352
+ Has_Begin = 353
+ Has_End = 354
+ Has_Is = 355
+ Has_Pure = 356
+ Has_Body = 357
+ Has_Parameter = 358
+ Has_Component = 359
+ Has_Identifier_List = 360
+ Has_Mode = 361
+ Has_Class = 362
+ Has_Delay_Mechanism = 363
+ Suspend_Flag = 364
+ Stop_Flag = 365
+ Is_Ref = 366
+ Is_Forward_Ref = 367
+ Psl_Property = 368
+ Psl_Sequence = 369
+ Psl_Declaration = 370
+ Psl_Expression = 371
+ Psl_Boolean = 372
+ PSL_Clock = 373
+ PSL_NFA = 374
+ PSL_Nbr_States = 375
+ PSL_Clock_Sensitivity = 376
+ PSL_EOS_Flag = 377
+ PSL_Abort_Flag = 378
+ Count_Expression = 379
+ Clock_Expression = 380
+ Default_Clock = 381
+ Foreign_Node = 382
+ Suspend_State_Index = 383
+ Suspend_State_Chain = 384
def Get_Boolean(node, field):
@@ -2202,6 +2203,12 @@ def Has_Uninstantiated_Package_Decl(kind: IirKind) -> bool:
@export
+@BindToLibGHDL("vhdl__nodes_meta__has_associated_package")
+def Has_Associated_Package(kind: IirKind) -> bool:
+ """"""
+
+
+@export
@BindToLibGHDL("vhdl__nodes_meta__has_instance_source_file")
def Has_Instance_Source_File(kind: IirKind) -> bool:
""""""