diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-07-29 06:55:56 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-07-29 06:55:56 +0200 |
commit | e704f40353cf3932c12180a2f9d67b6fef70db84 (patch) | |
tree | 028a36e2ed0631982e4f1acb736ff5c53bb0f253 /pyGHDL/libghdl/vhdl | |
parent | 630c988efbcdc8e9679df29a7521ec3b376f17fe (diff) | |
download | ghdl-e704f40353cf3932c12180a2f9d67b6fef70db84.tar.gz ghdl-e704f40353cf3932c12180a2f9d67b6fef70db84.tar.bz2 ghdl-e704f40353cf3932c12180a2f9d67b6fef70db84.zip |
vhdl-nodes: add Get/Set_Stop_Flag. For #2150
Diffstat (limited to 'pyGHDL/libghdl/vhdl')
-rw-r--r-- | pyGHDL/libghdl/vhdl/nodes.py | 13 | ||||
-rw-r--r-- | pyGHDL/libghdl/vhdl/nodes_meta.py | 45 |
2 files changed, 39 insertions, 19 deletions
diff --git a/pyGHDL/libghdl/vhdl/nodes.py b/pyGHDL/libghdl/vhdl/nodes.py index 74aadb689..e36675608 100644 --- a/pyGHDL/libghdl/vhdl/nodes.py +++ b/pyGHDL/libghdl/vhdl/nodes.py @@ -6628,6 +6628,19 @@ def Set_Suspend_Flag(obj: Iir, value: Boolean) -> None: @export +@BindToLibGHDL("vhdl__nodes__get_stop_flag") +def Get_Stop_Flag(obj: Iir) -> Boolean: + """""" + return 0 + + +@export +@BindToLibGHDL("vhdl__nodes__set_stop_flag") +def Set_Stop_Flag(obj: Iir, value: Boolean) -> None: + """""" + + +@export @BindToLibGHDL("vhdl__nodes__get_is_ref") def Get_Is_Ref(obj: Iir) -> Boolean: """""" diff --git a/pyGHDL/libghdl/vhdl/nodes_meta.py b/pyGHDL/libghdl/vhdl/nodes_meta.py index abe280c9b..dd38969a8 100644 --- a/pyGHDL/libghdl/vhdl/nodes_meta.py +++ b/pyGHDL/libghdl/vhdl/nodes_meta.py @@ -475,25 +475,26 @@ class fields(IntEnum): 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 + Stop_Flag = 358 + Is_Ref = 359 + Is_Forward_Ref = 360 + Psl_Property = 361 + Psl_Sequence = 362 + Psl_Declaration = 363 + Psl_Expression = 364 + Psl_Boolean = 365 + PSL_Clock = 366 + PSL_NFA = 367 + PSL_Nbr_States = 368 + PSL_Clock_Sensitivity = 369 + PSL_EOS_Flag = 370 + PSL_Abort_Flag = 371 + Count_Expression = 372 + Clock_Expression = 373 + Default_Clock = 374 + Foreign_Node = 375 + Suspend_State_Index = 376 + Suspend_State_Chain = 377 def Get_Boolean(node, field): @@ -2777,6 +2778,12 @@ def Has_Suspend_Flag(kind: IirKind) -> bool: @export +@BindToLibGHDL("vhdl__nodes_meta__has_stop_flag") +def Has_Stop_Flag(kind: IirKind) -> bool: + """""" + + +@export @BindToLibGHDL("vhdl__nodes_meta__has_is_ref") def Has_Is_Ref(kind: IirKind) -> bool: """""" |