Skip to content

Commit 38b7bb0

Browse files
committed
Tweak grey bars so that they work better on 1-bit per colour output.
1 parent e20e87b commit 38b7bb0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hdl/demo/test_card_simple.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module test_card_simple #(H_RES=640) (
2525
wire b7 = (i_x >= HW * 7) & (i_x < HW * 8);
2626

2727
// Colour Output
28-
assign o_red = {8{b0 | b1 | b5}} + {1'b0,{7{b6}}} + {2'b0,{6{b7}}};
29-
assign o_green = {8{b1 | b2 | b3}} + {1'b0,{7{b6}}} + {2'b0,{6{b7}}};
30-
assign o_blue = {8{b3 | b4 | b5}} + {1'b0,{7{b6}}} + {2'b0,{6{b7}}};
28+
assign o_red = {8{b0 | b1 | b5}} + {2'b0,{6{b6}}} + {b7, 7'b0};
29+
assign o_green = {8{b1 | b2 | b3}} + {2'b0,{6{b6}}} + {b7, 7'b0};
30+
assign o_blue = {8{b3 | b4 | b5}} + {2'b0,{6{b6}}} + {b7, 7'b0};
3131
endmodule

0 commit comments

Comments
 (0)