From b243b3be4bd2cc038cc2b019c8795bdf5d86d03a Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 28 May 2024 21:54:25 +0200 Subject: [PATCH] test/test_phy: Update. --- test/test_phy.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/test_phy.py b/test/test_phy.py index 2e09422..4f98a78 100644 --- a/test/test_phy.py +++ b/test/test_phy.py @@ -18,8 +18,8 @@ class TestPHY(unittest.TestCase): def test_clocker_div2(self): def gen(dut): yield dut.divider.storage.eq(2) - clk = "____-_-_-_-_-_-_-_" - ce = "___-_-_-_-_-_-_-_-" + clk = "___-_-_-_-_-_-_-_" + ce = "__-_-_-_-_-_-_-_-" for i in range(len(clk)): self.assertEqual(c2bool(clk[i]), (yield dut.clk)) self.assertEqual(c2bool(ce[i]), (yield dut.ce)) @@ -30,8 +30,8 @@ def gen(dut): def test_clocker_div4(self): def gen(dut): yield dut.divider.storage.eq(4) - clk = "_____--__--__--__-" - ce = "___-___-___-___-__" + clk = "____--__--__--__-" + ce = "__-___-___-___-__" for i in range(len(clk)): self.assertEqual(c2bool(clk[i]), (yield dut.clk)) self.assertEqual(c2bool(ce[i]), (yield dut.ce)) @@ -42,8 +42,8 @@ def gen(dut): def test_clocker_div8(self): def gen(dut): yield dut.divider.storage.eq(8) - clk = "_________----____----" - ce = "_____-_______-_______" + clk = "________----____----" + ce = "____-_______-_______" for i in range(len(clk)): self.assertEqual(c2bool(clk[i]), (yield dut.clk)) self.assertEqual(c2bool(ce[i]), (yield dut.ce))