frontend/bist: restrict lfsr to 32 bit allow bist with large ddram
msbs data are then filled with zeros, but we should fix lfsr generation to avoid this
This commit is contained in:
parent
33ca8d604e
commit
86b0cc0a56
|
@ -84,7 +84,7 @@ class _LiteDRAMBISTGenerator(Module):
|
||||||
# # #
|
# # #
|
||||||
|
|
||||||
gen_cls = LFSR if random else Counter
|
gen_cls = LFSR if random else Counter
|
||||||
gen = gen_cls(dram_port.dw)
|
gen = gen_cls(min(dram_port.dw, 32)) # FIXME: remove lfsr limitation
|
||||||
dma = LiteDRAMDMAWriter(dram_port)
|
dma = LiteDRAMDMAWriter(dram_port)
|
||||||
self.submodules += dma, gen
|
self.submodules += dma, gen
|
||||||
|
|
||||||
|
@ -210,7 +210,7 @@ class _LiteDRAMBISTChecker(Module, AutoCSR):
|
||||||
# # #
|
# # #
|
||||||
|
|
||||||
gen_cls = LFSR if random else Counter
|
gen_cls = LFSR if random else Counter
|
||||||
gen = gen_cls(dram_port.dw)
|
gen = gen_cls(min(dram_port.dw, 32)) # FIXME: remove lfsr limitation
|
||||||
dma = LiteDRAMDMAReader(dram_port)
|
dma = LiteDRAMDMAReader(dram_port)
|
||||||
self.submodules += dma, gen
|
self.submodules += dma, gen
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue