US4373180A - Microprogrammed control system capable of pipelining even when executing a conditional branch instruction - Google Patents

Microprogrammed control system capable of pipelining even when executing a conditional branch instruction Download PDF

Info

Publication number
US4373180A
US4373180A US06/167,072 US16707280A US4373180A US 4373180 A US4373180 A US 4373180A US 16707280 A US16707280 A US 16707280A US 4373180 A US4373180 A US 4373180A
Authority
US
United States
Prior art keywords
address
microinstruction
circuitry
line
pipeline register
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
US06/167,072
Inventor
James P. Linde
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sperry Corp
Original Assignee
Sperry Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sperry Corp filed Critical Sperry Corp
Priority to US06/167,072 priority Critical patent/US4373180A/en
Priority to JP56107557A priority patent/JPS5748138A/en
Priority to DE3126878A priority patent/DE3126878C2/en
Assigned to SPERRY CORPORATION reassignment SPERRY CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST. Assignors: LINDE, JAMES P.
Application granted granted Critical
Publication of US4373180A publication Critical patent/US4373180A/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/22Microcontrol or microprogram arrangements
    • G06F9/28Enhancement of operational speed, e.g. by using several microcontrol devices operating in parallel
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/22Microcontrol or microprogram arrangements
    • G06F9/26Address formation of the next micro-instruction ; Microprogram storage or retrieval arrangements
    • G06F9/262Arrangements for next microinstruction selection
    • G06F9/264Microinstruction selection based on results of processing
    • G06F9/265Microinstruction selection based on results of processing by address selection on input of storage

Definitions

  • the present invention relates to a means for improving the performance in a pipeline microprocessor and in particular wherein the microprocessor deals with conditional branch microinstructions.
  • control store memory stores a set of microinstructions (a microprogram) for executing each of the instructions in main memory (called a macroinstruction), and each microinstruction comprises a plurality of bits. Each bit position within a microinstruction can be used to generate directly a control signal.
  • microprocessors use coded fields of bits which transmit bit signals to a decoder and the output signals from the decoder generate the control signals.
  • a complete cycle of a microprocessor generally comprises the fetching of a microinstruction and the execution thereof.
  • designs of microprocessors have included the overlapping of fetch and execution operations.
  • a problem occurs if the results of the execution of the current microinstruction are required to determine the address of the next microinstruction. For example, where the microprogram includes conditional jump or branch microinstructions, it has been necessary to wait until a condition specified in the conditional microinstruction becomes valid in order that the condition might be tested. If the test result is true then the next address (from which the next microinstruction is brought) is determined from information in the current microinstruction. On the other hand if the test result is false the next address activated will be determined by incrementing the address of the current instruction.
  • the COS is of the random-access-memory (RAM) type.
  • RAM random-access-memory
  • the access time of a particular microinstruction at a selected address within the COS is quite often a large percentage of the overall cycle time of the microprocessor. Therefore, it would be desirable to begin fetching a microinstruction before the execution of the current microinstruction in the pipeline register is completed.
  • U.S. Pat. No. 3,418,638, issued to D. W. Anderson et al relates to devices in a data processing machine for prefetching and predecoding of succeeding instructions to enable implementation of a "branch on condition subsequent instruction" at the highest possible speed, and with a minimum of delay in data processing.
  • the Anderson et al patent discloses a loop mode which is a condition of the instruction set unit (labeled I box in the patent).
  • the I box is in a loop mode whenever the instructions stacked in a buffer (Buffer 156 in the patent) contain the entire loop.
  • the system described in the patent is designed so that, if the I box is in loop mode, the system assumes that a conditional branch will be required. If the I box is not in loop mode then the system assumes that the next sequential instruction should be fetched and executed.
  • the program path for conditional branch instructions is determined by the hardware.
  • the loop mode disclosed in this patent can not provide for random branching on conditional branch instructions located in a COS.
  • the present invention relates to a microprocessor system having a control store memory (COS) for storing a microprogram consisting of a plurality of instructions.
  • COS control store memory
  • the microinstruction currently being executed is stored in a pipeline register, while the microinstruction to be next executed is fetched from the COS after its address has been obtained from an address circuitry means and made ready for transfer to the COS.
  • an "ordinary address” is formed by adding a "one" (1) to the address of the microinstruction currently being executed.
  • each succeeding microinstruction to be executed will have an ordinary address, i.e. its address will be increased by one over the address of the preceeding microinstruction.
  • a series of microinstructions need not be executed in numerical order in which case the address of a succeeding microinstruction does not have to be the next sequential number as related to the address of the microinstruction currently being executed.
  • the succeeding address is described as a jump address or a conditional address.
  • a program will forego seeking an ordinary address in favor of a jump address when some condition in the execution of the program has been met. For example, in a payroll program when calculating an employee's salary, the program must be arranged to determine when the employee's "year-to-date" salary exceeds the social security taxable limit. In other words, if a social security tax is levied on the first $20,000 earned, then when the employee has earned in excess of $20,000 a different routine (jump to a new routine) is followed in computing the employee's salary.
  • the condition to be tested in this example is whether or not the employee's year-to-date salary exceeds $20,000.
  • a conditonal address microinstruction identifies the condition to be tested by certain information within the microinstruction.
  • the present system anticipates the results of testing for the condition and selects an address, either a jump address or an ordinary address, based on that anticipation. If the actual test of the condition proves that the anticipation was incorrect, then the microinstruction selected in response to the anticipation is rendered inactive and some other address is selected to fetch the proper instruction. As will be explained below, the new instruction is fetched during the same cycle that the rejected instruction was fetched and this is accomplished by extending the execution cycle.
  • selection circuitry means selects an address for the next instruction from the address circuitry means.
  • the selected address signals are transmitted to a COS even before the condition to be tested can possibly be tested.
  • the selection circuitry means operates in response to at least one bit signal transmitted from an anticipated condition field within the conditional jump microinstruction in the pipeline register. If the anticipated condition field indicates unequivocally that the next instruction will have an ordinary address then the selection circuitry selects an ordinary address from the address circuitry. If it indicates that the next address should be a jump address then the system will provide signals to select one of a plurality of possible jump addresses.
  • a correction circuitry portion of the selection circuitry means changes the selection of the address of the next microinstruction to be executed and the new microinstruction is fetched. At the same time the microprocessor cycle is extended.
  • FIG. 1 is a block diagram of a portion of the preferred embodiment microprogram control system incorporating the present invention.
  • FIG. 2 is a more detailed block diagram of a portion of the block diagram of FIG. 1.
  • FIG. 3 is a bit field representation of a portion of the preferred microinstruction format used in the present invention.
  • FIG. 1 is a block diagram of a portion of a microprogram control system designated generally 10. It comprises a control store memory (COS) 12, which stores a microprogram having a plurality of microinstructions.
  • COS control store memory
  • the COS in the preferred embodiment comprises four (4) sixteen-by-four bit Intel 2114 random access memories (RAM).
  • Each microinstruction comprises a plurality of bits and, in the preferred embodiment, there are fifty-six bits in a microinstruction. However, more or less bits could be utilized in a microinstruction without affecting the performance of the present invention.
  • a microinstruction When a microinstruction is selected for execution from the COS it is transferred to a pipeline register 14, where it is stored during execution. The cycle time for the system starts when the instruction is transferred into the pipeline register. Execution of a microinstruction is performed by the portions of the microprogram control unit coupled to the COS, most of which are not shown in FIG. 1, and which form no part of the present invention. In the present microprogram control system, bits in the microinstruction are used to generate control signals necessary for operation of the control system. The bit signals may be used directly to formulate control signals, or some bit signals may be taken together as a coded combination to cooperate with attached decoding circuitry for generation of a plurality of control signals.
  • Pipeline register means 14 is, in the preferred embodiment, a 74S175 device.
  • the address circuitry means 16 forms at least four possible addresses. Actually the address circuitry means 16 could be designed to form more than four possible addresses and still would operate within the spirit of the present invention.
  • the addresses which are made up of a plurality of bit signals are transmitted on the cables 24, 26, 28 and 30, to the selector device 18. It should be borne in mind that the lines 24, 26, 28 and 30, actually represent a plurality of lines or a cable. In the selector 18 one of the four addresses on the cables 24, 26, 28 and 30 is selected by the bit signals on lines 20 and 22.
  • the control store memory 12 When one of the four addresses is selected it is transmitted on the cable 31 to the control store memory 12 whereat it selects an instruction from memory. From the time that the address signals are transmitted on line 31 to the COS 12, it takes approximately 200 nanoseconds for the microinstruction information signals to be present, in stable form, at the output of the COS. It should be noted that the time at which the microinstruction information signals are stable is approximately 250 ns from the beginning of the execution cycle. However the output of the COS 12 is not accepted by the pipeline register 14 through the cable 33 until the end of the execution cycle (which takes 350 ns or 100 ns after the stabilization of the COS) or the beginning of the next cycle. This is controlled by a gating signal on line 35 which is controlled by a clock pulse generator the necessity of which is not present in the description of this invention. It is the control of the signals on lines 20 and 22 and the hardware required to control those signals that constitutes the present invention.
  • the address of the next microinstruction to be executed (after the microinstruction currently in the pipeline register means 14 has been executed) is formed in address circuitry means 16.
  • the addresses formed by address circuitry means 16, in the preferred embodiment are formed: in response to bit signals received from a displacement field or a branch address field in a jump microinstruction, stored in pipeline register 14, via lines 34 and 36; from bit signals received from a sequencer function field over line 41 and decoded by decoder 37; from bit signals received from a control system output bus 40 via line 42; and from the previously transmitted address from selector 18 over line 32.
  • Circuitry means designated generally 50 is shown connected between pipeline register 14 and selector 18 for generating the selection control signals which appear on 20 and 22. As mentioned earlier it is the selection control signals on lines 20 and 22 which choose which one of the addresses on lines 24, 26, 28 and 30 is to be transmitted to the COS 12.
  • the circuitry means 50 operates in response to various bit signals transmitted from the fields within a microinstruction stored in pipeline register means 14. FIG. 3 shows these fields in a schematic representation of a portion of the microinstruction of the preferred embodiment of the invention.
  • bits 10, 11, and 12 identified as displacement field bits (DISP) which determine whether or not the programmer has asked that the next address be simply incremented. If all of the DISP bits are zero or low then the system, as will become clear hereinafter, will generate an increment signal.
  • DISP displacement field bits
  • Bit 13, labeled F1 identifies whether the microinstruction stored in the pipeline register 14 is a conditional or an unconditional instruction. It should be understood that an unconditional microinstruction may include a jump address for the next instruction.
  • Bits 14 through 19 are the test condition field bits. These bits by their combination identify which one of a plurality of conditions is to be tested to determine whether an ordinary address microinstruction or a jump address microinstruction is to be selected. The test condition bits are effective only when a conditional jump microinstruction is present in the pipeline register means 14.
  • Bit 23 is the anticipated condition field bit, which allows circuitry means 50 to anticipate the result of testing of a selected condition so that the fetching and execution of two different microinstructions can be overlapped, even though the test condition has not been tested.
  • Bits 47 and 48 labeled SEQ, meaning sequence function bits, are the bits which identify which of a plurality of jump addresses formed by the address circuitry means 16 is to be selected when a jump address is desired.
  • the instruction in the pipeline register has bits 10, 11 and 12 (the DISP bits) indicating all zeros then there will result three low signals which are decoded at decoder 74 to provide a high signal on line 72 to the two NOR gates 68 and 70.
  • the NOR gates 68 and 70 respond to positive input signals to provide negative output signals. Accordingly there will be a low signal on line 20 and on line 22. Low signals on lines 20 and 22 cause the selector 18 to select the address on line 24 which is the ordinary address line.
  • the microinstruction in the pipeline register 14 includes three ZERO bits, as the DISP bits, then the increment signal generated in response thereto overrides any other possible address selection signals generated in the circuitry shown in FIG. 1.
  • Sequencer function circuitry designated generally 52 responds to the two bit signals from bits 47 and 48 of FIG. 3 transmitted on the cable 54 and thereafter individually on the two lines 56 and 58.
  • the sequencer function bit signals over lines 56 and 58 are transmitted to exclusive OR gate 60 and AND gate 62.
  • the output of exclusive OR gate 60 is furnished over line 64 to NOR gate 68, while the output from AND gate 62 is furnished over line 66 to NOR gate 70. If the logic circuitry is considered it will be recognized that if the bits 47 and 48 were both ONES (thereby providing two high signals) then there would result a zero on line 22 and a ONE on line 20. A pair of zeros found in the bits 47 and 48 would result in a ONE on line 22 and a ONE on line 20.
  • bits 47 and 48 would result in a ONE on line 22 and a ZERO on line 20.
  • the different bit combinations possibly found in bits 47 and 48 result in respectively three different bit combinations on lines 20 and 22 and hence provide a basis for selecting one of the three addresses on lines 26 and 28 and 30.
  • NOR gates 68 and 70 will override any signals generated by the sequencer function circuitry 52.
  • both NAND gates 132 and 116 will provide high output signals for the first 250 nanoseconds.
  • the high output signal from the NAND gate 132 provides a second high input signal to AND gate 86.
  • the high output signal on line 117 partially conditions NAND gate 112 and the output from NAND gate 112 in our present situation will determine whether or not AND gate 86 produces an override signal to NOR gates 68 and 70. Accordingly it becomes apparent that the anticipated condition signal on line 106 becomes controlling for this first decision. If the programmer anticipates that a jump address will be required then the signal on line 106 will be low thereby providing a second high signal, from inverter 108, to AND gate 112.
  • the six bits are decoded to select one of the lines generally labeled 96 which come from various parts of the system such as the adder (ALU 98) or some form of comparator, etc.
  • ALU 98 adder
  • the program being executed If the program being executed generates a condition being sought, i.e. the test condition is valid, (for instance if the employee's year to date salary exceeds the minimum social security taxable amount) a high signal is provided on one of the lines 96 and that particular line is selected by the six bits on the cable 92. Under these conditions a high signal is transmitted on line 94. Of course if the condition has not been generated in the program at the time of the test then a low signal will appear on line 94. It is the comparison of the high or low signal on line 94 with the inverted programmable anticipated condition signal which determines whether the anticipated condition signal was correct or incorrect.
  • AND gate 86 has three high inputs providing a high input to OR gates 68 and 70 thereby overriding the signals on lines 64 and 66.
  • the output on line 94 goes low and this is transmitted over line 130 to AND gate 132.
  • the input to AND gate 112 over line 110 remains low even after 250 nanoseconds the output of AND gate 112 over line 114 to AND gate 86 remains unchanged.
  • AND gate 86 continues to see three high input signals after 250 nanoseconds and no new selection of an address is made. This is the desired result since the anticipated condition was the same as the tested condition after 250 nanoseconds.
  • the output of test circuitry 80 over line 94 is provided to NAND gate 132 over line 130 and to the exclusive OR gate 122.
  • the output from inverter 108 is provided over line 120 to the exclusive OR gate 122.
  • the output of exclusive OR gate 122 is provided to flip flop 126 and to NAND gate 116 over line 118.
  • Flip flop 126 is a D flip flop which looks at the input on line 124 upon receipt of the TP 250 signal on line 123.
  • the output of flip flop 126 is an extend cycle signal over line 128.
  • a low signal at AND gate 86 allows signals on lines 64 and 66 to select an address in the address circuitry means 16. After 250 nanoseconds the output on line 94 and line 130 is low and the output of NAND gate 132 remains high. This continues to provide a high signal on line 134 to AND gate 86.
  • the low signal on line 94 is compared with the high signal on line 120 in exclusive OR gate 122 to provide a high signal on line 124 and line 118.
  • the high signal on line 118 to NAND gate 116 along with the high signal TP 250 after 250 nanoseconds provides a low signal on line 117.
  • NAND gate 112 then changes to provide a high signal on line 114 to AND gate 86.
  • AND gate 86 now has three high inputs and provides a high input to NOR gates 68 and 70 thereby overriding the signals on line 64 and 66 to select an ordinary address in the address circuitry means. Bear in mind that there are only 100 nanoseconds left in the current cycle.
  • the high signal on line 124 described earlier, in combination with the TP 250 signal, transfers the flip flop 126 to its extend cycle side.
  • the address on cable 24 is transmitted to the COS 12 and the instruction originally set up in the COS 12 in the first 250 nanoseconds of the cycle is replaced by an instruction residing at the ordinary address.
  • the cycle continues with the remaining 150 nanoseconds of the original cycle and the system finishes the execution of the instruction in pipeline register 14 and, thereafter, operates in response to the new instruction (from the ordinary address so selected).
  • Address circuitry means 16 is shown in more detail in FIG. 2.
  • the parallel 14 bit signal transmitted from selector 18 to COS 12 is returned to adder 200 of the address circuitry means 16 via line designated by line 32.
  • Adder 200 is a combination of TTL 74S283 devices which increment the address received over line 32 by one and transmit it to program counter register 202 (a 74S174 device).
  • the address stored in register 202 is the ordinary address (one more than the address currently being executed in pipeline register 14) and it is available to selector 18 as a parallel 14 bit address over parallel lines designated by the line 24.
  • jump relative address is defined to be no greater than the current address in the pipeline register 14 plus 4, or no less than the current address in pipeline register 14 minus 3.
  • Jump relative addresses are formed by adding the three displacement field bits (bits 10-12 from a microinstruction currently being executed to pipeline register 14) to the 13 least significant bits of the contents of register 202 in adder 204.
  • Adder 204 is a combination of 74S283 TTL devices. The most significant bit of the contents of register 202 does not pass through adder 204 but is provided separately over line 206 to be concatenated as the most significant bit with the output of adder 204 over parallel lines designated line 208 to form a jump relative address.
  • the jump relative address is provided via parallel lines designated line 26 to selector 18.
  • Parallel designated lines 28 to selector 18 provide a second source for a jump address to selector 18. If the sequencer function bits, bits 47 and 48 in FIG. 3, are one and zero respectively then the jump address present on line 28 is a branch address or a bus address depending upon how it is formed. Parallel signals from the 13 bit address field (bits 0-12) of the microinstruction currently being executed in the pipeline register 14 are transmitted to address circuitry means 16 via lines designated by line 36.
  • the eight least significant bits are forwarded on parallel lines designated by line 39 in FIG. 2 to selector 210, a 74S258 TTL device, while the most significant 5 bits are concatenated with the most significant bit of the program counter 202.
  • a second input to selector 210 is provided by 8 parallel bit signals from the control system output bus 40 over parallel lines designated by line 42 in FIG. 2.
  • Either a branch address or a bus address is formed by selecting inputs over line 39 or the inputs over line 42 respectively and concatenating the six most significant bits formed above with the output of the selector 210. Selection is made by decoding the test condition bits 14-19 from the currently executed miroinstruction in pipeline register 14. The test condition bits are transmitted over parallel lines designated line 41 to the address circuitry means 16 and are decoded in that path by decoder 37. In the preferred embodiment, only one combination of bits 14-19 will provide selection of the branch address formed by selecting inputs 42.
  • Either a branch address or bus branch address as defined above is selected when the sequencer function bits, bits 47 and 48, are one and zero respectively. However, if the sequencer function bits are zero and one respectively, then the jump address formed is identical to the branch address but the sequencer function bits 47 and 48 are decoded in path 220 between pipeline register 14 and address circuitry means 16 by decoder 222 to cause the address stored in program counter 202 to be stored in a stack register 214.
  • Stack register 214 is formed by a combination of Intel 3101 16 ⁇ 4 random access memories (RAM). This provides 16 possible locations for storing the address found in program counter 202.
  • Stacked pointed circuitry 216 formed by a combination of a binary adder (a 74S283 device) and a 4 bit register (a 74S175 device), identifies which location will be used for storage. Each time that the sequencer function bits are decoded to store an address from program counter 202, the stack pointer is incremented by one by decoding the sequencer function bits.
  • a return address is a jump address formed by reading an address from the stack 214. This return address is transmitted over line 30 to selector 18. Lines 30 are selected by the selector control signals when the sequencer function bits, bits 47 and 48, are one and one. Whenever a return address is read from the stack 214 the stack pointer 216 is decremented by one.
  • an ordinary address is transmitted to selector 18 over line 24.
  • Ordinary addresses come from program counter 202 in FIG. 2.
  • Jump relative addresses are transmitted over lines 26 and are formed from the output of adder 204 over line 208 and the most significant bit from program counter 202 over line 206.
  • Branch addresses, bus addresses, and call addresses are furnished over lines 28. They are formed from combining the output of selector 210 with the signals on lines 212.
  • Return address, addresses stored in stack 214 are furnished over lines 30 to selector 18.

Abstract

A microprogrammed control system capable of overlapping the fetch and execution of microinstructions even when a conditional jump microinstruction is being executed. The control system comprises a pipeline register for storing the microinstruction currently being executed. The system also includes address circuitry for forming an "ordinary address" which is one greater than the address of the microinstruction in the pipeline register and for forming at least one "jump address" of a microinstruction occurring elsewhere in the program. A conditional jump microinstruction identifies a jump address for the microinstruction to be executed next, which jump address is only valid after the condition identified by the conditional jump instruction is tested and indicates that the jump address is to be used. Otherwise, the next microinstruction has an ordinary address. Selection circuitry cooperates with at least one bit signal transmitted from the anticipated condition field in the conditional jump instruction to anticipate the result of testing the condition specified and selects an address from the address circuitry for transmission to the control store memory before testing of the specified condition is complete. The selection circuitry comprises correction circuitry which changes the selection of the address of the next microinstruction to be executed when the anticipated test result and the actual test result do not agree. When this occurs, the selection circuitry extends the cycle time of the control system to allow for correction.

Description

BACKGROUND OF THE INVENTION
The present invention relates to a means for improving the performance in a pipeline microprocessor and in particular wherein the microprocessor deals with conditional branch microinstructions.
In previous hardwired computers, selection of control signals required for executing each instruction, of an instruction set, stored in the computer main memory was fixed by the design of decoders and encoders within the computer. With microprocessing, however, a separate control store memory (COS) stores a set of microinstructions (a microprogram) for executing each of the instructions in main memory (called a macroinstruction), and each microinstruction comprises a plurality of bits. Each bit position within a microinstruction can be used to generate directly a control signal. However, most microprocessors use coded fields of bits which transmit bit signals to a decoder and the output signals from the decoder generate the control signals.
A complete cycle of a microprocessor generally comprises the fetching of a microinstruction and the execution thereof. In the prior art, to minimize the cycle time and speed up the processing in the microprocessor, designs of microprocessors have included the overlapping of fetch and execution operations.
This is accomplished in the prior art by providing a pipeline register between the COS and the instruction execution unit of the microprocessor. Such an arrangement allows the microprocessor to fetch the next required microinstruction and get it ready in the COS while a current microinstruction, stored in the pipeline register, is being executed.
However, even in a pipeline register design, a problem occurs if the results of the execution of the current microinstruction are required to determine the address of the next microinstruction. For example, where the microprogram includes conditional jump or branch microinstructions, it has been necessary to wait until a condition specified in the conditional microinstruction becomes valid in order that the condition might be tested. If the test result is true then the next address (from which the next microinstruction is brought) is determined from information in the current microinstruction. On the other hand if the test result is false the next address activated will be determined by incrementing the address of the current instruction.
Typically, the COS is of the random-access-memory (RAM) type. The access time of a particular microinstruction at a selected address within the COS is quite often a large percentage of the overall cycle time of the microprocessor. Therefore, it would be desirable to begin fetching a microinstruction before the execution of the current microinstruction in the pipeline register is completed. As mentioned above in the prior art it has been necessary to wait until the condition of the microprocessor is tested before determining whether or not the jump address, identified in a conditional jump microinstruction, is to be employed. Accordingly it has not been the practice to access the next microinstruction in the RAM (since the test results must first be determined) before the end of the microprocessor cycle. In the prior art, even in a pipeline register approach, problems arise in trying to overlap the fetch and execution of microinstructions when the current microinstruction being executed is a conditional jump microinstruction.
U.S. Pat. No. 3,418,638, issued to D. W. Anderson et al, relates to devices in a data processing machine for prefetching and predecoding of succeeding instructions to enable implementation of a "branch on condition subsequent instruction" at the highest possible speed, and with a minimum of delay in data processing.
The Anderson et al patent discloses a loop mode which is a condition of the instruction set unit (labeled I box in the patent). The I box is in a loop mode whenever the instructions stacked in a buffer (Buffer 156 in the patent) contain the entire loop. The system described in the patent is designed so that, if the I box is in loop mode, the system assumes that a conditional branch will be required. If the I box is not in loop mode then the system assumes that the next sequential instruction should be fetched and executed. In this Anderson et al patent description the program path for conditional branch instructions is determined by the hardware. The loop mode disclosed in this patent can not provide for random branching on conditional branch instructions located in a COS.
SUMMARY OF THE IVENTION
The present invention relates to a microprocessor system having a control store memory (COS) for storing a microprogram consisting of a plurality of instructions. The microinstruction currently being executed is stored in a pipeline register, while the microinstruction to be next executed is fetched from the COS after its address has been obtained from an address circuitry means and made ready for transfer to the COS.
In accordance with the description of this system an "ordinary address" is formed by adding a "one" (1) to the address of the microinstruction currently being executed. When a series of microinstructions is to be executed according to a numerical order, each succeeding microinstruction to be executed will have an ordinary address, i.e. its address will be increased by one over the address of the preceeding microinstruction. However, a series of microinstructions need not be executed in numerical order in which case the address of a succeeding microinstruction does not have to be the next sequential number as related to the address of the microinstruction currently being executed. In the last set of circumstances, the succeeding address is described as a jump address or a conditional address.
Normally, a program will forego seeking an ordinary address in favor of a jump address when some condition in the execution of the program has been met. For example, in a payroll program when calculating an employee's salary, the program must be arranged to determine when the employee's "year-to-date" salary exceeds the social security taxable limit. In other words, if a social security tax is levied on the first $20,000 earned, then when the employee has earned in excess of $20,000 a different routine (jump to a new routine) is followed in computing the employee's salary. The condition to be tested in this example is whether or not the employee's year-to-date salary exceeds $20,000. A conditonal address microinstruction identifies the condition to be tested by certain information within the microinstruction.
The present system anticipates the results of testing for the condition and selects an address, either a jump address or an ordinary address, based on that anticipation. If the actual test of the condition proves that the anticipation was incorrect, then the microinstruction selected in response to the anticipation is rendered inactive and some other address is selected to fetch the proper instruction. As will be explained below, the new instruction is fetched during the same cycle that the rejected instruction was fetched and this is accomplished by extending the execution cycle.
In the present system when a conditional jump microinstruction is present in the pipeline register, selection circuitry means selects an address for the next instruction from the address circuitry means. The selected address signals are transmitted to a COS even before the condition to be tested can possibly be tested. The selection circuitry means operates in response to at least one bit signal transmitted from an anticipated condition field within the conditional jump microinstruction in the pipeline register. If the anticipated condition field indicates unequivocally that the next instruction will have an ordinary address then the selection circuitry selects an ordinary address from the address circuitry. If it indicates that the next address should be a jump address then the system will provide signals to select one of a plurality of possible jump addresses. If, however, the later testing of a condition of the control system specified by the conditional jump microinstruction indicates that the wrong address was anticipated and fetched, a correction circuitry portion of the selection circuitry means changes the selection of the address of the next microinstruction to be executed and the new microinstruction is fetched. At the same time the microprocessor cycle is extended.
The objects, features and advantages of the present invention will become more fully apparent from the following detailed description of the preferred embodiment, the appended claims, and the accompanying drawings in which:
FIG. 1 is a block diagram of a portion of the preferred embodiment microprogram control system incorporating the present invention.
FIG. 2 is a more detailed block diagram of a portion of the block diagram of FIG. 1.
FIG. 3 is a bit field representation of a portion of the preferred microinstruction format used in the present invention.
DETAILED DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram of a portion of a microprogram control system designated generally 10. It comprises a control store memory (COS) 12, which stores a microprogram having a plurality of microinstructions. The COS in the preferred embodiment comprises four (4) sixteen-by-four bit Intel 2114 random access memories (RAM). Each microinstruction comprises a plurality of bits and, in the preferred embodiment, there are fifty-six bits in a microinstruction. However, more or less bits could be utilized in a microinstruction without affecting the performance of the present invention.
When a microinstruction is selected for execution from the COS it is transferred to a pipeline register 14, where it is stored during execution. The cycle time for the system starts when the instruction is transferred into the pipeline register. Execution of a microinstruction is performed by the portions of the microprogram control unit coupled to the COS, most of which are not shown in FIG. 1, and which form no part of the present invention. In the present microprogram control system, bits in the microinstruction are used to generate control signals necessary for operation of the control system. The bit signals may be used directly to formulate control signals, or some bit signals may be taken together as a coded combination to cooperate with attached decoding circuitry for generation of a plurality of control signals. Pipeline register means 14 is, in the preferred embodiment, a 74S175 device.
If we examine FIG. 1, we find that there is an address circuitry means 16 which is described in more detail in connection with the description of FIG. 2. The address circuitry means 16 forms at least four possible addresses. Actually the address circuitry means 16 could be designed to form more than four possible addresses and still would operate within the spirit of the present invention. The addresses which are made up of a plurality of bit signals are transmitted on the cables 24, 26, 28 and 30, to the selector device 18. It should be borne in mind that the lines 24, 26, 28 and 30, actually represent a plurality of lines or a cable. In the selector 18 one of the four addresses on the cables 24, 26, 28 and 30 is selected by the bit signals on lines 20 and 22. When one of the four addresses is selected it is transmitted on the cable 31 to the control store memory 12 whereat it selects an instruction from memory. From the time that the address signals are transmitted on line 31 to the COS 12, it takes approximately 200 nanoseconds for the microinstruction information signals to be present, in stable form, at the output of the COS. It should be noted that the time at which the microinstruction information signals are stable is approximately 250 ns from the beginning of the execution cycle. However the output of the COS 12 is not accepted by the pipeline register 14 through the cable 33 until the end of the execution cycle (which takes 350 ns or 100 ns after the stabilization of the COS) or the beginning of the next cycle. This is controlled by a gating signal on line 35 which is controlled by a clock pulse generator the necessity of which is not present in the description of this invention. It is the control of the signals on lines 20 and 22 and the hardware required to control those signals that constitutes the present invention.
The address of the next microinstruction to be executed (after the microinstruction currently in the pipeline register means 14 has been executed) is formed in address circuitry means 16. As can be gleaned from FIG. 1, the addresses formed by address circuitry means 16, in the preferred embodiment are formed: in response to bit signals received from a displacement field or a branch address field in a jump microinstruction, stored in pipeline register 14, via lines 34 and 36; from bit signals received from a sequencer function field over line 41 and decoded by decoder 37; from bit signals received from a control system output bus 40 via line 42; and from the previously transmitted address from selector 18 over line 32.
Circuitry means designated generally 50 is shown connected between pipeline register 14 and selector 18 for generating the selection control signals which appear on 20 and 22. As mentioned earlier it is the selection control signals on lines 20 and 22 which choose which one of the addresses on lines 24, 26, 28 and 30 is to be transmitted to the COS 12. The circuitry means 50 operates in response to various bit signals transmitted from the fields within a microinstruction stored in pipeline register means 14. FIG. 3 shows these fields in a schematic representation of a portion of the microinstruction of the preferred embodiment of the invention.
Referring to FIG. 3, the various fields used by circuitry means 50 are found. Bits 10, 11, and 12, identified as displacement field bits (DISP) which determine whether or not the programmer has asked that the next address be simply incremented. If all of the DISP bits are zero or low then the system, as will become clear hereinafter, will generate an increment signal.
Bit 13, labeled F1, identifies whether the microinstruction stored in the pipeline register 14 is a conditional or an unconditional instruction. It should be understood that an unconditional microinstruction may include a jump address for the next instruction.
Bits 14 through 19 are the test condition field bits. These bits by their combination identify which one of a plurality of conditions is to be tested to determine whether an ordinary address microinstruction or a jump address microinstruction is to be selected. The test condition bits are effective only when a conditional jump microinstruction is present in the pipeline register means 14.
Bit 23, is the anticipated condition field bit, which allows circuitry means 50 to anticipate the result of testing of a selected condition so that the fetching and execution of two different microinstructions can be overlapped, even though the test condition has not been tested.
Bits 47 and 48, labeled SEQ, meaning sequence function bits, are the bits which identify which of a plurality of jump addresses formed by the address circuitry means 16 is to be selected when a jump address is desired.
If the instruction in the pipeline register has bits 10, 11 and 12 (the DISP bits) indicating all zeros then there will result three low signals which are decoded at decoder 74 to provide a high signal on line 72 to the two NOR gates 68 and 70. The NOR gates 68 and 70 respond to positive input signals to provide negative output signals. Accordingly there will be a low signal on line 20 and on line 22. Low signals on lines 20 and 22 cause the selector 18 to select the address on line 24 which is the ordinary address line. It should be understood that if the microinstruction in the pipeline register 14 includes three ZERO bits, as the DISP bits, then the increment signal generated in response thereto overrides any other possible address selection signals generated in the circuitry shown in FIG. 1.
Sequencer function circuitry designated generally 52 responds to the two bit signals from bits 47 and 48 of FIG. 3 transmitted on the cable 54 and thereafter individually on the two lines 56 and 58. The sequencer function bit signals over lines 56 and 58 are transmitted to exclusive OR gate 60 and AND gate 62. The output of exclusive OR gate 60 is furnished over line 64 to NOR gate 68, while the output from AND gate 62 is furnished over line 66 to NOR gate 70. If the logic circuitry is considered it will be recognized that if the bits 47 and 48 were both ONES (thereby providing two high signals) then there would result a zero on line 22 and a ONE on line 20. A pair of zeros found in the bits 47 and 48 would result in a ONE on line 22 and a ONE on line 20. Whereas a ONE-ZERO or a ZERO-ONE combination for bits 47 and 48 would result in a ONE on line 22 and a ZERO on line 20. Hence the different bit combinations possibly found in bits 47 and 48 result in respectively three different bit combinations on lines 20 and 22 and hence provide a basis for selecting one of the three addresses on lines 26 and 28 and 30. Bear in mind that a pair of high signals on NOR gates 68 and 70 will override any signals generated by the sequencer function circuitry 52.
Let us consider what happens when the bit 13 in FIG. 3 is a ZERO indicating that there is a conditional jump transfer possibility. In such an instruction the sequencer field 47 and 48 would have one of the combinations mentioned earlier and the six bits 14 through 19 would have some combination which would indicate the test condition to be examined. The position 23, AC, would have a ONE or a ZERO depending upon whether the programmer anticipated, in our hypothetical instruction, that the system should seek an ordinary address for the next instruction or a jump address for the next instruction. The DISP bits would be something other than all ZEROS because we would not be seeking to increment unconditionally. In accordance with our above described instruction there would be a pair of signals generated on lines 64 and 66 in accordance with the two bits found in the sequencer field and those two signals, if not overridden at OR gates 68 and 70, will determine the selection of one of the addresses on lines 26, 28 and 30. The question next becomes whether or not the signals on lines 64 and 66 generated by the sequencer field information will be overridden by selection circuitry means designated generally 78 responding to information from the anticipated field of the microinstruction which information has been programmed therein. Since the hypothetical instruction is a conditional microinstruction, there will be a ZERO, or low signal, on line 82 which will be inverted by the inverter 84 to provide a high signal to AND gate 86. If we understand that the TP 250 signal is low for the first 250 nanoseconds then both NAND gates 132 and 116 will provide high output signals for the first 250 nanoseconds. The high output signal from the NAND gate 132 provides a second high input signal to AND gate 86. The high output signal on line 117 partially conditions NAND gate 112 and the output from NAND gate 112 in our present situation will determine whether or not AND gate 86 produces an override signal to NOR gates 68 and 70. Accordingly it becomes apparent that the anticipated condition signal on line 106 becomes controlling for this first decision. If the programmer anticipates that a jump address will be required then the signal on line 106 will be low thereby providing a second high signal, from inverter 108, to AND gate 112. Two high signals to NAND gate 112 provide a low signal therefrom to render the AND gate 86 not fully conditioned and hence the signals on lines 64 and 66 are not overridden and thus these signals determine the selection of the address. On the other hand if the programmer had anticipated that an ordinary address would be required for the next instruction then the signal on line 106 would have been high providing a low signal from inverter 108 to render the NAND gate 112 not fully conditioned. Accordingly there would be a high signal on line 114 providing the third high signal to the AND gate 86 and thus there would be a high signal sent to each of the NOR gates 68 and 70. The last mentioned high signals would provide low signals on the lines 20 and 22 which would result in the selection of the ordinary address on line 24. It becomes apparent then that even though there is always a pair of signals on lines 64 and 66, attempting to select one of the addresses on lines 26, 28 and 30, if the programmer anticipates that an ordinary address is in order the anticipated condition signal on line 106 causes the signals on lines 64 and 66 to be overridden by a simulated increment signal thereby providing selection signals on lines 20 and 22 to select the ordinary address on line 24.
Even though the system has selected an address in accordance with the programmed anticipated condition that selection may not be correct if it is ultimately determined that a condition in the program has been met but was not anticipated by the programmer or alternatively that a condition in the program has not been met while the programmer believed it would be met. Under these last two sets of circumstances the system, during a period of time after the first 250 nanoseconds, compares the anticipated condition signal with a "test of the condition" signal and if there is not a match then the signals on lines 20 and 22 will be overridden and the "test of the condition" signal will be controlling.
In considering the circuitry to either effect or not effect an override by the "test of the condition" signal we find that there will be a zero or low signal on line 82 because it is a conditional microinstruction and the low signal on line 82 will be inverted by the inverter 84 to provide a first high signal to AND gate 86. Before we examine the other two inputs to AND gate 86 let us consider what the system does with respect to determining what the test results may be. The six bits 14 through 19 as found in FIG. 3 are transmitted on a cable 92 from the pipeline register 14 to the test circuitry means 80. In the test circuitry means 80 the six bits are decoded to select one of the lines generally labeled 96 which come from various parts of the system such as the adder (ALU 98) or some form of comparator, etc. If the program being executed generates a condition being sought, i.e. the test condition is valid, (for instance if the employee's year to date salary exceeds the minimum social security taxable amount) a high signal is provided on one of the lines 96 and that particular line is selected by the six bits on the cable 92. Under these conditions a high signal is transmitted on line 94. Of course if the condition has not been generated in the program at the time of the test then a low signal will appear on line 94. It is the comparison of the high or low signal on line 94 with the inverted programmable anticipated condition signal which determines whether the anticipated condition signal was correct or incorrect.
Now let us look at the situation at 250 nanoseconds where the programmer anticipated a jump address and provided a low signal from the anticipated condition bit field over line 106. This provides a high signal on line 110 to NAND gate 112. We will further assume that at 250 nanoseconds when the condition specified by the conditional jump microinstruction in pipeline register 14 becomes valid, a high signal is transmitted on line 94 indicating that the programmer was correct in selecting a jump address. Hence, we want no change to occur in the selection of an address on lines 20 and 22. Before 250 nanoseconds it will be remembered that the inputs to AND gate 86 are high on line 88, high on line 134 because of the low TP 250 signal at NAND gate 132 and low on line 114 because NAND gate 112 sees two high signals, line 110 and the output of NAND gate 116. NAND gate 116 is high because of the low TP 250 signal. This causes the selection of an address to be made from lines 64 and 66. At 250 nanoseconds the high output on line 94 and then on line 130 to NAND gate 132 coupled with the high TP 250 signal causes a low signal on line 134 to NAND gate 86 insuring that the output of AND gate 86 remains low. Hence, no new selection is made and the initially selected jump address remains in effect.
Let us consider the situation where the programmer has anticipated that there should be an ordinary address sought, that is, bit 23 in FIG. 3 is a one and thus a high signal would be found on line 106, and the output on line 94 is low at 250 nanoseconds indicating that the ordinary address was the one to be selected. In this situation there will be no change with respect to the high signal on line 88 to AND gate 86 because the microinstructions still indicates that it is a conditional instruction. There will be no change in the high signal on line 134 during the first 250 nanoseconds because the TP 250 signal is low. The high signal in line 106 passing through the inverter 108 provides a low signal to the AND gate 112. This in turn provides a high signal on line 114 to AND gate 86. Thus, before 250 nanoseconds AND gate 86 has three high inputs providing a high input to OR gates 68 and 70 thereby overriding the signals on lines 64 and 66. At 250 nanoseconds, the output on line 94 goes low and this is transmitted over line 130 to AND gate 132. This causes AND gate 132 to continue to put a high signal out on line 134. Since the input to AND gate 112 over line 110 remains low even after 250 nanoseconds the output of AND gate 112 over line 114 to AND gate 86 remains unchanged. Hence, AND gate 86 continues to see three high input signals after 250 nanoseconds and no new selection of an address is made. This is the desired result since the anticipated condition was the same as the tested condition after 250 nanoseconds.
Before describing the situations where the programmer erroneously anticipates the selection of a jump or ordinary address, the correction circuitry portion of the selection circuitry portion designated generally 78 will be described. The output of test circuitry 80 over line 94 is provided to NAND gate 132 over line 130 and to the exclusive OR gate 122. The output from inverter 108 is provided over line 120 to the exclusive OR gate 122. The output of exclusive OR gate 122 is provided to flip flop 126 and to NAND gate 116 over line 118. Flip flop 126 is a D flip flop which looks at the input on line 124 upon receipt of the TP 250 signal on line 123. The output of flip flop 126 is an extend cycle signal over line 128.
Now let us consider where the programmer anticipates a jump address should be sought but the test circuitry means 80 generates a low signal on line 94 at 250 nanoseconds, indicating that the test condition has not been met, that an ordinary address should have been selected. Under these circumstances, assuming all of the other circumstances to be the same, there would be a high signal on line 88 because of the low signal into inverter 84. There would be a high signal on line 134 before 250 nanoseconds because of the TP 250 signal. The low signal on line 106 would be inverted by inverter 108 to provide a high signal on line 110 to NAND gate 112. Because of the TP 250 signal on line 120 to NAND gate 116 a second high signal would be transmitted to NAND gate 112 over line 117. This results in a low signal to AND gate 86. A low signal at AND gate 86 allows signals on lines 64 and 66 to select an address in the address circuitry means 16. After 250 nanoseconds the output on line 94 and line 130 is low and the output of NAND gate 132 remains high. This continues to provide a high signal on line 134 to AND gate 86. The low signal on line 94 is compared with the high signal on line 120 in exclusive OR gate 122 to provide a high signal on line 124 and line 118. The high signal on line 118 to NAND gate 116 along with the high signal TP 250 after 250 nanoseconds provides a low signal on line 117. NAND gate 112 then changes to provide a high signal on line 114 to AND gate 86. AND gate 86 now has three high inputs and provides a high input to NOR gates 68 and 70 thereby overriding the signals on line 64 and 66 to select an ordinary address in the address circuitry means. Bear in mind that there are only 100 nanoseconds left in the current cycle. In order to provide time to wash out the instruction in the COS 12 and provide a new instruction therein, the high signal on line 124, described earlier, in combination with the TP 250 signal, transfers the flip flop 126 to its extend cycle side. In response thereto, there is an extend cycle signal transmitted on line 128, which halts the advance of the clock for 150 nanoseconds. During this 150 nanoseconds and the 100 nanoseconds remaining in the cycle time, the selector 18 selects the address on cable 24. The address on cable 24 is transmitted to the COS 12 and the instruction originally set up in the COS 12 in the first 250 nanoseconds of the cycle is replaced by an instruction residing at the ordinary address. At the end of the interrupt 150 nanoseconds, the cycle continues with the remaining 150 nanoseconds of the original cycle and the system finishes the execution of the instruction in pipeline register 14 and, thereafter, operates in response to the new instruction (from the ordinary address so selected).
Finally, let us consider that the programmer anticipated an ordinary instruction and the test circuitry 80 indicates that the test conditions for a jump address is met at 250 nanoseconds. Before 250 nanoseconds the signal on line 88 to AND gate 86 will be high as will the signal on line 134 as discussed earlier. If the programmer anticipates an ordinary address then the output of inverter 108 will be low to NAND gate 112 causing a high signal for line 114 to AND gate 86. AND gate 86 then provides a high signal to NOR gates 68 and 70 overriding the signals on line 64 and 66 and selecting the ordinary address in address circuitry means 16. At 250 nanoseconds, however, the output on line 94 is high and is provided to NAND gate 132 along with the high TP 250 signal. This provides a low signal over line 134 to AND gate 86 changing the output of AND gate 86 and, therefore, necessitating a change in the selection of an address of the next micoinstruction to be executed. At the same time, the high signal on line 94 is compared with the low signal on line 120 by exclusive OR gate 122 which provides a high signal on line 124 to flip flop 126. At 250 nanoseconds flip flop 126 provides an extend cycle signal over line 128 which operates as described above.
Address circuitry means 16 is shown in more detail in FIG. 2. The parallel 14 bit signal transmitted from selector 18 to COS 12 is returned to adder 200 of the address circuitry means 16 via line designated by line 32. Adder 200 is a combination of TTL 74S283 devices which increment the address received over line 32 by one and transmit it to program counter register 202 (a 74S174 device). The address stored in register 202 is the ordinary address (one more than the address currently being executed in pipeline register 14) and it is available to selector 18 as a parallel 14 bit address over parallel lines designated by the line 24.
One of the jump addresses formed by address circuitry means 16 is labelled a jump relative address. A jump relative address is defined to be no greater than the current address in the pipeline register 14 plus 4, or no less than the current address in pipeline register 14 minus 3. Jump relative addresses are formed by adding the three displacement field bits (bits 10-12 from a microinstruction currently being executed to pipeline register 14) to the 13 least significant bits of the contents of register 202 in adder 204. Adder 204 is a combination of 74S283 TTL devices. The most significant bit of the contents of register 202 does not pass through adder 204 but is provided separately over line 206 to be concatenated as the most significant bit with the output of adder 204 over parallel lines designated line 208 to form a jump relative address. The jump relative address is provided via parallel lines designated line 26 to selector 18.
Parallel designated lines 28 to selector 18 provide a second source for a jump address to selector 18. If the sequencer function bits, bits 47 and 48 in FIG. 3, are one and zero respectively then the jump address present on line 28 is a branch address or a bus address depending upon how it is formed. Parallel signals from the 13 bit address field (bits 0-12) of the microinstruction currently being executed in the pipeline register 14 are transmitted to address circuitry means 16 via lines designated by line 36.
In forming the branch address, the eight least significant bits are forwarded on parallel lines designated by line 39 in FIG. 2 to selector 210, a 74S258 TTL device, while the most significant 5 bits are concatenated with the most significant bit of the program counter 202. In forming the bus branch address, a second input to selector 210 is provided by 8 parallel bit signals from the control system output bus 40 over parallel lines designated by line 42 in FIG. 2. Either a branch address or a bus address is formed by selecting inputs over line 39 or the inputs over line 42 respectively and concatenating the six most significant bits formed above with the output of the selector 210. Selection is made by decoding the test condition bits 14-19 from the currently executed miroinstruction in pipeline register 14. The test condition bits are transmitted over parallel lines designated line 41 to the address circuitry means 16 and are decoded in that path by decoder 37. In the preferred embodiment, only one combination of bits 14-19 will provide selection of the branch address formed by selecting inputs 42.
Either a branch address or bus branch address as defined above is selected when the sequencer function bits, bits 47 and 48, are one and zero respectively. However, if the sequencer function bits are zero and one respectively, then the jump address formed is identical to the branch address but the sequencer function bits 47 and 48 are decoded in path 220 between pipeline register 14 and address circuitry means 16 by decoder 222 to cause the address stored in program counter 202 to be stored in a stack register 214. Stack register 214 is formed by a combination of Intel 3101 16×4 random access memories (RAM). This provides 16 possible locations for storing the address found in program counter 202. Stacked pointed circuitry 216 formed by a combination of a binary adder (a 74S283 device) and a 4 bit register (a 74S175 device), identifies which location will be used for storage. Each time that the sequencer function bits are decoded to store an address from program counter 202, the stack pointer is incremented by one by decoding the sequencer function bits.
A return address is a jump address formed by reading an address from the stack 214. This return address is transmitted over line 30 to selector 18. Lines 30 are selected by the selector control signals when the sequencer function bits, bits 47 and 48, are one and one. Whenever a return address is read from the stack 214 the stack pointer 216 is decremented by one.
In summary, an ordinary address is transmitted to selector 18 over line 24. Ordinary addresses come from program counter 202 in FIG. 2. Jump relative addresses are transmitted over lines 26 and are formed from the output of adder 204 over line 208 and the most significant bit from program counter 202 over line 206. Branch addresses, bus addresses, and call addresses are furnished over lines 28. They are formed from combining the output of selector 210 with the signals on lines 212. Return address, addresses stored in stack 214, are furnished over lines 30 to selector 18.
While the present invention has been disclosed in connection with the preferred embodiment thereof, it should be understood that there may be other embodiments which fall in the spirit and scope of the invention as defined by the following claims.

Claims (2)

I claim:
1. A microprogrammed control system which is capable of simultaneously fetching and executing microinstructions during a cycle time of the control system, comprising:
a control store memory (COS) which stores at least one microprogram having at least one conditional address microinstruction and at least second and third microinstructions, said at least one conditional address microinstruction having a programmable test condition field and a programmable anticipated condition field;
a pipeline register means connected to said control store memory for receiving a microinstruction therefrom and formed to store a microinstruction to be executed;
address circuitry means connected to said pipeline register and said COS for forming an ordinary address of a microinstruction in said microprogram which is one greater than the address of said microinstruction stored in said pipeline register means, and for forming at least one conditional address of a microinstruction in said microprogram which is different from said ordinary address;
test circuitry means connected to said pipeline register means for testing one of a plurality of conditions present in said microprogram control system when said at least one conditional address microinstruction is stored in said pipeline register means, said test circuitry means operating in response to bit signals transmitted from said programmable test condition field;
selection circuitry means connected to said pipeline register means, said address circuitry means and said control store memory for selecting one of said addresses from said address circuitry means and for transmitting said address to said control store memory before said test circuitry means has completed said testing, whereby the result of testing by said test circuitry means is anticipated, said selection circuitry means operating in response to at least one bit signal transmitted from said programmable anticipated condition field when said at least one conditional address microinstruction is present in said pipeline register means;
said selection circuitry means further comprises correction circuitry connected to said test circuitry means for changing said selection of said address when the actual result of said testing by said test circuitry means is different from said anticipated result;
said conditional address microinstruction comprises a sequencer function field wherein said address circuitry means forms a plurality of conditional addresses of a plurality of microinstructions stored in said microprogram;
a selector in said selection circuitry connected to said address circuitry means and said control store memory, said selector responsive to selector control signals to transmit said selected one of said addresses to said control store memory;
gating circuitry connected to said selector;
sequencer circuitry connected between said pipeline register means and said gating circuitry for generating selector control signals to select said conditional address from said address circuitry means in response to bit signals transmitted from said sequencer function field; and
anticipated condition circuitry connected between said pipeline register means and said gating circuitry for gating said selector control signals from said sequencer circuitry through said gating circuitry to said selector when said anticipated result calls for said conditional address, and for transmitting selector control signals to said selector to select and transmit said ordinary address in said address circuitry means to said control store memory when said anticipated result calls for an ordinary address.
2. The invention of claim 1 wherein said correction circuitry comprises cycle extension circuitry for extending the cycle time for execution of said microinstruction currently being executed when said anticipated result and said actual result of said test circuitry means differ.
US06/167,072 1980-07-09 1980-07-09 Microprogrammed control system capable of pipelining even when executing a conditional branch instruction Expired - Lifetime US4373180A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US06/167,072 US4373180A (en) 1980-07-09 1980-07-09 Microprogrammed control system capable of pipelining even when executing a conditional branch instruction
JP56107557A JPS5748138A (en) 1980-07-09 1981-07-08 Address controlling circuit for microprocessor system
DE3126878A DE3126878C2 (en) 1980-07-09 1981-07-08 Microprogram control circuit for executing a microinstruction received from a control store in a source register

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US06/167,072 US4373180A (en) 1980-07-09 1980-07-09 Microprogrammed control system capable of pipelining even when executing a conditional branch instruction

Publications (1)

Publication Number Publication Date
US4373180A true US4373180A (en) 1983-02-08

Family

ID=22605816

Family Applications (1)

Application Number Title Priority Date Filing Date
US06/167,072 Expired - Lifetime US4373180A (en) 1980-07-09 1980-07-09 Microprogrammed control system capable of pipelining even when executing a conditional branch instruction

Country Status (3)

Country Link
US (1) US4373180A (en)
JP (1) JPS5748138A (en)
DE (1) DE3126878C2 (en)

Cited By (42)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4439827A (en) * 1981-12-28 1984-03-27 Raytheon Company Dual fetch microsequencer
WO1984001843A1 (en) * 1982-11-03 1984-05-10 Burroughs Corp Multiple control stores in a pipelined microcontroller for handling jump and return subroutines
US4467415A (en) * 1980-09-04 1984-08-21 Nippon Electric Co., Ltd. High-speed microprogram control apparatus with decreased control storage requirements
WO1985000453A1 (en) * 1983-07-11 1985-01-31 Prime Computer, Inc. Data processing system
US4571673A (en) * 1983-09-29 1986-02-18 Tandem Computers Incorporated Enhanced CPU microbranching architecture
US4586127A (en) * 1982-11-03 1986-04-29 Burroughs Corp. Multiple control stores for a pipelined microcontroller
US4613935A (en) * 1983-02-02 1986-09-23 Couleur John F Method and apparatus for pipe line processing with a single arithmetic logic unit
US4631672A (en) * 1982-01-27 1986-12-23 Tokyo Shibaura Denki Kabushiki Kaisha Arithmetic control apparatus for a pipeline processing system
US4646236A (en) * 1981-04-17 1987-02-24 International Business Machines Corp. Pipelined control apparatus with multi-process address storage
US4701842A (en) * 1985-10-04 1987-10-20 International Business Machines Corporation Method and apparatus for avoiding excessive delay in a pipelined processor during the execution of a microbranch instruction
US4719570A (en) * 1980-02-29 1988-01-12 Hitachi, Ltd. Apparatus for prefetching instructions
US4729092A (en) * 1984-06-22 1988-03-01 International Computers Limited Two store data storage apparatus having a prefetch system for the second store
US4766533A (en) * 1984-03-09 1988-08-23 The United States Of America As Represented By The United States National Aeronautics And Space Administration Nanosequencer digital logic controller
US4812970A (en) * 1983-11-10 1989-03-14 Fujitsu Limited Microprogram control system
US4847753A (en) * 1986-10-07 1989-07-11 Mitsubishi Denki K.K. Pipelined computer
US4884196A (en) * 1985-10-07 1989-11-28 Kabushiki Kaisha Toshiba System for providing data for an external circuit and related method
US4907192A (en) * 1985-11-08 1990-03-06 Nec Corporation Microprogram control unit having multiway branch
US4924422A (en) * 1988-02-17 1990-05-08 International Business Machines Corporation Method and apparatus for modified carry-save determination of arithmetic/logic zero results
US4967351A (en) * 1986-10-17 1990-10-30 Amdahl Corporation Central processor architecture implementing deterministic early condition code analysis using digit based, subterm computation and selective subterm combination
US4977496A (en) * 1983-11-16 1990-12-11 Fujitsu Limited Branching control system
US5043868A (en) * 1984-02-24 1991-08-27 Fujitsu Limited System for by-pass control in pipeline operation of computer
US5050076A (en) * 1987-10-05 1991-09-17 Nec Corporation Prefetching queue control system
US5099419A (en) * 1988-11-25 1992-03-24 Nec Corporation Pipeline microcomputer having branch instruction detector and bus controller for producing and carrying branch destination address prior to instruction execution
US5121473A (en) * 1987-12-05 1992-06-09 International Computers Limited Pipelined system includes correction mechanism operated on history information identifying conditional jump instructions for which the jump prediction was incorrect on previous instances of execution of those instructions
US5127091A (en) * 1989-01-13 1992-06-30 International Business Machines Corporation System for reducing delay in instruction execution by executing branch instructions in separate processor while dispatching subsequent instructions to primary processor
US5159674A (en) * 1982-11-09 1992-10-27 Siemens Aktiengesellschaft Method for supplying microcommands to multiple independent functional units having a next microcommand available during execution of a current microcommand
US5165025A (en) * 1988-10-06 1992-11-17 Lass Stanley E Interlacing the paths after a conditional branch like instruction
US5299318A (en) * 1989-12-21 1994-03-29 Bull S.A. Processor with a plurality of microprogrammed units, with anticipated execution indicators and means for executing instructions in pipeline manner
US5377335A (en) * 1991-08-30 1994-12-27 Unisys Corporation Multiple alternate path pipelined microsequencer and method for controlling a computer
US5398319A (en) * 1986-08-27 1995-03-14 Ken Sakamura Microprocessor having apparatus for dynamically controlling a kind of operation to be performed by instructions to be executed
US5471593A (en) * 1989-12-11 1995-11-28 Branigin; Michael H. Computer processor with an efficient means of executing many instructions simultaneously
US5522053A (en) * 1988-02-23 1996-05-28 Mitsubishi Denki Kabushiki Kaisha Branch target and next instruction address calculation in a pipeline processor
US5586337A (en) * 1988-02-23 1996-12-17 Kabushiki Kaisha Toshiba Programmable controller with timing control
US5590293A (en) * 1988-07-20 1996-12-31 Digital Equipment Corporation Dynamic microbranching with programmable hold on condition, to programmable dynamic microbranching delay minimization
US5687338A (en) * 1994-03-01 1997-11-11 Intel Corporation Method and apparatus for maintaining a macro instruction for refetching in a pipelined processor
US5765007A (en) * 1989-11-27 1998-06-09 Tandem Computers Incorporated Microinstruction sequencer having multiple control stores for loading different rank registers in parallel
US5948099A (en) * 1989-03-30 1999-09-07 Intel Corporation Apparatus and method for swapping the byte order of a data item to effectuate memory format conversion
US6631464B1 (en) * 1988-12-27 2003-10-07 Fujitsu Limited Instruction pipeline with a branch prefetch when the branch is certain
US6636960B1 (en) * 2000-02-16 2003-10-21 Hewlett-Packard Development Company, L.P. Method and apparatus for resteering failing speculation check instructions
US6715065B1 (en) * 1999-04-09 2004-03-30 Hitachi, Ltd. Micro program control method and apparatus thereof having branch instructions
US6851046B1 (en) 2000-11-14 2005-02-01 Globespanvirata, Inc. Jumping to a recombine target address which is encoded in a ternary branch instruction
US20060183424A1 (en) * 2001-03-23 2006-08-17 Broadcom Corporation Reduced instruction set baseband controller

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3241346A1 (en) * 1982-11-09 1984-05-10 Siemens AG, 1000 Berlin und 8000 München DEVICE AND METHOD FOR FOLLOW-UP ADDRESSING A MICROPROGRAM-CONTROLLED SEQUENCER
JPH0616964B2 (en) * 1984-10-08 1994-03-09 株式会社東芝 How to make a coil
CA1285657C (en) * 1986-01-29 1991-07-02 Douglas W. Clark Apparatus and method for execution of branch instructions

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3418638A (en) * 1966-09-21 1968-12-24 Ibm Instruction processing unit for program branches
US3689895A (en) * 1969-11-24 1972-09-05 Nippon Electric Co Micro-program control system
US3736567A (en) * 1971-09-08 1973-05-29 Bunker Ramo Program sequence control
US3793631A (en) * 1972-09-22 1974-02-19 Westinghouse Electric Corp Digital computer apparatus operative with jump instructions
US4075687A (en) * 1976-03-01 1978-02-21 Raytheon Company Microprogram controlled digital computer
US4110822A (en) * 1975-03-26 1978-08-29 Honeywell Information Systems, Inc. Instruction look ahead having prefetch concurrency and pipeline features
US4156925A (en) * 1976-04-30 1979-05-29 International Business Machines Corporation Overlapped and interleaved control store with address modifiers
US4200927A (en) * 1978-01-03 1980-04-29 International Business Machines Corporation Multi-instruction stream branch processing mechanism
US4210960A (en) * 1977-09-02 1980-07-01 Sperry Corporation Digital computer with overlapped operation utilizing conditional control to minimize time losses

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3418638A (en) * 1966-09-21 1968-12-24 Ibm Instruction processing unit for program branches
US3689895A (en) * 1969-11-24 1972-09-05 Nippon Electric Co Micro-program control system
US3736567A (en) * 1971-09-08 1973-05-29 Bunker Ramo Program sequence control
US3793631A (en) * 1972-09-22 1974-02-19 Westinghouse Electric Corp Digital computer apparatus operative with jump instructions
US4110822A (en) * 1975-03-26 1978-08-29 Honeywell Information Systems, Inc. Instruction look ahead having prefetch concurrency and pipeline features
US4075687A (en) * 1976-03-01 1978-02-21 Raytheon Company Microprogram controlled digital computer
US4156925A (en) * 1976-04-30 1979-05-29 International Business Machines Corporation Overlapped and interleaved control store with address modifiers
US4210960A (en) * 1977-09-02 1980-07-01 Sperry Corporation Digital computer with overlapped operation utilizing conditional control to minimize time losses
US4200927A (en) * 1978-01-03 1980-04-29 International Business Machines Corporation Multi-instruction stream branch processing mechanism

Cited By (50)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4719570A (en) * 1980-02-29 1988-01-12 Hitachi, Ltd. Apparatus for prefetching instructions
US4467415A (en) * 1980-09-04 1984-08-21 Nippon Electric Co., Ltd. High-speed microprogram control apparatus with decreased control storage requirements
US4646236A (en) * 1981-04-17 1987-02-24 International Business Machines Corp. Pipelined control apparatus with multi-process address storage
US4439827A (en) * 1981-12-28 1984-03-27 Raytheon Company Dual fetch microsequencer
US4631672A (en) * 1982-01-27 1986-12-23 Tokyo Shibaura Denki Kabushiki Kaisha Arithmetic control apparatus for a pipeline processing system
WO1984001843A1 (en) * 1982-11-03 1984-05-10 Burroughs Corp Multiple control stores in a pipelined microcontroller for handling jump and return subroutines
US4546431A (en) * 1982-11-03 1985-10-08 Burroughs Corporation Multiple control stores in a pipelined microcontroller for handling jump and return subroutines
US4586127A (en) * 1982-11-03 1986-04-29 Burroughs Corp. Multiple control stores for a pipelined microcontroller
US5159674A (en) * 1982-11-09 1992-10-27 Siemens Aktiengesellschaft Method for supplying microcommands to multiple independent functional units having a next microcommand available during execution of a current microcommand
US4613935A (en) * 1983-02-02 1986-09-23 Couleur John F Method and apparatus for pipe line processing with a single arithmetic logic unit
US4760519A (en) * 1983-07-11 1988-07-26 Prime Computer, Inc. Data processing apparatus and method employing collision detection and prediction
WO1985000453A1 (en) * 1983-07-11 1985-01-31 Prime Computer, Inc. Data processing system
US4750112A (en) * 1983-07-11 1988-06-07 Prime Computer, Inc. Data processing apparatus and method employing instruction pipelining
US4777594A (en) * 1983-07-11 1988-10-11 Prime Computer, Inc. Data processing apparatus and method employing instruction flow prediction
US4636943A (en) * 1983-09-29 1987-01-13 Tandem Computers Incorporated Enhanced CPU microbranching architecture
US4571673A (en) * 1983-09-29 1986-02-18 Tandem Computers Incorporated Enhanced CPU microbranching architecture
US4812970A (en) * 1983-11-10 1989-03-14 Fujitsu Limited Microprogram control system
US4977496A (en) * 1983-11-16 1990-12-11 Fujitsu Limited Branching control system
US5043868A (en) * 1984-02-24 1991-08-27 Fujitsu Limited System for by-pass control in pipeline operation of computer
US4766533A (en) * 1984-03-09 1988-08-23 The United States Of America As Represented By The United States National Aeronautics And Space Administration Nanosequencer digital logic controller
US4729092A (en) * 1984-06-22 1988-03-01 International Computers Limited Two store data storage apparatus having a prefetch system for the second store
US4701842A (en) * 1985-10-04 1987-10-20 International Business Machines Corporation Method and apparatus for avoiding excessive delay in a pipelined processor during the execution of a microbranch instruction
US4884196A (en) * 1985-10-07 1989-11-28 Kabushiki Kaisha Toshiba System for providing data for an external circuit and related method
US4907192A (en) * 1985-11-08 1990-03-06 Nec Corporation Microprogram control unit having multiway branch
US5398319A (en) * 1986-08-27 1995-03-14 Ken Sakamura Microprocessor having apparatus for dynamically controlling a kind of operation to be performed by instructions to be executed
US4847753A (en) * 1986-10-07 1989-07-11 Mitsubishi Denki K.K. Pipelined computer
US4967351A (en) * 1986-10-17 1990-10-30 Amdahl Corporation Central processor architecture implementing deterministic early condition code analysis using digit based, subterm computation and selective subterm combination
US5050076A (en) * 1987-10-05 1991-09-17 Nec Corporation Prefetching queue control system
US5121473A (en) * 1987-12-05 1992-06-09 International Computers Limited Pipelined system includes correction mechanism operated on history information identifying conditional jump instructions for which the jump prediction was incorrect on previous instances of execution of those instructions
US4924422A (en) * 1988-02-17 1990-05-08 International Business Machines Corporation Method and apparatus for modified carry-save determination of arithmetic/logic zero results
US5522053A (en) * 1988-02-23 1996-05-28 Mitsubishi Denki Kabushiki Kaisha Branch target and next instruction address calculation in a pipeline processor
US5586337A (en) * 1988-02-23 1996-12-17 Kabushiki Kaisha Toshiba Programmable controller with timing control
US5590293A (en) * 1988-07-20 1996-12-31 Digital Equipment Corporation Dynamic microbranching with programmable hold on condition, to programmable dynamic microbranching delay minimization
US5165025A (en) * 1988-10-06 1992-11-17 Lass Stanley E Interlacing the paths after a conditional branch like instruction
US5099419A (en) * 1988-11-25 1992-03-24 Nec Corporation Pipeline microcomputer having branch instruction detector and bus controller for producing and carrying branch destination address prior to instruction execution
US6631464B1 (en) * 1988-12-27 2003-10-07 Fujitsu Limited Instruction pipeline with a branch prefetch when the branch is certain
US5127091A (en) * 1989-01-13 1992-06-30 International Business Machines Corporation System for reducing delay in instruction execution by executing branch instructions in separate processor while dispatching subsequent instructions to primary processor
US5948099A (en) * 1989-03-30 1999-09-07 Intel Corporation Apparatus and method for swapping the byte order of a data item to effectuate memory format conversion
US5765007A (en) * 1989-11-27 1998-06-09 Tandem Computers Incorporated Microinstruction sequencer having multiple control stores for loading different rank registers in parallel
US5471593A (en) * 1989-12-11 1995-11-28 Branigin; Michael H. Computer processor with an efficient means of executing many instructions simultaneously
US5299318A (en) * 1989-12-21 1994-03-29 Bull S.A. Processor with a plurality of microprogrammed units, with anticipated execution indicators and means for executing instructions in pipeline manner
US5377335A (en) * 1991-08-30 1994-12-27 Unisys Corporation Multiple alternate path pipelined microsequencer and method for controlling a computer
US5687338A (en) * 1994-03-01 1997-11-11 Intel Corporation Method and apparatus for maintaining a macro instruction for refetching in a pipelined processor
US6715065B1 (en) * 1999-04-09 2004-03-30 Hitachi, Ltd. Micro program control method and apparatus thereof having branch instructions
US6636960B1 (en) * 2000-02-16 2003-10-21 Hewlett-Packard Development Company, L.P. Method and apparatus for resteering failing speculation check instructions
US6851046B1 (en) 2000-11-14 2005-02-01 Globespanvirata, Inc. Jumping to a recombine target address which is encoded in a ternary branch instruction
US20060183424A1 (en) * 2001-03-23 2006-08-17 Broadcom Corporation Reduced instruction set baseband controller
US7715792B2 (en) * 2001-03-23 2010-05-11 Broadcom Corporation Reduced instruction set baseboard controller
US20100223410A1 (en) * 2001-03-23 2010-09-02 Broadcom Corporation Reduced Instruction Set Baseband Controller
US8112616B2 (en) 2001-03-23 2012-02-07 Broadcom Corporation Reduced instruction set baseband controller

Also Published As

Publication number Publication date
JPS5748138A (en) 1982-03-19
DE3126878A1 (en) 1982-04-22
DE3126878C2 (en) 1985-07-25

Similar Documents

Publication Publication Date Title
US4373180A (en) Microprogrammed control system capable of pipelining even when executing a conditional branch instruction
CA2029088C (en) Instructing method and execution system
US4430706A (en) Branch prediction apparatus and method for a data processing system
US3728692A (en) Instruction selection in a two-program counter instruction unit
US4179731A (en) Microprogrammed control system
US5283873A (en) Next line prediction apparatus for a pipelined computed system
EP0124597B1 (en) Multiple control stores in a pipelined microcontroller for handling jump and return subroutines
US4295193A (en) Machine for multiple instruction execution
US4095278A (en) Instruction altering system
US3949372A (en) System for extending the interior decor of a microprogrammed computer
US3909798A (en) Virtual addressing method and apparatus
CA2313013C (en) An instruction decoder
US3990054A (en) Microprogram organization techniques
US5608867A (en) Debugging system using virtual storage means, a normal bus cycle and a debugging bus cycle
CA1180455A (en) Pipelined microprocessor with double bus architecture
EP0652514B1 (en) Data processing apparatus handling plural divided interruptions
US5689694A (en) Data processing apparatus providing bus attribute information for system debugging
EP0126125B1 (en) Multiple control stores for a pipelined microcontroller
EP0126124B1 (en) Multiple control stores in a pipelined microcontroller for handling nested subroutines
US4236205A (en) Access-time reduction control circuit and process for digital storage devices
US4320454A (en) Apparatus and method for operand fetch control
US4441152A (en) Data processing system having ring-like connected multiprocessors relative to key storage
US4635188A (en) Means for fast instruction decoding for a computer
US5586336A (en) Microcomputer capable of monitoring internal resources from external
KR920008142B1 (en) Microprogram processor

Legal Events

Date Code Title Description
AS Assignment

Owner name: SPERRY CORPORATION, 1290 AVENUE OF THE AMERICAS, N

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST.;ASSIGNOR:LINDE, JAMES P.;REEL/FRAME:004062/0620

Effective date: 19800716

STCF Information on status: patent grant

Free format text: PATENTED CASE