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>2014-02-11 02:07:50 (GMT)
commit2f61f743f83613e35ef8692ca30213bf74f62246 (patch)
tree382146356fc8b2ebf25a3937c7be57eb1c55df60
parentee82ba1459bb3b6729752e38d403053693522806 (diff)
downloadabc8000-2f61f743f83613e35ef8692ca30213bf74f62246.zip
abc8000-2f61f743f83613e35ef8692ca30213bf74f62246.tar.gz
abc8000-2f61f743f83613e35ef8692ca30213bf74f62246.tar.bz2
abc8000-2f61f743f83613e35ef8692ca30213bf74f62246.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 59bf8ab..efad8d7 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 )