| CPC G06F 13/1689 (2013.01) [G06F 13/1642 (2013.01); G06F 13/4027 (2013.01)] | 19 Claims |

|
1. An asynchronous FIFO read/write control method, applied to a processor having a front-end interface and a back-end interface, the method comprising:
parsing data received by the front-end interface to obtain a data packet length and valid video data;
determining an almost empty threshold of a first First Input First Output (FIFO) queue and a second FIFO queue according to the data packet length, and writing the valid video data into the first FIFO queue and the second FIFO queue in a ping-pong manner;
determining a minimum time interval of FIFO readings according to a sending time sequence of the back-end interface; and
reading data from the first FIFO queue and the second FIFO queue in the ping-pong manner according to the almost empty threshold and the minimum time interval, so as to output the read data through the back-end interface;
wherein determining the minimum time interval of FIFO readings according to the sending time sequence of the back-end interface comprises:
querying the sending time sequence of the back-end interface; wherein the sending time sequence comprises a time sequence of sending data; and
calculating the minimum time interval between two FIFO readings according to the sending time sequence;
wherein the minimum time interval between two FIFO readings comprises a minimum time interval for reading data from the first FIFO queue and the second FIFO queue in the ping-pong manner.
|