JPH01263829A - Data processor - Google Patents
Data processorInfo
- Publication number
- JPH01263829A JPH01263829A JP9287288A JP9287288A JPH01263829A JP H01263829 A JPH01263829 A JP H01263829A JP 9287288 A JP9287288 A JP 9287288A JP 9287288 A JP9287288 A JP 9287288A JP H01263829 A JPH01263829 A JP H01263829A
- Authority
- JP
- Japan
- Prior art keywords
- register
- address
- machine language
- instruction
- contents
- 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.)
- Pending
Links
- 238000004148 unit process Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 3
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明はメモリアクセス時にアドレス1tir準備する
装置i1iこ関し、特lこメモリアクセスを必要とする
命令の実行開始前に特定アドレス値全あらかしめ準備す
る装置に関する。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a device i1i that prepares an address at the time of memory access. Regarding the equipment to be prepared.
(従来の技術)
従来、この種の装置はメモリアクセスを必要とする機械
語命令の実行を開始し、続いてアドレス値全計算するた
めに必要なペースレジスタの内容を読出した後1機械語
命令中の定数と上記ペースレジスタの内容との和を計算
し、その結果をアドレスとしてメモリに与えていた。(Prior Art) Conventionally, this type of device starts execution of a machine language instruction that requires memory access, and then executes one machine language instruction after reading the contents of a pace register necessary to calculate the entire address value. The sum of the constant inside and the contents of the pace register was calculated, and the result was given to memory as an address.
(発明が鱗決しようとする課題)
上述した従来のデータ処理装置は1機械語命令の実行開
始時から実際にメモリアクセスが開始される寸での間、
レジスタの内容全読出してアドレスを計算するための時
間が必要となるため、上記命令の実行時間がそれだけ長
くなると云う欠点がある。(Problem to be solved by the invention) The conventional data processing device described above has problems from the start of execution of one machine language instruction to the time when memory access actually starts.
Since it takes time to read all the contents of the register and calculate the address, there is a drawback that the execution time of the above instruction becomes correspondingly longer.
本発明の目的は、ペースレジスタの内容とm械語命令中
の定数としての整数値との和の値全保持するための複数
のアドレスレジスタ?中央処理装宜内に設け、中央処理
装置内でアドレス?計算することにより上記欠点全除去
し、命情実行時間が長くならないように構成したデータ
処理袋fi1’を提供することにある。An object of the present invention is to provide a plurality of address registers for holding the entire sum of the contents of the pace register and an integer value as a constant in m machine language instructions. Is it provided within the central processing unit and the address within the central processing unit? It is an object of the present invention to provide a data processing bag fi1' that eliminates all of the above-mentioned drawbacks through calculation and is configured so that the execution time of the mission statement does not become long.
(課題を解決するための手段)
本発明番こよるデータ処理装置は機械語命令を実行する
ことができ、中央処理装置およびメモリを備えたもので
あって、中央処理装置は(2n+1)個(n:整数値)
の加算器と、アドレスレジスタとを具備して構成したも
のである。(Means for Solving the Problems) A data processing device according to the present invention is capable of executing machine language instructions and is equipped with a central processing unit and a memory, and the central processing unit has (2n+1) ( n: integer value)
The system is equipped with an adder and an address register.
(2n+1 )個の加算器は1機械語命令の実行時にペ
ースレジスタの保持内容と機械語命令に含まれている整
数値nとの和の値を求め、メモリのアクセスアドレスを
生成するためのものである。(2n+1) adders are used to calculate the sum of the contents held in the pace register and the integer n included in the machine language instruction when executing one machine language instruction, and generate a memory access address. It is.
アドレスレジスタは、’(2n+1)個の加算器により
生成されたアドレスを保持するためのものである。The address register is for holding addresses generated by '(2n+1) adders.
(実 施 例) 次に、本発明について図面を参照して説明する。(Example) Next, the present invention will be explained with reference to the drawings.
第1図は、本発明によるデータ処理装置の一実施例を示
す1072図である。FIG. 1 is a 1072 diagram showing an embodiment of a data processing device according to the present invention.
第1図において、1は命令レジスタ、2はペースレジス
タ、3〜5はそれぞれ加算器、6はアドレスレジスタ、
7はマルチプレクサ% 100は中央処理袋[,200
はメモリである。In FIG. 1, 1 is an instruction register, 2 is a pace register, 3 to 5 are adders, 6 is an address register,
7 is multiplexer% 100 is central processing bag [,200
is memory.
中央処理袋fItiooのなかにアドレス生成用のペー
スレジスタ2が備けられ1機械語命令のなかの定数値が
実行開始時に命令レジスタlのなかに保持されるものと
する。これらの和をアドレスとして使用し、定数(整数
)値の範囲が−7〜+7であるものとすれば、BR+7
〜BR−7の15通りの組合せができる。これらの15
通りt−、アドレスレジスタ6に保持する。It is assumed that a pace register 2 for address generation is provided in the central processing bag fItioo, and a constant value in one machine language instruction is held in the instruction register 1 at the start of execution. If we use the sum of these as an address and assume that the constant (integer) value ranges from -7 to +7, then BR+7
- 15 combinations of BR-7 are possible. these 15
t-, and is held in the address register 6.
メモリアクセスを伴う機械語命令を実行しようとする場
合、アドレスレジスタ6がない場合には第2図(alに
示すようにメモリアクセスの前にアドレス計算のための
時間が必要であるが、アドレスレジスタ6が備けられて
いる場合には第2図(b)に示すようにこの時間が不要
となって機械語命令の実行時間が短くなる。When attempting to execute a machine language instruction that involves memory access, if there is no address register 6, time is required for address calculation before memory access, as shown in FIG. 6, as shown in FIG. 2(b), this time becomes unnecessary and the execution time of the machine language instruction becomes shorter.
この場合、動作は以下のようになる。In this case, the operation is as follows.
例えば、機械語命令中の定数(整数)が−2であるとす
ると、命令レジスタlのなかの定数部分からアドレスレ
ジスタ6のBR−2が選択され、定数が0のときにはB
Rが選択される。For example, if the constant (integer) in the machine language instruction is -2, BR-2 of address register 6 is selected from the constant part of instruction register l, and when the constant is 0, B
R is selected.
これらは命令レジスタ1に機械語命令が格納された時点
、すなわち機械語命令の実行開始時点と同時に上記アド
レスレジスタ6の内容が選択され、第2図(b)に示す
ようにアドレス計算時間が不要となる。In these cases, the contents of the address register 6 are selected at the same time as the machine language instruction is stored in the instruction register 1, that is, at the same time as the execution of the machine language instruction starts, and as shown in FIG. 2(b), there is no need for address calculation time. becomes.
(発明の効果)
以上説明したように本発明は、ペースレジスタの内容と
機械語命令中の定数としての整数との和の値含保持する
アドレスレジスタを中央処理i置内に備え、中央処理装
置内でアドレスを計算することにより、アドレス計算時
間が不要になる分だけメモリアクセスを必要とする機械
語命令の実行時間を短(することができると云う効果が
ある。(Effects of the Invention) As explained above, the present invention provides an address register in the central processing unit for holding the sum of the contents of the pace register and an integer as a constant in a machine language instruction, and the central processing unit By calculating the address within the program, the execution time of machine language instructions that require memory access can be reduced by the amount of time required to calculate the address.
第1図は1本発明によるデータ処理装置の一実施例を示
すブロック図である。
第2図は、機械語命令の処理内容と実行時間との関係を
示す説明図である。
1・・・命令レジスタ
2・・・ペースレジスタ
3〜5・・・加算器
6・・・アドレスレジスタ
7・・・マルチプレクサ
100・・・中央処理装置
200・・・メモリ
特許出願人 日本電気株式会社FIG. 1 is a block diagram showing an embodiment of a data processing apparatus according to the present invention. FIG. 2 is an explanatory diagram showing the relationship between processing contents of machine language instructions and execution time. 1...Instruction register 2...Pace register 3-5...Adder 6...Address register 7...Multiplexer 100...Central processing unit 200...Memory patent applicant NEC Corporation
Claims (1)
メモリを備えたデータ処理装置であつて、前記中央処理
装置は前記機械語命令の実行時にベースレジスタの保持
内容と前記機械語命令に含まれる複数の整数値nとの和
の値を求め、前記メモリのアクセスアドレスを生成する
ための(2n+1)個の加算器と、前記(2n+1)個
の加算器により生成されたアドレスを保持するためのア
ドレスレジスタとを具備して構成したことを特徴とする
データ処理装置。A data processing device capable of executing machine language instructions and equipped with a central processing unit and a memory, wherein the central processing unit processes the contents held in a base register and the contents contained in the machine language instructions when executing the machine language instructions. (2n+1) adders for calculating the sum of a plurality of integer values n and generating access addresses for the memory; and (2n+1) adders for holding the addresses generated by the (2n+1) adders. 1. A data processing device comprising an address register.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9287288A JPH01263829A (en) | 1988-04-15 | 1988-04-15 | Data processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9287288A JPH01263829A (en) | 1988-04-15 | 1988-04-15 | Data processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH01263829A true JPH01263829A (en) | 1989-10-20 |
Family
ID=14066527
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP9287288A Pending JPH01263829A (en) | 1988-04-15 | 1988-04-15 | Data processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH01263829A (en) |
-
1988
- 1988-04-15 JP JP9287288A patent/JPH01263829A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS5886648A (en) | Tracing device | |
JPS619760A (en) | Vector processing system | |
JPH01263829A (en) | Data processor | |
JP3211423B2 (en) | Branch instruction execution method and branch instruction execution device | |
JP2002215606A (en) | Data processor | |
JPH0528431B2 (en) | ||
JPS63111535A (en) | Data processor | |
KR100246465B1 (en) | Apparatus and method for reducing cycle of microprocessor stack order | |
JPS59188900A (en) | Data processor | |
JPS5922142A (en) | Data processor | |
JPH01201748A (en) | Data processor | |
JPH02136925A (en) | Data processor | |
JPH02230320A (en) | Data processor | |
JPH1063503A (en) | Arithmetic processor and its method | |
JPS58195255A (en) | Data processing device | |
JPH01130230A (en) | System for determining optimum arrangement of data area | |
JPH0234058B2 (en) | ||
JPS593647A (en) | Data processing system | |
JPS62251930A (en) | Information processor | |
JPS63188230A (en) | Information processor | |
JPS63247832A (en) | Data processor | |
JPH0241522A (en) | Function arithmetic processor | |
JPS6238748B2 (en) | ||
JPS6028014B2 (en) | microprocessor | |
JPS6118219B2 (en) |