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:
parent
f466c5f1db
commit
73c3ec6b68
|
@ -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 ------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue