aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-12-16 07:24:18 +0100
committerTristan Gingold <tgingold@free.fr>2022-12-16 07:24:18 +0100
commit8676f7d946c0c0f62359d34a52988aa74b2b949d (patch)
tree54577ad8a74d7b97bff2ff876ef34f574bc541ed /pyGHDL
parentb863729ecec4169add1ba9e9e37bb9bd4737de26 (diff)
downloadghdl-8676f7d946c0c0f62359d34a52988aa74b2b949d.tar.gz
ghdl-8676f7d946c0c0f62359d34a52988aa74b2b949d.tar.bz2
ghdl-8676f7d946c0c0f62359d34a52988aa74b2b949d.zip
vhdl-nodes: add Get/Set_Instantiated_Header.
For #2264
Diffstat (limited to 'pyGHDL')
-rw-r--r--pyGHDL/libghdl/vhdl/nodes.py13
-rw-r--r--pyGHDL/libghdl/vhdl/nodes_meta.py295
2 files changed, 164 insertions, 144 deletions
diff --git a/pyGHDL/libghdl/vhdl/nodes.py b/pyGHDL/libghdl/vhdl/nodes.py
index b9de81b8f..19f26583a 100644
--- a/pyGHDL/libghdl/vhdl/nodes.py
+++ b/pyGHDL/libghdl/vhdl/nodes.py
@@ -5085,6 +5085,19 @@ def Set_Instantiated_Unit(obj: Iir, value: Iir) -> None:
@export
+@BindToLibGHDL("vhdl__nodes__get_instantiated_header")
+def Get_Instantiated_Header(obj: Iir) -> Iir:
+ """"""
+ return 0
+
+
+@export
+@BindToLibGHDL("vhdl__nodes__set_instantiated_header")
+def Set_Instantiated_Header(obj: Iir, value: Iir) -> None:
+ """"""
+
+
+@export
@BindToLibGHDL("vhdl__nodes__get_generic_map_aspect_chain")
def Get_Generic_Map_Aspect_Chain(obj: Iir) -> Iir:
""""""
diff --git a/pyGHDL/libghdl/vhdl/nodes_meta.py b/pyGHDL/libghdl/vhdl/nodes_meta.py
index a923ac764..5f23a6894 100644
--- a/pyGHDL/libghdl/vhdl/nodes_meta.py
+++ b/pyGHDL/libghdl/vhdl/nodes_meta.py
@@ -356,150 +356,151 @@ class fields(IntEnum):
Report_Expression = 236
Severity_Expression = 237
Instantiated_Unit = 238
- Generic_Map_Aspect_Chain = 239
- Port_Map_Aspect_Chain = 240
- Configuration_Name = 241
- Component_Configuration = 242
- Configuration_Specification = 243
- Default_Binding_Indication = 244
- Default_Configuration_Declaration = 245
- Expression = 246
- Conditional_Expression_Chain = 247
- Allocator_Designated_Type = 248
- Selected_Waveform_Chain = 249
- Conditional_Waveform_Chain = 250
- Guard_Expression = 251
- Guard_Decl = 252
- Guard_Sensitivity_List = 253
- Attribute_Implicit_Chain = 254
- Block_Block_Configuration = 255
- Package_Header = 256
- Block_Header = 257
- Uninstantiated_Package_Name = 258
- Uninstantiated_Package_Decl = 259
- Instance_Source_File = 260
- Generate_Block_Configuration = 261
- Generate_Statement_Body = 262
- Alternative_Label = 263
- Generate_Else_Clause = 264
- Condition = 265
- Else_Clause = 266
- Parameter_Specification = 267
- Parent = 268
- Loop_Label = 269
- Exit_Flag = 270
- Next_Flag = 271
- Component_Name = 272
- Instantiation_List = 273
- Entity_Aspect = 274
- Default_Entity_Aspect = 275
- Binding_Indication = 276
- Named_Entity = 277
- Referenced_Name = 278
- Expr_Staticness = 279
- Scalar_Size = 280
- Error_Origin = 281
- Operand = 282
- Left = 283
- Right = 284
- Unit_Name = 285
- Name = 286
- Group_Template_Name = 287
- Name_Staticness = 288
- Prefix = 289
- Signature_Prefix = 290
- External_Pathname = 291
- Pathname_Suffix = 292
- Pathname_Expression = 293
- In_Formal_Flag = 294
- Inertial_Flag = 295
- Slice_Subtype = 296
- Suffix = 297
- Index_Subtype = 298
- Parameter = 299
- Parameter_2 = 300
- Parameter_3 = 301
- Parameter_4 = 302
- Attr_Chain = 303
- Attribute_Implicit_Declaration = 304
- Actual_Type = 305
- Actual_Type_Definition = 306
- Association_Chain = 307
- Individual_Association_Chain = 308
- Subprogram_Association_Chain = 309
- Aggregate_Info = 310
- Sub_Aggregate_Info = 311
- Aggr_Dynamic_Flag = 312
- Aggr_Min_Length = 313
- Aggr_Low_Limit = 314
- Aggr_High_Limit = 315
- Aggr_Others_Flag = 316
- Aggr_Named_Flag = 317
- Aggregate_Expand_Flag = 318
- Determined_Aggregate_Flag = 319
- Association_Choices_Chain = 320
- Case_Statement_Alternative_Chain = 321
- Matching_Flag = 322
- Choice_Staticness = 323
- Procedure_Call = 324
- Implementation = 325
- Parameter_Association_Chain = 326
- Method_Object = 327
- Subtype_Type_Mark = 328
- Subnature_Nature_Mark = 329
- Type_Conversion_Subtype = 330
- Type_Mark = 331
- File_Type_Mark = 332
- Return_Type_Mark = 333
- Has_Disconnect_Flag = 334
- Has_Active_Flag = 335
- Is_Within_Flag = 336
- Type_Marks_List = 337
- Implicit_Alias_Flag = 338
- Alias_Signature = 339
- Attribute_Signature = 340
- Overload_List = 341
- Simple_Name_Identifier = 342
- Simple_Name_Subtype = 343
- Protected_Type_Body = 344
- Protected_Type_Declaration = 345
- Use_Flag = 346
- End_Has_Reserved_Id = 347
- End_Has_Identifier = 348
- End_Has_Postponed = 349
- Has_Label = 350
- Has_Begin = 351
- Has_End = 352
- Has_Is = 353
- Has_Pure = 354
- Has_Body = 355
- Has_Parameter = 356
- Has_Component = 357
- Has_Identifier_List = 358
- Has_Mode = 359
- Has_Class = 360
- Has_Delay_Mechanism = 361
- Suspend_Flag = 362
- Stop_Flag = 363
- Is_Ref = 364
- Is_Forward_Ref = 365
- Psl_Property = 366
- Psl_Sequence = 367
- Psl_Declaration = 368
- Psl_Expression = 369
- Psl_Boolean = 370
- PSL_Clock = 371
- PSL_NFA = 372
- PSL_Nbr_States = 373
- PSL_Clock_Sensitivity = 374
- PSL_EOS_Flag = 375
- PSL_Abort_Flag = 376
- Count_Expression = 377
- Clock_Expression = 378
- Default_Clock = 379
- Foreign_Node = 380
- Suspend_State_Index = 381
- Suspend_State_Chain = 382
+ Instantiated_Header = 239
+ Generic_Map_Aspect_Chain = 240
+ Port_Map_Aspect_Chain = 241
+ Configuration_Name = 242
+ Component_Configuration = 243
+ Configuration_Specification = 244
+ Default_Binding_Indication = 245
+ Default_Configuration_Declaration = 246
+ Expression = 247
+ Conditional_Expression_Chain = 248
+ Allocator_Designated_Type = 249
+ Selected_Waveform_Chain = 250
+ Conditional_Waveform_Chain = 251
+ Guard_Expression = 252
+ Guard_Decl = 253
+ Guard_Sensitivity_List = 254
+ Attribute_Implicit_Chain = 255
+ Block_Block_Configuration = 256
+ Package_Header = 257
+ 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
def Get_Boolean(node, field):
@@ -2069,6 +2070,12 @@ def Has_Instantiated_Unit(kind: IirKind) -> bool:
@export
+@BindToLibGHDL("vhdl__nodes_meta__has_instantiated_header")
+def Has_Instantiated_Header(kind: IirKind) -> bool:
+ """"""
+
+
+@export
@BindToLibGHDL("vhdl__nodes_meta__has_generic_map_aspect_chain")
def Has_Generic_Map_Aspect_Chain(kind: IirKind) -> bool:
""""""