aboutsummaryrefslogtreecommitdiffstats
path: root/display.v
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2003-09-19 07:32:06 +0000
committerH. Peter Anvin <hpa@zytor.com>2003-09-19 07:32:06 +0000
commita98dc390917e4e0386cebb677f41568f10544253 (patch)
tree27bab65a92f509a44387d07c7f36f1dbde8f5d2e /display.v
parent7b63ed0cea0437ca63bcb7a8dff0802413241ad9 (diff)
downloadabc80-a98dc390917e4e0386cebb677f41568f10544253.tar.gz
abc80-a98dc390917e4e0386cebb677f41568f10544253.tar.xz
abc80-a98dc390917e4e0386cebb677f41568f10544253.zip
Flash
Diffstat (limited to 'display.v')
-rw-r--r--display.v25
1 files changed, 13 insertions, 12 deletions
diff --git a/display.v b/display.v
index 2a8f328..3d87c4d 100644
--- a/display.v
+++ b/display.v
@@ -105,6 +105,7 @@ module display (
// Flashing
assign flash_blank = scan_counter[5];
+ assign iflash = inverse ^ flash_blank;
// Synchronous logic
@@ -113,21 +114,21 @@ module display (
if ( xvideo & yvideo )
if ( pixrow[7] & ~(isflsh & flash_blank) )
begin
- rgb[5] <= fg[2] ^ inverse;
- rgb[4] <= fg[2] ^ inverse;
- rgb[3] <= fg[1] ^ inverse;
- rgb[2] <= fg[1] ^ inverse;
- rgb[1] <= fg[0] ^ inverse;
- rgb[0] <= fg[0] ^ inverse;
+ rgb[5] <= fg[2] ^ iflash;
+ rgb[4] <= fg[2] ^ iflash;
+ rgb[3] <= fg[1] ^ iflash;
+ rgb[2] <= fg[1] ^ iflash;
+ rgb[1] <= fg[0] ^ iflash;
+ rgb[0] <= fg[0] ^ iflash;
end
else
begin
- rgb[5] <= bg[2] ^ inverse;
- rgb[4] <= bg[2] ^ inverse;
- rgb[3] <= bg[1] ^ inverse;
- rgb[2] <= bg[1] ^ inverse;
- rgb[1] <= bg[0] ^ inverse;
- rgb[0] <= bg[0] ^ inverse;
+ rgb[5] <= bg[2] ^ iflash;
+ rgb[4] <= bg[2] ^ iflash;
+ rgb[3] <= bg[1] ^ iflash;
+ rgb[2] <= bg[1] ^ iflash;
+ rgb[1] <= bg[0] ^ iflash;
+ rgb[0] <= bg[0] ^ iflash;
end
else
rgb <= 6'b0;