projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7649028
)
test/test_cordic: fix for new Simulation API
author
Robert Jordens
<jordens@gmail.com>
Mon, 24 Mar 2014 15:32:27 +0000
(09:32 -0600)
committer
Sebastien Bourdeauducq
<sb@m-labs.hk>
Mon, 24 Mar 2014 22:01:44 +0000
(15:01 -0700)
migen/test/test_cordic.py
patch
|
blob
|
history
diff --git
a/migen/test/test_cordic.py
b/migen/test/test_cordic.py
index 2110ec8f4184b79efdb2fe7e7049a8250f624c9d..2073a88e80fe7e5c4ca5fe8e3fd52bae8784e19f 100644
(file)
--- a/
migen/test/test_cordic.py
+++ b/
migen/test/test_cordic.py
@@
-44,9
+44,9
@@
class CordicCase(SimCase, unittest.TestCase):
xo = floor(xo*c*g)
yo = floor(yo*c*g)
zo = floor(zo*c/zm)
- xo1 =
s.rd(tb.dut.xo)
- yo1 =
s.rd(tb.dut.yo)
- zo1 =
s.rd(tb.dut.zo)
+ xo1 =
tbp.dut.xo
+ yo1 =
tbp.dut.yo
+ zo1 =
tbp.dut.zo
print((xi, yi, zi), (xo, yo, zo), (xo1, yo1, zo1))
self.assertAlmostEqual(xo, xo1, delta=delta)
self.assertAlmostEqual(yo, yo1, delta=delta)