Skip to content

Commit bc4d26c

Browse files
committed
Corrects range size that worked anyway
1 parent d631f8c commit bc4d26c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

answers/e03_cell3x3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def elaborate(self, _: Platform) -> Module:
2020
"""Implements the logic for the Cell3x3 module."""
2121
m = Module()
2222

23-
neighbors = Signal(range(8))
23+
neighbors = Signal(range(9))
2424
c = self.input
2525
m.d.comb += neighbors.eq(c[0] + c[1] + c[2] +
2626
c[3] + c[5] +

0 commit comments

Comments
 (0)