From cd89b62ff65a3eaba78a05b6b15d51835adc7bac Mon Sep 17 00:00:00 2001 From: Maciej Dudek Date: Wed, 25 Jan 2023 11:35:20 +0100 Subject: [PATCH] liblitedram: Fix LFSR LFSR only returns 1 random bit per lfsr() call, so we should concatenate 8 consecutive calls to obtain 1 random byte Signed-off-by: Maciej Dudek --- litex/soc/software/liblitedram/sdram.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/litex/soc/software/liblitedram/sdram.c b/litex/soc/software/liblitedram/sdram.c index 86cdfa303..aea05759e 100644 --- a/litex/soc/software/liblitedram/sdram.c +++ b/litex/soc/software/liblitedram/sdram.c @@ -301,9 +301,10 @@ static void print_scan_errors(unsigned int errors) { #define MODULE_BITMASK ((1<