Piplined system includes a selector for loading condition code either from first or second condition code registers to program counter
First Claim
1. A computer system comprising:
- a processor;
a first condition code register having a first port coupled to a first port of said processor;
a second condition code register having a first port coupled to a second port of said first condition code register wherein said first condition code register is capable of holding a first condition code generated as a result of said processor executing a first instruction and wherein upon said processor executing a second instruction said first condition code is automatically transferred from said first condition code register to said second condition code register and a second condition code is automatically transferred to said first condition code register;
a program counter unit having a first port; and
a condition code selector, having a first port coupled to the second port of said first condition code register and a second port coupled to the second port of said second condition code register and a third port coupled to the first port of said program counter unit, for selectively providing a first one of said first and second condition codes to said program counter unit from a first one of said first and second condition code registers.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and apparatus is disclosed for control of a central processor in response to a branch instruction using two separate, subsequently updated condition codes. Computer architecture is provided wherein the condition codes which determine the processor state result from the execution of instructions prior to the currently executing instruction. When the preceding instructions are executed, condition codes are set and maintained in a first condition code register. The first condition code is transferred to the second condition code register, and the first condition code register is updated to reflect the result of the current instruction execution. Any condition code state such as a branch used by the third instruction is based on the condition code state maintained in the second condition code register.
59 Citations
3 Claims
-
1. A computer system comprising:
-
a processor; a first condition code register having a first port coupled to a first port of said processor; a second condition code register having a first port coupled to a second port of said first condition code register wherein said first condition code register is capable of holding a first condition code generated as a result of said processor executing a first instruction and wherein upon said processor executing a second instruction said first condition code is automatically transferred from said first condition code register to said second condition code register and a second condition code is automatically transferred to said first condition code register; a program counter unit having a first port; and a condition code selector, having a first port coupled to the second port of said first condition code register and a second port coupled to the second port of said second condition code register and a third port coupled to the first port of said program counter unit, for selectively providing a first one of said first and second condition codes to said program counter unit from a first one of said first and second condition code registers. - View Dependent Claims (2)
-
-
3. A method of maintaining a series of condition codes in a condition code pipeline computer having a processor in communication with a first condition code register and a second condition code register in communication with said first condition code register, said method comprising the steps of:
-
a. executing a first instruction by said processor; b. storing, in a first condition code register, a first condition code generated as a result of said processor executing said first instruction; c. executing a second instruction by said processor; d. automatically moving the first condition code generated as a result of said processor executing said first instruction from said first condition code register into a second condition code register; e. storing in the first condition code register a second condition code resulting from said processor executing said second instruction; and f. loading a selected one of the first or second condition codes from the corresponding one of the first or second condition code registers into a program counter.
-
Specification