frontend/bist: make LFSR output comb

Otherwise first output after reset is 0.

Signed-off-by: Michal Sieron <msieron@antmicro.com>
This commit is contained in:
Michal Sieron 2023-01-11 14:39:54 +01:00
parent f466c5f1db
commit 73c3ec6b68
1 changed files with 2 additions and 4 deletions

View File

@ -52,10 +52,8 @@ class LFSR(Module):
curval.insert(0, nv) curval.insert(0, nv)
curval.pop() curval.pop()
self.sync += [ self.sync += state.eq(Cat(*curval[:n_state]))
state.eq(Cat(*curval[:n_state])), self.comb += self.o.eq(Cat(*curval))
self.o.eq(Cat(*curval))
]
# Counter ------------------------------------------------------------------------------------------ # Counter ------------------------------------------------------------------------------------------