From: Robert Jordens Date: Mon, 24 Mar 2014 15:32:27 +0000 (-0600) Subject: test/test_cordic: fix for new Simulation API X-Git-Tag: 24jan2021_ls180~2099^2~373 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9deddbdfbc91cee904c97e5a8f7140ae5adfbca9;p=litex.git test/test_cordic: fix for new Simulation API --- diff --git a/migen/test/test_cordic.py b/migen/test/test_cordic.py index 2110ec8f..2073a88e 100644 --- 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)