Skip to content

Commit

Permalink
test/test_phy: Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed May 13, 2024
1 parent 15bc2db commit 6d8b004
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/test_phy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand All @@ -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))
Expand Down

0 comments on commit 6d8b004

Please sign in to comment.