projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d1fc5a
)
add debug prints in old simulator
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 25 Nov 2021 21:38:54 +0000
(21:38 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 25 Nov 2021 21:46:42 +0000
(21:46 +0000)
src/soc/experiment/sim.py
patch
|
blob
|
history
diff --git
a/src/soc/experiment/sim.py
b/src/soc/experiment/sim.py
index 0547bda6e0bce9dda11d9bace38b0e52d3999cc3..d96cb54dff34f417755c215e9466f81ef078e5bd 100644
(file)
--- a/
src/soc/experiment/sim.py
+++ b/
src/soc/experiment/sim.py
@@
-44,11
+44,13
@@
class RegSim:
src2 = self.regs[src2] & maxbits
if op == MicrOp.OP_ADD:
val = src1 + src2
+ print(" add src1, src2", src1, src2, val)
elif op == MicrOp.OP_MUL_L64:
val = src1 * src2
- print("mul src1, src2", src1, src2, val)
+ print("
mul src1, src2", src1, src2, val)
elif op == ISUB:
val = src1 - src2
+ print(" sub src1, src2", src1, src2, val)
elif op == ISHF:
val = src1 >> (src2 & maxbits)
elif op == IBGT: