projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a396fe8
)
initial commit of sim state class
author
klehman
<klehman9@comcast.net>
Wed, 8 Sep 2021 13:03:13 +0000
(09:03 -0400)
committer
klehman
<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]
patch
|
blob
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
+++ b/
src/soc/simple/test/teststate.py
@@ -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