summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-11-10 03:05:21 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2011-11-10 03:05:21 (GMT)
commit4783d2a98569417997b31e5f8c8dd6eeb17cd727 (patch)
tree653c0a88132768755e13c2670bc42924e00e919b
parent1f95b6880a501438930b8c75c50354c3bfeba991 (diff)
downloadabc8000-old-4783d2a98569417997b31e5f8c8dd6eeb17cd727.zip
abc8000-old-4783d2a98569417997b31e5f8c8dd6eeb17cd727.tar.gz
abc8000-old-4783d2a98569417997b31e5f8c8dd6eeb17cd727.tar.bz2
abc8000-old-4783d2a98569417997b31e5f8c8dd6eeb17cd727.tar.xz
display.v: make sure we don't ack data when we shouldn't...
We should only ack data when consuming it...
-rw-r--r--display.v4
1 files changed, 3 insertions, 1 deletions
diff --git a/display.v b/display.v
index 1827e99..529e572 100644
--- a/display.v
+++ b/display.v
@@ -260,6 +260,8 @@ module display (
end // if (~rst_n)
else
begin
+ vdu_ack_q <= 1'b0;
+
if ( advance )
begin
if ( ~|pixelcnt )
@@ -281,7 +283,7 @@ module display (
2'b10: pixeldata <= { pixeldata[11:0], 4'bxxxx };
2'b11: pixeldata <= { pixeldata[ 7:0], 8'bxxxxxxxx };
endcase // case(ctl_mode & {2{~xblank}})
- pixelcnt <= pixelcnt - 1;
+ pixelcnt <= pixelcnt - 1'b1;
end // else: !if( pixelcnt == 3'd0 )
end // if ( advance )