Multi-stage lookup for translating between signals of different bit lengths
First Claim
1. A method for translating an input digital data having a first number of bits to an output digital data having a second number of bits, the first number of bits greater than the second number of bits, comprising the steps of:
- portioning the input digital data into a first subset and a plurality of equal size of second subsets, the number of bits of the first subset being at least the same as the number of bits of the output digital data;
providing a multi-stage lookup table comprising a same number of stages as a number of portioned second subsets, each stage lookup table storing indexed data having the same number of bits as the output digital data; and
sequentially performing by each stage lookup table, a lookup in each of the lookup tables, a first lookup to a first stage lookup table performed using a first index equal to a combination of the first subset and a first portioned second subset, a next lookup to a next stage lookup table performed using a second index equal to a combination of a result of a previous lookup and a next portioned second subset and the output digital data provided as a result of a last lookup to a last stage lookup table.
10 Assignments
0 Petitions
Accused Products
Abstract
A method and apparatus is provided for translating an L-bit put signal to a W-bit output signal such as a virtual network identification signal to an internal virtual network signal. The translation is performed using a multi-stage lookup. The input signal is portioned into a plurality of subsets of bits. A first index to a first stage is provided by combining a portion of bits and a first delta subset of bits. A second index to a second stage is provided by combining data stored at the first index in the first stage and the a second delta subset of bits. The corresponding output signal is stored at the last index in the last stage. The use of the multi-stage lookup instead of a single-stage lookup reduces the memory required to perform the translation.
-
Citations
16 Claims
-
1. A method for translating an input digital data having a first number of bits to an output digital data having a second number of bits, the first number of bits greater than the second number of bits, comprising the steps of:
-
portioning the input digital data into a first subset and a plurality of equal size of second subsets, the number of bits of the first subset being at least the same as the number of bits of the output digital data;
providing a multi-stage lookup table comprising a same number of stages as a number of portioned second subsets, each stage lookup table storing indexed data having the same number of bits as the output digital data; and
sequentially performing by each stage lookup table, a lookup in each of the lookup tables, a first lookup to a first stage lookup table performed using a first index equal to a combination of the first subset and a first portioned second subset, a next lookup to a next stage lookup table performed using a second index equal to a combination of a result of a previous lookup and a next portioned second subset and the output digital data provided as a result of a last lookup to a last stage lookup table. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method for translating an input digital data having a first number of bits to an output digital data having a second number of bits, the first number of bits is greater than the second number of bits, comprising the steps of:
-
portioning the input digital data into a first subset and a plurality of equal size of second subsets, the number of bits of the first subset being the same as the number of bits of the output digital;
providing a multi-stage lookup table comprising a same number of stages as a number of portioned second subsets, each stage lookup table having a same width as the number of bits of the output digital data;
indexing to a first stage lookup table of the multi-stage lookup table using an index equal to a combination of the first subset and a first portioned second subset, and providing an indexed data to the next stage lookup table;
continuing indexing to the next stage lookup table using an index equal to a combination of the indexed data from previous stage lookup table and a following portioned second subset to provide an indexed data to the next stage lookup table until a last stage lookup table is indexed; and
providing the indexed data from the last stage lookup table as the output digital data. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
Specification