From 73c3ec6b68ec08d2b0f21323cbf1a463ff5232aa Mon Sep 17 00:00:00 2001 From: Michal Sieron Date: Wed, 11 Jan 2023 14:39:54 +0100 Subject: [PATCH] frontend/bist: make LFSR output comb Otherwise first output after reset is 0. Signed-off-by: Michal Sieron --- litedram/frontend/bist.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/litedram/frontend/bist.py b/litedram/frontend/bist.py index 3414e91..c7dee9d 100644 --- a/litedram/frontend/bist.py +++ b/litedram/frontend/bist.py @@ -52,10 +52,8 @@ class LFSR(Module): curval.insert(0, nv) curval.pop() - self.sync += [ - state.eq(Cat(*curval[:n_state])), - self.o.eq(Cat(*curval)) - ] + self.sync += state.eq(Cat(*curval[:n_state])) + self.comb += self.o.eq(Cat(*curval)) # Counter ------------------------------------------------------------------------------------------