]> git.zerfleddert.de Git - fpga-games/blobdiff - galaxian/src/mc_vga_if.v
fix vga colours
[fpga-games] / galaxian / src / mc_vga_if.v
index 707e8a1e6d7d4b05ba458bab4af79b887c0a76f8..4883686c3f13165446bdc20e269213779c52cbde 100644 (file)
@@ -45,9 +45,9 @@ input I_H_SYNC;        // HSYNC input (16KHz)
 input I_V_SYNC;        // VSYNC input (60Hz)\r
 \r
 // output signals\r
-output [4:0]O_R;       // R out\r
-output [4:0]O_G;       // G out\r
-output [4:0]O_B;       // B out\r
+output [2:0]O_R;       // R out\r
+output [2:0]O_G;       // G out\r
+output [1:0]O_B;       // B out\r
 output O_H_SYNCn;      // HSYNC output\r
 output O_V_SYNCn;      // VSYNC output\r
 \r
@@ -174,9 +174,9 @@ end
 // output\r
 //---------------------------------------------------------------------------\r
 \r
-assign O_R = {2'b00,rgb_out[7:5]}\r
-assign O_G = {2'b00,rgb_out[4:2]};\r
-assign O_B = {3'b000,rgb_out[1:0]}\r
+assign O_R = rgb_out[7:5]\r
+assign O_G = rgb_out[4:2];\r
+assign O_B = rgb_out[1:0]\r
 \r
 // converted  H V SYNC\r
 assign O_H_SYNCn = ~O_Hsync;\r
Impressum, Datenschutz