Unroll of instructions in a micro-controller
First Claim
1. An unroll apparatus for generating instructions for controlling a processor, the unroll apparatus comprising:
- a first template storage means for storing a first template instruction;
a counter;
generating means for generating a number of instructions, wherein each generated instruction is based on the first template instruction;
means for adjusting the counter to indicate the number of instructions that have been generated by the generating means; and
means for deactivating the generating means in response to the counter indicating that a predetermined number of instructions have been generated.
1 Assignment
0 Petitions
Accused Products
Abstract
Loops in program code are avoided by generating instructions for controlling a processor. A first template instruction is stored, and a predetermined number of instructions may be generated, wherein each generated instruction is based on the first template instruction. The processor may be alternatively supplied with the generated instructions or with instructions received from an alternative instruction source. A substitute address field may be stored, and the step of generating each instruction may include substituting the substitute address field in place of an address field in the first template instruction. The stored substitute address field may be adjusted after generating each instruction. The step substituting the substitute address field in place of an address field in the first template instruction may be performed only if a substitution control signal is asserted. In another embodiment, first and second template instructions are stored, and each is used as a basis for generating a repeating sequence of instructions, including first and second instructions.
139 Citations
30 Claims
-
1. An unroll apparatus for generating instructions for controlling a processor, the unroll apparatus comprising:
-
a first template storage means for storing a first template instruction; a counter; generating means for generating a number of instructions, wherein each generated instruction is based on the first template instruction; means for adjusting the counter to indicate the number of instructions that have been generated by the generating means; and means for deactivating the generating means in response to the counter indicating that a predetermined number of instructions have been generated. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. An unroll apparatus for generating instructions for controlling a processor, the unroll apparatus comprising:
-
a first template storage means for storing a first template instruction; a second template storage means for storing a second template instruction; a counter; generating means for generating a number of instructions including a first instruction based on the first template instruction and a second instruction based on the second template instruction; means for repeatedly operating the generating means; means for adjusting the counter to indicate a number of instructions that have been generated by the generating means; and means for deactivating the generating means in response to the counter indicating that a predetermined number of instructions have been generated. - View Dependent Claims (8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. A method for generating instructions for controlling a processor, the method comprising the steps of:
-
storing a first template instruction; using a generating apparatus to generate a predetermined number of instructions, wherein each generated instruction is based on the first template instruction. - View Dependent Claims (17, 18, 19, 20, 21)
-
-
22. A method for generating instructions for controlling a processor, the method comprising the steps of:
-
storing a first template instruction; storing a second template instruction; using a generating apparatus to generate a number of instructions including a first instruction based on the first template instruction and a second instruction based on the second template instruction; repeatedly using the generating apparatus until a predetermined number of instructions have been generated. - View Dependent Claims (23, 24, 25, 26, 27, 28, 29, 30)
-
Specification