Patent ID: 6785299
Filing Date: 2004-08-31
Classification: H04J,H04L

Abstract:
A method for encoding data in a High level Data Link Control (HDLC) protocol frame comprising the steps of:inputting a stream of data having a data width of w-bits into an N-bit register where N>w; examining w-bits from the N-bit register and determining a bit count number of bits to transfer to an output buffer; inserting a zero into the output buffer if the examined w-bits from the N-bit register indicates to perform a zero insert in accordance with the HDLC protocol; outputting the bit count number of bits to the output buffer; if the bit count number of bits =w, selecting a next w-bits from the N-bit register to examine, the next w-bits including a w-unexamined bits next to the examined w-bits; if the bit count number of bits repeating the steps of examining, inserting, outputting and selecting until all of the stream of data bits has been encoded.