Skip to content

Commit

Permalink
Redo previous change. Do not use internal _domains.
Browse files Browse the repository at this point in the history
  • Loading branch information
bl0x committed Feb 3, 2022
1 parent a87e567 commit e601170
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/test_sim.py
Expand Up @@ -518,11 +518,11 @@ def process():

def setUp_clock_phase(self):
self.m = Module()
self.m.domains.phase0 = ClockDomain()
self.m.domains.phase90 = ClockDomain()
self.m.domains.phase180 = ClockDomain()
self.m.domains.phase270 = ClockDomain()
self.m.domains.check = ClockDomain()
self.phase0 = self.m.domains.phase0 = ClockDomain()
self.phase90 = self.m.domains.phase90 = ClockDomain()
self.phase180 = self.m.domains.phase180 = ClockDomain()
self.phase270 = self.m.domains.phase270 = ClockDomain()
self.check = self.m.domains.check = ClockDomain()

self.expected = [
[0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0],
Expand All @@ -543,10 +543,10 @@ def test_clock_phase(self):

def proc():
clocks = [
self.m._domains["phase0"].clk,
self.m._domains["phase90"].clk,
self.m._domains["phase180"].clk,
self.m._domains["phase270"].clk
self.phase0.clk,
self.phase90.clk,
self.phase180.clk,
self.phase270.clk
]
for i in range(16):
yield
Expand Down

0 comments on commit e601170

Please sign in to comment.