Processor with specialized handling of repetitive operations
First Claim
1. A processor comprising:
- an instruction extraction stage capable of receiving information from an instruction memory;
an instruction register;
a first multiplexer receiving at one input an output of the extraction stage and at another input an output of the instruction register, an output of the first multiplexer being supplied to the instruction register;
an instruction decoder receiving the output of the instruction register;
a first circuit in the instruction decoder that determines whether a received instruction is a repetition instruction, the first circuit producing a repetition signal in accordance with its determination;
an autonomous counter with a presetting register;
a second circuit that, at least when the received instruction is a repetition instruction, outputs a value contained in the received instruction to the presetting register of the counter; and
a third circuit producing an instruction execution signal that is supplied to the counter, wherein the first multiplexer is controlled based on a control output of the counter.
1 Assignment
0 Petitions
Accused Products
Abstract
A processor that includes an instruction extraction stage, an instruction register, an instruction decoder, a first multiplexer that supplies the instruction register, and an autonomous counter with a presetting register. The first multiplexer receives the output of the extraction stage and the output of the instruction register, and the instruction decoder receives the output of the instruction register. Additionally, a first circuit produces a repetition signal if a received instruction is a repetition instruction, and a second circuit outputs a value from the received instruction to the presetting register when the received instruction is a repetition instruction. A third circuit produces an instruction execution signal that is supplied to the counter, and the first multiplexer is controlled so as to supply the instruction register based on a control output of the counter. The present invention also provides a method of handling instructions to be repeated by a processor.
-
Citations
13 Claims
-
1. A processor comprising:
-
an instruction extraction stage capable of receiving information from an instruction memory;
an instruction register;
a first multiplexer receiving at one input an output of the extraction stage and at another input an output of the instruction register, an output of the first multiplexer being supplied to the instruction register;
an instruction decoder receiving the output of the instruction register;
a first circuit in the instruction decoder that determines whether a received instruction is a repetition instruction, the first circuit producing a repetition signal in accordance with its determination;
an autonomous counter with a presetting register;
a second circuit that, at least when the received instruction is a repetition instruction, outputs a value contained in the received instruction to the presetting register of the counter; and
a third circuit producing an instruction execution signal that is supplied to the counter, wherein the first multiplexer is controlled based on a control output of the counter. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
a fifth circuit in the decoder that determines whether a received instruction is a reiteration instruction, wherein when the received instruction is a reiteration instruction, the fifth circuit outputs a value contained in the received instruction; and
a second multiplexer receiving at one input the output of the second circuit and at another input the output of the fifth circuit, the second multiplexer being controlled by the repetition signal from the first circuit.
-
-
6. The processor as defined in claim 1, further comprising a control circuit that controls the first multiplexer in accordance with the control output of the counter.
-
7. The processor as defined in claim 1, further comprising:
-
a fifth circuit in the decoder that determines whether a received instruction is a reiteration instruction, wherein when the received instruction is a reiteration instruction, the fifth circuit outputs a value contained in the received instruction to the presetting register of the counter.
-
-
8. The processor as defined in claim 7, further comprising a second multiplexer receiving at one input the output of the second circuit and at another input the output of the fifth circuit, the second multiplexer being controlled by the repetition signal from the first circuit.
-
9. A processor comprising:
-
an instruction extraction stage;
an instruction register coupled to the instruction execution stage;
a first multiplexer receiving at one input an instruction output from the extraction stage and at another input an instruction output from the instruction register, an output of the first multiplexer being supplied to the instruction register so as to selectively feed the instruction output from the instruction register back into the instruction register;
an instruction decoder receiving the output of the instruction register;
an autonomous counter with a presetting register;
a repetition control circuit in the instruction decoder that determines whether a received instruction is a repetition instruction, wherein when the received instruction is a repetition instruction, the repetition control circuit loads a value contained in the received instruction into the presetting register of the counter; and
an execution circuit producing an instruction execution signal that is supplied to the counter, wherein the first multiplexer is controlled by a control output of the counter. - View Dependent Claims (10)
-
-
11. A method of handling instructions to be repeated by a processor, said method comprising the steps of:
-
loading an instruction register with an instruction;
decoding the loaded instruction to determine if it is a repetition instruction; and
if the loaded instruction is a repetition instruction;
loading an autonomous counter with a number of times the loaded instruction is to be repeated, the number being contained in the loaded instruction;
activating a counting automaton, the automaton decrementing the counter each time an instruction is executed and comparing the value of the counter with a reference value; and
feeding the loaded instruction back to the instruction register as the next instruction as long as the value of the counter is not equal to the reference value. - View Dependent Claims (12, 13)
-
Specification