摘要 |
A structure and a method capable of both packing data into and unpacking data from either the little endian or the big endian format are provided. Under the structure and method of the present invention, the packed or unpacked data, as the case may be, is only shifted in one direction. During a packing operation, a stream of n-bit data is packed into a stream of m-bit words. During an unpacking operation, a stream of m-bit packed data is unpacked into a stream of n-bit words. n</=m.
|