aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/libghdl/vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-07-25 05:14:52 +0200
committerTristan Gingold <tgingold@free.fr>2022-07-25 05:14:52 +0200
commit4fb0f50bc59eac444acb171040964dc73d3d105f (patch)
treef564ff1710fb772e6ffc0d31032d82b0e170a218 /pyGHDL/libghdl/vhdl
parent6f8aaa4965aafdfdecbb24a3e2b65cd0e6f34f07 (diff)
downloadghdl-4fb0f50bc59eac444acb171040964dc73d3d105f.tar.gz
ghdl-4fb0f50bc59eac444acb171040964dc73d3d105f.tar.bz2
ghdl-4fb0f50bc59eac444acb171040964dc73d3d105f.zip
vhdl-nodes: add Get/Set_Reference_Terminal_Flag
Diffstat (limited to 'pyGHDL/libghdl/vhdl')
-rw-r--r--pyGHDL/libghdl/vhdl/nodes.py13
-rw-r--r--pyGHDL/libghdl/vhdl/nodes_meta.py555
2 files changed, 294 insertions, 274 deletions
diff --git a/pyGHDL/libghdl/vhdl/nodes.py b/pyGHDL/libghdl/vhdl/nodes.py
index 859ece59e..74aadb689 100644
--- a/pyGHDL/libghdl/vhdl/nodes.py
+++ b/pyGHDL/libghdl/vhdl/nodes.py
@@ -3300,6 +3300,19 @@ def Set_Subnature_Indication(obj: Iir, value: Iir) -> None:
@export
+@BindToLibGHDL("vhdl__nodes__get_reference_terminal_flag")
+def Get_Reference_Terminal_Flag(obj: Iir) -> Boolean:
+ """"""
+ return 0
+
+
+@export
+@BindToLibGHDL("vhdl__nodes__set_reference_terminal_flag")
+def Set_Reference_Terminal_Flag(obj: Iir, value: Boolean) -> None:
+ """"""
+
+
+@export
@BindToLibGHDL("vhdl__nodes__get_mode")
def Get_Mode(obj: Iir) -> Iir:
""""""
diff --git a/pyGHDL/libghdl/vhdl/nodes_meta.py b/pyGHDL/libghdl/vhdl/nodes_meta.py
index dd43cc075..abe280c9b 100644
--- a/pyGHDL/libghdl/vhdl/nodes_meta.py
+++ b/pyGHDL/libghdl/vhdl/nodes_meta.py
@@ -219,280 +219,281 @@ class fields(IntEnum):
Nature_Definition = 99
Nature = 100
Subnature_Indication = 101
- Mode = 102
- Guarded_Signal_Flag = 103
- Signal_Kind = 104
- Base_Name = 105
- Interface_Declaration_Chain = 106
- Subprogram_Specification = 107
- Sequential_Statement_Chain = 108
- Simultaneous_Statement_Chain = 109
- Subprogram_Body = 110
- Overload_Number = 111
- Subprogram_Depth = 112
- Subprogram_Hash = 113
- Impure_Depth = 114
- Return_Type = 115
- Implicit_Definition = 116
- Uninstantiated_Subprogram_Name = 117
- Default_Value = 118
- Deferred_Declaration = 119
- Deferred_Declaration_Flag = 120
- Shared_Flag = 121
- Design_Unit = 122
- Block_Statement = 123
- Signal_Driver = 124
- Declaration_Chain = 125
- File_Logical_Name = 126
- File_Open_Kind = 127
- Element_Position = 128
- Use_Clause_Chain = 129
- Context_Reference_Chain = 130
- Inherit_Spec_Chain = 131
- Selected_Name = 132
- Type_Declarator = 133
- Complete_Type_Definition = 134
- Incomplete_Type_Ref_Chain = 135
- Associated_Type = 136
- Enumeration_Literal_List = 137
- Entity_Class_Entry_Chain = 138
- Group_Constituent_List = 139
- Unit_Chain = 140
- Primary_Unit = 141
- Identifier = 142
- Label = 143
- Return_Identifier = 144
- Visible_Flag = 145
- Range_Constraint = 146
- Direction = 147
- Left_Limit = 148
- Right_Limit = 149
- Left_Limit_Expr = 150
- Right_Limit_Expr = 151
- Parent_Type = 152
- Simple_Nature = 153
- Base_Nature = 154
- Resolution_Indication = 155
- Record_Element_Resolution_Chain = 156
- Tolerance = 157
- Plus_Terminal_Name = 158
- Minus_Terminal_Name = 159
- Plus_Terminal = 160
- Minus_Terminal = 161
- Magnitude_Expression = 162
- Phase_Expression = 163
- Power_Expression = 164
- Simultaneous_Left = 165
- Simultaneous_Right = 166
- Text_File_Flag = 167
- Only_Characters_Flag = 168
- Is_Character_Type = 169
- Nature_Staticness = 170
- Type_Staticness = 171
- Constraint_State = 172
- Index_Subtype_List = 173
- Index_Subtype_Definition_List = 174
- Element_Subtype_Indication = 175
- Element_Subtype = 176
- Element_Subnature_Indication = 177
- Element_Subnature = 178
- Index_Constraint_List = 179
- Array_Element_Constraint = 180
- Has_Array_Constraint_Flag = 181
- Has_Element_Constraint_Flag = 182
- Elements_Declaration_List = 183
- Owned_Elements_Chain = 184
- Designated_Type = 185
- Designated_Subtype_Indication = 186
- Index_List = 187
- Reference = 188
- Nature_Declarator = 189
- Across_Type_Mark = 190
- Through_Type_Mark = 191
- Across_Type_Definition = 192
- Through_Type_Definition = 193
- Across_Type = 194
- Through_Type = 195
- Target = 196
- Waveform_Chain = 197
- Guard = 198
- Delay_Mechanism = 199
- Reject_Time_Expression = 200
- Force_Mode = 201
- Has_Force_Mode = 202
- Sensitivity_List = 203
- Process_Origin = 204
- Package_Origin = 205
- Condition_Clause = 206
- Break_Element = 207
- Selector_Quantity = 208
- Break_Quantity = 209
- Timeout_Clause = 210
- Postponed_Flag = 211
- Callees_List = 212
- Passive_Flag = 213
- Resolution_Function_Flag = 214
- Wait_State = 215
- All_Sensitized_State = 216
- Seen_Flag = 217
- Pure_Flag = 218
- Foreign_Flag = 219
- Resolved_Flag = 220
- Signal_Type_Flag = 221
- Has_Signal_Flag = 222
- Purity_State = 223
- Elab_Flag = 224
- Vendor_Library_Flag = 225
- Configuration_Mark_Flag = 226
- Configuration_Done_Flag = 227
- Index_Constraint_Flag = 228
- Hide_Implicit_Flag = 229
- Assertion_Condition = 230
- Report_Expression = 231
- Severity_Expression = 232
- Instantiated_Unit = 233
- Generic_Map_Aspect_Chain = 234
- Port_Map_Aspect_Chain = 235
- Configuration_Name = 236
- Component_Configuration = 237
- Configuration_Specification = 238
- Default_Binding_Indication = 239
- Default_Configuration_Declaration = 240
- Expression = 241
- Conditional_Expression_Chain = 242
- Allocator_Designated_Type = 243
- Selected_Waveform_Chain = 244
- Conditional_Waveform_Chain = 245
- Guard_Expression = 246
- Guard_Decl = 247
- Guard_Sensitivity_List = 248
- Attribute_Implicit_Chain = 249
- Block_Block_Configuration = 250
- Package_Header = 251
- Block_Header = 252
- Uninstantiated_Package_Name = 253
- Uninstantiated_Package_Decl = 254
- Instance_Source_File = 255
- Generate_Block_Configuration = 256
- Generate_Statement_Body = 257
- Alternative_Label = 258
- Generate_Else_Clause = 259
- Condition = 260
- Else_Clause = 261
- Parameter_Specification = 262
- Parent = 263
- Loop_Label = 264
- Exit_Flag = 265
- Next_Flag = 266
- Component_Name = 267
- Instantiation_List = 268
- Entity_Aspect = 269
- Default_Entity_Aspect = 270
- Binding_Indication = 271
- Named_Entity = 272
- Referenced_Name = 273
- Expr_Staticness = 274
- Scalar_Size = 275
- Error_Origin = 276
- Operand = 277
- Left = 278
- Right = 279
- Unit_Name = 280
- Name = 281
- Group_Template_Name = 282
- Name_Staticness = 283
- Prefix = 284
- Signature_Prefix = 285
- External_Pathname = 286
- Pathname_Suffix = 287
- Pathname_Expression = 288
- In_Formal_Flag = 289
- Inertial_Flag = 290
- Slice_Subtype = 291
- Suffix = 292
- Index_Subtype = 293
- Parameter = 294
- Parameter_2 = 295
- Parameter_3 = 296
- Parameter_4 = 297
- Attr_Chain = 298
- Attribute_Implicit_Declaration = 299
- Actual_Type = 300
- Actual_Type_Definition = 301
- Association_Chain = 302
- Individual_Association_Chain = 303
- Subprogram_Association_Chain = 304
- Aggregate_Info = 305
- Sub_Aggregate_Info = 306
- Aggr_Dynamic_Flag = 307
- Aggr_Min_Length = 308
- Aggr_Low_Limit = 309
- Aggr_High_Limit = 310
- Aggr_Others_Flag = 311
- Aggr_Named_Flag = 312
- Aggregate_Expand_Flag = 313
- Association_Choices_Chain = 314
- Case_Statement_Alternative_Chain = 315
- Matching_Flag = 316
- Choice_Staticness = 317
- Procedure_Call = 318
- Implementation = 319
- Parameter_Association_Chain = 320
- Method_Object = 321
- Subtype_Type_Mark = 322
- Subnature_Nature_Mark = 323
- Type_Conversion_Subtype = 324
- Type_Mark = 325
- File_Type_Mark = 326
- Return_Type_Mark = 327
- Has_Disconnect_Flag = 328
- Has_Active_Flag = 329
- Is_Within_Flag = 330
- Type_Marks_List = 331
- Implicit_Alias_Flag = 332
- Alias_Signature = 333
- Attribute_Signature = 334
- Overload_List = 335
- Simple_Name_Identifier = 336
- Simple_Name_Subtype = 337
- Protected_Type_Body = 338
- Protected_Type_Declaration = 339
- Use_Flag = 340
- End_Has_Reserved_Id = 341
- End_Has_Identifier = 342
- End_Has_Postponed = 343
- Has_Label = 344
- Has_Begin = 345
- Has_End = 346
- Has_Is = 347
- Has_Pure = 348
- Has_Body = 349
- Has_Parameter = 350
- Has_Component = 351
- Has_Identifier_List = 352
- Has_Mode = 353
- Has_Class = 354
- Has_Delay_Mechanism = 355
- Suspend_Flag = 356
- Is_Ref = 357
- Is_Forward_Ref = 358
- Psl_Property = 359
- Psl_Sequence = 360
- Psl_Declaration = 361
- Psl_Expression = 362
- Psl_Boolean = 363
- PSL_Clock = 364
- PSL_NFA = 365
- PSL_Nbr_States = 366
- PSL_Clock_Sensitivity = 367
- PSL_EOS_Flag = 368
- PSL_Abort_Flag = 369
- Count_Expression = 370
- Clock_Expression = 371
- Default_Clock = 372
- Foreign_Node = 373
- Suspend_State_Index = 374
- Suspend_State_Chain = 375
+ Reference_Terminal_Flag = 102
+ Mode = 103
+ Guarded_Signal_Flag = 104
+ Signal_Kind = 105
+ Base_Name = 106
+ Interface_Declaration_Chain = 107
+ Subprogram_Specification = 108
+ Sequential_Statement_Chain = 109
+ Simultaneous_Statement_Chain = 110
+ Subprogram_Body = 111
+ Overload_Number = 112
+ Subprogram_Depth = 113
+ Subprogram_Hash = 114
+ Impure_Depth = 115
+ Return_Type = 116
+ Implicit_Definition = 117
+ Uninstantiated_Subprogram_Name = 118
+ Default_Value = 119
+ Deferred_Declaration = 120
+ Deferred_Declaration_Flag = 121
+ Shared_Flag = 122
+ Design_Unit = 123
+ Block_Statement = 124
+ Signal_Driver = 125
+ Declaration_Chain = 126
+ File_Logical_Name = 127
+ File_Open_Kind = 128
+ Element_Position = 129
+ Use_Clause_Chain = 130
+ Context_Reference_Chain = 131
+ Inherit_Spec_Chain = 132
+ Selected_Name = 133
+ Type_Declarator = 134
+ Complete_Type_Definition = 135
+ Incomplete_Type_Ref_Chain = 136
+ Associated_Type = 137
+ Enumeration_Literal_List = 138
+ Entity_Class_Entry_Chain = 139
+ Group_Constituent_List = 140
+ Unit_Chain = 141
+ Primary_Unit = 142
+ Identifier = 143
+ Label = 144
+ Return_Identifier = 145
+ Visible_Flag = 146
+ Range_Constraint = 147
+ Direction = 148
+ Left_Limit = 149
+ Right_Limit = 150
+ Left_Limit_Expr = 151
+ Right_Limit_Expr = 152
+ Parent_Type = 153
+ Simple_Nature = 154
+ Base_Nature = 155
+ Resolution_Indication = 156
+ Record_Element_Resolution_Chain = 157
+ Tolerance = 158
+ Plus_Terminal_Name = 159
+ Minus_Terminal_Name = 160
+ Plus_Terminal = 161
+ Minus_Terminal = 162
+ Magnitude_Expression = 163
+ Phase_Expression = 164
+ Power_Expression = 165
+ Simultaneous_Left = 166
+ Simultaneous_Right = 167
+ Text_File_Flag = 168
+ Only_Characters_Flag = 169
+ Is_Character_Type = 170
+ Nature_Staticness = 171
+ Type_Staticness = 172
+ Constraint_State = 173
+ Index_Subtype_List = 174
+ Index_Subtype_Definition_List = 175
+ Element_Subtype_Indication = 176
+ Element_Subtype = 177
+ Element_Subnature_Indication = 178
+ Element_Subnature = 179
+ Index_Constraint_List = 180
+ Array_Element_Constraint = 181
+ Has_Array_Constraint_Flag = 182
+ Has_Element_Constraint_Flag = 183
+ Elements_Declaration_List = 184
+ Owned_Elements_Chain = 185
+ Designated_Type = 186
+ Designated_Subtype_Indication = 187
+ Index_List = 188
+ Reference = 189
+ Nature_Declarator = 190
+ Across_Type_Mark = 191
+ Through_Type_Mark = 192
+ Across_Type_Definition = 193
+ Through_Type_Definition = 194
+ Across_Type = 195
+ Through_Type = 196
+ Target = 197
+ Waveform_Chain = 198
+ Guard = 199
+ Delay_Mechanism = 200
+ Reject_Time_Expression = 201
+ Force_Mode = 202
+ Has_Force_Mode = 203
+ Sensitivity_List = 204
+ Process_Origin = 205
+ Package_Origin = 206
+ Condition_Clause = 207
+ Break_Element = 208
+ Selector_Quantity = 209
+ Break_Quantity = 210
+ Timeout_Clause = 211
+ Postponed_Flag = 212
+ Callees_List = 213
+ Passive_Flag = 214
+ Resolution_Function_Flag = 215
+ Wait_State = 216
+ All_Sensitized_State = 217
+ Seen_Flag = 218
+ Pure_Flag = 219
+ Foreign_Flag = 220
+ Resolved_Flag = 221
+ Signal_Type_Flag = 222
+ Has_Signal_Flag = 223
+ Purity_State = 224
+ Elab_Flag = 225
+ Vendor_Library_Flag = 226
+ Configuration_Mark_Flag = 227
+ Configuration_Done_Flag = 228
+ Index_Constraint_Flag = 229
+ Hide_Implicit_Flag = 230
+ Assertion_Condition = 231
+ Report_Expression = 232
+ Severity_Expression = 233
+ Instantiated_Unit = 234
+ Generic_Map_Aspect_Chain = 235
+ Port_Map_Aspect_Chain = 236
+ Configuration_Name = 237
+ Component_Configuration = 238
+ Configuration_Specification = 239
+ Default_Binding_Indication = 240
+ Default_Configuration_Declaration = 241
+ Expression = 242
+ Conditional_Expression_Chain = 243
+ Allocator_Designated_Type = 244
+ Selected_Waveform_Chain = 245
+ Conditional_Waveform_Chain = 246
+ Guard_Expression = 247
+ Guard_Decl = 248
+ Guard_Sensitivity_List = 249
+ Attribute_Implicit_Chain = 250
+ Block_Block_Configuration = 251
+ Package_Header = 252
+ Block_Header = 253
+ Uninstantiated_Package_Name = 254
+ Uninstantiated_Package_Decl = 255
+ Instance_Source_File = 256
+ Generate_Block_Configuration = 257
+ Generate_Statement_Body = 258
+ Alternative_Label = 259
+ Generate_Else_Clause = 260
+ Condition = 261
+ Else_Clause = 262
+ Parameter_Specification = 263
+ Parent = 264
+ Loop_Label = 265
+ Exit_Flag = 266
+ Next_Flag = 267
+ Component_Name = 268
+ Instantiation_List = 269
+ Entity_Aspect = 270
+ Default_Entity_Aspect = 271
+ Binding_Indication = 272
+ Named_Entity = 273
+ Referenced_Name = 274
+ Expr_Staticness = 275
+ Scalar_Size = 276
+ Error_Origin = 277
+ Operand = 278
+ Left = 279
+ Right = 280
+ Unit_Name = 281
+ Name = 282
+ Group_Template_Name = 283
+ Name_Staticness = 284
+ Prefix = 285
+ Signature_Prefix = 286
+ External_Pathname = 287
+ Pathname_Suffix = 288
+ Pathname_Expression = 289
+ In_Formal_Flag = 290
+ Inertial_Flag = 291
+ Slice_Subtype = 292
+ Suffix = 293
+ Index_Subtype = 294
+ Parameter = 295
+ Parameter_2 = 296
+ Parameter_3 = 297
+ Parameter_4 = 298
+ Attr_Chain = 299
+ Attribute_Implicit_Declaration = 300
+ Actual_Type = 301
+ Actual_Type_Definition = 302
+ Association_Chain = 303
+ Individual_Association_Chain = 304
+ Subprogram_Association_Chain = 305
+ Aggregate_Info = 306
+ Sub_Aggregate_Info = 307
+ Aggr_Dynamic_Flag = 308
+ Aggr_Min_Length = 309
+ Aggr_Low_Limit = 310
+ Aggr_High_Limit = 311
+ Aggr_Others_Flag = 312
+ Aggr_Named_Flag = 313
+ Aggregate_Expand_Flag = 314
+ Association_Choices_Chain = 315
+ Case_Statement_Alternative_Chain = 316
+ Matching_Flag = 317
+ Choice_Staticness = 318
+ Procedure_Call = 319
+ Implementation = 320
+ Parameter_Association_Chain = 321
+ Method_Object = 322
+ Subtype_Type_Mark = 323
+ Subnature_Nature_Mark = 324
+ Type_Conversion_Subtype = 325
+ Type_Mark = 326
+ File_Type_Mark = 327
+ Return_Type_Mark = 328
+ Has_Disconnect_Flag = 329
+ Has_Active_Flag = 330
+ Is_Within_Flag = 331
+ Type_Marks_List = 332
+ Implicit_Alias_Flag = 333
+ Alias_Signature = 334
+ Attribute_Signature = 335
+ Overload_List = 336
+ Simple_Name_Identifier = 337
+ Simple_Name_Subtype = 338
+ Protected_Type_Body = 339
+ Protected_Type_Declaration = 340
+ Use_Flag = 341
+ End_Has_Reserved_Id = 342
+ End_Has_Identifier = 343
+ End_Has_Postponed = 344
+ Has_Label = 345
+ Has_Begin = 346
+ Has_End = 347
+ Has_Is = 348
+ Has_Pure = 349
+ Has_Body = 350
+ Has_Parameter = 351
+ Has_Component = 352
+ Has_Identifier_List = 353
+ Has_Mode = 354
+ Has_Class = 355
+ Has_Delay_Mechanism = 356
+ Suspend_Flag = 357
+ Is_Ref = 358
+ Is_Forward_Ref = 359
+ Psl_Property = 360
+ Psl_Sequence = 361
+ Psl_Declaration = 362
+ Psl_Expression = 363
+ Psl_Boolean = 364
+ PSL_Clock = 365
+ PSL_NFA = 366
+ PSL_Nbr_States = 367
+ PSL_Clock_Sensitivity = 368
+ PSL_EOS_Flag = 369
+ PSL_Abort_Flag = 370
+ Count_Expression = 371
+ Clock_Expression = 372
+ Default_Clock = 373
+ Foreign_Node = 374
+ Suspend_State_Index = 375
+ Suspend_State_Chain = 376
def Get_Boolean(node, field):
@@ -1240,6 +1241,12 @@ def Has_Subnature_Indication(kind: IirKind) -> bool:
@export
+@BindToLibGHDL("vhdl__nodes_meta__has_reference_terminal_flag")
+def Has_Reference_Terminal_Flag(kind: IirKind) -> bool:
+ """"""
+
+
+@export
@BindToLibGHDL("vhdl__nodes_meta__has_mode")
def Has_Mode(kind: IirKind) -> bool:
""""""