Entry point mapping and skipping method and apparatus.
Abstract
A fixed entry-point map to produce an entry point address of a first micro-instruction for a particular macro-instruction. That address is then incremented by a fixed number to produce the second, third, etc. micro-instructions for that macro-instruction. In a first embodiment, after a fixed number of these address skips, the addresses are incremented by 1 so that successive micro-instructions are in adjacent address locations. In a second embodiment, the number of skips is variable.

Term
Term ended
Projected expiry passed 5 April 2008, 18.5 years ago.
- Priority
- Filed
- Published
- Projected expiry
- Today
19 claims: 3 independent, 16 dependent
- 1A method for implementing a macro-instruction by addressing a series of microcode instructions in a memory comprising the steps of:a) providing an entry point address of said memory in response to said macro-instruction;b) incrementing said entry point address by a first predetermined number to provide an address of a next microcode instruction in said memory;c) repeating step b) for a second number of times to produce successive microcode instructions;d) incrementing said microcode instruction address by one after incrementing said address said second number of times;e) repeating step d) for a remaining number of microcode instructions for said macro-instruction.
- 9An apparatus for implementing a macro-instruction by addressing a series of microcode instructions in a memory comprising:an instruction register for holding said macro-instruction;means, responsive to said macro-instruction, for providing an entry point address of said memory;first means for incrementing said address by a first predetermined number;second means for incrementing said address by one;and means for coupling an output of said first means for incrementing to said memory for a second number of increments of said address and thereafter coupling said second means for incrementing to said memory.
- 19An apparatus for implementing a macro-instruction by addressing a series of microcode instructions in a memory comprising:an instruction register for holding said macro-instruction;means, responsive to said macro-instruction, for providing a fixed entry point address of said memory;first means for incrementing said address by a first predetermined number;second means for incrementing said address by one;and a decode circuit responsive to a portion of a current microcode memory address to produce a signal to select said first means for incrementing for a first block of addresses and said second means for incrementing for a second block of addresses.
Independent claims3
20 paragraphs in 4 sections, as filed
BACKGROUND
The present invention relates to methods and apparatus for mapping a macro-instruction to a microcode instruction memory.
Many computers today execute instructions by storing a number of microcode instructions for each macro-instruction in a microcode memory. The microcode instructions are then executed for the particular macro-instruction to implement the macro-instruction. A typical method is shown in Fig. 1, where a macro-instruction is placed into an operation code instruction register 10. The instruction in register 10 is then decoded by a mapping circuit 12 to produce an address which is provided to a microcode memory 14. This address will be the address of the first micro-instruction in a series of micro-instructions to implement the particular macro-instruction. The remaining micro-instructions are obtained by incrementing the first micro-instruction address 16 by one after that micro-instruction is executed to produce successive micro-instructions 18, 20 and 22 for the macro-instruction.
In one implementation, each macro-instruction is allocated a fixed number of micro-instructions. If this fixed number is four, for instance, then any macro-instruction which requires more than four micro-instructions must include a jump in the last micro-instruction to a separate area of the microcode memory 14. A jump is undesirable because it places additional requirements on the microcode in terms of time or space. To do a jump, a jump address must be specified, and this requires space. In addition, another clock cycle may be required for a jump. To avoid the requirement of a jump, enough space can be allocated to accommodate the largest macro-instruction, but this results in a large number of wasted memory spaces for macro-instructions which require less than the maximum number of micro-instructions. Alternately, the microcode memory could be divided into groups of different fixed sizes with the sizes varying by a power of two (i.e., groups of four, eight, sixteen, etc.). Thus, a short macro-instruction could be allocated for microcode addresses 16-22 as shown in Fig. 1, while a longer macro-instruction can be allocated eight microcode memory addresses starting at location 23 as shown in Fig. 1. Numbers of microcode addresses which are not a power of two cannot be accommodated without requiring additional circuitry for mapping circuit 12. A power of two implementation can be done simply by blocking out unwanted bits to result in a higher number.
Map circuit 12 could be implemented to accommodate a particular instruction set so that the number of micro-instruction addresses allocated to a particular macro-instruction varies. This would require that either the instruction set be fixed at the time the map is fixed or that the map circuit itself be programmable.
SUMMARY OF THE INVENTION
The present invention uses a fixed entry-point map to produce an entry point address of a first micro-instruction for a particular macro-instruction. That address is then incremented by a fixed number, such as 512, to produce the second, third, etc. micro-instructions for that macro-instruction. After a fixed number of these 512 address skips, such as 6, the addresses are incremented by 1 so that successive micro-instructions are in adjacent address locations.
The determination of whether to increment the address by 512 or by 1 is done by a decode circuit which simply looks at the current address to determine whether it is in the skipping region of the microcode memory or the successive incrementing region. The present invention thus provides flexibility to the micro-instruction addressing with the minimal addition of circuitry. In addition, the method of the present invention allows the entry point map to be fixed, and thus there is no need for it to be programmable.
The macro-instructions are arranged so that any macro-instruction requiring more than six micro-instructions is followed by one or more macro-instructions which require six or less micro-instructions. Thus, when the first macro-instruction starts executing the micro-instructions in the increment by one region of memory, these memory addresses will be available since the next succeeding macro-instructions will not extend that far.
Alternately, a variable skipping region can be used to give more flexibility. This flexibility enables the skipping regions to be determined when the code is written, thus enabling the optimization of memory space. A variable skipping region implementation requires a slightly more complex method of determining whether the address should be an increment of one or a skip increment upon returns from subroutine calls, since it is not simply dependent upon the fixed address.
For a fuller understanding of the nature and advantages of the invention, reference should be made to the ensuing detailed description taken in conjunction with the accompanying drawings.
BRIEF DESCRIPTION OF THE DRAWINGS
<ul id="ul0001" list-style="none"><li>Fig. 1 is a diagram of a microcode memory mapping scheme of the prior art;</li><li>Fig. 2 is a block diagram of a prior art microcode addressing circuit;</li><li>Fig. 3 is a diagram of a microcode mapping scheme according to the present invention; and</li><li>Fig. 4 is a block diagram of a microcode addressing scheme according to the present invention.</li></ul>
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
Fig. 2 shows one type of implementation of microcode address generation according to the prior art which will aid in understanding the present invention. An operation code register 24 stores a macro-instruction which is decoded by a map circuit 26 to provide a microcode memory address to target register 28. Map circuit 26 is shown as being a programmable read-only memory (PROM), but could take other forms. Target register 28 receives the initial address from map circuit 26 through multiplexer 27 and provides it through a multiplexer 30 to the microcode memory 32. The micro-instruction at that address is provided to microcode register 38. The address is then incremented by a +1 incrementer 34 which is then provided to a micro program counter register 36. This incremented address is provided through multiplexer 30 back to memory 32 to provide the next micro-instruction to microcode register 38. This type of incrementing continues until there is a jump or other instruction which is detected by decode logic 40. Typically, a jump is executed by providing a jump address from microcode register 38 to multiplexer 27. A select signal 37 is provided from microcode register 38 to select the microcode jump address from microcode register 38 which is then provided to target register 28. A control bit or bits are latched into control register 39 which are then decoded by decode logic 40. Decode logic 40 then provides a select signal to multiplexer 30 to select a jump address in target register 28 as opposed to the incrementing address from micro program counter register 36. At the end of a micro-instruction, an instruction dispatch jump is done in which select signal 37 from multiplexer 27 selects the next instruction address from map circuit 26, and a new instruction is then executed.
Fig. 3 is a diagram of a microcode memory mapping scheme according to the present invention. An operation code register 42 is provided to hold a macro-instruction. A fixed map 44 decodes the macro-instruction to produce an address to a microcode memory 46. The first address provided is an entry point address 48 in an entry block 50. The next micro-instruction is found by incrementing address 48 by a fixed number to produce a second address 52. This address is in turn incremented by the same number to produce a third address 54. These addresses are located in a skipping region 56, which, in one embodiment, includes six skips for each macro-instruction (only three are shown in Fig. 3). After the six skips, an address 58 is incremented by one to produce addresses 60 and 62 in succession in an overflow region 64.
This mapping scheme provides flexibility for mapping macro-instructions having different numbers of micro-instructions. For instance, if entry point address 48 is address 212 and the macro-instructions having entry point addresses of 213 and 214 are less than six micro-instructions long, then address locations 60 and 62 will be blank, allowing the macro-instructions starting at address 48 to have eight micro-instructions. By appropriate placement of the starting address of each macro-instruction, the instructions can be mapped to make optimum use of the memory by appropriate programming of the microcode while at the same time allowing for a simple fixed map 44 because of the fixed entry point address for each macro-instruction. The use of a fixed entry point allows smaller, faster logic to be used. The logic is high speed because less logic is required than a RAM or PROM. In addition, because the logic is special purpose, it takes up less space than a RAM or PROM, which is especially important when the circuit is put on an integrated circuit.
A block diagram of a circuit to implement the mapping scheme of Fig. 3 is shown in Fig. 4. The block diagram of Fig. 4 follows the basic structure of that of Fig. 2. However, instead of using a +1 incrementer 34 as in Fig. 2, a variable incrementer 66 is used with a memory region decode ct 68. Variable incrementer 66 includes a +1 incrementer 70 and a +512 incrementer 72 as well as a multiplexer 74. In operation, the address provided to microcode RAM 32 is incremented by 512 by incrementer 72 with the new address being passed through multiplexer 74 to microcode program counter register 36. This process continues until memory region decode circuit 68 detects that the address corresponds to overflow region 64 of Fig. 3. At this point, decode circuit 68 provides a select signal to multiplexer 74 to select the output of +1 incrementer 70. Accordingly, thereafter the address to microcode RAM 32 is incremented by 1 as shown in Fig. 3.
Although variable incrementer 66 is shown as a pair of incrementers and a multiplexer for sake of understanding, it can be implemented with a single counter which allows for multiple carry bit inputs. Region decode circuit 68 can simply select a position of the carry bit to vary the increment. Decode circuit 68 only needs to look at the upper bits of the address to determine whether it is in overflow region 64.
Although a 512 increment which is repeated six times is shown, any other numbers could be used. Fig. 3 actually shows three skips in the skipping region, although any other number could be used.
In an alternate embodiment, the skipping region of Fig. 3 can be made of variable length. This provides additional flexibility when the microcode is programmed. For instance, if a number of instructions requiring only a few address locations each, such as three each, are grouped together, then a block of memory in the section which would normally correspond to the fourth address location for each instruction is freed for other uses.
In one implementation of a variable skipping region, skipping is done until there is a jump or branch in the program. In this case, upon a return from the jump or branch, the skipping incrementer is no longer used and the +1 incrementer is used. As shown in Fig. 4, this extra bit can be stored in a position 41 shown in phantom attached to micro PC register 36. A control line from bit position 41 is provided to multiplexer 74. This control line replaces the select line from region decode circuit 68, which would not be used in this implementation. Upon a branch, a bit is stored in position 41 and upon return from branch, this bit selects incrementer 70 by the appropriate control signal to multiplexer 74. Typically, the branch address is stored in a return stack (not shown). The extra bit is positioned in the return address stack so that when the address is provided to micro PC register 36, this bit is in position 41. The input to bit position 41 is provided by control signal line 37, shown in phantom. The loading of this bit into micro PC register 36 is done by a load control signal from control register 39 (shown in phantom).
The variable skipping embodiment thus allows variation in the number of address locations per instruction while still maintaining the fixed entry point mapping system. This flexibility allows changes to be made to the microcode as it becomes more complicated or simpler by adjusting the skipping region. In addition, regions which are not a power of two with respect to each other can be used, since the determination of the region length is done by the positioning of the jump instruction, and not by the addition of circuitry to the mapping circuit.
As will be understood by those familiar with the art, the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. For example, instead of using a decoding circuit to determine whether the address is in the skipping region or the overflow region, a counter could be used to count the number of skipping increments by incrementer 72. The variable skipping region could also be implemented in different ways, such as by using a bit in the microcode instruction so that the skipping region is not dependent upon jumps. Accordingly, the disclosure of the preferred embodiments of the invention is intended to be illustrative, but not limiting, of the scope of the invention which is set forth in the following claims.
Contents4
3 sheets
Sheet 1 Sheet 2 Sheet 3
Every citation, both ways
| Document | Relation | Office | Cited during |
|---|---|---|---|
| US2012266216A1 | Cited by | United States of America | Pre-grant |
| EP0574980A2 | Cited by | European Patent Office (EPO) | Search report |
| US9336016B2 | Cited by | United States of America | Search report |
| EP0574980A3 | Cited by | European Patent Office (EPO) | Search report |
10 members in 5 offices
Priority claims4
| Document | Office | Kind | Date |
|---|---|---|---|
| 36606 | United States of America | – | |
| 3660687 | United States of America | A | |
| 36606 | – | – | – |
| US19870036606 | – | – | – |
Members10
| Document | Office | Kind | |
|---|---|---|---|
| EP0286352A2This record | European Patent Office (EPO) | A2 | |
| AU1443788A | Australia | A | |
| JPS644833A | Japan | A | |
| EP0286352A3 | European Patent Office (EPO) | A3 | |
| AU607481B2 | Australia | B2 | |
| US5032983A | United States of America | A | |
| EP0286352B1 | European Patent Office (EPO) | B1 | |
| DE3852708D1 | Germany | D1 | |
| DE3852708T2 | Germany | T2 | |
| JP2804266B2 | Japan | B2 |
27 legal events, as 2 offices reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | Office | |
|---|---|---|---|
| Notification of lapseLapsedST | ST | FR | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Gb: european patent ceased through non-payment of renewal feeCeasedGBPC | GBPC | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Se: european patent has lapsedLapsedEUG | EUG | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| No opposition filedOpposition26N | 26N | EP | |
| No opposition filed within time limitOppositionORIGINAL CODE: 0009261PLBE | PLBE | EP | |
| Information on the status of an ep patent application or granted ep patentGrantedSTATUS: NO OPPOSITION FILED WITHIN TIME LIMITSTAA | STAA | EP | |
| It: translation for a ep patent filedITF | ITF | EP | |
| It: translation for a ep patent filedITF | ITF | EP | |
| Fr: translation filedET | ET | EP | |
| Corresponds to:REF | REF | EP | |
| Designated contracting statesAK | AK | EP | |
| (expected) grantORIGINAL CODE: 0009210GRAA | GRAA | EP | |
| First examination report despatched17Q | 17Q | EP | |
| Request for examination filed17P | 17P | EP | |
| Designated contracting statesAK | AK | EP | |
| Search report despatchedORIGINAL CODE: 0009013PUAL | PUAL | EP | |
| Designated contracting statesAK | AK | EP | |
| Public reference made under article 153(3) epc to a published international application that has entered the european phaseORIGINAL CODE: 0009012PUAI | PUAI | EP |
Numbers
- Publication
- 0286352
- Publication, DOCDB
- 0286352
- Publication, EPODOC
- EP0286352
- Application
- 88303012
- Application, DOCDB
- 88303012
- Application, EPODOC
- EP19880303012
Titles6
- German
- Verfahren und Apparat zum Überspringen mittels Abbildung einer Einsprungstelle.
- English
- Entry point mapping and skipping method and apparatus.
- French
- Méthode et dispositif de saut utilisant un mapping du point d'entrée.
- German
- Verfahren und Apparat zum Überspringen mittels Abbildung einer Einsprungstelle
- English
- Entry point mapping and skipping method and apparatus
- French
- Méthode et dispositif de saut utilisant un mapping du point d'entrée
Classification
- CPC, 3
- G06F9/261
- G06F9/26
- G06F9/30145
- IPC, 2
- G06F9 22
- G06F9 26
Designated states5
- Contracting states, 5
- Germany
- France
- United Kingdom
- Italy
- Sweden