summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-01-28 02:35:45 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2007-01-28 02:35:45 (GMT)
commit4728fa9df1b888aaaf86b6e7a098538f9d05c936 (patch)
tree80bbf36bd80ee4e79a49663cac173ae28ac520a6
parent8619a928ae964add329d367210179f54382021a0 (diff)
downloadcfplayer-4728fa9df1b888aaaf86b6e7a098538f9d05c936.zip
cfplayer-4728fa9df1b888aaaf86b6e7a098538f9d05c936.tar.gz
cfplayer-4728fa9df1b888aaaf86b6e7a098538f9d05c936.tar.bz2
cfplayer-4728fa9df1b888aaaf86b6e7a098538f9d05c936.tar.xz
Don't start unless the CF card is ready...
-rw-r--r--cfstream.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/cfstream.v b/cfstream.v
index 3747ed5..2160d61 100644
--- a/cfstream.v
+++ b/cfstream.v
@@ -133,7 +133,7 @@ module cfstream(
cf_we_n <= 1;
cf_oe_n <= 1;
- if ( !fifo_almost_full )
+ if ( ~fifo_almost_full & cf_bsy_n & cf_wait_n )
state <= `FSM_SEND_23;
end
@@ -209,7 +209,7 @@ module cfstream(
`FSM_WAIT_BSY:
begin
bsy_ctr <= bsy_ctr + 1;
- if ( !cf_bsy_n )
+ if ( ~cf_bsy_n )
state <= `FSM_WAIT_RDY;
end