aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/libghdl/vhdl/nodes.py
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-05-26 13:37:28 +0200
committerTristan Gingold <tgingold@free.fr>2022-05-26 13:37:28 +0200
commitba126785e1ce562f242b1a104ada9cfb554f62e8 (patch)
tree235d365719d1b625b05084b92d73cf7705f5e5f0 /pyGHDL/libghdl/vhdl/nodes.py
parent58712f5c52fbe00dc83e8db9c5e262853e2b7617 (diff)
downloadghdl-ba126785e1ce562f242b1a104ada9cfb554f62e8.tar.gz
ghdl-ba126785e1ce562f242b1a104ada9cfb554f62e8.tar.bz2
ghdl-ba126785e1ce562f242b1a104ada9cfb554f62e8.zip
vhdl-canon: add Canon_Add_Suspend_State
Diffstat (limited to 'pyGHDL/libghdl/vhdl/nodes.py')
-rw-r--r--pyGHDL/libghdl/vhdl/nodes.py54
1 files changed, 52 insertions, 2 deletions
diff --git a/pyGHDL/libghdl/vhdl/nodes.py b/pyGHDL/libghdl/vhdl/nodes.py
index 196b7e811..b9a540654 100644
--- a/pyGHDL/libghdl/vhdl/nodes.py
+++ b/pyGHDL/libghdl/vhdl/nodes.py
@@ -296,8 +296,8 @@ class Iir_Kind(IntEnum):
Procedure_Call_Statement = 249
Break_Statement = 250
If_Statement = 251
- Elsif = 252
- Suspend_State_Statement = 253
+ Suspend_State_Statement = 252
+ Elsif = 253
Character_Literal = 254
Simple_Name = 255
Selected_Name = 256
@@ -1075,6 +1075,30 @@ class Iir_Kinds:
Iir_Kind.If_Statement,
]
+ Sequential_Statement_Ext = [
+ Iir_Kind.Simple_Signal_Assignment_Statement,
+ Iir_Kind.Conditional_Signal_Assignment_Statement,
+ Iir_Kind.Selected_Waveform_Assignment_Statement,
+ Iir_Kind.Signal_Force_Assignment_Statement,
+ Iir_Kind.Signal_Release_Assignment_Statement,
+ Iir_Kind.Null_Statement,
+ Iir_Kind.Assertion_Statement,
+ Iir_Kind.Report_Statement,
+ Iir_Kind.Wait_Statement,
+ Iir_Kind.Variable_Assignment_Statement,
+ Iir_Kind.Conditional_Variable_Assignment_Statement,
+ Iir_Kind.Return_Statement,
+ Iir_Kind.For_Loop_Statement,
+ Iir_Kind.While_Loop_Statement,
+ Iir_Kind.Next_Statement,
+ Iir_Kind.Exit_Statement,
+ Iir_Kind.Case_Statement,
+ Iir_Kind.Procedure_Call_Statement,
+ Iir_Kind.Break_Statement,
+ Iir_Kind.If_Statement,
+ Iir_Kind.Suspend_State_Statement,
+ ]
+
Next_Exit_Statement = [
Iir_Kind.Next_Statement,
Iir_Kind.Exit_Statement,
@@ -6696,3 +6720,29 @@ def Get_Foreign_Node(obj: Iir) -> Int32:
@BindToLibGHDL("vhdl__nodes__set_foreign_node")
def Set_Foreign_Node(obj: Iir, value: Int32) -> None:
""""""
+
+
+@export
+@BindToLibGHDL("vhdl__nodes__get_suspend_state_index")
+def Get_Suspend_State_Index(obj: Iir) -> Int32:
+ """"""
+ return 0
+
+
+@export
+@BindToLibGHDL("vhdl__nodes__set_suspend_state_index")
+def Set_Suspend_State_Index(obj: Iir, value: Int32) -> None:
+ """"""
+
+
+@export
+@BindToLibGHDL("vhdl__nodes__get_suspend_state_chain")
+def Get_Suspend_State_Chain(obj: Iir) -> Iir:
+ """"""
+ return 0
+
+
+@export
+@BindToLibGHDL("vhdl__nodes__set_suspend_state_chain")
+def Set_Suspend_State_Chain(obj: Iir, value: Iir) -> None:
+ """"""