JPH04124728A - Register index constitution system - Google Patents

Register index constitution system

Info

Publication number
JPH04124728A
JPH04124728A JP24384590A JP24384590A JPH04124728A JP H04124728 A JPH04124728 A JP H04124728A JP 24384590 A JP24384590 A JP 24384590A JP 24384590 A JP24384590 A JP 24384590A JP H04124728 A JPH04124728 A JP H04124728A
Authority
JP
Japan
Prior art keywords
register
result
section
address calculation
configuration method
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
JP24384590A
Other languages
Japanese (ja)
Inventor
Katsuhiko Yamada
山田 雄彦
Takeshi Kitahara
北原 毅
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP24384590A priority Critical patent/JPH04124728A/en
Publication of JPH04124728A publication Critical patent/JPH04124728A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To process the complicated address calculation at high speed by adding together the numerical values supplied from a register part and a numerical value generating part regardless of the instruction to be carried out and using the result of addition obtained from the analysis of an instruction code. CONSTITUTION:The numerical values supplied from a register part 1 and a numerical value generating part 2 are added together regardless of the instruction to be carried out for acquisition of the result of addition. This result of addition is used based on the analysis of an instruction code. That is, an address is previously calculated by supposing that a specific register is designated against a fact that an address is calculated with designation of a register included in the part 1 after the analysis of the instruction code. The result of this address calculation is used according to the analysis result of the instruction code. When the address is previously calculated, a specific register that is always working in the part 1 is used or the register undergone an access in the precedent time is selected. As a result, the complicated address calculation can be processed at high speed.

Description

【発明の詳細な説明】 〔概 要〕 マイクロコンピュータチップにおいてレジスタインデッ
クスを使用してアドレス計算を行うレジスタインデック
ス構成方式に関し、 複雑なアドレス計算を高速に処理することを目的とし、 レジスタインデックスを使用してアドレス計算を行うレ
ジスタインデックス構成方式であって、レジスタ部と、
数値発生部と、該レジスタ部および該数値発生部の出力
を加算する加算器と、該加算器の出力を命令コードの解
析結果に従ってアドレス計算結果として使用する制御器
とを具備し、実行する命令に関わらず前記レジスタ部お
よび前記数値発生部から供給される数値を加算して結果
を算出し、前記命令コードの解析に従って該算出された
加算結果を使用するように構成する。
[Detailed Description of the Invention] [Summary] Regarding a register index configuration method that uses register indexes to perform address calculations in a microcomputer chip, the present invention aims to process complex address calculations at high speed. This is a register index configuration method that performs address calculation using a register section,
An instruction to be executed, comprising a numerical value generating section, an adder for adding the outputs of the register section and the numerical value generating section, and a controller for using the output of the adder as an address calculation result according to an analysis result of an instruction code. Regardless of the above, the numerical values supplied from the register section and the numerical value generation section are added to calculate the result, and the calculated addition result is used according to the analysis of the instruction code.

〔産業上の利用分野〕[Industrial application field]

本発明は、レジスタインデックス構成方式に関し、特に
、マイクロコンピュータチップにおいてレジスタインデ
ックスを使用してアドレス計算を行うレジスタインデッ
クス構成方式に関する。
The present invention relates to a register index configuration method, and more particularly to a register index configuration method for performing address calculation using register indexes in a microcomputer chip.

近年、コンピュータシステムの高機能化、高速化の要求
に伴い、複雑なアドレス計算を高速に処理することがで
きるシステムが要望されている。
In recent years, as computer systems have become more sophisticated and faster, there has been a demand for systems that can process complex address calculations at high speed.

〔従来の技術〕[Conventional technology]

従来、レジスタインデックスを使用してアドレス計算を
行う場合、命令コードをデコーダが解析し、その情報に
従って対象とするレジスタやオフセットの加算を行い、
その後、このアドレスに対するメモリリード等を行って
いた。
Conventionally, when calculating an address using a register index, a decoder analyzes the instruction code and adds the target register and offset according to that information.
After that, a memory read, etc. for this address was performed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述したように、従来のレジスタインデックスを使用し
たアドレス計算においては、実際の命令処理時間に加え
てアドレス計算のための時間による制約を受けることに
なり、動作速度の遅延を招くことになっている。
As mentioned above, address calculation using conventional register indexes is constrained by the time for address calculation in addition to the actual instruction processing time, resulting in a delay in operating speed. .

すなわち、従来のレジスタインデックス構成方式は、ア
ドレス計算ユニットを命令デコードが確定した時点で行
っているため、命令コード1単位に含まれるアドレス計
算は1デコ一ド単位に付き1アドレス計算の側合が限度
である。また、マイクロコンピュータの処理速度を向上
させるために、1デコ一ド単位中に複数のアドレス計算
指示を含ませた場合でも、上述した制限のために実質的
なメリットがなかった。
In other words, in the conventional register index configuration method, the address calculation unit is executed at the time when the instruction decode is finalized, so the address calculation included in one instruction code unit is one address calculation per one deco code unit. This is the limit. Further, even when a plurality of address calculation instructions are included in one decode unit in order to improve the processing speed of a microcomputer, there is no substantial advantage due to the above-mentioned limitations.

本発明は、上述した従来のレジスタインデックス構成技
術が有する課題に鑑み、複雑なアドレス計算を高速に処
理することを目的とする。
The present invention aims to process complex address calculations at high speed in view of the problems of the conventional register index configuration technology described above.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明に係るレジスタインデックス構成方式の
原理を示すブロック図である。
FIG. 1 is a block diagram showing the principle of a register index configuration method according to the present invention.

本発明によれば、レジスタインデックスを使用してアド
レス計算を行うレジスタインデックス構成方式であって
、レジスタ部lと、数値発生部2と、該レジスタ部1お
よび該数値発生部2の出力を加算する加算器3と、該加
算器3の出力を命令コードの解析結果に従ってアドレス
計算結果として使用する制御器4とを具備し、実行する
命令に関わらず前記レジスタ部1および前記数値発生部
2から供給される数値を加算して結果を算出し、前記命
令コードの解析に従って該算出された加算結果を使用す
るようにしたことを特徴とするレジスタインデックス構
成方式が提供される。
According to the present invention, there is a register index configuration method that performs address calculation using a register index, and the register section l, the numerical value generating section 2, and the outputs of the register section 1 and the numerical value generating section 2 are added together. It is equipped with an adder 3 and a controller 4 that uses the output of the adder 3 as an address calculation result according to the analysis result of the instruction code, and is supplied from the register section 1 and the numerical value generation section 2 regardless of the instruction to be executed. There is provided a register index configuration method characterized in that a result is calculated by adding up numerical values, and the calculated addition result is used according to analysis of the instruction code.

〔作 用〕[For production]

本発明のレジスタインデックス構成方式によれば、実行
する命令に関わらず、レジスタ部1および数値発生部2
から供給される数値を加算して結果が算出される。そし
て、命令コードの解析に従って該算出された加算結果を
使用するようになっている。すなわち、命令コードの解
析を行った後に、レジスタ部1内のレジスタを指定して
アドレス計算を行うのではなく、特定のレジスタが指定
されるものとして予めアドレス計算を行っておき、その
後、命令コードの解析結果に従ってアドレス計算結果と
して使用するようになっている。ここで、予めアドレス
計算を行う場合のレジスタは、レジスタ部1において常
に動作している特定のレジスタが使用されるか、或いは
、前回アクセスされたレジスタが選択されて使用される
ようになっている。
According to the register index configuration method of the present invention, regardless of the instruction to be executed, the register section 1 and the numerical value generation section 2
The result is calculated by adding the numbers supplied by . Then, the calculated addition result is used according to the analysis of the instruction code. In other words, instead of specifying a register in register section 1 and calculating the address after analyzing the instruction code, address calculation is performed in advance assuming that a specific register is specified, and then the instruction code is It is used as the address calculation result according to the analysis result. Here, when performing address calculation in advance, a specific register that is always operating in the register section 1 is used, or a register that was accessed last time is selected and used. .

これによって、複雑なアドレス計算を高速に処理するこ
とができる。
This allows complex address calculations to be processed at high speed.

〔実施例〕〔Example〕

以下、図面を参照して本発明に係るレジスタインデック
ス構成方式を説明する。
Hereinafter, a register index configuration method according to the present invention will be explained with reference to the drawings.

第1図は本発明に係るレジスタインデックス構成方式の
原理を示すブロック図である。同図において、参照符号
1は複数のレジスタを持つレジスタ部であり、アドレス
計算用のインデックスと通常のアドレス・データの格納
にも使用されるものである。さらに、参照符号2は数値
発生部であり、状況に応じて定数または命令コード中の
置数等の出力を行うものであり、また、参照符号3は加
算器であり、レジスタの値と発生させられた数値を加算
するためのものである。そして、参照符号4は制御器で
あり、加算器3の出力した加算結果をデコーダの結果に
従いアドレス計算に適用するかどうかを決めるものであ
る。
FIG. 1 is a block diagram showing the principle of a register index configuration method according to the present invention. In the figure, reference numeral 1 is a register section having a plurality of registers, which is also used to store an index for address calculation and normal address data. Further, reference numeral 2 is a numerical value generator, which outputs a constant or a set number in an instruction code depending on the situation, and reference numeral 3 is an adder, which generates a value in a register. It is used to add the calculated values. Reference numeral 4 is a controller that determines whether or not the addition result output from the adder 3 is applied to address calculation according to the result from the decoder.

第1図に示すレジスタインデックス構成方式によれば、
通常、マイクロコンピュータチップがチップ内に持って
いる複数のレジスタの内、特定の1つのレジスタが常に
アドレス計算のインデックス参照用に使われるものと仮
定される。このインデックス参照用レジスタについては
、常にアドレス計算が先行で行われるようになっていて
、命令デコーダによる命令デコードの確定した時点では
、既に計算されたアドレス(インデックス参照用レジス
タのアドレス計算結果)を流用するようになっている。
According to the register index configuration method shown in FIG.
Normally, it is assumed that one specific register among the plurality of registers that a microcomputer chip has is always used for index reference in address calculation. For this index reference register, address calculation is always performed in advance, and when the instruction decoding by the instruction decoder is confirmed, the already calculated address (address calculation result of the index reference register) is used. It is supposed to be done.

ここで、第1図に示すレジスタインデックス構成方式で
は、特定のレジスタを使用した場合に限りアドレス計算
が高速に行えることになる。ところで、従来のアドレス
計算ユニットを命令デコードが確定した時点で行ってい
る方式では、前述したように、命令コード1単位に含ま
れるアドレス計算は1デコ一ド単位に付き1アドレス計
算の割合が限度である。また、マイクロコンピュータの
処理速度を上げるために1デコ一ド単位中に複数のアド
レス計算指示を含ませた場合でもこの制限のために実質
メリットというものがなかったわけである。第1図に示
す本発明の構成方式は、これらのアドレス計算全体を考
えた場合には対象とする複数のレジスタ全てに先行アド
レス計算を持たせない限りは、複数のレジスタ中で特定
少数のレジスタのみが高速化されるためにメリットの小
さいものに思える。しかし、実際のプログラミングにお
いてはこれらのアドレス計算に複数のレジスタが平均的
に出てくるわけではなく、特にレジスタインデックスの
アドレス計算等は1〜2個の特定のレジスタが集中的に
使用されるケースが非常に多いため、速度改善の有効性
は非常に高いといえる。さらに、この機構を組み込むこ
とはそのチップのアーキテクチャとは独立に行えるため
、構成方式としての適応性は高いものといえる。
Here, in the register index configuration method shown in FIG. 1, address calculation can be performed at high speed only when specific registers are used. By the way, in the conventional method in which the address calculation unit is executed when the instruction decode is finalized, as mentioned above, the address calculation included in one instruction code unit is limited to the ratio of one address calculation per one deco code unit. It is. Moreover, even when a plurality of address calculation instructions are included in one decode unit in order to increase the processing speed of a microcomputer, there is no real advantage due to this limitation. The configuration system of the present invention shown in FIG. It seems like the benefit is small because only the speed is increased. However, in actual programming, multiple registers do not appear on average in these address calculations, and there are cases in which one or two specific registers are used intensively, especially in register index address calculations etc. Since there are a large number of cases, it can be said that the effectiveness of speed improvement is extremely high. Furthermore, since this mechanism can be incorporated independently of the chip architecture, it can be said to be highly adaptable as a configuration method.

このように、第1図に示すレジスタインデックス構成方
式によれば、複雑なアドレス計算を高速に処理すること
ができる。
In this way, according to the register index configuration method shown in FIG. 1, complex address calculations can be processed at high speed.

第2図は第1図におけるレジスタ部の一例を示すブロッ
ク図である。同図において、レジスタ部1には、複数の
レジスタ10〜1nの他に、レジスタ選択回路5が設け
られている。このレジスタ選択回路5は、レジスタ部1
が有する複数のレジスタ10〜1nの内、前回アクセス
されたレジスタを選択するもので、該レジスタ選択回路
には、前回アクセスされたレジスタを記憶する前回使用
レジスタ記憶手段51が設けられている。すなわち、前
回使用レジスタ記憶手段51により、レジスタ部1に含
まれる複数レジスタ10〜1nに対する命令実行やアド
レス計算等によるアクセスを記憶し、その内容に応じて
アドレス計算に利用するレジスタを選択するようになっ
ている。
FIG. 2 is a block diagram showing an example of the register section in FIG. 1. In the figure, a register section 1 is provided with a register selection circuit 5 in addition to a plurality of registers 10 to 1n. This register selection circuit 5 includes a register section 1
The register selection circuit selects the last accessed register from among the plurality of registers 10 to 1n that the register has, and the register selection circuit is provided with a previously used register storage means 51 for storing the last accessed register. That is, the previously used register storage means 51 stores accesses for instruction execution, address calculation, etc. to a plurality of registers 10 to 1n included in the register section 1, and selects a register to be used for address calculation according to the contents. It has become.

この第2図に示すレジスタインデックス構成方式は、第
1図の構成方式における特定のレジスタの選択について
考慮したものである。すなわち、通常、レジスタインデ
ックスによるアドレス計算においては、命令の使用方法
に偏りがあり、例えば、同一のレジスタを集中的に使用
することや、レジスタインデックス用に使用しているレ
ジスタへの書込みを他のレジスタよりも頻繁に行うこと
等がある。そこで、レジスタのアクセスを記憶しておき
、この記憶に従い対象とする特定のレジスタを変えるこ
とで第1図のレジスタインデックス構成方式の効果を増
大するようにしたものであるこのように、本発明のレジ
スタインデックス構成方式によれば、アドレス計算、特
にレジスタをインデックスとして使用するアドレス計算
において高速にこれを行うことができ、マイクロコンピ
ュータの機能向上に寄与するところが大きい。
The register index configuration method shown in FIG. 2 takes into account the selection of a specific register in the configuration method shown in FIG. In other words, when calculating an address using a register index, there is usually a bias in how instructions are used. For example, the same register may be used intensively, or writing to a register used for register index may be There are some things that are done more frequently than registers. Therefore, the effect of the register index configuration method shown in FIG. 1 is increased by memorizing register accesses and changing the target specific register according to this memorization. According to the register index configuration method, address calculations, especially address calculations using registers as indexes, can be performed at high speed, and this greatly contributes to improving the functionality of microcomputers.

〔発明の効果〕〔Effect of the invention〕

以上、詳述したように、本発明によれば、実行する命令
に関わらずレジスタ部および数値発生部から供給される
数値を加算して結果を算出し、命令コードの解析に従っ
て該算出された加算結果を使用することによって、複雑
なアドレス計算を高速に処理することができる。
As described in detail above, according to the present invention, the result is calculated by adding the numerical values supplied from the register section and the numerical value generating section regardless of the instruction to be executed, and the calculated addition is performed according to the analysis of the instruction code. By using the results, complex address calculations can be processed quickly.

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

第1図は本発明に係るレジスタインデックス構成方式の
原理を示すブロック図、 第2図は第1図におけるレジスタ部の一例を示すブロッ
ク図である。 (符号の説明) l・・・レジスタ部、 2・・・数値発生部、 3・・・加算器、 4・・・制御器、 5・・・レジスタ選択回路、 10〜1n・・・レジスタ、 5I・・・前回使用レジスタ記憶手段。
FIG. 1 is a block diagram showing the principle of a register index configuration method according to the present invention, and FIG. 2 is a block diagram showing an example of the register section in FIG. 1. (Explanation of symbols) 1...Register section, 2...Numeric value generation section, 3...Adder, 4...Controller, 5...Register selection circuit, 10-1n...Register, 5I: Previously used register storage means.

Claims (1)

【特許請求の範囲】 1、レジスタインデックスを使用してアドレス計算を行
うレジスタインデックス構成方式であって、 レジスタ部(1)と、数値発生部(2)と、該レジスタ
部および該数値発生部の出力を加算する加算器(3)と
、該加算器の出力を命令コードの解析結果に従ってアド
レス計算結果として使用する制御器(4)とを具備し、
実行する命令に関わらず前記レジスタ部および前記数値
発生部から供給される数値を加算して結果を算出し、前
記命令コードの解析に従って該算出された加算結果を使
用するようにしたことを特徴とするレジスタインデック
ス構成方式。 2、前記レジスタ部(1)は、常に動作している特定の
レジスタを備え、当該レジスタが専ら使用されるように
なっている請求項第1項に記載のレジスタインデックス
構成方式。 3、前記レジスタ部(1)は、該レジスタ部が有する複
数のレジスタ(10〜1n)の内、前回アクセスされた
レジスタを選択するレジスタ選択回路(5)を備えてい
る請求項第1項に記載のレジスタインデックス構成方式
。 4、前記レジスタ選択回路(5)は、前回アクセスされ
たレジスタを記憶する前回使用レジスタ記憶手段(51
)を具備する請求項第3項に記載のレジスタインデック
ス構成方式。 5、請求項第1項〜第4項のいずれか1項に記載のレジ
スタインデックス構成方式を適用して、アドレス計算を
行うようにしたことを特徴とするマイクロコンピュータ
チップ。
[Claims] 1. A register index configuration method for performing address calculation using a register index, which comprises a register section (1), a numerical value generating section (2), and a register section (1), a numerical value generating section (2), and a register section (1), a numerical value generating section (2), and An adder (3) that adds the outputs, and a controller (4) that uses the output of the adder as an address calculation result according to the analysis result of the instruction code,
A result is calculated by adding the numerical values supplied from the register section and the numerical value generating section regardless of the instruction to be executed, and the calculated addition result is used according to the analysis of the instruction code. register index configuration method. 2. The register index configuration method according to claim 1, wherein the register unit (1) includes a specific register that is always in operation, and the register is used exclusively. 3. The register section (1) includes a register selection circuit (5) that selects a previously accessed register from among a plurality of registers (10 to 1n) included in the register section. The register index configuration scheme described. 4. The register selection circuit (5) includes a previously used register storage means (51) for storing the last accessed register.
) The register index configuration method according to claim 3, comprising: 5. A microcomputer chip, characterized in that address calculation is performed by applying the register index configuration method according to any one of claims 1 to 4.
JP24384590A 1990-09-17 1990-09-17 Register index constitution system Pending JPH04124728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24384590A JPH04124728A (en) 1990-09-17 1990-09-17 Register index constitution system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24384590A JPH04124728A (en) 1990-09-17 1990-09-17 Register index constitution system

Publications (1)

Publication Number Publication Date
JPH04124728A true JPH04124728A (en) 1992-04-24

Family

ID=17109808

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24384590A Pending JPH04124728A (en) 1990-09-17 1990-09-17 Register index constitution system

Country Status (1)

Country Link
JP (1) JPH04124728A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7224811B1 (en) 1997-11-14 2007-05-29 Yamaha Corporation Audio system utilizing personal computer
US7350156B2 (en) 2001-09-21 2008-03-25 Yamaha Corporation Audio signal editing apparatus and control method therefor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7224811B1 (en) 1997-11-14 2007-05-29 Yamaha Corporation Audio system utilizing personal computer
US7350156B2 (en) 2001-09-21 2008-03-25 Yamaha Corporation Audio signal editing apparatus and control method therefor
US7929719B2 (en) 2001-09-21 2011-04-19 Yamaha Corporation Audio signal editing apparatus and control method therefor

Similar Documents

Publication Publication Date Title
JP2678183B2 (en) Digital processor controller and method for runtime memory allocation
US4432053A (en) Address generating apparatus and method
JPS59174948A (en) Information processing device
JPS6055849B2 (en) Command control method
JPH04124728A (en) Register index constitution system
JP3892873B2 (en) Programmable controller
JPH0192851A (en) Switching device for address space
JPS6077280A (en) Pattern matching device
JPH08249018A (en) Multiprocessor arithmetic unit and programmable controller having the arithmetic unit
CA1155232A (en) Pipelined digital signal processor using a common data and control bus
JPH0619712B2 (en) Address generation control method
JP2743947B2 (en) Micro program control method
JP3140028B2 (en) Subroutine argument passing method
JPH0731608B2 (en) Information processing equipment
JP3392413B2 (en) Two-level micro control system and method
JPH0713758A (en) Instruction decoding method
JPS6042968B2 (en) information processing equipment
JPH0319570B2 (en)
JPH0812637B2 (en) Address translation method
JP2504151B2 (en) Data processing device
JP2618703B2 (en) High-speed operation processing method of programmable sequence controller
JPS6159532A (en) Instruction controller
JPH0648470B2 (en) Multiple virtual address space controller
JPS59144977A (en) Data processor for array arithmetic
JPH01169607A (en) Programmable controller