Skip to content

Commit

Permalink
test/test_ecc: Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Jun 8, 2021
1 parent 8b606cd commit 2fcc6fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_ecc.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class DUT(Module):
def __init__(self):
eccw = LiteDRAMNativePortECCW(data_width_from=32*8, data_width_to=39*8)
self.submodules.eccw = eccw
self.comb += eccw.sink.we.eq(2**(32*8)-1)

def main_generator(dut):
yield
Expand Down Expand Up @@ -179,6 +180,7 @@ def main_generator(dut):
yield port.cmd.valid.eq(0)
yield
yield port.wdata.valid.eq(1)
yield port.wdata.we.eq(2**from_width-1)
yield port.wdata.data.eq(dut.wdata[i])
yield
while (yield port.wdata.ready) == 0:
Expand Down

0 comments on commit 2fcc6fe

Please sign in to comment.