test/test_cordic: fix for new Simulation API

This commit is contained in:
Robert Jordens 2014-03-24 09:32:27 -06:00 committed by Sebastien Bourdeauducq
parent 7649028bdc
commit 9deddbdfbc
1 changed files with 3 additions and 3 deletions

View File

@ -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)