- fixed bounds check error
git-svn-id: http://moon:8086/svn/vhdl/trunk@1510 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
@@ -137,7 +137,9 @@ proc_bus_read_counter:
|
||||
elsif cmd_read_en = '1' and read_fifo_empty = '1' then
|
||||
read_cnt <= read_cnt + 1;
|
||||
elsif cmd_read_en = '0' and read_fifo_empty = '0' and dout_re = '1' then
|
||||
read_cnt <= read_cnt - 1;
|
||||
if read_cnt > 0 then
|
||||
read_cnt <= read_cnt - 1;
|
||||
end if;
|
||||
end if;
|
||||
end if;
|
||||
end process;
|
||||
|
||||
Reference in New Issue
Block a user