docs._code: led to led.o

This commit is contained in:
Sohaib Errabii 2024-05-04 17:56:30 -07:00 committed by Catherine
parent 9201cc3179
commit 79d9f5e8a4

View file

@ -11,7 +11,7 @@ class LEDBlinker(Elaboratable):
timer = Signal(range(half_freq + 1))
with m.If(timer == half_freq):
m.d.sync += led.eq(~led)
m.d.sync += led.o.eq(~led.o)
m.d.sync += timer.eq(0)
with m.Else():
m.d.sync += timer.eq(timer + 1)