Skip to content

Commit 51dcf73

Browse files
committed
Alter index counter logic
1 parent f640e9e commit 51dcf73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/matrix.v

+3-3
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ module chrisruk_matrix #( parameter MAX_COUNT = 1000 ) (
124124
strip_1 <= ledreg2[idx];
125125
end
126126

127-
idx = idx + 1;
128-
if (idx == 32) begin
127+
if (idx == 31) begin
129128
idx <= 0;
130129
pidx <= pidx + 1;
130+
end else begin
131+
idx <= idx + 1;
131132
end
132-
133133
counter1 <= counter1 + 1;
134134
end else if (counter1 < 32 + (32 * (8*8)) + 32 + 32) begin
135135
// Need zeros at end of pattern

0 commit comments

Comments
 (0)