摘要 |
Systems and methods for reading a stream of high-speed data without interrupting the data or reading beyond the end of a desired frame. In one embodiment, a method comprises: receiving a plurality of frames, wherein each frame includes a plurality of words, wherein each frame includes an end-of-frame (EOF) delimiter in the last word in the frame; storing the plurality of frames in a buffer, wherein each word in each frame is stored with an early-end-of-frame (early_EOF) flag and wherein the early-end-of-frame flag is set if and only if the word immediately precedes the last word of the corresponding frame; and when a frame is to be read out of the buffer, sequentially reading words out of the buffer until a word in which the early_EOF flag is set is detected, then reading the word following the word in which the early_EOF flag is set and terminating the read. |