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 28, 2024
1 parent a053251 commit b243b3b
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 b243b3b

Please sign in to comment.