mirror of
https://github.com/enjoy-digital/litedram.git
synced 2025-01-04 09:52:25 -05:00
frontend/bist: fix for data_width < 31 (16 bits SDRAMs)
This commit is contained in:
parent
b4c552a77f
commit
031746a53c
1 changed files with 2 additions and 1 deletions
|
@ -337,12 +337,13 @@ class _LiteDRAMBISTChecker(Module, AutoCSR):
|
|||
),
|
||||
NextValue(self.ticks, 0)
|
||||
)
|
||||
|
||||
data_fsm.act("RUN",
|
||||
dma.source.ready.eq(1),
|
||||
If(dma.source.valid,
|
||||
data_gen.ce.eq(1),
|
||||
NextValue(data_counter, data_counter + 1),
|
||||
If(dma.source.data != data_gen.o,
|
||||
If(dma.source.data != data_gen.o[:min(len(data_gen.o), dram_port.data_width)],
|
||||
NextValue(self.errors, self.errors + 1)
|
||||
),
|
||||
If(data_counter == (self.length[ashift:] - 1),
|
||||
|
|
Loading…
Reference in a new issue