JPH01201748A - Data processor - Google Patents

Data processor

Info

Publication number
JPH01201748A
JPH01201748A JP2492388A JP2492388A JPH01201748A JP H01201748 A JPH01201748 A JP H01201748A JP 2492388 A JP2492388 A JP 2492388A JP 2492388 A JP2492388 A JP 2492388A JP H01201748 A JPH01201748 A JP H01201748A
Authority
JP
Japan
Prior art keywords
address
registers
register
machine language
combinations
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
Application number
JP2492388A
Other languages
Japanese (ja)
Inventor
Masahiro Ono
雅弘 大野
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2492388A priority Critical patent/JPH01201748A/en
Publication of JPH01201748A publication Critical patent/JPH01201748A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten execution time by holding the corresponding sum value of all constant values and all the combinations of plural registers for generating addresses by a specific number or above of address registers and using one content in the address registers when executing a memory access. CONSTITUTION:A base register 11 for generating addresses and two index registers 12 and 13 are provided and when executing a machine language instruc tion, the constant values in the instruction is held by an instruction register 14. Address registers 16 to the number or above that the number of all the combinations of the register 12 and 13 and the number twice as large as the maximum value which the constant values can take are multiplied together are provided. The register 16 holds the corresponding sum value of all values that the constant value can take and all the combinations of the register 12 and 13 and when executing the memory access, one contents in the registers 16 is selected by a multiplexer 17 and used as address.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、メモリアクセス時のアドレスの値を準備する
データ処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data processing device that prepares address values during memory access.

[従来の技術] 従来、この種のデータ処理装置は、メモリアクセスを必
要とする機械語命令の実行開始後に、アドレス値を計算
するために必要なペースレジスタおよびインデックスレ
ジスタ等の複数のアドレス生成用レジスタを読み出した
後に、R械語命令中の定数値との和を計算し、その結果
をアドレスと  −してメモリに与えていた。
[Prior Art] Conventionally, this type of data processing device has a plurality of address generation registers such as a pace register and an index register necessary for calculating an address value after starting execution of a machine language instruction that requires memory access. After reading the register, the sum with the constant value in the R machine instruction was calculated, and the result was given to the memory as an address.

[発明が解決しようとする課題] 従って、従来のデータ処理装置では、機械語命令の実行
開始時から実際にメモリアクセスが開始されるまでの間
に、複数のアドレス生成用レジスタを読み出してアドレ
スを計算するための時間が必要になり、該機械語命令の
実行時間がその分だけ長くなるという欠点があった。
[Problem to be Solved by the Invention] Therefore, in a conventional data processing device, from the start of execution of a machine language instruction until the actual start of memory access, multiple address generation registers are read and addresses are generated. This method requires time for calculation, which has the disadvantage that the execution time of the machine language instruction becomes correspondingly longer.

[課題を解決するための手段〕 本発明によるデータ処理装置は、機械語命令を実行する
中央処理装置とメモリを有するデータ処理装置であって
、機械語命令実行時に、前記メモリを前記中央処理装置
がアクセスするときのアドレスとして、前記中央処理装
置内の複数のアドレス生成用レジスタの保持内容と該機
械語命令に含まれる定数値との和を用いる装置において
、前記複数のアドレス生成用レジスタの全ての組合わせ
数と前記定数値のとり得る最大値の2倍の数とを乗じた
個数以上のアドレスレジスタを有し、該アドレスレジス
タは、前記定数値のとり得る全ての値と前記複数のアド
レス生成用レジスタの全ての組合わせとの対応する和の
値を保持しており、メモリアクセス実行時に、前記アド
レスレジスタの中の選択した1つの内容をアドレスとし
て用いることを特徴とする。
[Means for Solving the Problems] A data processing device according to the present invention includes a central processing unit that executes a machine language instruction and a memory, and when the machine language instruction is executed, the memory is connected to the central processing unit. In a device that uses the sum of contents held in a plurality of address generation registers in the central processing unit and a constant value included in the machine language instruction as an address to be accessed by the CPU, all of the plurality of address generation registers are used. The number of address registers is equal to or greater than the number of combinations of the constant value multiplied by twice the maximum value that the constant value can take, and the address register is configured to combine all the possible values of the constant value and the plurality of addresses. It is characterized in that it holds the corresponding sum value of all combinations of generation registers, and uses the contents of one selected from the address registers as an address when performing memory access.

[作用] アドレスレジスタは定数値のとり得る全ての値と複数の
アドレス生成用レジスタの全ての組合わせとの対応する
和の値を保持しているので、メモリアクセス実行時に、
メモリアクセスを必要とするa話語命令の実行開始語に
おけるアドレスの値の計算を不要とすることができ、機
械語命令の実行時間を短くすることができる。
[Operation] Since the address register holds the corresponding sum value of all possible values of the constant value and all combinations of multiple address generation registers, when executing memory access,
It is possible to eliminate the need to calculate the value of the address in the execution start word of the A language instruction that requires memory access, and it is possible to shorten the execution time of the machine language instruction.

[実施例] 以下、本発明の実施例について図面を参照して説明する
[Examples] Examples of the present invention will be described below with reference to the drawings.

第1図を参照すると、本発明の一実施例によるデータ処
理装置は、機械語命令を実行す右中央処理装置(以下、
CPUと略する)10と、メモリ20を有する。CPU
l0は、アドレス生成用のペースレジスタ11及び2個
のインデックスレジスタ12.13を有する。命令レジ
スタ14中には、機械語命令中の定数値が実行開始時に
保持される。また、インデックスレジスタ12.13の
選択は、命令レジスタ14中のインデックス選択ビット
IDXを使用してマルチプレクサ15によって行われる
。これらの和をアドレスとして使用し、定数値の範囲が
−3〜+3であるとすれば、14通りの組合わせができ
る。この14通りの組合わせが14個のアドレスレジス
タ16にそれぞれ保持される。この14個のアドレスレ
ジスタ16の選択は、命令レジスタ14中のインデック
ス選択ビットIDX及び定数値を使用してマルチプレク
サ17によって行われる。尚、18は、加算器で、アド
レスレジスタ16と同数個ある。
Referring to FIG. 1, a data processing device according to an embodiment of the present invention includes a right central processing unit (hereinafter referred to as a right central processing unit) that executes machine language instructions.
It has a CPU (abbreviated as CPU) 10 and a memory 20. CPU
l0 has a pace register 11 for address generation and two index registers 12.13. Constant values in machine language instructions are held in the instruction register 14 at the start of execution. Selection of index registers 12,13 is also performed by multiplexer 15 using index selection bit IDX in instruction register 14. If these sums are used as addresses and the range of constant values is -3 to +3, 14 combinations are possible. These 14 combinations are held in 14 address registers 16, respectively. The selection of these 14 address registers 16 is performed by multiplexer 17 using index selection bit IDX in instruction register 14 and constant values. Note that 18 is an adder, and there are the same number of adders as there are address registers 16.

メモリアクセスを伴う機械語命令を実行しようとする場
合、アドレスレジスタ16がない、即ち、従来の場合に
おいては、第2図(a)に示されるように、メモリアク
セスの前にアドレス計算の為の時間が必要である。これ
に対して、アドレスレジスタ16がある本発明の場合に
おいては、第2図(b)に示されるように、この時間が
不要となり、I!械話語命令実行時間が短くなる。
When attempting to execute a machine language instruction that involves memory access, in the conventional case, there is no address register 16, as shown in FIG. It takes time. On the other hand, in the case of the present invention with the address register 16, as shown in FIG. 2(b), this time is not necessary, and I! Machine language instruction execution time becomes shorter.

以下、本実施例の動作について説明する。The operation of this embodiment will be explained below.

例えば、機械語命令中の定数値が−2”で、インデック
ス選択ビットIOXによりインデックスレジスタ11が
選択されたとする。このとき、命令レジスタ14中の定
数部分から、14個のアドレスレジスタ16の中の“B
+R1−2”の値が格納された一つのアドレスレジスタ
が選択される。ここで、Bはペースレジスタ11の内容
、R1はインデックスレジスタ11の内容である。尚、
インデックスレジスタ12にはR2が格納されている。
For example, suppose that the constant value in the machine language instruction is -2'' and the index register 11 is selected by the index selection bit IOX.At this time, from the constant part in the instruction register 14, the “B
One address register in which the value “+R1-2” is stored is selected. Here, B is the content of the pace register 11, and R1 is the content of the index register 11.
The index register 12 stores R2.

同様に、定数値が“0”のときは、“B+R1”の値が
格納されたアドレスレジスタが選択される。このタイミ
ングは、命令レジスタ14に機械語命令が格納された時
点、即ち、機械語命令の実行開始時点と同時であり、従
って、第2図(b)に示されるように、アドレス計算の
時間が不要となる。
Similarly, when the constant value is "0", the address register storing the value "B+R1" is selected. This timing is the same as the time when the machine language instruction is stored in the instruction register 14, that is, the time when the execution of the machine language instruction starts. Therefore, as shown in FIG. 2(b), the address calculation time is No longer needed.

[発明の効果] 以上説明したように、本発明によれば、アドレス生成用
レジスタの保持内容と機械語命令中の定数値との和の値
を保持するアドレスレジスタを設けることにより、アド
レス計算の時間が不要になる分だけ、メモリアクセスを
必要とするR話語命令の実行時間を短くすることができ
るという効果がある。
[Effects of the Invention] As explained above, according to the present invention, by providing an address register that holds the sum of the contents held in the address generation register and the constant value in the machine language instruction, address calculation is improved. This has the effect that the execution time of an R language instruction that requires memory access can be shortened to the extent that time is no longer required.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例によるデータ処理装置の構成
を示すブロック図、第2図(a)は従来の場合における
機械語命令の処理内容と実行時間を示す図、第2図(b
)は本発明の場合における機械語命令の処理内容と実行
時間を示す図である。 10・・・中央処理装置(CPU)、11・・・ペース
レジスタ、12.13・・・インデックスレジスタ、1
4・・・命令レジスタ、15・・・マルチプレクサ、1
6・・・アドレスレジスタ、17・・・マルチプレクサ
、18・・・加算器、20・・・メモリ。 箆 1 図
FIG. 1 is a block diagram showing the configuration of a data processing device according to an embodiment of the present invention, FIG. 2(a) is a diagram showing processing contents and execution time of machine language instructions in the conventional case, and FIG.
) is a diagram showing the processing contents and execution time of machine language instructions in the case of the present invention. 10... Central processing unit (CPU), 11... Pace register, 12.13... Index register, 1
4...Instruction register, 15...Multiplexer, 1
6... Address register, 17... Multiplexer, 18... Adder, 20... Memory. Broom 1 diagram

Claims (1)

【特許請求の範囲】[Claims] 1、機械語命令を実行する中央処理装置とメモリを有す
るデータ処理装置であって、機械語命令実行時に、前記
メモリを前記中央処理装置がアクセスするときのアドレ
スとして、前記中央処理装置内の複数のアドレス生成用
レジスタの保持内容と該機械語命令に含まれる定数値と
の和を用いる装置において、前記複数のアドレス生成用
レジスタの全ての組合わせ数と前記定数値のとり得る最
大値の2倍の数とを乗じた個数以上のアドレスレジスタ
を有し、該アドレスレジスタは、前記定数値のとり得る
全ての値と前記複数のアドレス生成用レジスタの全ての
組合わせとの対応する和の値を保持しており、メモリア
クセス実行時に、前記アドレスレジスタの中の選択した
1つの内容をアドレスとして用いることを特徴とするデ
ータ処理装置。
1. A data processing device having a central processing unit that executes a machine language instruction and a memory, wherein when the machine language instruction is executed, the memory is accessed by the central processing unit as an address, and a plurality of addresses in the central processing unit are used. In a device that uses the sum of the contents held in address generation registers and a constant value included in the machine language instruction, the total number of combinations of the plurality of address generation registers and 2 of the maximum possible value of the constant value the number of address registers is equal to or greater than the number multiplied by the number of address registers, and the address registers have a corresponding sum value of all possible values of the constant value and all combinations of the plurality of address generation registers. 1. A data processing device, wherein the data processing device retains one of the address registers, and uses the contents of one of the address registers as an address when performing memory access.
JP2492388A 1988-02-06 1988-02-06 Data processor Pending JPH01201748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2492388A JPH01201748A (en) 1988-02-06 1988-02-06 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2492388A JPH01201748A (en) 1988-02-06 1988-02-06 Data processor

Publications (1)

Publication Number Publication Date
JPH01201748A true JPH01201748A (en) 1989-08-14

Family

ID=12151656

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2492388A Pending JPH01201748A (en) 1988-02-06 1988-02-06 Data processor

Country Status (1)

Country Link
JP (1) JPH01201748A (en)

Similar Documents

Publication Publication Date Title
JPH01201748A (en) Data processor
JP2002215606A (en) Data processor
US6895488B2 (en) DSP memory bank rotation
JP2915680B2 (en) RISC processor
JPS63247832A (en) Data processor
JP2576589B2 (en) Virtual storage access control method
JPS5922142A (en) Data processor
JPS60129853A (en) Address generating device
JPS59197946A (en) Memory device
KR100246465B1 (en) Apparatus and method for reducing cycle of microprocessor stack order
JPS59188900A (en) Data processor
JPH01263829A (en) Data processor
JP2618387B2 (en) Testing method for information processing equipment
JPH02136925A (en) Data processor
JPH1063503A (en) Arithmetic processor and its method
JPH0619713B2 (en) Logic type data processor
JPS60176152A (en) Prefix area access control system
JPH04256039A (en) Information processor capable of counting instruction
JPS6222163A (en) Information processor
JPS6014335A (en) Information processor
JPS5947649A (en) Data processor
JP2004206425A (en) Tracing device
JPS6347845A (en) Information processor
JPH0242540A (en) Patch input device
JPH03150632A (en) Information processor