initial commit of sim state class
authorklehman <klehman9@comcast.net>
Wed, 8 Sep 2021 13:03:13 +0000 (09:03 -0400)
committerklehman <klehman9@comcast.net>
Wed, 8 Sep 2021 13:03:13 +0000 (09:03 -0400)
src/soc/simple/test/teststate.py [new file with mode: 0644]

diff --git a/src/soc/simple/test/teststate.py b/src/soc/simple/test/teststate.py
new file mode 100644 (file)
index 0000000..0520d16
--- /dev/null
@@ -0,0 +1,11 @@
+class SimState:
+    def __init__(self, sim):
+        self.sim = sim
+
+    def get_intregs(self):
+        self.intregs = []
+        for i in range(32):
+            simregval = self.sim.gpr[i].asint()
+            self.intregs.append(simregval)
+
+# HDL class here with same functions