Method and system for reordering bytes in a data stream
First Claim
1. A computer implemented method for translating a source sequence of ordered data units into a destination sequence having a different ordering of said data units, the method comprising the computer implemented steps of:
- using machine-specific data unit packing parameters to generate a source sequence signal, ES, which identifies the ordering of units within the source sequence;
using machine-specific data unit packing parameters to generate a destination sequence signal, ED, which identifies the ordering of units within the destination sequence;
combining the source sequence signal and the destination sequence signal to produce a permutation signal, EP, according to the formula;
space="preserve" listing-type="equation">E.sub.P =(E.sub.S XOR E.sub.D)AND(n-1)where n is equal to the number of data units to be translated and is greater than two; and
reordering the units from the source sequence in response to the permutation signal to produce a translated destination sequence.
0 Assignments
0 Petitions
Accused Products
Abstract
A method and system are disclosed for efficiently translating data from one known data sequencing arrangement to an alternative sequencing arrangement. The method consists of the steps of generating a source sequence signal which identifies the ordering of units within the source sequence, generating a destination sequence signal which identifies the ordering of units within the destination sequence, and combining the source signal and destination signal to produce a permutation signal which defines the relationship between the source sequence and the destination sequence. Once the permutation signal has been defined, this permutation signal is applied to the source sequence to allow the reordering of the source sequence into the desired destination sequence. A reordering circuit is used to rearrange the source sequence units into the desired destination sequence units utilizing the permutation signal generated in the present invention. The reordering circuit consists of an array of ordered swap units which contain inputs for source sequence signals and permutation signals, and outputs which propagate destination sequences.
33 Citations
10 Claims
-
1. A computer implemented method for translating a source sequence of ordered data units into a destination sequence having a different ordering of said data units, the method comprising the computer implemented steps of:
-
using machine-specific data unit packing parameters to generate a source sequence signal, ES, which identifies the ordering of units within the source sequence; using machine-specific data unit packing parameters to generate a destination sequence signal, ED, which identifies the ordering of units within the destination sequence; combining the source sequence signal and the destination sequence signal to produce a permutation signal, EP, according to the formula;
space="preserve" listing-type="equation">E.sub.P =(E.sub.S XOR E.sub.D)AND(n-1)where n is equal to the number of data units to be translated and is greater than two; and reordering the units from the source sequence in response to the permutation signal to produce a translated destination sequence. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A computer system for translating a source sequence of n ordered data units into a desired destination sequence having a different ordering, the computer system comprising:
-
means for using machine-specific data unit packing parameters to generate a source sequence signal, ES, which identifies the ordering of units within the source sequence; means for using machine-specific data unit packing parameters to generate a destination sequence signal, ED, which identifies the ordering of units within the destination sequence; means for combining the source sequence signal and destination sequence signal to produce a permutation signal, EP defined by the formula;
EP =(ES XOR ED)AND(n-1) where n is greater than two; andmeans for reordering the units from the source sequence in response to the permutation signal to produce a translated destination sequence of data units. - View Dependent Claims (7, 8, 9, 10)
-
Specification