Explicitly define reset value in cycle signal for uniqueness check
This commit is contained in:
parent
32388adce0
commit
c4cbc4bfea
|
@ -555,7 +555,7 @@ class UniqueSpec(Elaboratable):
|
||||||
m.d.comb += cpu.dbus.ack.eq(AnySeq(1))
|
m.d.comb += cpu.dbus.ack.eq(AnySeq(1))
|
||||||
m.d.comb += cpu.dbus.err.eq(0)
|
m.d.comb += cpu.dbus.err.eq(0)
|
||||||
|
|
||||||
cycle = Signal(8)
|
cycle = Signal(8, reset=0)
|
||||||
with m.If(cycle != 0xFF):
|
with m.If(cycle != 0xFF):
|
||||||
m.d.sync += cycle.eq(cycle + 1)
|
m.d.sync += cycle.eq(cycle + 1)
|
||||||
m.d.comb += unique_spec.reset.eq(cycle < 1)
|
m.d.comb += unique_spec.reset.eq(cycle < 1)
|
||||||
|
|
Loading…
Reference in New Issue