JPS62135932A - Bit shifting device - Google Patents

Bit shifting device

Info

Publication number
JPS62135932A
JPS62135932A JP60276002A JP27600285A JPS62135932A JP S62135932 A JPS62135932 A JP S62135932A JP 60276002 A JP60276002 A JP 60276002A JP 27600285 A JP27600285 A JP 27600285A JP S62135932 A JPS62135932 A JP S62135932A
Authority
JP
Japan
Prior art keywords
shift
bit
shifting
data
circuit
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
JP60276002A
Other languages
Japanese (ja)
Other versions
JPH0799492B2 (en
Inventor
Yukio Murata
幸雄 村田
Kazutoshi Hisada
久田 加津利
Nobutoshi Kokubu
國分 信聡
Tatsuo Okano
達夫 岡野
Shigeki Sakurai
茂樹 櫻井
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP60276002A priority Critical patent/JPH0799492B2/en
Publication of JPS62135932A publication Critical patent/JPS62135932A/en
Publication of JPH0799492B2 publication Critical patent/JPH0799492B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To execute the shifting of a data series inputted continuously at the real time by shifting and renewing the data inputted to said shifting means based on the result to accumulate and calculate the number of the bit which the first shifting means shifts. CONSTITUTION:First, to a register 5, the first 16 bit bit input data D0-D15 are stored and to a register 2, the second - fourth 16 bit input data D16-D31,...D48-D63 are accommodated. At such a time, the second shifting circuit 3 outputs D16-D31. Next, only for the number S of shifting where a shifting generating circuit 6 generates, the first shifting circuit 4 shifts the output of the register 5 and the second shifting circuit and holds it at the register 5. A shifting control circuit 7 adds the present number S of the shifting to the previous accumulated number of the shifting, outputs the remaining number Z of the shifting and shifts the second shifting circuit 3 by Z only at the time of the next action. When a carry CRY is outputted, the output of a register circuit 2 is renewed for 16 bits.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明はビットシフト装置に関し、特に連続して入力す
るnビットデータの系列からmビットシフトしたnビッ
トデータの系列をリアルタイムに得るビットシフト装置
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a bit shift device, and particularly to a bit shift device that obtains in real time a series of n-bit data shifted by m bits from a series of continuously inputted n-bit data. Regarding.

[従来の技術] 従来、小容量のビットシフト回路(例えば米国フェアチ
ャイルド社製の4ビツトシフタF350)は知られてい
るが、大容量のi!!!続して入力するnビットデータ
の系列からmビットシフトしたnビットデータの系列を
リアルタイムに得るビットシフト装置は存在しなかった
。仮に、大容量の連続して入力するnビットデータの系
列をmビットだけ待って頭出しをし、その後にnビット
づつ区切ったnビットデータの系列を出力するようなヒ
ツト77ト装だを考えることもできるが、しかしこれで
は頭出しの時間が一定しないから、リアルタイムの要求
には応し得ない。
[Prior Art] Conventionally, small-capacity bit shift circuits (for example, 4-bit shifter F350 manufactured by Fairchild Corporation in the United States) are known, but large-capacity i! ! ! There has not been a bit shift device that can obtain, in real time, a series of n-bit data shifted by m bits from a series of n-bit data that is subsequently input. Suppose we have a human device that waits for m bits to cue a large series of continuously input n-bit data, and then outputs a series of n-bit data separated by n bits. However, since the cueing time is not constant, it cannot meet real-time requirements.

[発明が解決しようとする問題点〕 本発明は上述した従来技術を背景になされたものであっ
て、その目的とする所は、簡単な構成で大容量の連続し
て入力するnビットデータの系列からmビットシフトし
たnビットデータの系列をリアルタイムに得るビットシ
フト装置を提供することにある。
[Problems to be Solved by the Invention] The present invention has been made against the background of the above-mentioned prior art, and its purpose is to solve a large amount of continuously input n-bit data with a simple configuration. An object of the present invention is to provide a bit shift device that obtains a sequence of n-bit data shifted by m bits from a sequence in real time.

L問題点を解決するための手段] この問題を解決する一手段として、例えば第1図[詳細
は第4図(a)、(b)]に示す実旅例のビットシフト
装置は、例えば連続して入力する16ビツトデータの系
列Do−D256のうち先ずDI6〜D31.D32〜
D47 、D48〜D63をシーケンシャルに保持する
バッファ手段2−1.21−2.2−3と、シフト数発
生回路6の発生するシフト数5=SO−33に従って第
1のビットシフト手段4.5の出力するデータビットB
LO−BL15 (始めはDo−D15)及び第2のビ
ットシフト手段3の出力するデータビットBHO−BH
15をSビットだけパラレルシフトする第1のビットシ
フト手段4と、前記シフト数Sを累積加算した加算結果
のキャリーCRYと余りのシフト数Z=ZO−23を出
力する4ビツト(1B=2’)の累積演算手段7−1.
7−2と、前記累積演算手段出力の余りのシフト数Zに
従って前記4727手段の保持する第1及び第2のビッ
トデータD16〜D31.D32〜D47をZビットだ
けパラレルシフトする第2のビットシフト手段3と、前
記累積演算手段出力のキャリーCRY= 1に従って前
記第2のビットシフト手段3に入力するデータビットD
I6〜031.D32〜D47を16ビツト分更新して
D32〜D47、D48〜D63とする入力データ更新
手段7を備える。
Means for Solving the L Problem] As a means for solving this problem, for example, the bit shift device of the actual journey example shown in FIG. 1 [Details are shown in FIGS. Of the 16-bit data series Do-D 256 input as input, first DI6 to D31. D32~
Buffer means 2-1.21-2.2-3 for sequentially holding D47, D48 to D63, and first bit shift means 4.5 according to the shift number 5=SO-33 generated by the shift number generation circuit 6. Data bit B output by
LO-BL15 (initially Do-D15) and data bits BHO-BH output from the second bit shift means 3
15 by S bits in parallel, and a 4-bit (1B=2') that outputs the carry CRY of the addition result obtained by cumulatively adding the shift number S and the remainder shift number Z=ZO-23. ) cumulative calculation means 7-1.
7-2 and the first and second bit data D16 to D31 . A second bit shift means 3 that parallel-shifts D32 to D47 by Z bits, and a data bit D input to the second bit shift means 3 according to carry CRY=1 of the output of the accumulation calculation means.
I6-031. An input data updating means 7 is provided which updates D32 to D47 by 16 bits to become D32 to D47 and D48 to D63.

[作用〕 かかる第1図の構成において、例えば連続して入力する
16ビツトデータの系列をDo−Di5、DI6〜D3
1.・・・とし、これを18ビツトシフトした16ビツ
トデータの系列D18〜D33、D34〜D49.・・
・を得る場合は、先ずレジスタ5には第1の16ビツト
入力データDo−D15が、レジスタ2−1.2−2.
2−3には第2〜t54の16ビツト入力データDI6
〜D31、D32〜D47.D48〜D63が夫々格納
される。
[Operation] In the configuration shown in FIG. 1, for example, a series of 16-bit data that is input continuously is set to
1. ..., and shifted by 18 bits to create a 16-bit data series D18-D33, D34-D49 .・・・
. . , the first 16-bit input data Do-D15 is stored in the register 5, and the first 16-bit input data Do-D15 is stored in the register 2-1.2-2.
2-3 is the 16-bit input data DI6 from 2nd to t54.
~D31, D32~D47. D48 to D63 are stored respectively.

−ノj、4ピントの累積加算手段7−1.7−2は直前
のシフト砂S までを室部加算した加p&ll果として
始めはキャリーCRY=Oと余りのシフト数Z=0を出
力している。従って、第2のビットシフト手段3は累積
加算手段出力の余りのシフ)fioに従って第2及び第
3の入力データビットDI6〜D31.D32〜D47
をOビットだけパラレルシフトし、ラインBHO−BH
15にD16〜D31を出力している。即ち、第1のシ
フト回路4の一方の入力に帰還される16ビツトデータ
BLO〜BL15 (始めはDO〜D15)に対してず
れの無い16ビツトデータD16〜D31を提供してい
る。
- No.J, 4-focus cumulative addition means 7-1.7-2 initially outputs carry CRY=O and remainder shift number Z=0 as the addition p&ll result of adding up to the immediately preceding shift sand S. ing. Therefore, the second bit shifting means 3 shifts the second and third input data bits DI6 to D31 . D32-D47
is shifted in parallel by O bits, and the line BHO-BH
D16 to D31 are output to 15. That is, 16-bit data D16-D31 without deviation is provided with respect to 16-bit data BLO-BL15 (initially DO-D15) fed back to one input of the first shift circuit 4.

次に第1のビットシフト手段4は例えばプログラムされ
たシフト数5=10に従ってレジスタ5の16ビツトデ
ータDO〜015及び第2のビットシフト手段3の出力
する16ビツトデータD16〜D31を10ヒツトだけ
パラレルシフトし、レジスタ5にDIO〜D25を保持
する。
Next, the first bit shift means 4 shifts the 16-bit data DO~015 of the register 5 and the 16-bit data D16~D31 output from the second bit shift means 3 by 10 hits, for example, according to the programmed shift number 5=10. Parallel shift and hold DIO to D25 in register 5.

次に累積加算手段7−1.7−2は直前までの累積シフ
ト数Oに今回のシフト数lOを累積加算して加r!結果
のキャリーCRY=0と余りのシフト数Z=lOを出力
する。即ち、続くシフト動作に備え、第2のシフト回路
3が第1のシフト回路4の一方の入力に帰還される16
ビツトデータBLO〜BL15(次はDIO〜D25)
に対してずれの無い16ビツトデータD26〜D41を
提供することを可能にするためである。
Next, the cumulative addition means 7-1, 7-2 cumulatively adds the current shift number lO to the previous cumulative shift number O, and adds r! Outputs the result carry CRY=0 and the remainder shift number Z=lO. That is, in preparation for the subsequent shift operation, the second shift circuit 3 is fed back to one input of the first shift circuit 4 (16).
Bit data BLO~BL15 (next is DIO~D25)
This is to make it possible to provide 16-bit data D26 to D41 without any deviation.

また、もしキャリーCRY=1となったときは入力デー
タ更新手段7は第2のビットシフト手段3に入力するデ
ータビットD16〜D31 、D32〜D47を16ヒ
ツト分更新してD32〜D47、D48〜D63とする
。こうして、ずれの無いビットシフト動作が繰り返され
、ずれのない出力シフトデータが順次形成される。
Furthermore, if carry CRY=1, the input data updating means 7 updates the data bits D16 to D31, D32 to D47 input to the second bit shifting means 3 by 16 hits, and updates the data bits D32 to D47, D48 to It is set as D63. In this way, the bit shift operation without deviation is repeated, and output shift data without deviation is sequentially formed.

[実施例コ 以下、添イづ図面を参照して本発明に係る実施例を詳細
に説明する。
[Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

第1図は実施例のビットシフト装置のブロック構成図で
ある0図において、1は記憶回路であり、該記憶回路1
には例えばMH符号、MR符号等に符号化圧縮されたコ
ードのビット系列が16ヒツト単位で順次記憶されてい
る。このような記憶手段1はRAM又はラッチ回路等に
より実現できる。2は複数のパラレル16ビツトレジス
タからなるレジスタ回路であり、記憶回路1より順に読
み出した16ビツトデータは複数のレジスタに順にスト
アされる。3.4は第2及び第1のシフト回路であり、
各シフト回路は31ビツトのパラレル入力データビット
についてO〜15ビットまでの任意ビット数のビットパ
ラレルシフトラ行い、16ビツトのシフトデータを出力
する。5は出力データを保持する16ビツトのレジスタ
、6は例えばプログラムされたシフト数Sを発生するシ
フト数発生回路、7はシフト数Sを累積加算するアキュ
ムレータ7−1.7−2を含み、及びキャリーCRYに
従って16ビツト入力データの更新制御を行うシフト制
御回路である。
FIG. 1 is a block diagram of a bit shift device according to an embodiment. In FIG. 0, 1 is a memory circuit;
For example, bit sequences of codes encoded and compressed into MH codes, MR codes, etc. are sequentially stored in units of 16 hits. Such storage means 1 can be realized by a RAM, a latch circuit, or the like. 2 is a register circuit consisting of a plurality of parallel 16-bit registers, and 16-bit data sequentially read from the memory circuit 1 is stored in the plurality of registers in sequence. 3.4 is the second and first shift circuit,
Each shift circuit performs a bit parallel shift of an arbitrary number of bits from 0 to 15 bits on 31 bits of parallel input data bits, and outputs 16 bits of shifted data. 5 is a 16-bit register that holds output data, 6 is a shift number generation circuit that generates, for example, a programmed shift number S, 7 is an accumulator 7-1, 7-2 that cumulatively adds the shift number S, and This is a shift control circuit that controls updating of 16-bit input data according to carry CRY.

第2図〜第3図(a)、(b)はシフト回路の基本的動
作の説明に係り、第2図はシフト回路の回路図、第3図
(a)はシフト回路の動作を示す説IJj図、第3図(
b)は4ビツトシフタ61〜76の動作を示す説明図で
ある。第2図において、100は4ビツトSO〜S3か
らなるシフトコ−ドのうち上位の2ビットS2.S3を
入力として合計4個の択一的な選択信号BO/〜B3/
(但し、/は負論理NOTを意味する)を出力するデコ
ーダである0選択信号BO/がLOWしでルの時はシフ
トブロック101を付勢し、選択信号B1/がLOWレ
ベルの時はシフトブロック102を付勢し、選択信号B
2/がLOWレベルの時はシフトブロック103を付勢
し、選択信号B3/がLOWレベルの時はシフトブロッ
ク104を付勢する。101〜104はシフトブロック
であり1例えばシフトブロック101においては、4つ
の4ビツトシフタ61〜64に対して共通の出力付勢信
号BO/及びシフトコードビット5O1S1が与えられ
ており、更に4ビツトシフタ61〜64の各出力ビット
AO〜A3.A4〜A7゜A8〜A11.AI2〜A1
5の信号は合計16ビツトのパラレル出力ビツトデータ
AO−A15を形成する。61〜76は各シフトブロッ
ク101−104を構成する同一の4ビツトシツクチツ
プ(例えば米国フェアチャイルド社のF350)である
0例えば4ビツトシフタ61の動作について第3図(b
)を参照して説明をすると、パラレルビットデータの入
力端子I3〜I−3にはパラレル入力データビラ)Do
−D6が接続され、またシフトデータの出力端子Y3〜
Yoには出力データビットラインAO〜A3が接続され
ている。4ビツトシフタ61はその出力付勢端子OEに
選択信号BO/のLOWレベルが与えられている状態で
は出力端子Y3〜yoの信号レベルが付勢され、また選
択信号BO/のHIGHレベルが与えられている状態で
は出力端子Y3〜yoの信号レベルがハイインピーダン
スレベルZである。ピットシフト制御はシフト制v4端
子Sc、Sl に与えられるシフトコードの下位2ビッ
トSo、SLによって行われる。即ち、第3図(b)に
おいてシフトコードSo、Slの内容が0.0のときは
シフト数がOであってパラレル入力データビラ)DO〜
D3の内容がそのまま出力データビツトAO〜A3に現
われる。またシフトコードSo、Slの内容が1.0の
ときはシフト数が1であってパラレル入力データビラ)
Di−04の内容が1つシフトされて出力データビツト
AO〜A3に現われる。また同様にしてシフトコードS
o、Slの内容が1、lのときはシフト数が3であって
パラレル入力データビラ)D3〜D6の内容が3つシフ
トされて出力データビツトAO−A3に現われる。こう
して、シフトブロック101では4つの4ビツトシフタ
61〜64がその各出力部分を担当する。ビットシフタ
61はAO−A3、ビットシフタ62はA4〜A7、ビ
ットシフタ63はA8〜All、ビットシフタ64はA
I2〜A15である。シフトブロック101〜104の
各出力ビットのラインはワイヤードオア(Wl、W2゜
W3)されており、付勢された何れか1つのシフトブロ
ックがデータビットAO〜A15の信号を有効にする。
Figures 2 to 3 (a) and (b) relate to the explanation of the basic operation of the shift circuit. Figure 2 is a circuit diagram of the shift circuit, and Figure 3 (a) is a diagram showing the operation of the shift circuit. IJj diagram, Figure 3 (
b) is an explanatory diagram showing the operation of 4-bit shifters 61-76. In FIG. 2, 100 is the upper 2 bits S2 . of the shift code consisting of 4 bits SO to S3. With S3 as input, a total of four alternative selection signals BO/~B3/
(However, / means negative logic NOT) When the 0 selection signal BO/, which is a decoder, is LOW, the shift block 101 is activated, and when the selection signal B1/ is LOW, it is shifted. energizes block 102 and selects signal B
When the selection signal B3/ is at the LOW level, the shift block 103 is activated, and when the selection signal B3/ is at the LOW level, the shift block 104 is activated. 101 to 104 are shift blocks 1. For example, in shift block 101, a common output activation signal BO/ and shift code bit 5O1S1 are given to four 4-bit shifters 61 to 64, and furthermore, 4-bit shifters 61 to 64 are provided with a common output activation signal BO/ and shift code bit 5O1S1. 64 output bits AO to A3. A4~A7°A8~A11. AI2~A1
The signals No. 5 form a total of 16 bits of parallel output bit data AO-A15. 61-76 are the same 4-bit shift chips (for example, F350 manufactured by Fairchild Corporation in the United States) constituting each shift block 101-104. For example, the operation of the 4-bit shifter 61 is shown in FIG.
), the parallel bit data input terminals I3 to I-3 have parallel input data () Do
-D6 is connected, and the shift data output terminal Y3~
Output data bit lines AO to A3 are connected to Yo. In the 4-bit shifter 61, when the LOW level of the selection signal BO/ is applied to the output activation terminal OE, the signal levels of the output terminals Y3 to yo are activated, and when the HIGH level of the selection signal BO/ is applied, In this state, the signal level of the output terminals Y3 to yo is at high impedance level Z. Pit shift control is performed by the lower two bits So and SL of the shift code applied to the shift control v4 terminals Sc and Sl. That is, in FIG. 3(b), when the contents of shift codes So and Sl are 0.0, the number of shifts is O, and the parallel input data leaflet) DO~
The contents of D3 appear as they are in output data bits AO to A3. Also, when the contents of the shift codes So and Sl are 1.0, the number of shifts is 1 and the parallel input data biller)
The contents of Di-04 are shifted by one and appear on output data bits AO-A3. Similarly, shift code S
When the contents of o and Sl are 1 and l, the number of shifts is 3, and the contents of parallel input data bits D3 to D6 are shifted by three and appear on output data bits AO-A3. Thus, in shift block 101, four 4-bit shifters 61-64 are responsible for each output portion. The bit shifter 61 is AO-A3, the bit shifter 62 is A4 to A7, the bit shifter 63 is A8 to All, and the bit shifter 64 is A
They are I2 to A15. The output bit lines of shift blocks 101-104 are wired-ORed (Wl, W2°W3), and any one of the activated shift blocks enables the signals of data bits AO-A15.

第2図の構成において、シフト回路は31ビツトのパラ
レル入力データビットDO〜D30について0〜15ビ
ツトまでのシフトを有効に行う。
In the configuration shown in FIG. 2, the shift circuit effectively shifts the 31-bit parallel input data bits DO-D30 from 0 to 15 bits.

即ち、0〜3ビツトまでシフトする場合はパラレル入力
データビットがDO〜D18であるシフトブロック10
1を付勢してその出力AO−A15を有効にし、4〜7
ビツトまでシフトする場合はパラレル入力データビット
がD4〜D22であるシフトブロック102を付勢して
その出力AO〜A15を有効にし、8〜11ビツトまで
シフトする場合はパラレル入力データビットがD8〜D
26であるシフトブロック103を付勢して七の出力A
O−A15を有効にし、12〜15ビツトまでシフトす
る場合はパラレル入力データビットがDI2〜D30で
あるシフトブロック104を付勢してその出力AO−A
15を有効にする。この動作は第3図(a)に示されて
いる。
That is, when shifting from 0 to 3 bits, shift block 10 whose parallel input data bits are DO to D18 is used.
1 to enable its output AO-A15, 4 to 7
To shift up to bits, the shift block 102 whose parallel input data bits are D4-D22 is activated to enable its outputs AO-A15, and when to shift up to bits 8-11, the parallel input data bits are D8-D.
26, the shift block 103 is energized, and the output A of 7 is activated.
To enable 0-A15 and shift to 12 to 15 bits, energize the shift block 104 whose parallel input data bits are DI2 to D30 and shift its output AO-A.
Enable 15. This operation is shown in FIG. 3(a).

第4図(a)、(b)〜第8図は実施例のビットシフト
装置の詳細な動作説明に係り、第4図(&)、(b)は
ピッ・トシフト装置の回路図、第5図(2L)はシフト
コードZO〜Z3に対応する第2のシフト回路3の動作
を説明する図、第5図(b)はシフトコードSO〜S3
に対応する第1のシフト回路4の動作を説明する図、第
6図(a)〜(d)はビットシフト装置の動作遷移を説
明する図、第7図は記憶回路1からのデータの読み出し
状態を示すタイミングチャート、第8図は各シフトステ
ートの動作遷移を示すタイミングチャートである。
4(a), (b) to FIG. 8 relate to a detailed operation explanation of the bit shift device of the embodiment, FIG. 4(&), (b) is a circuit diagram of the pit shift device, and FIG. FIG. 2L is a diagram explaining the operation of the second shift circuit 3 corresponding to shift codes ZO to Z3, and FIG.
6(a) to 6(d) are diagrams explaining the operation transition of the bit shift device, and FIG. 7 is a diagram explaining the operation of the first shift circuit 4 corresponding to FIG. 8 is a timing chart showing the operation transition of each shift state.

以上により、例えば連続して入力する16ビツトデータ
の系列をDO−D15.D16〜D31、・・・とし、
これを18ビツトシフトした16ビツトデータの系列D
18〜D33 、D34〜D49、・・・を得る場合を
説明する。
As a result of the above, for example, a series of 16-bit data that is input continuously can be converted to DO-D15. D16 to D31,...
16-bit data series D obtained by shifting this by 18 bits
The case where 18 to D33, D34 to D49, . . . are obtained will be explained.

まず、第6図(a)のステート(STATE)1におい
て、レジスタ2−1にはD16〜031が読み出されて
おり、レジスタ2−2にはD32〜D47が読み出され
ており、レジスタ2−3には048〜D63が読み出さ
れている。この状態では信号ARDY/がO(LOWレ
ベル)であることによりゲート回路2−4と2−7が夫
々付勢され、シフト回路3への一方のデータ入力ALO
〜AL15はDI6〜D31であり、シフト回路3への
もう一方のデータ入力AHO−AH15はD32〜D4
7である。この状態で、シフト数発生回路6のプログラ
ムされた出力SO〜S3はシフト数S=0を保持してお
り、アキュムレータ7−1.7−2の累積加算出力2O
−23(レジスタEの出力)はシフト数Z=0を保持し
ている。
First, in state 1 of FIG. 6(a), D16 to 031 are read out to register 2-1, D32 to D47 are read out to register 2-2, and register 2-1 is read out. -3, 048 to D63 are read out. In this state, since the signal ARDY/ is O (LOW level), the gate circuits 2-4 and 2-7 are activated, and one data input ALO to the shift circuit 3 is activated.
~AL15 is DI6~D31, and the other data input AHO-AH15 to the shift circuit 3 is D32~D4.
It is 7. In this state, the programmed outputs SO to S3 of the shift number generation circuit 6 hold the shift number S=0, and the cumulative addition output 2O of the accumulator 7-1.7-2
-23 (output of register E) holds shift number Z=0.

また、4ビツトフルアダーADDのキャリー信号CRY
もOである。またこの状態でセレクトされるシフトブロ
ックは3−1と4−1であり、かつシフト数Z=0であ
るからシフト回路3の出力BHO−BH15はD16〜
D31となってレジスタ5の帰還出力Do−D15にず
れの無いデータを供給している。またシフト数S=0で
あるからシフト回路4の出力BLO−BL15 (レジ
スタ5の出力)は図示せぬ直前までのステートで保持し
たデータDO〜D15である。
In addition, the carry signal CRY of 4-bit full adder ADD
is also O. Also, the shift blocks selected in this state are 3-1 and 4-1, and the number of shifts Z=0, so the output BHO-BH15 of the shift circuit 3 is D16~
D31 and supplies the feedback output Do-D15 of the register 5 with data without deviation. Further, since the number of shifts S=0, the output BLO-BL15 of the shift circuit 4 (output of the register 5) is the data DO-D15 held in the immediately previous state (not shown).

ステート2では、シフト数発生回路6のプログラム、さ
れた出力SO〜S3はシフト数5=10を保持しており
、アキュムレータ7−1.7−2の出力ZO〜Z3は累
積シフト数z=0を保持している。従って、ステート2
ではシフトブロック3−1と4−3がセレクトされ、か
つシフト数Z=Oであるからシフト回路3の出力BHO
〜BH15はD16〜D31であり、またシフト数5=
10であるからシフト回路4の出力BLO〜BL15は
D10〜D25になる。
In state 2, the programmed outputs SO to S3 of the shift number generation circuit 6 hold the shift number 5=10, and the outputs ZO to Z3 of the accumulator 7-1.7-2 hold the cumulative shift number z=0. is held. Therefore, state 2
Since shift blocks 3-1 and 4-3 are selected and the number of shifts Z=O, the output BHO of shift circuit 3 is
~BH15 is D16~D31, and the number of shifts is 5=
10, the outputs BLO to BL15 of the shift circuit 4 become D10 to D25.

ステート3では、シフト数発生回路6のプログラムされ
た出力5o−S3はシフト数S=8を保持しており、ア
キュムレータ7−1.7−2の出力ZO〜Z3はO+1
0の加算が行われたことによりシフト数Z:10を保持
している。従って、ステート3ではシフトブロック3−
3と4−3がセレクトされ、かつシフト数Z=10であ
るからシフト回路3の出力BHO〜BH15はD26〜
D41となってレジスタ5の帰還出力DIO−D25に
ずれの無いデータを供給している。またシフト数S=8
であるからシフト回路4の出力BL・0−BL15はD
I8〜D33になる。これが第1の出力データDI8〜
D33である。
In state 3, the programmed output 5o-S3 of the shift number generation circuit 6 holds the shift number S=8, and the output ZO-Z3 of the accumulator 7-1.7-2 holds O+1.
Due to the addition of 0, the shift number Z:10 is held. Therefore, in state 3, shift block 3-
3 and 4-3 are selected, and the shift number Z=10, the outputs BHO to BH15 of the shift circuit 3 are D26 to
D41 and supplies the feedback output DIO-D25 of the register 5 with data without deviation. Also, the number of shifts S=8
Therefore, the output BL・0−BL15 of the shift circuit 4 is D
It becomes I8-D33. This is the first output data DI8~
It is D33.

一方、4ビットアキュムレータ7−1.7−2では前回
までの累積シフト数10に今回のシフト数8を累積加算
してキャリー信号CRYに1を出力する。レジスタコン
トローラ7−3はキャリー信号CRYの1により記憶回
路1に対してメモリ要求信号を出力する。記憶回路1は
メモリ要求信号に応じて次の16ビツトデータD64〜
D79を読み出し、レジスタ2−1にストアする。また
、レジスタコントローラ7−3はキャリー信号CRYの
1によりARDY/の出力レベル0をBRD Y/cy
)出力レベル0に切り替える。これにより、次に付勢さ
れるゲート回路は2−6と2−9であり、対応するレジ
スタは2−2と2−3である。従って、シフト回路3へ
の一方のデータ入力ALO〜AL15はD32〜D47
であり、シフト回路3へのもう一方のデータ入力AHO
−AH15はD48〜D63である。
On the other hand, the 4-bit accumulator 7-1.7-2 cumulatively adds the current shift number 8 to the previous cumulative shift number 10, and outputs 1 as the carry signal CRY. The register controller 7-3 outputs a memory request signal to the storage circuit 1 based on the carry signal CRY of 1. The memory circuit 1 stores the next 16-bit data D64 to D64 in response to the memory request signal.
Read D79 and store it in register 2-1. Further, the register controller 7-3 changes the output level of ARDY/ to 0 by the carry signal CRY of 1 to BRD Y/cy.
) Switch to output level 0. As a result, the gate circuits to be activated next are 2-6 and 2-9, and the corresponding registers are 2-2 and 2-3. Therefore, one data input ALO to AL15 to the shift circuit 3 is D32 to D47.
and the other data input AHO to the shift circuit 3
-AH15 is D48 to D63.

ステート4では、シフト数発生回路6のプログラムされ
た出力SO〜S3はシフト数5=14を保持しており、
4ビットアキュムレータ7−1゜7−2の出力20−’
Z3はキャリー信号CRYに1を出力したことにより8
+10=18のうち1上 リ 6のキャリーに対する余りのシフト数Z=2を保持して
いる。従って、ステート4ではシフトブロック3−1と
4−4がセレクトされ、かつシフト数Z=2であるから
シフト回路3の出力BHO〜BH15はレジスタ2−2
の出力D32〜D47を更に2ビツトシフトしたところ
のD34〜D49であり、またシフト数5=14である
からシフト回路4の出力BLO〜BL15はD32〜D
47になる。
In state 4, the programmed outputs SO to S3 of the shift number generation circuit 6 hold the shift number 5=14,
Output 20-' of 4-bit accumulator 7-1゜7-2
Z3 becomes 8 by outputting 1 to the carry signal CRY.
+10=1 out of 18 The remainder shift number Z=2 for the carry of Li6 is held. Therefore, in state 4, shift blocks 3-1 and 4-4 are selected, and since the number of shifts Z=2, the outputs BHO to BH15 of shift circuit 3 are transferred to register 2-2.
The outputs BLO to BL15 of the shift circuit 4 are D34 to D49, which are obtained by further shifting the outputs D32 to D47 by 2 bits, and since the number of shifts is 5 = 14, the outputs BLO to BL15 of the shift circuit 4 are D32 to D49.
Becomes 47.

一方、4ビットアキュムレータ7−1 、7−2ではこ
れまでの累積シフト数Z=2にシフト数5=14を累積
加算してキャリー信号CRYに1を出力する。レジスタ
コントローラ7−3はキャリー信号CRYの1により記
憶回路1に対してメモリ要求信号を出力する。記憶回路
1はメモリ要求信号に応じて次の16ビツトデータD8
0−D95を読み出してレジスタ2−2にストアする。
On the other hand, the 4-bit accumulators 7-1 and 7-2 cumulatively add the number of shifts 5=14 to the cumulative number of shifts Z=2 so far, and output 1 to the carry signal CRY. The register controller 7-3 outputs a memory request signal to the storage circuit 1 based on the carry signal CRY of 1. The memory circuit 1 stores the next 16-bit data D8 in response to the memory request signal.
0-D95 is read and stored in register 2-2.

また、レジ、メタ。コントローラ7−3はキャリー信号
CRYの1によりBRDY/の出力レベル0をCRDY
/の出力レベルOに切り替える。これにより、次に付勢
されるゲート回路は2−8と2−5であり、対応するレ
ジスタは2−3と2−1である。従って、シフト回路3
への一方のデータ入力ALO−AL15はD48〜D6
3であり、シフト回路3へのもう一方のデータ入力AH
O〜AH15はD64〜D79である。
Also, cash register, meta. The controller 7-3 changes the output level of BRDY/ to CRDY by 1 of the carry signal CRY.
/ Switch to output level O. As a result, the gate circuits to be activated next are 2-8 and 2-5, and the corresponding registers are 2-3 and 2-1. Therefore, shift circuit 3
One data input ALO-AL15 is D48 to D6
3, and the other data input AH to the shift circuit 3
O to AH15 are D64 to D79.

以後、シフト数発生回路6のプログラムされた出力SO
〜S3はステート4のシフト数5=14に続くステート
5のシフト数S=2のようにして14と2を交互に繰り
返す、最初に18ビツトシフトした後はずれの無い連続
した合計16ビツト(14+2)のシフトを行えばよい
からである。
Thereafter, the programmed output SO of the shift number generation circuit 6
~S3 is a state 4 shift number 5 = 14 followed by a state 5 shift number S = 2, repeating 14 and 2 alternately, a total of 16 consecutive bits (14 + 2) with no deviation after the first 18 bit shift This is because all you have to do is shift.

ここで、シフト数5−14のイ〆Iは!rf前までの累
積シフト数Z=2に加えて16になる数イ(1としてプ
ログラムされている。
Here, the number of shifts 5-14 is ! In addition to the cumulative shift number Z = 2 before rf, the number I becomes 16 (programmed as 1).

ステート5では、シフト数発生回路6のプログラムされ
た出力SO〜S3はシフト数S=2を保持しており、ア
キュムレータ7−1.7−2の出力Z O−Z 3は1
4+2の加算が行われたことにより累積シフト数Z−〇
を保持している。従って、ステート5ではシフトブロッ
ク3−1と4−1がセレクトされ、かつシフト数z二〇
であるからシフト回路3の出力BHO−BH15はD4
8〜D63であり、またシフト数S=2であるからシフ
ト回路4の出力BLO−BL15はD34〜D49にな
る。これが第2の出力データD34〜D49である。
In state 5, the programmed outputs SO to S3 of the shift number generation circuit 6 hold the shift number S=2, and the output ZO-Z3 of the accumulator 7-1.7-2 is 1.
Since the addition of 4+2 has been performed, the cumulative shift number Z-0 is held. Therefore, in state 5, shift blocks 3-1 and 4-1 are selected and the number of shifts is z20, so the output BHO-BH15 of shift circuit 3 is D4.
8 to D63, and since the number of shifts S=2, the output BLO-BL15 of the shift circuit 4 becomes D34 to D49. This is second output data D34 to D49.

ステート6では、シフト数発生回路6のプログラムされ
た出力5o−33は再びシフト数5=14を保持してお
り、アキュムレータ7−1.7−2の出力ZO〜Z3は
O40の加算が行われたことにより累積シフト数Z=2
を保持している。従って、ステート6ではシフトフロッ
ク3−1と4−4がセレクトされ、かつシフト数Z=2
であるからシフト回路3の出力BHO−BH15はD5
0〜D65となってレジスタ5の帰還出力034〜D4
9にずれの無いデータを供給している。またシフト数5
=14であるからシフト回路4の出力BLO〜BL15
はD48〜D63になる。
In state 6, the programmed output 5o-33 of the shift number generation circuit 6 holds the shift number 5=14 again, and the outputs ZO to Z3 of the accumulators 7-1, 7-2 are added by O40. As a result, the cumulative number of shifts Z = 2
is held. Therefore, in state 6, shift blocks 3-1 and 4-4 are selected, and the number of shifts Z=2.
Therefore, the output BHO-BH15 of the shift circuit 3 is D5
0 to D65, and the feedback output of register 5 is 034 to D4.
9 is supplied with data without any deviation. Also, the number of shifts is 5
= 14, so the output of shift circuit 4 BLO~BL15
becomes D48 to D63.

一方、4ビットアキュムレータ7−1.7−2では累積
シフト数Z=2にシフト数5=14を累積加算してキャ
リー信号CRYに1を出力する。
On the other hand, the 4-bit accumulator 7-1.7-2 cumulatively adds the shift number 5=14 to the cumulative shift number Z=2 and outputs 1 as the carry signal CRY.

レジスタコントローラ7−3はキャリー信号CRYの1
により記憶回路1に対してメモリ要求信号を出力する。
The register controller 7-3 receives 1 of the carry signal CRY.
A memory request signal is outputted to the storage circuit 1 by the above.

記憶回路1はメモリ要求信号に応じて次の16ビツトデ
ータD96〜D111を読み出し、レジスタ2−3にス
トアする。また、レジスタコントローラ7−3はキャリ
ー信号CRYの1によりCRDY/の出力レベルOをA
RDY/の出力レベル0に切り付える。これにより、次
に付勢されるゲート回路は2−4と2−7であり、対応
するレジスタは2−1と2−2である。従って、シフト
回路3への一方のデータ入力ALO〜AL15はD64
〜D79であり、シフト回路3へのもう一方のデータ人
力AHO−AH15はD8OND95である。
The memory circuit 1 reads out the next 16-bit data D96-D111 in response to the memory request signal and stores it in the register 2-3. Further, the register controller 7-3 changes the output level O of CRDY/ to A by the carry signal CRY of 1.
Cut the RDY/ output level to 0. As a result, the gate circuits to be activated next are 2-4 and 2-7, and the corresponding registers are 2-1 and 2-2. Therefore, one data input ALO to AL15 to the shift circuit 3 is D64.
~D79, and the other data input AHO-AH15 to the shift circuit 3 is D8OND95.

ステート7では、シフト数発生回路6のプログラムされ
た出力5o−33は再びシフト数S=2を保持しており
、アキュムレータ7−1.7−2の出力zO〜Z3は1
4+2の加算が行われたことによりシフト数Z−〇を保
持している。従って、ステート7ではシフトブロック3
−1と4−1がセレクトされ、かつシフト数Z=0であ
るからシフト回路3の出力BHO〜B)(15はI)6
4〜D79であり、またシフト数S=2であるからシフ
ト回路4の出力BLO−BL15は050〜D65にな
る。これが第3の出力データD50〜D65である。
In state 7, the programmed output 5o-33 of the shift number generation circuit 6 holds the shift number S=2 again, and the outputs zO to Z3 of the accumulators 7-1.7-2 are 1.
Due to the addition of 4+2, the shift number Z-0 is held. Therefore, in state 7, shift block 3
-1 and 4-1 are selected and the shift number Z=0, so the output of shift circuit 3 BHO~B) (15 is I)6
4 to D79, and since the number of shifts S=2, the output BLO-BL15 of the shift circuit 4 becomes 050 to D65. This is the third output data D50 to D65.

以下、同様にしてステート8以降を行う、また、上述し
たシフト動作のタイミングチャートは第7図及び第8図
に示す通りである。
Thereafter, states 8 and subsequent states are performed in the same manner, and the timing charts of the above-mentioned shift operations are as shown in FIGS. 7 and 8.

[発明の効果] 以上述べた如く本発明によれば、筒車な構成で大容量任
意数ビットのデータパラレルシフトが行えるビットシフ
ト装置を提供することができる。
[Effects of the Invention] As described above, according to the present invention, it is possible to provide a bit shift device that can perform large-capacity parallel data shift of any number of bits with an hour wheel configuration.

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

第1図は実施例のビットシフト装置のブロック構成図、 第2図はシフト回路の回路図、 第3図(a)はシフト回路の動作を示す説明図、 第3図(b)は4ビツトシフタ61〜76の動作を示す
説明図、 第4図(a)、(b)はビットシフト装置の回路図、 第5図(a)はシフトコードzO−Z3に対応する第2
のシフト回路3の動作を説明する図、第5図(b)はシ
フトコードSO〜S3に対応する第1のシフト回路4の
動作を説明する図、第6図(&)〜(d)はビットシフ
ト装置の動作遷移を説明する図、 第7図は記憶回路1からのデータの読み出し状態を示す
タイミングチャート、 第8図は各シフトステートの動作遷移を示すタイミング
チャートである。 図中、1・・・記憶回路、2・・・レジスタ回路、3.
4・・・シフト回路、5・・・レジスタ、6・・・シフ
ト数発生回路、7・・・シフト制御回路である。 特許出願人   キャノン株式会社 第 6 BHO〜B)(15 図 (b) ALO,ALI5 第6図(c) ALO−ALI5     BLO−BL153HO〜
BH15 −1,−\   −
Fig. 1 is a block diagram of the bit shift device of the embodiment, Fig. 2 is a circuit diagram of the shift circuit, Fig. 3(a) is an explanatory diagram showing the operation of the shift circuit, and Fig. 3(b) is a 4-bit shifter. 4(a) and 4(b) are circuit diagrams of the bit shift device, and FIG. 5(a) is a diagram showing the operation of bit shifters 61 to 76.
FIG. 5(b) is a diagram explaining the operation of the first shift circuit 4 corresponding to shift codes SO to S3, and FIGS. 6(&) to (d) are diagrams explaining the operation of the first shift circuit 3. FIG. 7 is a timing chart showing the state of reading data from the memory circuit 1. FIG. 8 is a timing chart showing the operation transition of each shift state. In the figure, 1... memory circuit, 2... register circuit, 3.
4... Shift circuit, 5... Register, 6... Shift number generation circuit, 7... Shift control circuit. Patent applicant: Canon Corporation No. 6 BHO~B) (15 Figure (b) ALO, ALI5 Figure 6 (c) ALO-ALI5 BLO-BL153HO~
BH15 -1,-\-

Claims (2)

【特許請求の範囲】[Claims] (1)nビツトデータの系列をシーケンシヤルに保持す
るバツフア手段と、シフト数Sに従つて第1及び第2の
ビツトシフト手段の出力するデータビツトをSビツトパ
ラレルシフトする第1のビツトシフト手段と、前記シフ
ト数Sを累積演算して演算結果のオーバフローと残りの
シフト数Zを出力するNビツト(n=2^N)の累積演
算手段と、前記累積演算手段出力の残りのシフト数Zに
従つて前記バツフア手段の保持する第1及び第2のnビ
ツトデータをZビツトパラレルシフトする第2のビツト
シフト手段と、前記累積演算手段出力のオーバフローに
従つて前記第2のビツトシフト手段に入力するnビツト
のデータ系列をnビツト分更新する入力データ更新手段
を備え、連続して入力するnビツトデータの系列からm
ビツトシフトしたnビツトデータの系列を得ることを特
徴とするビツトシフト装置。
(1) Buffer means for sequentially holding a series of n-bit data; first bit shift means for parallel-shifting the data bits output from the first and second bit shift means by S bits according to the number of shifts S; an N-bit (n=2^N) cumulative calculation means for cumulatively calculating the number of shifts S and outputting the overflow of the calculation result and the remaining number of shifts Z; and according to the remaining number of shifts Z output from the cumulative calculation means. a second bit shift means for parallel shifting the first and second n-bit data held by the buffer means by Z bits; and a second bit shift means for parallel shifting the first and second n-bit data held by the buffer means; It is equipped with an input data updating means for updating the data series by n bits, and it is possible to update the data series by n bits.
A bit shift device characterized in that it obtains a bit-shifted series of n-bit data.
(2)累積演算手段はシフト数Sを累積加算して加算結
果のキヤリーと余りのシフト数Zを出力することを特徴
とする特許請求の範囲第1項記載のビツトシフト装置。
(2) The bit shift device according to claim 1, wherein the cumulative calculation means cumulatively adds the shift number S and outputs a carry and a remainder shift number Z as a result of the addition.
JP60276002A 1985-12-10 1985-12-10 Bit shift device Expired - Fee Related JPH0799492B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60276002A JPH0799492B2 (en) 1985-12-10 1985-12-10 Bit shift device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60276002A JPH0799492B2 (en) 1985-12-10 1985-12-10 Bit shift device

Publications (2)

Publication Number Publication Date
JPS62135932A true JPS62135932A (en) 1987-06-18
JPH0799492B2 JPH0799492B2 (en) 1995-10-25

Family

ID=17563405

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60276002A Expired - Fee Related JPH0799492B2 (en) 1985-12-10 1985-12-10 Bit shift device

Country Status (1)

Country Link
JP (1) JPH0799492B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62256035A (en) * 1986-02-24 1987-11-07 システム・デイベロツプメント・コ−ポレ−シヨン Shift mechanism for program control in program unit having variable data bus range
JPH01131920A (en) * 1987-11-17 1989-05-24 Nec Corp Parallel-parallel conversion circuit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62256035A (en) * 1986-02-24 1987-11-07 システム・デイベロツプメント・コ−ポレ−シヨン Shift mechanism for program control in program unit having variable data bus range
JPH0679268B2 (en) * 1986-02-24 1994-10-05 システム・デイベロツプメント・コ−ポレ−シヨン Program-controlled shift mechanism in a programmer with variable data bus width.
JPH01131920A (en) * 1987-11-17 1989-05-24 Nec Corp Parallel-parallel conversion circuit

Also Published As

Publication number Publication date
JPH0799492B2 (en) 1995-10-25

Similar Documents

Publication Publication Date Title
US4472788A (en) Shift circuit having a plurality of cascade-connected data selectors
US5742805A (en) Method and apparatus for a single history register based branch predictor in a superscalar microprocessor
US20050289323A1 (en) Barrel shifter for a microprocessor
US4759021A (en) Test pattern generator
JPS62135932A (en) Bit shifting device
US5010509A (en) Accumulator for complex numbers
EP0465847A2 (en) Memory access control having commonly shared pipeline structure
JPH0661871A (en) Parallel serial data conversion circuit
US5761266A (en) Shifter circuit that emulates a barrel shifter
JPS5962950A (en) Shift device
SU1341641A2 (en) Memory
JPS61249139A (en) Microprogram controller
US5815098A (en) Circuit and method for efficiently expanding compressed data stored in memory
JPS584449A (en) Instruction buffer control system
JPS592584Y2 (en) Microprogram expansion test equipment
JPH0363816A (en) Bit retriever
JPH0347513B2 (en)
JPS58222348A (en) Information processor
JPH0253820B2 (en)
JPH0789620B2 (en) Data decoding device
JPH0566922A (en) Decimal arithmetic circuit
JPH04257921A (en) Floating-point computing element
JPS6116363A (en) Vector data processor
JPS60178534A (en) Data processing system
JPH02245861A (en) Data transfer method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees