JPS6213694B2 - - Google Patents
Info
- Publication number
- JPS6213694B2 JPS6213694B2 JP54011271A JP1127179A JPS6213694B2 JP S6213694 B2 JPS6213694 B2 JP S6213694B2 JP 54011271 A JP54011271 A JP 54011271A JP 1127179 A JP1127179 A JP 1127179A JP S6213694 B2 JPS6213694 B2 JP S6213694B2
- Authority
- JP
- Japan
- Prior art keywords
- address
- register file
- register
- read
- machine cycle
- 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.)
- Expired
Links
Landscapes
- Executing Machine-Instructions (AREA)
Description
【発明の詳細な説明】
この発明は情報処理装置に用いられるレジスタ
フアイルのアクセス方式に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a register file access method used in an information processing device.
一般に、情報処理装置においては、CPU(中
央処理装置)の一構成要素として、例えば命令バ
ツフア、オペランドバツフア、作業レジスタ等の
多目的に使用される記憶装置(ここではレジスタ
フアイルと呼ぶ)を設け、このレジスタフアイル
のデータをデータ選択回路、演算回路等を経由し
て或るレジスタ類に供給するような構成のものが
広く実用化されている。このような構成における
情報処理装置において、その装置のマシーンサイ
クルの時間を決定する一つの要素として、レジス
タフアイルのアクセス時間があげられる。第1図
は従来の構成におけるレジスタフアイルの周辺回
路を示すもので、図中、11は例えば命令バツフ
ア、オペランドバツフア、作業レジスタ等の多目
的に使用されるレジスタフアイル(RF)、12は
このレジスタフアイル11の読出しデータをラツ
チするラツチ回路、13,14,15はデータ選
択回路、16は演算回路、171〜174はレジ
スタフアイル11のリードアドレス、ライトアド
レスをそれぞれ用途別に貯えるアドレスレジス
タ、181,182および19はそれぞれ上記レ
ジスタフアイル11に与えるアドレスを選択する
ためのアドレス選択回路である。而してレジスタ
フアイル11のアクセス時においては、アドレス
レジスタ17iのアドレスデータがアドレス選択
回路18iおよび19を経由してレジスタフアイ
ル11に与えられ、このアドレスデータに基づい
てレジスタフアイル11がリード/ライト制御さ
れる。このように従来では、レジスタフアイル1
1のアクセス時に、アドレスレジスタ17iに貯
えられたアドレスデータがアドレス選択回路18
i,19を経由してレジスタフアイル11に供給
されるため、この際のアドレス供給に要する時間
分だけレジスタフアイル11のアクセス時間が長
くなり、従つてマシーンサイクルの時間も長くな
るという不都合が生じていた。 Generally, in an information processing device, a storage device (herein referred to as a register file) used for multiple purposes such as an instruction buffer, an operand buffer, and a working register is provided as a component of the CPU (central processing unit). A configuration in which the data of this register file is supplied to a certain register via a data selection circuit, an arithmetic circuit, etc. is widely put into practical use. In an information processing apparatus having such a configuration, one of the factors that determines the machine cycle time of the apparatus is the register file access time. FIG. 1 shows a peripheral circuit of a register file in a conventional configuration. In the figure, 11 is a register file (RF) used for multiple purposes such as an instruction buffer, operand buffer, and work register, and 12 is a register file (RF) for this register. 13, 14, 15 are data selection circuits; 16 is an arithmetic circuit; 171 to 174 are address registers that store the read address and write address of the register file 11 for each purpose; 18; 1 , 18, 2 and 19 are address selection circuits for selecting addresses to be given to the register file 11, respectively. When accessing the register file 11, the address data of the address register 17i is given to the register file 11 via the address selection circuits 18i and 19, and the register file 11 performs read/write operations based on this address data. Light controlled. In this way, conventionally, the register file 1
1, the address data stored in the address register 17i is transferred to the address selection circuit 18.
Since the address is supplied to the register file 11 via i , 19, the access time to the register file 11 becomes longer by the time required for supplying the address at this time, which causes the inconvenience that the machine cycle time also becomes longer. Ta.
この発明は上記実情に鑑みなされたもので、レ
ジスタフアイルの使用効率を高めることができる
とともに、アクセスタイムを著しく向上せしめる
ことのできるレジスタフアイルのアクセス方式を
提供することを目的とする。 The present invention has been made in view of the above-mentioned circumstances, and an object of the present invention is to provide a register file access method that can improve register file usage efficiency and significantly improve access time.
以下第2図および第3図を参照してこの発明の
一実施例を説明する。第2図に於いて、101は
例えば命令バツフア(IB)、オペランドバツフア
(OB)、作業レジスタ(WR)等の多目的に使用
されるレジスタフアイル(RF)、102はこのレ
ジスタフアイル101の読出しアドレス(RA)
を選択する読出しアドレス選択回路(以下RAS
と称す)、103は上記レジスタフアイル101
の書込みアドレス(RB)を選択する書込みアド
レス選択回路(以下RBSと称す)、104は上記
RAS102、RBS103のうちの何れか一方の
出力を選択するアドレス選択回路(以下ASと称
す)、105はこのAS104より出力されるアド
レスデータを受けて上記レジスタフアイル101
の読出し/書込みアドレスを指定するアドレスレ
ジスタ(以下RFARと称す)、106はこの
RFAR105に与えられる読出しアドレス
(RA)を1マシーンサイクル期間保持する待避用
アドレスレジスタ(以下RSVAと称す)、107
は上記レジスタフアイル101に書込むべきデー
タを選択するデータ選択回路、108は上記レジ
スタフアイル101より読出されたデータを貯え
るラツチ回路である。 An embodiment of the present invention will be described below with reference to FIGS. 2 and 3. In FIG. 2, 101 is a register file (RF) used for multiple purposes such as an instruction buffer (IB), operand buffer (OB), and work register (WR), and 102 is a read address of this register file 101. (RA)
Read address selection circuit (hereinafter referred to as RAS)
), 103 is the register file 101 mentioned above.
104 is a write address selection circuit (hereinafter referred to as RBS) for selecting the write address (RB) of
An address selection circuit (hereinafter referred to as AS) 105 that selects the output of either one of the RAS 102 and RBS 103 receives the address data output from the AS 104 and selects the output from the register file 101.
An address register (hereinafter referred to as RFAR) 106 specifies the read/write address of this register.
A save address register (hereinafter referred to as RSVA) 107 that holds the read address (RA) given to the RFAR 105 for one machine cycle period.
108 is a data selection circuit that selects data to be written into the register file 101, and 108 is a latch circuit that stores data read from the register file 101.
而して上記RAS102には、例えば制御記憶
部より与えられる命令バツフアアドレス(X)、
オペランドバツフアアドレス(Y)、作業レジス
タアドレス(Z)、更にはRSVA106に貯えら
れたアドレス等が選択すべき読出しアドレスとし
て与えられ、RBS103には、命令バツフアアド
レス(S)、オペランドバツフアアドレス(T)、
作業レジスタアドレス(U)等が選択すべき書込
みアドレスとして与えられる。また上記AS10
4は第3図dに示される制御信号(SELRA)に
基づいて読出しアドレス(RA)または書込みア
ドレス(RB)を選択出力制御せしめるもので、
上記制御信号(SELRA)は、第3図aに示され
る基本クロツク(CLK−B)に基づき、基本マ
シーンサイクルの前半に対応する周期(C1)をも
つて“0”となり、基本マシーンサイクルの後半
に対応する周(C2)をもつて“1”となるもの
で、SELRA=“0”の際に書込みアドレス
(RB)を出力し、SELRA=“1”の際に読出しア
ドレス(RA)を出力するものであり、その一例
を第3図gに示す。またRFAR105は第3図g
に示される基本クロツク(CLK−B)に基づい
て読出しアドレス(RA)と書込みアドレス
(RB)とを交互に貯えるもので、基本マシーンサ
イクルの前半に対応する周期(C1)をもつてAS1
04より出力された読出しアドレス(RA)を貯
え、基本マシーンサイクルの後半に対応する周期
をもつてAS104より出力された書込みアドレ
ス(RB)を貯えるものであり、その一例を第3
図eに示す。またRSVA106はマシーンサイク
ル(A)、(B)、(C)…………に対応した第3図bに示さ
れるクロツク(CLK−C)に基づいてRFA10
5に与えられた読出しアドレス(RA)を貯える
もので、その一例を第3図fに示す。またラツチ
回路108は第3図jに示されるラツチゲート信
号(LG)(SELRAの反転信号)に基づいてレジ
スタフアイル101より読出されたデータをラツ
チするもので、そのラツチ出力の一例を第3図i
に示す。 The RAS 102 includes, for example, an instruction buffer address (X) given from the control storage unit,
The operand buffer address (Y), the working register address (Z), and the address stored in the RSVA 106 are given as read addresses to be selected, and the RBS 103 is given the instruction buffer address (S) and the operand buffer address. (T),
A working register address (U) or the like is given as a write address to be selected. Also, the above AS10
4 selectively outputs and controls the read address (RA) or write address (RB) based on the control signal (SELRA) shown in FIG. 3d;
The control signal (SELRA) becomes "0" with a period (C 1 ) corresponding to the first half of the basic machine cycle based on the basic clock (CLK-B) shown in FIG. It becomes “1” with a cycle (C 2 ) corresponding to the second half, and outputs the write address (RB) when SELRA="0" and outputs the read address (RA) when SELRA="1". An example is shown in Fig. 3g. Also, RFAR105 is shown in Figure 3g.
A read address (RA) and a write address (RB) are stored alternately based on the basic clock (CLK-B) shown in AS1 with a period (C 1 ) corresponding to the first half of the basic machine cycle.
The read address (RA) output from AS104 is stored, and the write address (RB) output from AS104 is stored at a period corresponding to the second half of the basic machine cycle.
Shown in Figure e. The RSVA106 also operates the RFA10 based on the clock (CLK-C) shown in Figure 3b corresponding to machine cycles (A), (B), (C)...
An example of this is shown in FIG. 3f. The latch circuit 108 latches the data read out from the register file 101 based on the latch gate signal (LG) (inverted signal of SELRA) shown in FIG. 3j, and an example of the latch output is shown in FIG. 3i.
Shown below.
次に作用を説明する。第3図に示すマシーンサ
イクル(A)(基本マシーンサイクル)の前半に対応
する周期(C1)においては、同図dに示される如
く、SELRA=“0”となつており、RBS103で
選択された書込みアドレス(RB)、例えば作業レ
ジスタアドレス(U)がAS104より出力され
る(第3図g参照)。この際、RFAR105に
は、前のマシーンサイクル(A−1)において
AS104より出力されていた読出しアドレス
(RA)、例えば命令バツフアアドレス(X)が貯
えられている(第3図e参照)。従つてマシーン
サイクル(A)の前半ではレジスタフアイル101の
読出しアドレス(X)が保証され、このRFAR1
05の読出しアドレス(X)に基づいてレジスタ
フアイル101より読出されたデータ(X)がラ
ツチ回路108にラツチされる。このラツチ回路
108のラツチゲート信号(LG)は、第3図j
に示される如く、基本マシーンサイクルの前半に
対応する周期(C1)で“1”、後半に対応する周
期(C2)で“0”となつているので、そのマシー
ンサイクル(A)の間は第3図iに示される如く読出
しアドレス(X)に対するデータが保証されるこ
とになる。また上記マシーンサイクル(A)の後半に
対応する周期(C2)においては、第3図eに示さ
れる如く、上記AS104より出力されていた書
込みアドレス(U)がRFAR105に貯えられ
る。従つてマシーンサイクル(A)の後半ではレジス
タフアイル101の書込みアドレス(U)が保証
され、このRFAR105の書込みアドレス(U)
に基づき第3図cに示されるクロツク(CLK−
C)に周期した同図hに示されるRF書込みパル
ス(RFWP)により、レジスタフアイル101へ
データ(U)の書込みが行なわれる。更にこのマ
シーンサイクル(A)の後半に対応する周期(C2)に
おいては、第3図dに示される如く、SELRA=
“1”となつており、RAS102で選択された読
出しアドレス(RA)、例えば命令バツフアアドレ
ス(X)がAS104より出力される(第3図g
参照)。而してこのAS104より出力されたアド
レス(X)は次のマシーンサイクル(B)の前半に対
応する周期(C1)をもつてRFAR105に貯えら
れ、上記したマシーンサイクル(A)の前半における
場合と同様に、レジスタフアイル101の読出し
アドレス(X)が保証される。 Next, the action will be explained. In the cycle (C 1 ) corresponding to the first half of the machine cycle (A) (basic machine cycle) shown in FIG. A write address (RB), for example a working register address (U), is output from the AS 104 (see Figure 3g). At this time, RFAR105 has the following information in the previous machine cycle (A-1):
The read address (RA) outputted from the AS 104, for example, the instruction buffer address (X), is stored (see FIG. 3e). Therefore, in the first half of the machine cycle (A), the read address (X) of the register file 101 is guaranteed, and this RFAR1
Data (X) read from the register file 101 based on the read address (X) of 05 is latched in the latch circuit 108. The latch gate signal (LG) of this latch circuit 108 is as shown in FIG.
As shown in , it is "1" in the period (C 1 ) corresponding to the first half of the basic machine cycle and "0" in the period (C 2 ) corresponding to the second half, so that during that machine cycle (A) As shown in FIG. 3i, the data for the read address (X) is guaranteed. Further, in the period (C 2 ) corresponding to the latter half of the machine cycle (A), the write address (U) outputted from the AS 104 is stored in the RFAR 105, as shown in FIG. 3e. Therefore, in the latter half of the machine cycle (A), the write address (U) of the register file 101 is guaranteed, and the write address (U) of the RFAR 105 is guaranteed.
Based on the clock (CLK-
Data (U) is written to the register file 101 by the RF write pulse (RFWP) shown in h of the same figure, which is cycled at C). Furthermore, in the period (C 2 ) corresponding to the latter half of this machine cycle (A), as shown in FIG. 3d, SELRA=
The read address (RA) selected by the RAS102, for example, the instruction buffer address (X), is output from the AS104 (Fig. 3g).
reference). The address (X) output from this AS 104 is then stored in the RFAR 105 with a period (C 1 ) corresponding to the first half of the next machine cycle (B), and in the case of the first half of the machine cycle (A) described above. Similarly, the read address (X) of the register file 101 is guaranteed.
上記したように、レジスタフアイル101の読
出しアドレスは、その読出しサイクルの前のマシ
ーンサイクルで決定され、RFAR105に与えら
れて、このRFAR105がレジスタフアイル10
1を直接アドレス指定するため、レジスタフアイ
ル101の高速アクセスが確保される。 As mentioned above, the read address of the register file 101 is determined in the machine cycle before the read cycle and is provided to the RFAR 105, which is then read from the register file 101.
1 is directly addressed, high-speed access to the register file 101 is ensured.
また、メモリオペランドバツフアを読取ろうと
した際に、未だデータセツトが完了していない
(メモリからの読出しが完了していない)場合
は、第3図kに示されるようなウエイト信号
(WAIT)が発生する。これによつて同図cに示
されるクロツク制御用フリツプフロツプ出力
(CKCTL)が反転せず、その間、同図bに示す
如くクロツク(CLK−C)の出力が禁止され
て、マシーンサイクルが引伸ばされる(マシーン
サイクル(C))。この際、当然、メモリデータをレ
ジスタフアイル101にセツトする(書込む)必
要があるので、RFAR105には、基本メモリサ
イクルの前半に対応する周期(C1)でAS104よ
り出力された書込みアドレス(T)がその後半に
対応する周期(C2)をもつて貯えられる。従つて
その前にRFAR105に貯えられていた読出しア
ドレス(Y)は消滅し、RFAR105の内容は第
3図eに示される如く、読出しアドレス(Y)か
ら書込みアドレス(T)に書換えられてしまう。
しかしながら、この際は、RFAR105に供給さ
れた読出しアドレス(Y)が第3図bに示される
クロツク(CLK−C)に同期して同図fに示す
如く、RSVA106に貯えられており、従つて、
例えウエイト信号でマシーンサイクルが引伸ばさ
れても、読出しアドレス(Y)は保存される。而
してウエイトサイクル中においては、上記RSVA
106に貯えられた読出しアドレス(Y)が
RAS102、AS104を経て周期(C2)でRFAR
105に与えられ、周期(C1)でRFAR105に
保持される。このためレジスタフアイル101か
らは正しいデータが読出される。 Furthermore, when attempting to read the memory operand buffer, if the data set has not yet been completed (reading from memory has not been completed), a wait signal (WAIT) as shown in Figure 3k is generated. Occur. As a result, the clock control flip-flop output (CKCTL) shown in figure c is not inverted, and in the meantime, the clock (CLK-C) output is inhibited as shown in figure b, and the machine cycle is extended. (Machine cycle (C)). At this time, it is naturally necessary to set (write) memory data to the register file 101, so the RFAR 105 contains the write address (T ) is stored with a period (C 2 ) corresponding to its latter half. Therefore, the read address (Y) previously stored in the RFAR 105 disappears, and the contents of the RFAR 105 are rewritten from the read address (Y) to the write address (T), as shown in FIG. 3e.
However, at this time, the read address (Y) supplied to the RFAR 105 is stored in the RSVA 106 as shown in FIG. 3f in synchronization with the clock (CLK-C) shown in FIG. ,
Even if the machine cycle is extended by a wait signal, the read address (Y) is preserved. Therefore, during the weight cycle, the above RSVA
The read address (Y) stored in 106 is
RFAR with period (C 2 ) via RAS102 and AS104
105 and held in the RFAR 105 with a period (C 1 ). Therefore, correct data is read from the register file 101.
上記したようにこの発明によれば、レジスタフ
アイルの使用効率を高めることができるととも
に、アクセスタイムを著しく向上することがで
き、これによつて処理装置におけるマシーンサイ
クルの短縮、更には処理速度の向上が計れる。 As described above, according to the present invention, it is possible to increase the usage efficiency of register files and to significantly improve access time, thereby shortening the machine cycle in the processing device and further improving the processing speed. can be measured.
第1図は従来のレジスタフアイルアクセス手段
を説明するためのブロツク図、第2図はこの発明
の一実施例を示すブロツク図、第3図a乃至kは
上記実施例の動作を説明するためのタイムチヤー
トである。
101……レジスタフアイル(RF)、102…
…読出しアドレス選択回路(RAS)、103……
書込みアドレス選択回路(RBS)、104……ア
ドレス選択回路(AS)、105……アドレスレジ
スタ(RFAR)、106……待避用アドレスレジ
スタ(RSVA)、108……ラツチ回路。
FIG. 1 is a block diagram for explaining a conventional register file access means, FIG. 2 is a block diagram for explaining an embodiment of the present invention, and FIGS. 3 a to 3 k are diagrams for explaining the operation of the above embodiment. It is a time chart. 101...Register file (RF), 102...
...Read address selection circuit (RAS), 103...
Write address selection circuit (RBS), 104... address selection circuit (AS), 105... address register (RFAR), 106... address register for save (RSVA), 108... latch circuit.
Claims (1)
いて、上記レジスタフアイルを基本マシーンサイ
クルに対応する周期の前半で読出し制御し、上記
周期の後半で書込み制御する手段、および上記レ
ジスタフアイルの読出し/書込みアドレスを直接
指定するアドレスレジスタと、このアドレスレジ
スタで指定された読出しアドレスに基づいて上記
レジスタフアイルより読出されたデータを1マシ
ーンサイクルの間保持するラツチ回路と、上記ア
ドレスレジスタに与えられた読出しアドレスを1
マシーンサイクルの間保持する待避用アドレスレ
ジスタと、上記基本マシーンサイクルの整数倍で
なる1マシーンサイクル時において上記待避用ア
ドレスレジスタに貯えられた読出しアドレスを上
記アドレスレジスタに与え上記レジスタフアイル
の読出しアドレスを保障する手段とを有してなる
ことを特徴としたレジスタフアイルのアクセス方
式。1. In an information processing device having a register file, means for controlling reading of the register file in the first half of a cycle corresponding to a basic machine cycle and controlling writing in the second half of the cycle, and a means for controlling the read/write address of the register file. An address register that directly specifies, a latch circuit that holds data read from the register file for one machine cycle based on the read address specified by the address register, and a latch circuit that holds the data read from the register file for one machine cycle based on the read address specified by the address register.
A save address register is held during a machine cycle, and during one machine cycle, which is an integral multiple of the basic machine cycle, the read address stored in the save address register is given to the address register to set the read address of the register file. 1. A register file access method characterized by comprising means for ensuring.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1127179A JPS55103640A (en) | 1979-02-02 | 1979-02-02 | Access system of register file |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1127179A JPS55103640A (en) | 1979-02-02 | 1979-02-02 | Access system of register file |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS55103640A JPS55103640A (en) | 1980-08-08 |
| JPS6213694B2 true JPS6213694B2 (en) | 1987-03-28 |
Family
ID=11773301
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1127179A Granted JPS55103640A (en) | 1979-02-02 | 1979-02-02 | Access system of register file |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS55103640A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7237216B2 (en) * | 2003-02-21 | 2007-06-26 | Infineon Technologies Ag | Clock gating approach to accommodate infrequent additional processing latencies |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS4911017A (en) * | 1972-05-26 | 1974-01-31 |
-
1979
- 1979-02-02 JP JP1127179A patent/JPS55103640A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS55103640A (en) | 1980-08-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5615348A (en) | Microprocessor having register bank architecture | |
| JPS6213694B2 (en) | ||
| JPS6319058A (en) | Memory device | |
| JP2000207203A (en) | Micro controller | |
| JP2581144B2 (en) | Bus control device | |
| JPS62120543A (en) | Switching system for memory bank | |
| JPS59189435A (en) | Data transfer control device | |
| JPS6019816B2 (en) | microprogram control adapter | |
| JPH029401Y2 (en) | ||
| JPH01204146A (en) | Effective address generating system | |
| JP2910131B2 (en) | Register file | |
| JPH0728990A (en) | Graphics memory access circuit | |
| JP3027765B2 (en) | Time mechanism controller | |
| JPS6218934B2 (en) | ||
| JPS63503101A (en) | data storage and transfer equipment | |
| JPS63237143A (en) | Programmable controller | |
| JPS6010368A (en) | Address conversion buffer control system | |
| JPH04140838A (en) | Information processor | |
| JPH0664552B2 (en) | Information processing device invalidation processing method | |
| JPH05108280A (en) | Printer | |
| JPH06103752A (en) | Memory circuit | |
| JPH0431136B2 (en) | ||
| JPS623294A (en) | Bit map mover | |
| JPH058646U (en) | Memory device | |
| JPH04256039A (en) | Information processor capable of counting instruction |