JPH03230223A - Microprocessor capable of fast processing - Google Patents
Microprocessor capable of fast processingInfo
- Publication number
- JPH03230223A JPH03230223A JP2630290A JP2630290A JPH03230223A JP H03230223 A JPH03230223 A JP H03230223A JP 2630290 A JP2630290 A JP 2630290A JP 2630290 A JP2630290 A JP 2630290A JP H03230223 A JPH03230223 A JP H03230223A
- Authority
- JP
- Japan
- Prior art keywords
- register
- data
- processing
- registers
- last
- 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.)
- Ceased
Links
Landscapes
- Executing Machine-Instructions (AREA)
Abstract
Description
この発明は特にレジスタのデータを並列に退避。
復帰することにより両速処理を可能とするマイクロプロ
セッサに関する。
なお以下各図において同一の符号は同一もしくは相当部
分を示す。This invention especially saves register data in parallel. The present invention relates to a microprocessor that enables dual-speed processing by returning. Note that in the following figures, the same reference numerals indicate the same or corresponding parts.
第2図は従来のマイクロプロセッサの要部構成を示すブ
ロック図である。同図において、■はアキュムレータで
、図外の演算回路(ALU)によって得られる演算結果
を保持するレジスタである。
2はインデックスレジスタで、命令のアドレスを変更し
たり、プログラムの繰返しなどを行うとき、それに用い
るアドレスの増分を記憶して置く場合に使用するレジス
タである。
3はプログラムカウンタ(命令アドレスレジスタともい
う)で、命令の主記憶装置上の位置(アドレス)を示す
レジスタである。このレジスタ3の指定するアドレスか
ら命令が取出され、その命令を実行している間にこのレ
ジスタ3は更新されて次に取出すべき命令のアドレスを
示す。
4はRAMである。なおこのRAMには次に述べるスタ
ックポインタ5によってデータを積重ねるように、つま
り後から入れたデータを先に取出すようにデータの出し
入れが行われるのでスタックRAMともいう。
5はスタックポインタで、RAM4のどこからデータを
取出すかを指示するレジスタである。
なお6はデータバス、7はアドレスバスである。
ところで従来のマイクロプロセッサにおけるスタック処
理は、第2図に示すように、スタックポインタ5で示さ
れるアドレスに対し、各レジスタ(アキエムレーク1.
インデツクスレジスタ2゜プログラムカウンタ3)のデ
ータをRAM4に、書込み、又は読出すことにより、行
われてきた。
即ち外部割込み時の処理などのように、全レジスタの内
容を退避し、割込みサブルーチンに分岐する時の具体的
な処理としては、アキュムレータ1のデータをデータバ
ス6に出力し、RAM4におけるスタックポインタ5の
値をアドレスとする領域へ書込み、スタックポインタ5
の値をインクリメントする、同様にインデックスレジス
タ2のデータ、プログラムカウンタ3のデータが順次R
AM4へ退避処理され、次にプログラムカウンタ3に分
岐先アドレスがロードされて処理が終了する。
また、復帰処理に関しても前記の処理と逆の順序の処理
が必要となる。FIG. 2 is a block diagram showing the main part configuration of a conventional microprocessor. In the figure, ■ is an accumulator, which is a register that holds calculation results obtained by an arithmetic unit (ALU) not shown. Reference numeral 2 denotes an index register, which is used to store the address increment used when changing the address of an instruction or repeating a program. 3 is a program counter (also referred to as an instruction address register), which is a register that indicates the location (address) of an instruction on the main memory. An instruction is taken out from the address specified by this register 3, and while that instruction is being executed, this register 3 is updated to indicate the address of the next instruction to be taken out. 4 is a RAM. Note that this RAM is also referred to as a stack RAM because data is loaded into and taken out of this RAM in a manner such that data is stacked up using a stack pointer 5, which will be described below, that is, data that is input later is retrieved first. 5 is a stack pointer, which is a register that indicates from where in the RAM 4 data is to be extracted. Note that 6 is a data bus, and 7 is an address bus. By the way, in stack processing in a conventional microprocessor, as shown in FIG. 2, each register (Akiem rake 1 . . .
This has been done by writing or reading data from the index register 2 and program counter 3 into the RAM 4. In other words, the specific process when saving the contents of all registers and branching to the interrupt subroutine, such as when processing an external interrupt, is to output the data in accumulator 1 to data bus 6, and store the data in stack pointer 5 in RAM 4. Write the value of to the area whose address is stack pointer 5.
Similarly, the data of index register 2 and the data of program counter 3 are sequentially incremented by R.
The data is saved to AM4, and then the branch destination address is loaded into the program counter 3, and the process ends. Further, regarding the return processing, processing in the reverse order of the above-mentioned processing is required.
前述のように従来のマイクロプロセッサにおけるスタッ
ク処理は、割込み分岐時など、全レジスタの内容を退避
させたい時に、その退避動作のためにレジスタの数だけ
のマシンサイクル(cpuサイクルともいう、即ち中央
処理装置のクロックパルスの周期)数を必要とし、長い
時間を要するという問題があった。
そこで本発明はこの問題を解消し得る高速処理可能なマ
イクロプロセッサを提供することを課題とする。As mentioned above, stack processing in conventional microprocessors requires machine cycles (also called CPU cycles, i.e., central processing There is a problem in that it requires a large number of clock pulse cycles of the device and takes a long time. Therefore, it is an object of the present invention to provide a microprocessor capable of high-speed processing that can solve this problem.
前記の課題を解決するために本発明のマイクロプロセッ
サは、「自身内のアキュムレータ(1など)、インデッ
クスレジスタ(2など)、プログラムカウンタ(3など
)等の各レジスタにそれぞれ後入れ先出しメモリ(41
〜43など)を接続し、前記レジスタのデータ退避、復
帰を必要な前記レジスタと該レジスタ対応する前記後入
れ先出しメモリとの間でそれぞれ並列に行うようにjす
るものとする。In order to solve the above-mentioned problems, the microprocessor of the present invention provides a last-in first-out memory (41) for each register such as an accumulator (1 etc.), an index register (2 etc.), a program counter (3 etc.) within itself
43, etc.), and data saving and restoration of the registers are performed in parallel between the necessary registers and the last-in, first-out memory corresponding to the registers.
マイクロプロセッサ内のアキュムレータ1.インデック
スレジスタ2.プログラムカウンタ3などの全てのレジ
スタにそれぞれに後入れ先出しRAMを接続し、レジス
タデータの退避、復帰を各レジスタごと並列に実行し、
処理を高速化する。Accumulator in a microprocessor1. Index register 2. A last-in first-out RAM is connected to each register such as program counter 3, and register data is saved and restored in parallel for each register.
Speed up processing.
第1図は本発明の位置実施例としてのマイクロプロセッ
サの要部構成を示すプロ・ンク図で、第2図に対応する
ものである。
第1図においてはアキュムレータ1.インデックスレジ
スタ2.プログラムカウンタ3にそれぞれ後入れ先出し
メモリ(つまり各部からのアドレス指示なしに自動的に
最後に入れたものを最初に取出すことができる、いわゆ
るLa5t I n F 1rstOut方式のRA
Mで、略してLIFOともいう)40(41,42,4
3)が付加され、従来のスタンク用RAM4やスタック
ポインタ5は省略されている。
第1図において、割込み分岐処理では、全レジスタ1〜
3等のデータを退避する必要があり、この場合は、各々
のレジスタとしてのアキュムレータl、インデックスレ
ジスタ2.プログラムカウンタ3からこの各レジスタ1
〜3にそれぞれ接続された後入れ先出しメモリ41.4
2.43へ同時にデータを退避し、同時にデータバス6
より分岐先アドレスをプログラムカウンタ3にロードす
る。全レジスタデータの復帰処理もLIF041〜43
からそれぞれ同時に各レジスタ1〜3ヘデータを復帰す
ることによって行われる。
なおマイクロプロセッサ内に前記以外のレジスタが存在
する場合にも、このレジスタにはそれぞれ対応するLI
FO40が設けられ、割込分岐処理の場合には、上記と
同様にそのレジスタと対応するLIFOとの間で同時に
データ退避、復帰が行われる。
またプログラムによる通常の分岐処理の場合は、アキュ
ムレータ1およびインデックスレジスタ2だけの特定さ
れたレジスタと、LIFO41および42との間でそれ
ぞれ同時にデータの退避、復帰処理が行われる。FIG. 1 is a diagram showing the main part configuration of a microprocessor as an embodiment of the present invention, and corresponds to FIG. 2. In FIG. 1, accumulator 1. Index register 2. Each of the program counters 3 has a last-in, first-out memory (that is, a so-called La5t I n F 1rstOut type RA in which the last input can be automatically taken out first without address instructions from each part).
M, also abbreviated as LIFO) 40 (41, 42, 4
3) is added, and the conventional stack RAM 4 and stack pointer 5 are omitted. In Figure 1, in interrupt branch processing, all registers 1 to
It is necessary to save data such as 3, etc., and in this case, each register is an accumulator l, an index register 2, etc. Program counter 3 to each register 1
~3 respectively connected last-in first-out memories 41.4
2.43, and data bus 6 at the same time.
The branch destination address is loaded into the program counter 3. Restoration processing of all register data is also performed by LIF041 to 43.
This is done by simultaneously restoring data to each register 1 to 3 from . Note that even if there are registers other than the above in the microprocessor, these registers have corresponding LI
A FO 40 is provided, and in the case of interrupt branch processing, data is simultaneously saved and restored between the register and the corresponding LIFO, as described above. Further, in the case of normal branch processing by a program, data saving and restoring processing is performed simultaneously between the specified registers of only the accumulator 1 and the index register 2, and the LIFOs 41 and 42, respectively.
本発明によれば、自身内のアキュムレータ1、インテ・
ノクスレジスタ2.プログラムカウンタ3等の各レジス
タにそれぞれ後入れ先出しメモリ41〜43などを接続
し、前記レジスタのデータ退避。
復帰を必要な前記レジスタと該レジスタに対応する前記
後入れ先出しメモリとの間でそれぞれ並列に行うように
したので、
レジスタの退避、復帰処理をレジスタの数によらず1サ
イクルで行えるようになり、高速処理が可能となった。
本発明は、外部割込み処理時など、全レジスタの退避、
復帰を行う必要がある場合などにおいて特に効果を示す
。According to the invention, the internal accumulator 1, the internal
Nox register 2. Last-in, first-out memories 41 to 43 are connected to each register such as the program counter 3, and data in the registers is saved. Since restoration is performed in parallel between the registers that need to be restored and the last-in, first-out memory corresponding to the registers, register saving and restoration processing can be performed in one cycle regardless of the number of registers. , high-speed processing became possible. The present invention saves all registers during external interrupt processing, etc.
This is especially effective when it is necessary to perform a recovery.
第1図は本発明の一実施例としての要部構成を示すブロ
ック図、
第2図は第1図に対応する従来のブロック図である。
1:アキュムレータ、2:インデックスレジスタ、3ニ
ブログラムカウンタ、6:データパス、40(41〜4
3)
:後入れ先出しメモリ
(L I FO)FIG. 1 is a block diagram showing the main configuration of an embodiment of the present invention, and FIG. 2 is a conventional block diagram corresponding to FIG. 1. 1: Accumulator, 2: Index register, 3 Niprogram counter, 6: Data path, 40 (41 to 4
3) :Last in first out memory (L IFO)
Claims (1)
プログラムカウンタ等の各レジスタにそれぞれ後入れ先
出しメモリを接続し、前記レジスタのデータ退避、復帰
を必要な前記レジスタと該レジスタに対応する前記後入
れ先出しメモリとの間でそれぞれ並列に行うようにした
ことを特徴とする高速処理可能なマイクロプロセッサ。1) Internal accumulator, index register,
A last-in, first-out memory is connected to each register such as a program counter, and data saving and restoration of the register is performed in parallel between the necessary register and the last-in, first-out memory corresponding to the register. A microprocessor capable of high-speed processing.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2630290A JPH03230223A (en) | 1990-02-06 | 1990-02-06 | Microprocessor capable of fast processing |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2630290A JPH03230223A (en) | 1990-02-06 | 1990-02-06 | Microprocessor capable of fast processing |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03230223A true JPH03230223A (en) | 1991-10-14 |
Family
ID=12189558
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2630290A Ceased JPH03230223A (en) | 1990-02-06 | 1990-02-06 | Microprocessor capable of fast processing |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03230223A (en) |
-
1990
- 1990-02-06 JP JP2630290A patent/JPH03230223A/en not_active Ceased
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5499349A (en) | Pipelined processor with fork, join, and start instructions using tokens to indicate the next instruction for each of multiple threads of execution | |
| KR970011208B1 (en) | Pipelined Write Buffer Registers | |
| EP0220682B1 (en) | Data processing system | |
| JP3137117B2 (en) | High-speed processing computer | |
| US4631672A (en) | Arithmetic control apparatus for a pipeline processing system | |
| JP2617974B2 (en) | Data processing device | |
| JP3211423B2 (en) | Branch instruction execution method and branch instruction execution device | |
| EP0319132A2 (en) | Interrupt handling in a parallel data processing | |
| JP2006515446A (en) | Data processing system with Cartesian controller that cross-references related applications | |
| JPH04106652A (en) | Exceptional treatment system | |
| JPS6049464A (en) | Inter-processor communication system of multi-processor computer | |
| JP2707256B2 (en) | Micro computer | |
| JP2982181B2 (en) | Central processing unit | |
| JPS61143838A (en) | Arithmetic unit | |
| JPH03189868A (en) | Data processor | |
| JPH0823820B2 (en) | Address overlap check processor | |
| JPH0234058B2 (en) | ||
| JPH05165875A (en) | Vector arithmetic processor | |
| JPH0528092A (en) | Micro Processor | |
| JPH0580691B2 (en) | ||
| JPH0365683B2 (en) | ||
| JPS63204322A (en) | information processing equipment | |
| JPH03105527A (en) | Constituting system for program counter in pipeline computer | |
| JPS63113747A (en) | Virtual memory managing device | |
| JPH04245333A (en) | Information processor |