首页 / 专利库 / 电脑零配件 / 微码 / Micro-programmed pipeline computer and method of operating the same

Micro-programmed pipeline computer and method of operating the same

阅读:61发布:2021-06-01

专利汇可以提供Micro-programmed pipeline computer and method of operating the same专利检索,专利查询,专利分析的服务。并且A banked control store for conditional branching comprises: an address multiplexer (22) for receiving original instructions, branch instructions, and increment instructions for controlling the selection of an output of said address multiplexer; a control store address register (24) receiving the output of the address multiplexer; a single microinstruction memory (92) for receiving the output from the control store address register and for producing a memory output; a multiple microinstruction memory (96) for receiving the output from the control store address register; a memory select network (94) for receiving the output of the single microinstruction memory and said multiple microinstruction memory and having an output consisting of a selected memory output; an output register (36) for said memory select network; a single microinstruction flip-flop (26) for controlling the memory select network, the single microinstruction flip-flop receiving an output from the address multiplexer (22); a branch logic network (54) for producing a control output which is provided to the address multiplexer; and microcode branch condition register (56) for providing branch condition inputs to branch logic network.,下面是Micro-programmed pipeline computer and method of operating the same专利的具体信息内容。

1. A banked control store for conditional branching characterised by comprising: an address multiplexer (22) having input means (17) for receiving original instructions, input means (32) for receiving branch instructions, and input means (40) for receiving increment instructions together with logic means (30) for controlling the selection of an output of said address multiplexer; a control store address register (24) receiving the output of said address multiplexer; a single microinstruction memory (92) for receiving the output from said control store address register and for producing a memory output; a multiple microinstruction memory (96) for receiving the output from said control store address register and for producing an output; a memory select means (94) for receiving the output of said single microinstruction memory and said multiple microinstruction memory and having an output consisting of a selected memory output; an output register means (36) for said memory select means; a single microinstruction flip-flop (26) for controlling said memory select means, said single microinstruction flip-flop receiving an output from said address multiplexer (22); a branch logic network (54) for producing a control output which is provided to said address multiplexer; and means (56) for providing branch condition inputs to said branch logic network.2. A banked control store as claimed in claim 1 characterised by including instruction register means (12) for receiving program instructions, instruction mapping memory means (14) for receiving instructions from said instruction register means, and instruction map register means (16) for receiving the output of said instruction mapping memory means and connected to said input means for receiving original instructions of said address multiplexer.3. A banked control store as claimed in claim 2 characterised by including first, second, third and fourth valid flip-flops (18, 20, 28, 70) associated, respectively, with said instruction . register means (12), said instruction map register means (16), said control store address register means (24) and said output register means (36), said first to fourth valid flip-flops being arranged to control purging of said respective register means, respectively, said branch logic network (54) providing, in operation, a control signal to at least one of said flip-flops in the event a branch is taken to purge the contents of the respective register means.4. A banked control store as claimed in claim 3 characterised in that said branch logic network (54) is connected to said fourth valid flip-flop (70) to provide a control signal in the event a branch is taken to purge the contents of said output register means (36).5. A banked control store as claimed in any preceding claim characterised in that said output register means (36) comprises a PREXIT output control signal means (48) which is connected with said address multiplexer logic means (30) so that when the next to last microinstruction is produced in a series of sequentially produced microinstructions, the PREXIT output control signal means is activated to cause an original instruction to be gated to said control store at the proper time to provide an uninterrupted flow of output microinstructions.6. A banked control store as claimed in any preceding claim characterised in that said output register means (36) contains a REPEAT output control signal means (112), and further comprising logic network means (122) for controlling said pipeline to repeat a microinstruction until a predetermined condition occurs, in response to a REPEAT output control signal.7. A banked control store as claimed in any preceding claim characterised in that said output register means (36) contains a SYNCHRONIZE output control signal means (110), and further comprising logic network means (120) for controlling said pipeline to hold back a conditional branch instruction until a predetermined j condition occurs, in response to a SYNCHRONIZE output control signal.
说明书全文

This invention relates to banked control stores for conditional branching.

More particularly, the present invention seeks to provide a microcode sequencing technique (for example, conditional branching) in a computer done in such a way as to maximize the pipeline execution rate. The computer described is presumed to be a pipeline structure in which a single phase clocking system is used to clock the pipeline. The instruction execution rate is proportional to the clocking rate, thus minimizing the clock cycle time which is critical to achieving maximum performance. The computer utilizes microprogrammed control, thus one of the pipeline segments consists of the microcode control store. A microcode control store is the memory used to store the microinstructions. A microinstruction is the contents of a single control store address and contains the bits used for control. The hardware design must be capable of accessing one microinstruction per clock. This means that the minimum clock cycle time must be at least as long as the access time of the memory chip plus the input and output pipeline registers. Thus, the present invention seeks to implement a microprogrammed control unit in a pipeline computer in which the clock cycle- is the minimum described and the clocking rate is at a maximum rate for any given memory chip.

Prior art computers for this purpose all have at least one additional logic level between the various registers in the pipeline. These additional logic levels directly increase the clock cycle time period. A typical example is for some control store bits to be used to control the selection of the control store address at the next clock cycle time. In this example, the clock cycle time is computed as: memory access time plus register delay time plus multiplexer select path 'delay time. These designs all have a decision interval of one clock. That is, the current microinstruction always knows how to address the next microinstruction. The cost of obtaining the decision time of one is the extra gate levels described.

The present invention does not have a guaranteed decision interval of one clock cycle: in most applications, the decision interval will be one clock. This does not mean however that a decision interval of one clock cycle is guaranteed, since no control store bits feed directly back to select the next data for the control store address register. However, for most of the time the decision interval will be one clock cycle, the only exception being a wrong prediction on a microcode conditional branch.

The use of the microprogrammed control in the computer is to decode instructions. More specifically, opcodes are received from the instruction register and used to generate the specific control signals that cause the instruction to be executed in the computer. In the present invention, the microprogrammed control categorizes instructions received into two classes, single microinstructions and multiple microinstructions. A single instruction is one in which only a single microcode instruction is issued to the machine to cause the instruction to be fully executed. A multiple microcode instruction is one in which more than one microcode instruction must be issued to the machine to cause the instruction to be executed.

Once instructions are brought into the microprogrammed control unit, they execute in one of three ways: (1) single microinstructions, (2) sequential multiple microinstructions, and (3) sequential multiple microinstructions with conditional branching instructions. With respect to microcode sequencing, with case 1, the only sequencing required by a microinstruction is to go to the first microinstruction of the next instruction. In case 2, the only sequencing used between microinstructions is increment. In case 3, many types of sequencing are supported, including increment, conditional branch, subroutine call and return, unconditional branch and repeat.

Thus a banked control store according to the present invention can handle cases 1 and 2 with a decision interval equal to one clock cycle, since the design will always do a correct look-ahead, and will handle all branches of case 3 with a decision interval of one clock cycle if the branch is not taken and a decision interval of two clock cycles if the branch is taken. This is because the hardware makes a look-ahead guess of the next address. When the guess is correct, the decision interval is one clock cycle. When the guess is incorrect, the guess is purged and the correct path is resumed with a decision interval of two clock cycles.

In computer applications, most of the instruction microcode is classified as case 1 or 2. The small number of case 3 instructions can be handled efficiently if the branch probabilities are known, which is often the case. Practice of the present invention can come very close to total execution with a decision interval of one clock cycle without suffering the additional gate delays required to guarantee a decision interval of one clock cycle.

According to the present invention there is provided a banked control store for conditional branching characterised by comprising: an address multiplexer having input means for receiving original instructions, input means for receiving branch instructions, and input means for receiving increment instructions together with logic means for controlling the selection of an output of said address multiplexer; a control store address register receiving the output of said address multiplexer; a single microinstruction memory for receiving the output from said control store address register and for producing a memory output; a multiple microinstruction memory for receiving the output from said control store address register and for producing an output; a memory select means for receiving the output of said single microinstruction memory and said multiple microinstruction memory and having an output consisting of a selected memory output; an output register means for said memory select means; a single microinstruction flip-flop for controlling said memory select means, said single microinstruction flip-flop receiving an output from said address multiplexer; a branch logic network for producing a control output which is provided to said address multiplexer; and means for providing branch condition inputs to said branch logic network.

The banked control store may include instruction register means for receiving program instructions, instruction mapping memory means for receiving instructions from said instruction register means, and instruction map register means for receiving the output of said instruction mapping memory means and connected to said input means for receiving original instructions of said address multiplexer.

Preferably, the banked control store may include first, second, third and fourth valid flip-flops associated, respectively, with said instruction register means, said instruction map register means,said control store address register means and said output register means, said first to fourth valid flip-flops being arranged to control purging of said respective register means, respectively, said branch logic network providing, in operation, a control signal to at least one of said flip-flops in the event a branch is taken to purge the contents of the respective register means.

Said branch logic network may be connected to said fourth valid flip-flop to provide a control signal in the event a branch is taken to purge the contents of said output register means.

Said output register means preferably comprises a PREXIT output control signal means which is connected with said address multiplexer logic means so that when the next to last microinstruction is produced in a series of sequentially produced microinstructions, the PREXIT output control signal means is activated to cause an original instruction to be gated to said control store at the proper time to provide an uninterrupted flow of output microinstructions.

Said output register means may contain a REPEAT output control signal means and further comprise logic network means for controlling said pipeline to repeat a microinstruction until a predetermined condition occurs, in response to a REPEAT output control signal.

Said output register means may contain a SYNCHRONIZE output control signal means, and further comprise logic network means for controlling said pipeline to hold back a conditional branch instruction until a predetermined condition occurs, in response to a SYNCHRONIZE output control signal.

The invention is illustrated, merely by way of example, in the accompanying drawings, in which:-

Figures 1A and 1B are to be viewed in side by side relationship and are a block schematic diagram of a banked control store according to the present invention for conditional branching.

Referring now to the drawings, a banked control store according to the present invention is shown. Instructions are initially received into the system by an instruction register 12. The instruction register 12 is connected to an instruction mapping memory 14 which in turn is connected to a register 16. A first valid flip-flop 18 is connected with the instruction register 12. A second valid flip-flop register 20 is connected with the register 16. The output of the register 16 comprising a memory map is connected to an address multiplexer 22. The output of address multiplexer 22 is connected to a control store address register 24 and to a single microinstruction flip-flop 26.

A third valid flip-flop 28 is connected to the control store address register 24. A pipe purge control line 31 is connected to the reset input of the flip-flops 18, 20, 28. The line 31 also provides an input to an OR gate 29 which controls the reset input to a flip-flop 70, to be explained later.

An address select logic control network 30 is connected to the address multiplexer 22. The address select logic network control network 30 controls the functioning of the address multiplexer 22. A first source of input addresses for the address multiplexer 22, as previously described, is the input from the register 16 on a data path 17. A second source of input addresses on a data line 32 is from a branch address portion 34 of a memory data register 36. The branch address portion 34 of the memory data register 36 is output through an AND gate 38 and connected to the data line 32. A third input source of input addresses to the address multiplexer 22 is from a data line 40 which is the increment address furnished by an increment address unit 42.

The address select logic control network 30 receives three control inputs. A first control input is on a control line 44 which is an output from the single microinstruction flip-flop 26. A second control input is on a control line 46 from a PREXIT portion 48 which is part of the sequencing field output of the memory data register 36. The PREXIT portion 48 passes through an AND gate 50 whose output is connected to the control line 46. Finally a third control input to the address select control network 30 is on a control line 52 which is a control output from a branch logic network 54.

Various machine status bits from a central processing unit of a computer, including the pipeline, are provided as input bits to a microcode branch condition register 56 which forms a microcode branch condition operand from the various bits. This microcode branch condition operand is provided as the operand input to the branch logic network 54 to determine whether or not a conditional branch should be taken or not and this output is provided to the control line 52 from the branch logic network 54. A control input to the branch logic network 54 is provided on a control line 58 from an AND gate 60 which receives as an input the branch condition portion 62 of the memory data register 36. The control line 52 is connected to the reset input of the flip-flop 70 which controls the memory data register 36. An output of the flip-flop 70 represents the control input to the AND gates 38, 50, 60 which pass control information inputs as previously described. The flip-flop 70 also provides an input to an AND gate 71 which is an output VALID bit used in connection with a synchronize function. A memory data portion 74 of the memory data register 36 is connected through an AND gate 80 and an output register 75 is connected through AND gates 76, 78 to provide control signals to the central processing unit.

A control store 90 includes a single microinstruction memory 92 which receives an input from the control store address register 24 and has an output connected to a memory select network 94. A multiple microinstruction memory 96 also receives an input from the control store address register 24 and provides an output to the memory select network 94. The output of the memory select network 94 is connected to the input of the memory data register 36. The memory select network is controlled by a control line 98 which is connected to the output of the single microinstruction flip-flop 26.

As described, the sequencing field portion of the memory data register 36 contains the PREXIT portion 48. In addition, there is a unconditional branch portion 104, a subroutine call portion 106, a subroutine return portion 108, a SYNCHRONIZE portion 110 and a REPEAT portion 112. The function of the portions 104, 106, l08 is clear from their names. AND gates 114, 116, 118, 120, 122 are associated with and receive inputs from the portions 104, 106, 108, 110, 112, respectively. The other input to the AND gates 114, 116, 118, 120, 122 is provided from the flip-flop 70 in the same way as to the AND gates 38, 50, 60, 76, 78, 80. The AND gates 114, 116, l18 provide control inputs to the branch logic network 54 to indicate function. The AND gates 120, 122 provide control inputs to a REPEAT/SYNCHRONIZE logic network 100 to indicate the function to be performed. The network 100 receives a plurality of various condition inputs, as shown, relating to machine status valid bits and machine repeat conditions. These conditions might be various flags or other hardware test conditions appropriate to the instruction. A pipeline clocking logic unit 102 receives control inputs from the network 100 and sends appropriate clock enable signals to all registers. The pipeline valid flip-flops are also connected to the unit 102.

Generally, the banked control store may be explained as consisting of a microprogram unit consisting of an address multiplexer, a control store address register, a single microinstruction memory, a multiple microinstruction memory, a single microinstruction flip-flop, a memory select network, an address select logic unit, an address select logic unitt an increment address unit and a memory data register. Instructions are supplied by the instruction register 12. From the instruction register 12, the instruction opcode addresses the mapping memory 14. The mapping memory 14 provides the control store address of the microcode routine which executes the instruction. This address is then latched into the register 16 to be available to the microprogram unit.

The microprogram unit operates by continuously clocking in control store addresses to generate the appropriate control signals. The sequencing of the microcode is controlled by the address select logic network 30 and the address multiplexer 22. The microcode unit can get its address from the mapping memory 14 which is used to supply the address of the first microinstruction of an instruction. The mapping memory 14 also supplies the correct value to be loaded into the single microinstruction flip-flop 26. The output of the mapping memory contained in the memory data register 16 is selected whenever the single microinstruction flip-flop 26 is a one or the control signal from the PREXIT portion 48 on the control line 46 is a one. The microcode unit can get its address from the data line 32 which is used to supply the address whenever a branch is taken. The branch address is selected whenever the output of the branch logic network 54 on the control line 52 is a one.

The microcode unit can also get its address from the increment address unit 42. In this way the microcode steps through the memory sequentially. Increment address selection control is the default select condition, the one selected when none of the others are specifically asserted. Each pipeline register rank, such as the instruction register 12, the register 16, the control store address register 24 or the memory data register 36 has an associated valid bit. Each of these valid bits are provider by the flip-flops 18, 20, 28, 70, respectively. The valid bit means that the data in the rank should be used as valid data. The microinstruction bits in the memory data register 36 are all gated with the flip-flop 70 and thus no output signals are asserted if the rank is invalid. The invalid condition is that when the output of the flip-flop 70 is a zero.

There are three specific operation types to describe and the single microinstruction type of operation is the first to be described. In the operation, the last step of a previous instruction causes the address multiplexer 22 to select the map address on the line 17. The next clock cycle causes the map address to be latched into the control store address register 24. The single microinstruction flip-flop 26 is also set to one. At the next clock interval, the data read from the control store is latched into the memory data register 36 and the first address of the next instruction is latched into the control store address register 24. This process then repeats.

The next type of instruction to be described is the sequential multiple microinstruction. In this case, the first control store address of the instruction is latched into the control store address register 24. At this time the single microinstruction flip-flop 26 is set to zero. This address is then read from the control store and also incremented by the single microinstruction flip-flop 26. The next clock interval latches the microinstruction into the memory data register 36 and also latches the output of the increment address unit 42 as the next control store address. Thus the execution of multiple microinstructions consists of stepping sequentially from the first address provided. The instruction is ended by setting the PREXIT bit from the PREXIT portion 48 on the control line 46 to be a one in the next to last microinstruction. This causes the address multiplexer 22 to select the map input during the next clock, thus initiating the next instruction.

The last type of instruction to be discussed is the sequential multiple microinstruction with conditional branching. In some instructions, the microcode which executes the instruction must make conditional decisions based on certain machine state bits. This microprogram control unit is capable of branching on any one of the bits in the microcode branch condition register 56. The microinstruction sequence fields specifies what branch condition will be tested and the branch address will occur if the branch condition is true. The conditional branch method used in this invention is based on prediction. In all multiple microinstruction sequences the normal next address is an incremented address. Thus while a branch decision is being resolved, the microprogram unit is predicting that the branch will not be taken. The effect of the branch being not taken is that the next address will be an increment address. If the prediction is true, then when the branch is resolved, the microcode sequencing simply continues with no delay.

If the branch condition is met, then the prediction of an increment address is wrong and several things must be done. First, the microinstruction that is clocked into the memory data register 36 as a result of the predicted address must be cancelled, since the branch was actually taken. This cancelling is done by clearing the flip-flop 70 with the branch taken signal on the control line 52. Note that all signals are gated with the flip-flop 70 so they are in effect cancelled. It should also be noted that this requires no additional logic, since the valid flip-flops exist in the memory pipeline for purging or clearing registers. Also, the branch address output on the data line 32 must be gated into the control store address register 24. This is done by the address multiplexer 22 selecting the branch address on the data line 32. Thus a branch taken, meaning a wrong prediction requires a two clock cycles. By understanding the branch probabilities and having the freedom to define the sense of the branch conditions, it is often possible to obtain a higher frequency of branch not taken, the faster path of resolution. The multiple microinstruction starts from the mapping memory 14 and the register 16. The instruction executes sequentially through the control store 90. When a conditional branch is encountered, if the branch is not take, sequential execution continues. If the branch is taken, the branch address is loaded into the control store address register 24 and sequential execution begins from there. When the sequence is complete, the pipeline flow of instructions in memory is started again by the PREXIT bit in the next to the last micrand being set to a one. This look-ahead feature causes the pipeline to start at the correct cycle time to supply the next instruction with no time delay.

Even when branches take a decision interval of 2 cycles, only one microinstruction was required not two. Thus, the branches are specified in a single microinstruction. This results in a savings of control store, since each branch requires only a single microinstruction instead of two. Further, the cancellation of the microinstruction resulting from a wrong guess requires essentially no extra hardware, since pipelines require valid bits and purge signals anway.

The SYNCHRONIZE portion 110 is used in conjunction with conditional branching to put the machine in Synchronize Mode. In this mode, the next microinstruction, which would normally contain the conditional branch, is held up until the specified branch condition is valid. This ensures that the microcode does not use a branch condition until it is valid. This implementation saves control store location and results in faster microcode branching. The REPEAT portion 112 causes a microinstruction to be repeated until a specified condition occurs. Both the REPEAT portion 112 and SYNCHRONIZE portion 110 operate by controlling the network 100 to test its inputs. When the tested condition occurs, either the Repeat or Synchronize control is sent to the unit 102, as appropriate for control.

The above described banked control store is made up of two individual memories, one for single microinstructions and one for multiple microinstructions. The single microinstruction memory is much smaller than the multiple microinstruction memory since no sequencing field bits are required. This has the advantage that both memories may respond more quickly than a single memory of the same size because the internal delays of a small memory are shorter. The multiple microinstruction memory must have a sequencing field to define how to calculate the next control store address. The selection of memories is done by a bit derived from a control device, referred to as the single microinstruction flip-flop which is latched in every time a new instruction is started. This flip-flop defines the instruction as a single or multiple microinstruction and controls the memory select network for the duration of the instruction. This address instruction does not require any gate delay time as a result of hard wiring ANDing requirements and chip enable requirements.

A microprogram control is embedded in a pipeline computer and the microprogram control must therefore meet pipeline control requirements. A first requirement is that the pipeline must be capable of running at the maximum rate of one, single microinstruction per clock cycle. The section of the pipeline which supplies instructions to the microprogram control must have a signal to determine when to advance an instruction and when to stop sending instructions. Since no memory bits can be used directly to do this, because memory bits are immediately latched, a look-ahead technique is used. That is, the pipeline control must be predicted one clock cycle before it is required. For single microinstructions, this is done with the single microinstruction flip-flop in the control store address pipeline rank. This flip-flop bit is a 1 whenever the control store address being read is a single microinstruction. At the next clock cycle, the pipeline will advance such that the microinstruction just read is latched and the first control store address of the next instruction is latched into the control store address register. For multiple microinstructions, the pipeline flow of instruction must stop while the sequence of microinstructions is issued. This is done by the single microinstruction bit being zero during the execution stage. The pipeline flow of instructions is started again by a bit in the sequencing field of the multiple microinstruction. This bit, called the PREXIT bit is set to be a one in the next to the last microinstruction. This look-ahead feature causes the pipeline to start at the correct time to supply the next instruction with no time delay. This is always possible as multiple microinstructions have two or more microinstructions.

The sequencing field of the multiple microinstruction memory is also used to implement a REPEAT and a SYNCHRONIZE function. The REPEAT bit in the sequencing field causes a microinstruction to be repeated or reissued at every instruction cycle to the processor until the condition register shows a true on a tested condition. Then the next instruction is issued in the instruction pipeline to the microcode memory.

Similarly, the sequencing field has another bit called the SYNCHRONIZE bit. This is used in conjunction with conditional branching and the processor operates in the synchronize mode. In this mode, the next microinstruction, which would normally contain the conditional branch, is held or pauses until the specified branch condition information becomes available or valid. This ensures that the microcode does not use a branch condition until it is valid. This implementation saves control store locations and results in faster microcode branching.

高效检索全球专利

专利汇是专利免费检索,专利查询,专利分析-国家发明专利查询检索分析平台,是提供专利分析,专利查询,专利检索等数据服务功能的知识产权数据服务商。

我们的产品包含105个国家的1.26亿组数据,免费查、免费专利分析。

申请试用

分析报告

专利汇分析报告产品可以对行业情报数据进行梳理分析,涉及维度包括行业专利基本状况分析、地域分析、技术分析、发明人分析、申请人分析、专利权人分析、失效分析、核心专利分析、法律分析、研发重点分析、企业专利处境分析、技术处境分析、专利寿命分析、企业定位分析、引证分析等超过60个分析角度,系统通过AI智能系统对图表进行解读,只需1分钟,一键生成行业专利分析报告。

申请试用

QQ群二维码
意见反馈