JPS5957339A - Register control circuit - Google Patents

Register control circuit

Info

Publication number
JPS5957339A
JPS5957339A JP16913982A JP16913982A JPS5957339A JP S5957339 A JPS5957339 A JP S5957339A JP 16913982 A JP16913982 A JP 16913982A JP 16913982 A JP16913982 A JP 16913982A JP S5957339 A JPS5957339 A JP S5957339A
Authority
JP
Japan
Prior art keywords
register
pointer
contents
adder
shift
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.)
Granted
Application number
JP16913982A
Other languages
Japanese (ja)
Other versions
JPH0234053B2 (en
Inventor
Naoki Wakabayashi
直樹 若林
Teiji Nishizawa
西澤 貞次
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP16913982A priority Critical patent/JPS5957339A/en
Publication of JPS5957339A publication Critical patent/JPS5957339A/en
Publication of JPH0234053B2 publication Critical patent/JPH0234053B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30007Arrangements for executing specific machine instructions to perform operations on data operands
    • G06F9/30032Movement instructions, e.g. MOVE, SHIFT, ROTATE, SHUFFLE

Abstract

PURPOSE:To leave the result of shift of the content of a register in a single processing unit by making to update the contents of a pointer with an output of an adder, in a register control circuit of a data processor. CONSTITUTION:In storing a data in a register 31, a data is fetched from a bus 36, and the contents of a pointer 33 representing the location of the uppermost order bit of the register 31 is reset by using a reset signal 39. When shifting the contents of the register 31, an external shift constant 37 and the contents of the pointer 33 are added with an adder 34, the result in written in the pointer 33 and inputted to a decoder 35. The decoder 35 decodes the result of the adder 34 and outputs it to a barrel shifter circuit 32 as a shift control signal 38. Further, the contents of the register 31 is inputted to the barrel shifter circuit 32 and outputted on a bus 36 according to the shift control signal 38.

Description

【発明の詳細な説明】 呟業上の利用分野 本発明IJデータ処理装置のレジスタ制御回路に関する
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a register control circuit for an IJ data processing device.

従来例の4111成とその問題点 従来より、データ処理装置において、データのビットシ
フト等の操作はよく用いられている。以下第1図、第2
図を参照にしながら、従来のシフト回路について説明す
る。
Conventional 4111 configuration and its problems Conventionally, operations such as bit shifting of data have been frequently used in data processing devices. Figures 1 and 2 below
A conventional shift circuit will be explained with reference to the drawings.

第1図は従来のシフトレジスタ回路を小すものである。FIG. 1 shows a smaller version of a conventional shift register circuit.

第1図において、Qvはデータビットを蓄えるフリップ
フロップで、各々同一の構造としている。上記のような
構成において、ロートイば>JLOA Dがアクティブ
状態になると、 DI。〜IJIn の信号線の内容が
、フリップフロップ0υに並列に取込まれ、その内容は
DOG 〜DO11の信号線に出力される。次にシフト
信号5111 FTに正のパルス(5IIIFTに負の
パルス)を印加すると、各フリップフロップ東のデータ
ビットは次段のフリップフロップに移動する。
In FIG. 1, Qv is a flip-flop that stores data bits, and each has the same structure. In the above configuration, when LOAD>JLOAD becomes active, DI. The contents of the signal line ~IJIn are taken in parallel to the flip-flop 0υ, and the contents are output to the signal line DOG ~DO11. Next, when a positive pulse is applied to the shift signal 5111FT (a negative pulse to 5IIIFT), the data bits east of each flip-flop are moved to the next flip-flop.

しかしながら上記のような構成では、1パルスのシフト
信号によって■データビットのみのシフトしか行なわれ
ないので、任意のデータビットのシフトを行なうために
はシフト信号を?¥、 数fitシフトレジスタに印加
しなければならず、複数の処理単位を必要とする欠点を
有していた。
However, in the above configuration, only the data bits can be shifted by one pulse of the shift signal. Therefore, in order to shift any data bit, the shift signal must be changed. It had the disadvantage that it had to be applied to several fit shift registers and required multiple processing units.

第2図は従来のバレルシフタ回路をホす。これは、串−
処理単位で任意ビット数シフトできるものである。?V
はデータを蓄えるレジスタ、@は入力されたデータを与
えられたシフト定数だけシフトし出力するバレルシフタ
である。上記のような構成において、レジスタeすに蓄
えられたデータをシフトする場合、レジスタなりの内容
を出力し、バレルシフタ□に対してはシフト定数を与え
る。バレルシフタ磐はレジスタ&IJの出力を入力とし
、ンフト定蝕に従って任意のピット−数をシフトしで出
力を行なう。
FIG. 2 shows a conventional barrel shifter circuit. This is a skewer
It is possible to shift an arbitrary number of bits in units of processing. ? V
is a register that stores data, and @ is a barrel shifter that shifts input data by a given shift constant and outputs it. In the above configuration, when shifting data stored in register e, the contents of the register are output, and a shift constant is given to barrel shifter □. The barrel shifter receives the output of the register &IJ as input, shifts an arbitrary number of pits according to the shift period, and outputs the result.

しかしながら上記のような構成では、[・・ジスタの内
容をシフトシた結果を残しておくため番こはバレルシフ
タの出力を再びレジスタに設定しなJjさなければなら
ず、2つの処理単位をM? =aとする欠点を有(7て
いた。
However, in the above configuration, in order to preserve the result of shifting the contents of the register, the output of the barrel shifter must be set in the register again, and the two processing units M? It has the disadvantage of =a (7).

発明の効果 本発明は、」−記欠点に鍜み、単一の処理中(1′lで
レジスタのビ」谷を任意ビット数シフトし、かつレジス
タにシフトした結果を残すことのでさるレジスタ制御回
路を提供すること7Il−Ll uりとするものである
Effects of the Invention The present invention addresses the drawbacks mentioned above and provides register control by shifting the register's valley by an arbitrary number of bits during a single process (1'l) and leaving the shifted result in the register. It is intended to provide a circuit 7Il-Llu.

発明の構l戊 上記目的を構成するために1本発明はl 69]−一夕
を蓄えるレジスタと、上記レジスタの最上位ビットの位
置を小すポインタと、上記レジスタのP」谷を人力とし
て任意ビット数シフトして外i’、lsに出力するバレ
ルシフタと、シフトすべきシフト定数と上記ポインタの
内容を加算する加算器と、上記加算器の出力をデコード
して上記パ1/ルシフタにシフトIBI御11号を出力
するデコーダとを有し、上記ポインタの内容を」二記加
紳器の出力により史粕するように構成したものである。
Structure of the Invention In order to achieve the above object, the present invention provides a register for storing data, a pointer for reducing the position of the most significant bit of the register, and a P' valley of the register by hand. A barrel shifter that shifts an arbitrary number of bits and outputs it to outside i', ls, an adder that adds the shift constant to be shifted and the contents of the above pointer, and the output of the above adder is decoded and shifted to the above shifter. It has a decoder that outputs IBI control number 11, and is configured to read the contents of the above pointer by the output of the second correction device.

更ニ木発明は、1語データを蓄えるレジスタと。Saraniki's invention is a register that stores one-word data.

上記レジスタの最上位ビットの位置を示すポインタと、
上記レジスタの内容を入力とし任意ビット数シフト1ノ
で外部に出力すると同時に外部データを任意ビット数シ
フトして上記レジスタに出力する双方同性バレルシフタ
と、シフトすべきシフト定数と上記ポインタの内容を加
算する加算器と。
A pointer indicating the position of the most significant bit of the above register,
A bidirectional barrel shifter that takes the contents of the above register as input and outputs it to the outside by shifting an arbitrary number of bits, and at the same time shifts the external data by an arbitrary number of bits and outputs it to the above register, and adds the shift constant to be shifted and the contents of the above pointer. with an adder.

上記加算器の出力をデコードして」1記バレルシフタに
シフト制御信号を出力するデコーダとを自゛シ。
A decoder decodes the output of the adder and outputs a shift control signal to the barrel shifter 1.

上記ポインタの内容を上記加算器の出力により更新する
ように構成したものである。
The content of the pointer is updated by the output of the adder.

実施例の説明 以下本発明の一実施例を図面に基→いて説明する。第8
図は本発明の一実施例におけるレジスタ制御lri回路
の構成を示し、4ビツトデータを扱う回路である。
DESCRIPTION OF EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. 8th
The figure shows the configuration of a register control lri circuit in one embodiment of the present invention, which is a circuit that handles 4-bit data.

第8図において、 $11>はレジスタ、に)はバレル
シフタで1以上は第2図の構成と同じものである。
In FIG. 8, $11> is a register, 2) is a barrel shifter, and 1 or more have the same configuration as in FIG. 2.

鏝はポインタ、0ψは加算器、に)はデコーダ、に)は
バス、@はシフト定数、(至)はシフト制御信号、(2
)はリセット信号である。
trowel is a pointer, 0ψ is an adder, ni) is a decoder, ni) is a bus, @ is a shift constant, (to) is a shift control signal, (2
) is a reset signal.

このように構成されたレジスタ制御回路について、以下
そのdw作について説明する。まず、レジスタ60にデ
ータを蓄える場合、バスに)からデータを取込み、同時
にそのレジスタ9υの最上位ビットの位置を小すポイン
タ03の内容をリセットitr号…を用いてリセットす
る。次にレジスタ6■のhuをシフトする楊合、夕1部
からのシフト定数90とポインターの6谷を加2> =
#弼によって加算し、その結果をポインターに也込み、
かつデコーダ■に入力する。デコーダ轡は加算器■の結
果をデコードし。
The dw operation of the register control circuit configured as described above will be explained below. First, when storing data in the register 60, the data is fetched from the bus) and at the same time, the contents of the pointer 03, which decrements the position of the most significant bit of the register 9υ, are reset using the reset itr signal. Next, shift the hu in register 6■, add the shift constant 90 from the first part and the pointer 6 2> =
# Add with \ and put the result in the pointer,
and input it to the decoder ■. The decoder 轡 decodes the result of the adder ■.

シフト制御信号(7)としてバレルシフタル幼へ出力覆
る。そして、レジスタC(1)の内容をバレルシフタ曽
に入力し、シフト制御信号(至)に従ってバスG+13
に出力する。
Output to the barrel shifter as a shift control signal (7). Then, the contents of register C(1) are input to the barrel shifter so, and according to the shift control signal (to), the contents of register C(1) are input to the bus G+13.
Output to.

本実施例によれば、レジスタの最上位ビットの位置を示
すポインタの内谷とシフト定数を加算することにより、
レジスタの内容を任意ビット数シフトすることができ、
かつシフトした結果をレジスタ6υに残す効果をもたせ
ることができ、単一の処理単位で動作が完了する。
According to this embodiment, by adding the inner valley of the pointer indicating the position of the most significant bit of the register and the shift constant,
The contents of a register can be shifted by an arbitrary number of bits,
Moreover, it is possible to have the effect of leaving the shifted result in the register 6υ, and the operation is completed in a single processing unit.

次に本発明の他の実施例を図面に基づいて説明する。第
4図は本発明による一実施例におけるレジスタ制御回路
の構成を小し、4ビツトデータを扱う回路である。
Next, another embodiment of the present invention will be described based on the drawings. FIG. 4 shows a circuit in which the configuration of the register control circuit in one embodiment of the present invention is reduced and handles 4-bit data.

第4図において、ODはレジスタ、0.目よポ・fンタ
In FIG. 4, OD is a register, 0. Eyes, Po-f-nta.

fl、IはJJII yA g+ 1に)はデコーダ、
 11はバス、−カはシフト定数、に)はシフト制御4
4号、−はリセット1dlで1以上は、 611 a図
と同じ構成である。(境は双方間のバレルシフタである
fl, I is JJII yA g+ 1) is a decoder,
11 is the bus, -ka is the shift constant, and ) is the shift control 4
No. 4, - is reset 1 dl, and 1 or more have the same configuration as in Figure 611a. (The boundary is the barrel shifter between the two sides.

このように構成されたレジスタ制御回路について、以下
その動作について説明する。才ず、システムリセツI・
時にリセット信号に)により、レジスタODのポ上位ビ
ットを示すポインタ榊の内谷をリセットする。次に、レ
ジスタhaにデータを蓄える場合、バス+Mjからデー
タをバレルシフタ(1′4に入力する。そして、シフト
制御信号部に従ってバス(−からのデータをシフトし、
レジスタ0])にデータを書込む。レジスタUυの内谷
をシフトする場合は。
The operation of the register control circuit configured as described above will be explained below. Saizu, system reset I.
(at the same time as the reset signal), resets the inner part of the pointer Sakaki indicating the upper bit of the register OD. Next, when storing data in the register ha, input the data from the bus +Mj to the barrel shifter (1'4).Then, according to the shift control signal section, shift the data from the bus (-),
Write data to register 0]). If you want to shift the inner valley of register Uυ.

第8図の実施例の動作と同様である。The operation is similar to that of the embodiment shown in FIG.

本実施例によれば、レジスタの内谷を任、1Jビツトシ
フトし、かつレジスタにその結果を林ず〆V果をもたせ
ることができ、単一の処理中旬で用i11作が完了する
According to this embodiment, it is possible to shift the data by 1J bits by leaving the inner register, and to have the result stored in the register, thereby completing the first 11 operations in the middle of a single process.

発明の効果 以上のように本発明によれば、レジスタの7+V上(f
fビットの4<t−tffflを示ずポインタと、その
V」谷とシフト定数を加シーする加糎器を翰えることに
より。
Effects of the Invention As described above, according to the present invention, the voltage on 7+V (f
By holding the pointer that indicates 4<t-tfffl of the f bits and the adder that adds the V'valley and the shift constant.

串−の処理11位で、レジスタの内f1を(El〕hビ
ットシフトし、かつレジスタにその貯己1↓を残すこと
ができ、その実用的効果は大なるものかある。
In the 11th process of Kushi-, it is possible to shift f1 in the register by (El]h bits and leave the stored value 1↓ in the register, which has a great practical effect.

【図面の簡単な説明】 161図は従来のシフトレジスタ回路図、第2図は従来
のバレルシフタ回路図、第8図及び紀・1ムコ1はそれ
ぞれ本発明の一実施例におけるブロック構成図である。 ciuυ・・・レジスタ、(9)@4・・・バレルシフ
タ、 GK+ 411・・・ポインタ、C’(HJ・・
・加W器、に)−・・デコーダ、in・・・バス、@1
θ・・・シフト定数、01dl・・・シフト制御信号、
 C31)−・・・す・レット信号代理人 森木義弘 第2図 第3図
[BRIEF DESCRIPTION OF THE DRAWINGS] Figure 161 is a conventional shift register circuit diagram, Figure 2 is a conventional barrel shifter circuit diagram, and Figures 8 and 1 are block diagrams of an embodiment of the present invention. . ciuυ...Register, (9)@4...Barrel shifter, GK+ 411...Pointer, C'(HJ...
・Adder, in)--Decoder, in...Bus, @1
θ...Shift constant, 01dl...Shift control signal,
C31) -...Sulet Signal Agent Yoshihiro Moriki Figure 2 Figure 3

Claims (1)

【特許請求の範囲】 1−1胎デ一91’Mえるレジスタと、上記レジスタの
般」ユ位ビットの位置を小ずポインタと。 上記レジスタの内容を入力として仕息ビ゛ノド畝シフト
して外部に出力するバレルシフタと。 シフトすべきシフト定数と上記ポインタの内容を加算す
る加算器と、」1記加算器の出力をデコードして、L記
バレルシフタにシフト制御信相を出力するデコーダとを
有し、上記4eインタの内容を上記加算器の出力により
更新するようにしたことを特徴とするレジスタ制御回路
0 21詔データを蓄えるレジスタと、上記レジスタの最上
(イノビットの位動をボすポインタと。 上記レジスタの内容を入力とし任意ビットシフトシて外
部に出力すると同時に外部データを任意ビット数シフト
して上fftjレジスタGこ出力する双方向性のバレル
シフタと、シフトすべきシフト定数と上記ポインタの内
容を加算する加算器と、上記加算器の出力をデコードし
て上記バレルシフタにシフト制御1g 13を出力する
デコーダとを有し、上記ポインタの内容を]1記加算器
の出力により更新するようにしたことをvF蒙とするレ
ジスタ制御回路。
[Scope of Claims] 1-1 A register that contains data 91'M, and a pointer that indicates the position of the general bit of the register. A barrel shifter that takes the contents of the above register as input, shifts the work bin, and outputs it to the outside. It has an adder that adds the shift constant to be shifted and the contents of the pointer, and a decoder that decodes the output of the adder 1 and outputs a shift control signal to the barrel shifter L, and The register control circuit 0 is characterized in that the contents are updated by the output of the adder.21 A register for storing the edict data, and a pointer that overrides the position of the inno bit at the top of the register. A bidirectional barrel shifter that takes input, shifts arbitrary bits, outputs it to the outside, and simultaneously shifts external data by an arbitrary number of bits and outputs it to the upper fftj register, and an adder that adds the shift constant to be shifted and the contents of the above pointer. and a decoder that decodes the output of the adder and outputs shift control 1g13 to the barrel shifter, and the content of the pointer is updated by the output of the adder described in [1]. register control circuit.
JP16913982A 1982-09-27 1982-09-27 Register control circuit Granted JPS5957339A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16913982A JPS5957339A (en) 1982-09-27 1982-09-27 Register control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16913982A JPS5957339A (en) 1982-09-27 1982-09-27 Register control circuit

Publications (2)

Publication Number Publication Date
JPS5957339A true JPS5957339A (en) 1984-04-02
JPH0234053B2 JPH0234053B2 (en) 1990-08-01

Family

ID=15881005

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16913982A Granted JPS5957339A (en) 1982-09-27 1982-09-27 Register control circuit

Country Status (1)

Country Link
JP (1) JPS5957339A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0211179A2 (en) * 1985-06-28 1987-02-25 Hewlett-Packard Company Apparatus for performing variable shift
WO1999014665A3 (en) * 1997-09-17 1999-08-12 Sony Electronics Inc Digital signal processor particularly suited for decoding digital audio
JP2011248539A (en) * 2010-05-25 2011-12-08 Fujitsu Ltd Information processing device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57143637A (en) * 1981-03-03 1982-09-04 Toshiba Corp Multibit shift circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57143637A (en) * 1981-03-03 1982-09-04 Toshiba Corp Multibit shift circuit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0211179A2 (en) * 1985-06-28 1987-02-25 Hewlett-Packard Company Apparatus for performing variable shift
WO1999014665A3 (en) * 1997-09-17 1999-08-12 Sony Electronics Inc Digital signal processor particularly suited for decoding digital audio
JP2011248539A (en) * 2010-05-25 2011-12-08 Fujitsu Ltd Information processing device

Also Published As

Publication number Publication date
JPH0234053B2 (en) 1990-08-01

Similar Documents

Publication Publication Date Title
US4382278A (en) Hierarchial memory system with microcommand memory and pointer register mapping virtual CPU registers in workspace cache #4 and main memory cache
GB1353925A (en) Data processing system
JPH0760423B2 (en) Data transfer method
JPS5957339A (en) Register control circuit
EP0217479A2 (en) Information processing unit
US5293594A (en) Data processing system having a plurality of register groups and a logical or circuit for addressing one register of one of the register groups
JPS60245062A (en) Data transfer device
JPH034936B2 (en)
EP0334131A2 (en) Data processor performing operation on data having length shorter than one-word length
JPH0795269B2 (en) Instruction code decoding device
JPS6148174B2 (en)
JPS6031646A (en) Data processor
JPH0545978B2 (en)
JPS6142184Y2 (en)
JPS58217033A (en) Direct memory access controller
JPH05289938A (en) Memory access device
JP2636064B2 (en) Vector processing equipment
JPS6124737B2 (en)
GB1269321A (en) A stored program digital computer
JPS6168636A (en) Data processor
JPS62143130A (en) Central processing unit
JPS63241647A (en) Microprocessor
JPS61267873A (en) Data processor
JPH0216665A (en) Data transfer equipment
JPS58208851A (en) Microprogram controller