摘要 |
The present invention provides a method for implementing packet searching by using two sliding windows. In the method, a three-level barrel shift register stores input packet data, and determines the position of a sliding window 1 from 32 positions by means of a preliminary test of a link, so as to ensure that the packet data is at the central position of the sliding window 1, thereby ensuring that the position of the sliding window 1 meets the transmission characteristic of a specific link to the highest degree; and after the position of the sliding window 1 is determined, in a dynamic adjustment manner of a sliding window 2, the sliding window 1 is effectively searched for 32-bit packet data, and it is allowed that the packet data shifts by 32 bits during transmission. In consideration of the effect of a delay of a high-speed transmission link transmission line on the link transmission, with the method for implementing packet searching by using two sliding windows, the transmission characteristic of a specific link is met to the highest degree. The method for implementing packet searching by using two sliding windows improves the stability of packet transmission through the high-speed link and the consistency of packet transmission through multiple channels, thereby having a high technical value and a high application value in the implementation of a high-speed interconnected interface logic or protocol. |