Untitled
public text v1 · immutable for (i = 0; i < 16; i = i + 2) begin
for (j = 0; j < 16; j = j + 2) begin
if ( (x > (i * 80) && x < ((i + 1) * 80)) &&
(y > (j * 80) && y < ((j + 1) * 80)) ) begin
red <= 10'b11_1111_1111;
green <= 10'd0;
blue <= 10'd0;
// with a blue background
end else if ( (x > ((i + 1) * 80) && x < ((i + 2) * 80)) &&
(y > ((j + 1) * 80) && y < ((j + 2) * 80)) ) begin
red <= 10'd0;
green <= 10'd0;
blue <= 10'b11_1111_1111;
end
end
end