aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-12-31 08:22:30 +0100
committerTristan Gingold <tgingold@free.fr>2019-12-31 09:34:34 +0100
commit8a60406d94e89804a5a52afb95bdac4c3bdd7f40 (patch)
tree6ffa80d954978fd005542b46dc20296d8b63cfba /python
parent10b0ac263ed7c59c438c1cb82faef51370cbd67e (diff)
downloadghdl-8a60406d94e89804a5a52afb95bdac4c3bdd7f40.tar.gz
ghdl-8a60406d94e89804a5a52afb95bdac4c3bdd7f40.tar.bz2
ghdl-8a60406d94e89804a5a52afb95bdac4c3bdd7f40.zip
ams-vhdl: handle zoh, ltf and ztf attributes.
Diffstat (limited to 'python')
-rw-r--r--python/libghdl/thin/std_names.py6
-rw-r--r--python/libghdl/thin/vhdl/nodes.py73
-rw-r--r--python/libghdl/thin/vhdl/nodes_meta.py148
3 files changed, 126 insertions, 101 deletions
diff --git a/python/libghdl/thin/std_names.py b/python/libghdl/thin/std_names.py
index 3dca3b712..0b98b88b3 100644
--- a/python/libghdl/thin/std_names.py
+++ b/python/libghdl/thin/std_names.py
@@ -382,9 +382,9 @@ class Name:
Dot = 604
Integ = 605
Above = 606
- ZOH = 607
- LTF = 608
- ZTF = 609
+ Zoh = 607
+ Ltf = 608
+ Ztf = 609
Ramp = 610
Slew = 611
Last_AMS_Attribute = 611
diff --git a/python/libghdl/thin/vhdl/nodes.py b/python/libghdl/thin/vhdl/nodes.py
index c03729f69..720676b33 100644
--- a/python/libghdl/thin/vhdl/nodes.py
+++ b/python/libghdl/thin/vhdl/nodes.py
@@ -287,34 +287,37 @@ class Iir_Kind:
Signal_Slew_Attribute = 272
Quantity_Slew_Attribute = 273
Ramp_Attribute = 274
- Dot_Attribute = 275
- Integ_Attribute = 276
- Above_Attribute = 277
- Delayed_Attribute = 278
- Stable_Attribute = 279
- Quiet_Attribute = 280
- Transaction_Attribute = 281
- Event_Attribute = 282
- Active_Attribute = 283
- Last_Event_Attribute = 284
- Last_Active_Attribute = 285
- Last_Value_Attribute = 286
- Driving_Attribute = 287
- Driving_Value_Attribute = 288
- Behavior_Attribute = 289
- Structure_Attribute = 290
- Simple_Name_Attribute = 291
- Instance_Name_Attribute = 292
- Path_Name_Attribute = 293
- Left_Array_Attribute = 294
- Right_Array_Attribute = 295
- High_Array_Attribute = 296
- Low_Array_Attribute = 297
- Length_Array_Attribute = 298
- Ascending_Array_Attribute = 299
- Range_Array_Attribute = 300
- Reverse_Range_Array_Attribute = 301
- Attribute_Name = 302
+ Zoh_Attribute = 275
+ Ltf_Attribute = 276
+ Ztf_Attribute = 277
+ Dot_Attribute = 278
+ Integ_Attribute = 279
+ Above_Attribute = 280
+ Delayed_Attribute = 281
+ Stable_Attribute = 282
+ Quiet_Attribute = 283
+ Transaction_Attribute = 284
+ Event_Attribute = 285
+ Active_Attribute = 286
+ Last_Event_Attribute = 287
+ Last_Active_Attribute = 288
+ Last_Value_Attribute = 289
+ Driving_Attribute = 290
+ Driving_Value_Attribute = 291
+ Behavior_Attribute = 292
+ Structure_Attribute = 293
+ Simple_Name_Attribute = 294
+ Instance_Name_Attribute = 295
+ Path_Name_Attribute = 296
+ Left_Array_Attribute = 297
+ Right_Array_Attribute = 298
+ High_Array_Attribute = 299
+ Low_Array_Attribute = 300
+ Length_Array_Attribute = 301
+ Ascending_Array_Attribute = 302
+ Range_Array_Attribute = 303
+ Reverse_Range_Array_Attribute = 304
+ Attribute_Name = 305
class Iir_Kinds:
@@ -593,6 +596,9 @@ class Iir_Kinds:
Iir_Kind.Signal_Slew_Attribute,
Iir_Kind.Quantity_Slew_Attribute,
Iir_Kind.Ramp_Attribute,
+ Iir_Kind.Zoh_Attribute,
+ Iir_Kind.Ltf_Attribute,
+ Iir_Kind.Ztf_Attribute,
Iir_Kind.Dot_Attribute,
Iir_Kind.Integ_Attribute,
Iir_Kind.Above_Attribute,
@@ -840,6 +846,9 @@ class Iir_Kinds:
Iir_Kind.Signal_Slew_Attribute,
Iir_Kind.Quantity_Slew_Attribute,
Iir_Kind.Ramp_Attribute,
+ Iir_Kind.Zoh_Attribute,
+ Iir_Kind.Ltf_Attribute,
+ Iir_Kind.Ztf_Attribute,
Iir_Kind.Dot_Attribute,
Iir_Kind.Integ_Attribute,
Iir_Kind.Above_Attribute,
@@ -2469,6 +2478,14 @@ Get_Parameter_2 = libghdl.vhdl__nodes__get_parameter_2
Set_Parameter_2 = libghdl.vhdl__nodes__set_parameter_2
+Get_Parameter_3 = libghdl.vhdl__nodes__get_parameter_3
+
+Set_Parameter_3 = libghdl.vhdl__nodes__set_parameter_3
+
+Get_Parameter_4 = libghdl.vhdl__nodes__get_parameter_4
+
+Set_Parameter_4 = libghdl.vhdl__nodes__set_parameter_4
+
Get_Attr_Chain = libghdl.vhdl__nodes__get_attr_chain
Set_Attr_Chain = libghdl.vhdl__nodes__set_attr_chain
diff --git a/python/libghdl/thin/vhdl/nodes_meta.py b/python/libghdl/thin/vhdl/nodes_meta.py
index aff2f14d0..05ea7754e 100644
--- a/python/libghdl/thin/vhdl/nodes_meta.py
+++ b/python/libghdl/thin/vhdl/nodes_meta.py
@@ -347,76 +347,78 @@ class fields:
Index_Subtype = 283
Parameter = 284
Parameter_2 = 285
- Attr_Chain = 286
- Signal_Attribute_Declaration = 287
- Actual_Type = 288
- Actual_Type_Definition = 289
- Association_Chain = 290
- Individual_Association_Chain = 291
- Subprogram_Association_Chain = 292
- Aggregate_Info = 293
- Sub_Aggregate_Info = 294
- Aggr_Dynamic_Flag = 295
- Aggr_Min_Length = 296
- Aggr_Low_Limit = 297
- Aggr_High_Limit = 298
- Aggr_Others_Flag = 299
- Aggr_Named_Flag = 300
- Aggregate_Expand_Flag = 301
- Association_Choices_Chain = 302
- Case_Statement_Alternative_Chain = 303
- Choice_Staticness = 304
- Procedure_Call = 305
- Implementation = 306
- Parameter_Association_Chain = 307
- Method_Object = 308
- Subtype_Type_Mark = 309
- Subnature_Nature_Mark = 310
- Type_Conversion_Subtype = 311
- Type_Mark = 312
- File_Type_Mark = 313
- Return_Type_Mark = 314
- Has_Disconnect_Flag = 315
- Has_Active_Flag = 316
- Is_Within_Flag = 317
- Type_Marks_List = 318
- Implicit_Alias_Flag = 319
- Alias_Signature = 320
- Attribute_Signature = 321
- Overload_List = 322
- Simple_Name_Identifier = 323
- Simple_Name_Subtype = 324
- Protected_Type_Body = 325
- Protected_Type_Declaration = 326
- Use_Flag = 327
- End_Has_Reserved_Id = 328
- End_Has_Identifier = 329
- End_Has_Postponed = 330
- Has_Label = 331
- Has_Begin = 332
- Has_End = 333
- Has_Is = 334
- Has_Pure = 335
- Has_Body = 336
- Has_Parameter = 337
- Has_Component = 338
- Has_Identifier_List = 339
- Has_Mode = 340
- Has_Class = 341
- Has_Delay_Mechanism = 342
- Suspend_Flag = 343
- Is_Ref = 344
- Is_Forward_Ref = 345
- Psl_Property = 346
- Psl_Sequence = 347
- Psl_Declaration = 348
- Psl_Expression = 349
- Psl_Boolean = 350
- PSL_Clock = 351
- PSL_NFA = 352
- PSL_Nbr_States = 353
- PSL_Clock_Sensitivity = 354
- PSL_EOS_Flag = 355
+ Parameter_3 = 286
+ Parameter_4 = 287
+ Attr_Chain = 288
+ Signal_Attribute_Declaration = 289
+ Actual_Type = 290
+ Actual_Type_Definition = 291
+ Association_Chain = 292
+ Individual_Association_Chain = 293
+ Subprogram_Association_Chain = 294
+ Aggregate_Info = 295
+ Sub_Aggregate_Info = 296
+ Aggr_Dynamic_Flag = 297
+ Aggr_Min_Length = 298
+ Aggr_Low_Limit = 299
+ Aggr_High_Limit = 300
+ Aggr_Others_Flag = 301
+ Aggr_Named_Flag = 302
+ Aggregate_Expand_Flag = 303
+ Association_Choices_Chain = 304
+ Case_Statement_Alternative_Chain = 305
+ Choice_Staticness = 306
+ Procedure_Call = 307
+ Implementation = 308
+ Parameter_Association_Chain = 309
+ Method_Object = 310
+ Subtype_Type_Mark = 311
+ Subnature_Nature_Mark = 312
+ Type_Conversion_Subtype = 313
+ Type_Mark = 314
+ File_Type_Mark = 315
+ Return_Type_Mark = 316
+ Has_Disconnect_Flag = 317
+ Has_Active_Flag = 318
+ Is_Within_Flag = 319
+ Type_Marks_List = 320
+ Implicit_Alias_Flag = 321
+ Alias_Signature = 322
+ Attribute_Signature = 323
+ Overload_List = 324
+ Simple_Name_Identifier = 325
+ Simple_Name_Subtype = 326
+ Protected_Type_Body = 327
+ Protected_Type_Declaration = 328
+ Use_Flag = 329
+ End_Has_Reserved_Id = 330
+ End_Has_Identifier = 331
+ End_Has_Postponed = 332
+ Has_Label = 333
+ Has_Begin = 334
+ Has_End = 335
+ Has_Is = 336
+ Has_Pure = 337
+ Has_Body = 338
+ Has_Parameter = 339
+ Has_Component = 340
+ Has_Identifier_List = 341
+ Has_Mode = 342
+ Has_Class = 343
+ Has_Delay_Mechanism = 344
+ Suspend_Flag = 345
+ Is_Ref = 346
+ Is_Forward_Ref = 347
+ Psl_Property = 348
+ Psl_Sequence = 349
+ Psl_Declaration = 350
+ Psl_Expression = 351
+ Psl_Boolean = 352
+ PSL_Clock = 353
+ PSL_NFA = 354
+ PSL_Nbr_States = 355
+ PSL_Clock_Sensitivity = 356
+ PSL_EOS_Flag = 357
Get_Boolean = libghdl.vhdl__nodes_meta__get_boolean
@@ -1340,6 +1342,12 @@ Has_Parameter =\
Has_Parameter_2 =\
libghdl.vhdl__nodes_meta__has_parameter_2
+Has_Parameter_3 =\
+ libghdl.vhdl__nodes_meta__has_parameter_3
+
+Has_Parameter_4 =\
+ libghdl.vhdl__nodes_meta__has_parameter_4
+
Has_Attr_Chain =\
libghdl.vhdl__nodes_meta__has_attr_chain