Bit field selection instruction
First Claim
Patent Images
1. A method whereby a processor executes an instruction, the method comprising:
- (a) extracting an N-bit contiguous bit field from, high order bits of a first source operand designated by a first source operand designator of the instruction, and low order bits of a second source operand designated by a second source operand designator of the instruction; and
(b) writing the N-bit contiguous bit field to a destination designated by a destination designator of the instruction;
wherein the first and second source operands are treated as a 2N-bit operand.
1 Assignment
0 Petitions
Accused Products
Abstract
A digital signal processor having a generalized bit field extraction instruction which can be used to perform a bit field selection operation, a rotate left operation, a rotate right operation, a shift left operation, a logical shift right operation, an arithmetic shift right operation, and so forth.
34 Citations
33 Claims
-
1. A method whereby a processor executes an instruction, the method comprising:
-
(a) extracting an N-bit contiguous bit field from, high order bits of a first source operand designated by a first source operand designator of the instruction, and low order bits of a second source operand designated by a second source operand designator of the instruction; and
(b) writing the N-bit contiguous bit field to a destination designated by a destination designator of the instruction;
wherein the first and second source operands are treated as a 2N-bit operand. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21)
-
-
22. A method whereby a processor having a plurality of N-bit registers executes an instruction, the method comprising:
-
decoding an opcode of the instruction;
in response to decoding the opcode, determining that the instruction is a bit field selection instruction;
copying Z highest-order bits from a first N-bit source register designated by a first source operand designator of the instruction into Z low-order bits of an N-bit destination register designated by a destination designator of the instruction;
copying Y lowest-order bits from a second N-bit source register designated by a second source operand designator of the instruction into Y high-order bits of the N-bit destination register;
wherein Y+Z=N; and
wherein the instruction specifies which Y+Z bit field to copy into the destination register. - View Dependent Claims (23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33)
-
Specification