JPS6057604B2 - Register selection control method - Google Patents

Register selection control method

Info

Publication number
JPS6057604B2
JPS6057604B2 JP53106075A JP10607578A JPS6057604B2 JP S6057604 B2 JPS6057604 B2 JP S6057604B2 JP 53106075 A JP53106075 A JP 53106075A JP 10607578 A JP10607578 A JP 10607578A JP S6057604 B2 JPS6057604 B2 JP S6057604B2
Authority
JP
Japan
Prior art keywords
register
data
address
registers
length
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
Application number
JP53106075A
Other languages
Japanese (ja)
Other versions
JPS5533246A (en
Inventor
久次郎 相良
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 JP53106075A priority Critical patent/JPS6057604B2/en
Publication of JPS5533246A publication Critical patent/JPS5533246A/en
Publication of JPS6057604B2 publication Critical patent/JPS6057604B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Description

【発明の詳細な説明】 本発明は、アドレス・レジスタのデータ長を減少でき
るようになつたレジスタ選択制御方式に関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a register selection control method that allows the data length of an address register to be reduced.

従来のレジスタ選択方式においては、レジスタの個数
をN)アドレス・レジスタのデータ長をn−とするとき
N≦2nなる関係を満すようにデータ長nが定められ
ていた。
In the conventional register selection method, the data length n is determined so as to satisfy the relationship N≦2n, where N is the number of registers and n- is the data length of the address register.

ところで、レジスタには、データ長が32ビットのもの
、16ビットのもの、8ビットのもの等が−存在する。
例えば、16ビットのレジスタにデータを書込む場合、
32ビットのデータ・レジスタ内にデータが用意される
が、16ビットのレジスタにデータを書込むので、デー
タ・レジスタ内にはDon’をCareのビット部分が
生じる。 本発明は、データ、レジスタ内のdon’を
careビット部分を有効に利用して、アドレス・レジ
スタのデータ長を減少できるようになつたレジスタ選択
制御方式を提供することを目的としている。そしてその
ため本発明のレジスタ選択制御方式は、アドレス・レジ
スタと、データ・レジスタと、該データ・レジスタのデ
ータ長よりも短いデータ長を持つレジスタおよび上記デ
ータ・レジスタのデータ長と同じ長さを持つレジスタよ
り成る複数のレジスタを有するシステムにおいて、上記
データ・レジスタのデータ長と同じ長を持つレジスタの
選択については、上記アドレス、レジスタのデータのみ
を使用して行い、上記データ・レジスタのデータ長より
も短かいデータ長を持つレジスタの選択については、上
記アドレス・レジスタのデータおよび上記データ・レジ
スタの一部のデータを使用して行うよう構成されている
ことを特徴とするものである。以下、本発明を図面を参
照しつつ説明する。 図は本発明の1実施例のブロック
図であつて、1はアドレス・レジスタ、2はデータ・レ
ジスタ3ないし5はデコーダ、RoないしRj2はレジ
スタ、G。
By the way, there are registers with a data length of 32 bits, 16 bits, 8 bits, etc.
For example, when writing data to a 16-bit register,
Data is prepared in a 32-bit data register, but since data is written to a 16-bit register, a Don' and Care bit portion is generated in the data register. SUMMARY OF THE INVENTION An object of the present invention is to provide a register selection control method that can reduce the data length of an address register by effectively utilizing the care bit portion of data and registers. Therefore, the register selection control method of the present invention selects an address register, a data register, a register having a data length shorter than the data length of the data register, and a register having the same data length as the data register. In a system that has multiple registers, the selection of a register with the same length as the data length of the above data register is performed using only the above address and register data. The present invention is characterized in that the selection of a register having a short data length is performed using data in the address register and part of data in the data register. Hereinafter, the present invention will be explained with reference to the drawings. The figure is a block diagram of one embodiment of the present invention, in which 1 is an address register, 2 is a data register, 3 to 5 are decoders, Ro to Rj2 are registers, and G.

ないしGj2はゲートをそれぞれ示している。レジスタ
R。ないしR2のデータ長は例えば32ビットであり、
レジスタRioないしRi2のデータ長は例えば16ビ
ットであり、レジスタRjlないしRj2のデータ長は
例えば8ビットである。データ・レジスタ2のデータ長
は32ビットである。レジスタRiOないしRi2は第
1番目のレジスタ群を構成しており、また、レジスタR
jOないしRj2は第j番目のレジスタ群を構成してい
る。アドレス・レジスタ1の内容がデコーダ3で解読さ
れ、その内容にしたがつて第0ないし第j出力端子のい
ずれか1つに論理「1」信号が生じる。
Gj2 to Gj2 respectively indicate gates. Register R. The data length of R2 is, for example, 32 bits,
The data length of registers Rio to Ri2 is, for example, 16 bits, and the data length of registers Rjl to Rj2 is, for example, 8 bits. The data length of data register 2 is 32 bits. Registers RiO to Ri2 constitute the first register group, and register R
jO to Rj2 constitute the j-th register group. The contents of the address register 1 are decoded by the decoder 3, and a logic "1" signal is generated at any one of the 0th to jth output terminals according to the contents.

第0出力端子に論理『1」が出力されると、ゲートG。
が開いてレジスタR。が選択され、第1出力端子が論理
「1」になるとゲートG1が開きレジスタR1が選択さ
れ、第2出力端子が論理「1」になると、レジスタR2
が選択され、第1出力端子が論理「1」になると第1番
地のレジスタ群が選択され、第j出力端子が論理「1」
となると第j番目の出力端子が選択される。第1番目の
レジスタ群内部の選択はデータ●レジスタ1のデータ部
以外のビットで行われる。例えば、ゲートGiが開いて
いる状態の下で、データ部以外のビットが.Al.L“
0゛であれば、このコードがデコーダ4によつて解読さ
れ、ゲートGiOが開いてレジスタRiOが選択され、
データ部以外の部分が数値44r゛を示していればデコ
ーダ4によりゲートGilが開きレジスタRilが選択
され、データ部以外の部分が数値゜゜2゛を示しておれ
ば、デコーダ4によりゲートGi2が開きレジスタRi
2が選択される。第j番目のレジスタ群内の選択も同様
にして行われる。第1番目のレジスタ群内のレジスタへ
のデータは書込みは次のようにして行われる。
When logic "1" is output to the 0th output terminal, the gate G.
opens and register R. is selected, and when the first output terminal becomes logic "1", gate G1 opens and register R1 is selected, and when the second output terminal becomes logic "1", register R2
is selected and the first output terminal becomes logic "1", the register group at the first address is selected, and the j-th output terminal becomes logic "1".
Then, the jth output terminal is selected. Selection inside the first register group is performed using bits other than the data section of data register 1. For example, when the gate Gi is open, bits other than the data part are . Al. L"
If it is 0, this code is decoded by the decoder 4, the gate GiO is opened and the register RiO is selected,
If the part other than the data part shows the numerical value 44r゛, the decoder 4 opens the gate Gil and selects the register Ril, and if the part other than the data part shows the numerical value ゜゜2゛, the decoder 4 opens the gate Gi2. Register Ri
2 is selected. Selection within the jth register group is performed in a similar manner. Data is written to the registers in the first register group as follows.

(1)書込みデータおよび群内のアドレスをデータ・レ
ジスタ2に置数する。
(1) Place the write data and the address within the group in data register 2.

(■)アドレス・レジス1に第1番目のレジスタ群を指
定するコードを置数する。
(■) Place a code specifying the first register group in address register 1.

(■)書込み処理を実行する。(■) Execute write processing.

また、第1番目のレジスタ群内のレジスタからのデータ
の読出しは次のようにして行われる。
Further, data is read from the registers in the first register group as follows.

(イ)群内のアドレスをデータ・レジスタ2へ置数する
。(ロ)第1番目のレジスタ群を指定するコードをアド
レス●レジスタ1に置数する。
(a) Place the address within the group into data register 2. (b) Place the code specifying the first register group in address ●register 1.

(ハ)読出し処理を実行する。(c) Execute read processing.

第j番目のレジスタ群内のレジスタに対する書込み/読
出しも同様にして行われる。
Writing/reading to/from registers in the j-th register group is performed in the same manner.

以上の説明から明らかなように、本発明のレジスタ選択
制御方式は、アドレス●レジスタのデータ長を減少でき
ることおよびこれらレジスタを含む装置をユニット化も
しくはLSI化した場合、従来方式と比しピン数の減少
などハードウェアの量を減少できること等の効果が得ら
れる。
As is clear from the above description, the register selection control method of the present invention can reduce the data length of address registers, and when a device including these registers is made into a unit or LSI, the number of pins is reduced compared to the conventional method. Effects such as reduction in the amount of hardware can be obtained.

ピン数が減少できる理由は次のとおりである。レジスタ
″ROないしRj2デコーダ3,4,5およびゲートG
iOないしGj2を1個のLSIで形成した場合、アド
レス・レジスタ1から上記のLSIに至るアドレス信号
線の数を減少できるため、LSIのピン数が減少できる
。この効果は最大データ長のより少ないデータ長をもつ
レジスタの数が多くなればなる程顕著になる。デコーダ
3,4,5は、比較的少数の素子で構成できるものであ
る。
The reason why the number of pins can be reduced is as follows. Register "RO or Rj2 decoder 3, 4, 5 and gate G
When iO to Gj2 are formed by one LSI, the number of address signal lines extending from the address register 1 to the above-mentioned LSI can be reduced, so the number of pins of the LSI can be reduced. This effect becomes more pronounced as the number of registers having data lengths smaller than the maximum data length increases. Decoders 3, 4, and 5 can be constructed with a relatively small number of elements.

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

図は本発明の1実施例のブロック図である。 1・・・・・アドレス●レジスタ、2・・・・・・デー
タ●レジスタ、3ないし5・・・・・・デコーダ、RO
ないしRj2・・・ルジスタ、GOないしGj2・・・
・・・ゲート。
The figure is a block diagram of one embodiment of the present invention. 1...address register, 2...data register, 3 or 5...decoder, RO
Or Rj2...Lujista, GO or Gj2...
···Gate.

Claims (1)

【特許請求の範囲】[Claims] 1 アドレス・レジスタと、データ・レジスタと、該デ
ータ・レジスタのデータ長よりも短いデータ長を持つレ
ジスタおよび上記データ・レジスタのデータ長と同り長
さを持つレジスタより成る複数のレジスタを有するシス
テムにおいて、上記データ・レジスタのデータ長と同じ
長を持つレジスタの選択については、上記アドレス・レ
ジスタのデータのみを使用して行い、上記データ・レジ
スタのデータ長よりも短かいデータ長を持つレジスタの
選択については、上記アドレス・レジスタのデータおよ
び上記データ・レジスタの一部のデータを使用して行う
よう構成されていることを特徴とするレジスタの選択制
御方式。
1. A system having a plurality of registers consisting of an address register, a data register, a register having a data length shorter than the data length of the data register, and a register having the same length as the data length of the data register. In , the selection of a register with the same data length as the data length of the above data register is performed using only the data of the above address register, and the selection of a register with a data length shorter than the data length of the above data register is performed. A register selection control method, characterized in that selection is performed using data in the address register and some data in the data register.
JP53106075A 1978-08-30 1978-08-30 Register selection control method Expired JPS6057604B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP53106075A JPS6057604B2 (en) 1978-08-30 1978-08-30 Register selection control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP53106075A JPS6057604B2 (en) 1978-08-30 1978-08-30 Register selection control method

Publications (2)

Publication Number Publication Date
JPS5533246A JPS5533246A (en) 1980-03-08
JPS6057604B2 true JPS6057604B2 (en) 1985-12-16

Family

ID=14424467

Family Applications (1)

Application Number Title Priority Date Filing Date
JP53106075A Expired JPS6057604B2 (en) 1978-08-30 1978-08-30 Register selection control method

Country Status (1)

Country Link
JP (1) JPS6057604B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6266333A (en) * 1985-09-19 1987-03-25 Fujitsu Ltd Indirect address register control system

Also Published As

Publication number Publication date
JPS5533246A (en) 1980-03-08

Similar Documents

Publication Publication Date Title
US5341500A (en) Data processor with combined static and dynamic masking of operand for breakpoint operation
JPH0248931B2 (en)
JPS60193193A (en) Memory lsi
JPH0255878B2 (en)
JPH0346850B2 (en)
US6003124A (en) Electronic circuit and method for time saving use of a coprocessor
JPS6128198B2 (en)
JPS6057604B2 (en) Register selection control method
JP3005402B2 (en) ROM readout switching circuit
US6567320B2 (en) Data write circuit
JPS6233603B2 (en)
JPS623504B2 (en)
JPH0514359B2 (en)
JPH07122814B2 (en) Sequence controller
JP3343556B2 (en) Storage system
JPS63121946A (en) Memory access control circuit
JPS6224338A (en) Memory access system
JPS61195438A (en) Information processor
JPH02249027A (en) Instruction fetch decoder
JPH03203893A (en) Memory
JPH0418634A (en) Data processor
JPH0810443B2 (en) Memory control circuit
JPS59208647A (en) Microprocessor
JPS6329295B2 (en)
JPH03113659A (en) Cache memory testing method