摘要 |
A method for coding a switch based on a variable is provided. The method includes copying a nonzero bit from a setting register to a corresponding bit in a rotating predicate register by moving said bit into the rotating predicate register, and performing a single case function computation based on the corresponding bit in the rotating predicate register. Alternately, the method may comprise using a register rename base value modulo summed with a virtual predicate file to rename the predicate register. In certain conditions, the design may include testing values being moved into the static predicate or rotating predicate register to determine whether the value exceeds an acceptable range.
|