From 9357c5b5ddf1a78430fd071d6ab47066e6babb05 Mon Sep 17 00:00:00 2001 From: Niels Moseley Date: Wed, 9 May 2018 03:15:01 +0200 Subject: [PATCH] Updated DE0 project to fix lumination bug in VGA. --- rtl/boards/terasic_de0/apple1_de0_top.v | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/rtl/boards/terasic_de0/apple1_de0_top.v b/rtl/boards/terasic_de0/apple1_de0_top.v index 45fae75..7ae0ebd 100644 --- a/rtl/boards/terasic_de0/apple1_de0_top.v +++ b/rtl/boards/terasic_de0/apple1_de0_top.v @@ -64,7 +64,7 @@ module apple1_de0_top #( clk25 <= ~clk25; end - wire r_bit, g_bits, b_bits; + wire r_bit, g_bit, b_bit; ////////////////////////////////////////////////////////////////////////// // Core of system @@ -92,12 +92,9 @@ module apple1_de0_top #( ); // set the monochrome base colour here.. - assign VGA_R[3] = r_bit; - assign VGA_G[3] = g_bit; - assign VGA_B[3] = b_bit; - assign VGA_R[2:0] = 3'b000; - assign VGA_G[2:0] = 3'b000; - assign VGA_B[2:0] = 3'b000; + assign VGA_R[3:0] = {4{r_bit}}; + assign VGA_G[3:0] = {4{g_bit}}; + assign VGA_B[3:0] = {4{b_bit}}; ////////////////////////////////////////////////////////////////////////// // Display 6502 address on 7-segment displays