JP2563519B2 - Shift circuit - Google Patents

Shift circuit

Info

Publication number
JP2563519B2
JP2563519B2 JP63248133A JP24813388A JP2563519B2 JP 2563519 B2 JP2563519 B2 JP 2563519B2 JP 63248133 A JP63248133 A JP 63248133A JP 24813388 A JP24813388 A JP 24813388A JP 2563519 B2 JP2563519 B2 JP 2563519B2
Authority
JP
Japan
Prior art keywords
signal line
input signal
shift
unit cell
basic
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 - Lifetime
Application number
JP63248133A
Other languages
Japanese (ja)
Other versions
JPH0296222A (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.)
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 JP63248133A priority Critical patent/JP2563519B2/en
Publication of JPH0296222A publication Critical patent/JPH0296222A/en
Application granted granted Critical
Publication of JP2563519B2 publication Critical patent/JP2563519B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/76Arrangements for rearranging, permuting or selecting data according to predetermined rules, independently of the content of the data
    • G06F7/768Data position reversal, e.g. bit reversal, byte swapping

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明はシフト回路に関するものであり、特にシフト
データ,被シフトデータが2の補数表現で表わされ、被
シフトデータのシフト数の多い、正方向,負方向の両方
向へのシフト機能を有し、ビット逆順機能を有する高速
のシフト回路を1チップの集積回路で実現するのに適し
ている。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a shift circuit, and in particular, shift data and shifted data are represented by a two's complement representation, and the shift data has a large number of shifts and the forward direction. , It is suitable for realizing a high-speed shift circuit having a negative-direction shift function and a bit reverse order function with a one-chip integrated circuit.

従来の技術 従来、この種のシフト回路はトランジスタのマトリッ
クスによる構成であった。従来のシフト回路の一例を第
4図に示す。第4図のシフト回路は、被シフトデータが
8ビット、シフト制御信号が9ビット、出力が8ビット
のビット逆順機能をもつトランジスタマトリックス構成
によるシフト回路である。第4図で101から108は被シフ
トデータ入力信号線、121から129はシフト制御信号線、
111〜118は出力信号線である。
2. Description of the Related Art Conventionally, this type of shift circuit has a structure of a matrix of transistors. An example of a conventional shift circuit is shown in FIG. The shift circuit of FIG. 4 is a shift circuit having a transistor matrix configuration having a bit reverse order function of 8 bits for data to be shifted, 9 bits for shift control signal, and 8 bits for output. In FIG. 4, 101 to 108 are shifted data input signal lines, 121 to 129 are shift control signal lines,
111 to 118 are output signal lines.

以下、この回路の動作について説明する。被シフトデ
ータ入力信号線101〜108には2の補数表現の被シフトデ
ータが入力される。シフトデータはデコード回路(図示
しない)に入力され、デコードされて、シフト制御信号
線121〜129の一本が選択される。前記デコード回路はシ
フトデータをデコードしてシフト制御信号線の一本を選
択する機能をもつ。シフト制御信号線121〜129におい
て、シフト制御信号線121〜124が選択された場合は正方
向のシフトを、シフト制御信号線125が選択された場合
は0ビットのシフトを、シフト制御信号線126〜128が選
択された場合は負方向のシフトを、そして、シフト制御
信号線129が選択された場合はビット逆順を行う。シフ
ト制御信号線121〜129の一本が選択されると、選択され
たシフト制御信号線に接続されるトランジスタが導通し
て、出力信号線111〜118に被シフトデータ入力信号線10
1〜108の被シフトデータをシフトまたはビット逆順して
出力する。第4図のシフト回路では、出力信号線111か
ら同118のデータは2の補数データであり、正方向のシ
フトでは下位ビットは0になり、負方向のシフトでは上
位ビットは符号ビット(被シフトデータ信号線108のデ
ータ)になる。
Hereinafter, the operation of this circuit will be described. To the shifted data input signal lines 101 to 108, shifted data represented by two's complement is input. The shift data is input to a decoding circuit (not shown) and is decoded to select one of the shift control signal lines 121 to 129. The decoding circuit has a function of decoding shift data and selecting one shift control signal line. In the shift control signal lines 121 to 129, when the shift control signal lines 121 to 124 are selected, a positive shift is performed, and when the shift control signal line 125 is selected, a 0 bit shift is performed, and the shift control signal line 126. If .about.128 is selected, negative shift is performed, and if the shift control signal line 129 is selected, reverse bit order is performed. When one of the shift control signal lines 121 to 129 is selected, the transistor connected to the selected shift control signal line becomes conductive and the output data lines 111 to 118 are connected to the shifted data input signal line 10.
The shifted data of 1 to 108 is shifted or output in bit reverse order. In the shift circuit of FIG. 4, the data on the output signal lines 111 to 118 is 2's complement data, and the lower bit is 0 in the positive shift, and the upper bit is the sign bit (shifted bit) in the negative shift. Data on the data signal line 108).

発明が解決しようとする課題 このような従来の構成では、被シフトデータのビット
数とシフトデータのビット数(シフト制御信号のビット
数)が増えると、トランジスタマトリックスのトランジ
スタの数が被シフトデータのビット数とシフトデータの
ビット数の積に比例して決まるために、非常に大きな回
路規模になる。さらに、1本の被シフトデータ入力信号
線、1本の出力信号線に接続されるトランジスタの個数
が多くなり、それぞれの入出力信号線に寄生するトラン
ジスタのソース容量,ドレイン容量(MOSトランジスタ
の場合)が大きく、回路の動作速度が遅くなる。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention In such a conventional configuration, when the number of bits of the shifted data and the number of bits of the shift data (the number of bits of the shift control signal) increase, the number of transistors in the transistor matrix becomes larger than that of the shifted data. Since it is determined in proportion to the product of the number of bits and the number of bits of shift data, the circuit scale becomes very large. Furthermore, the number of transistors connected to one shifted data input signal line and one output signal line increases, and the source capacitance and drain capacitance of the transistor parasitic on each input / output signal line (in the case of a MOS transistor, ) Is large, the operation speed of the circuit becomes slow.

また、シフトデータをデコードし、シフト制御信号を
出力するデコード回路についても、シフトデータのビッ
ト数が増えると回路規模が2のべき乗に比例して増大す
る。
Also, in the decoding circuit that decodes shift data and outputs a shift control signal, the circuit scale increases in proportion to a power of 2 as the number of bits of shift data increases.

集積回路で第4図の回路を実現するには、入力,出
力,制御の各信号用として3層の配線が必要であり、配
線のレイアウトが難しい。トランジスタについては、ビ
ット逆順を行う、シフト制御線129に接続されるトラン
ジスタが、他のシフトを行うトランジスタのアレーの規
則と異なるため、レイアウトが難しい。
In order to realize the circuit of FIG. 4 with an integrated circuit, wiring of three layers is necessary for each signal of input, output, and control, and the wiring layout is difficult. Regarding the transistors, the layout is difficult because the transistors connected to the shift control line 129 that perform the bit reverse order differ from the rules of the array of transistors that perform other shifts.

本発明はこのような問題点を解決するもので、回路構
成が簡素で、高速動作が可能な正方向,負方向の両方向
へのシフト機能を有し、両方向へのシフト機能を利用し
てビット逆順を行うシフト回路を提供するものである。
The present invention solves such a problem, has a simple circuit configuration, and has a shift function in both positive and negative directions capable of high-speed operation. A shift circuit that performs reverse order is provided.

課題を解決するための手段 本発明のシフト回路は、3入力1出力データセレクタ
を基本セルとし、前記基本セルを被シフトデータのビッ
ト数に基づく個数に並べて単位セル列を構成し、前記単
位セル列をシフトデータを2の補数表現した場合のビッ
ト数より1段少なく設け、前記基本セルの出力を次段の
基本セルの入力に結合させた回路構成の、正方向,負方
向の両方向へのシフト機能を有し、前記両方向へのシフ
ト機能を利用してビット逆順を行うシフト回路である。
Means for Solving the Problems In a shift circuit of the present invention, a 3-input 1-output data selector is used as a basic cell, and the basic cells are arranged in a number based on the number of bits of data to be shifted to form a unit cell row. The column is provided with one stage less than the number of bits when the shift data is represented by 2's complement, and the circuit configuration in which the output of the basic cell is coupled to the input of the basic cell of the next stage is provided in both positive and negative directions. A shift circuit having a shift function and performing a reverse bit order by utilizing the shift function in both directions.

作用 この構成により、3入力1出力データセレクタの基本
セルのみで構成され、回路構成が簡素で、高速動作が可
能な正方形,負方向の両方向へのシフト機能を有し、ビ
ット逆順機能を有するシフト回路を実現できる。
Operation With this configuration, the shift circuit is configured with only the basic cells of the 3-input 1-output data selector, has a simple circuit configuration, has a shift function in both the square direction and the negative direction that can operate at high speed, and has a bit reverse order function. A circuit can be realized.

実施例 本発明のシフト回路を一実施例を用いて説明する。第
1図は、シフト回路を構成する3入力1出力データセレ
クタの基本セルの例であり、201,202,203はAND回路、20
4はOR回路、205,206,207は入力信号線、208,209,210は
制御信号線、211は出力信号線である。制御信号線208,2
09,210にはいずれか1本がハイレベル(以下、2進演算
正論理則にしたがい、ハイレベルを“1"、ロウレベルを
“0"と表わす)の信号が入力される。制御信号線208が
“1"のときには入力信号線205の信号が選択され、出力
信号線211に出力される。制御信号線209が“1"のときに
は入力信号線206の信号が選択され、出力信号線211に出
力される。制御信号線210が“1"のときには入力信号線2
07の信号が選択され、出力信号線211に出力される。
Embodiment A shift circuit according to the present invention will be described with reference to an embodiment. FIG. 1 is an example of a basic cell of a 3-input 1-output data selector that constitutes a shift circuit. 201, 202, 203 are AND circuits, 20
4 is an OR circuit, 205, 206 and 207 are input signal lines, 208, 209 and 210 are control signal lines, and 211 is an output signal line. Control signal line 208,2
A high level signal (hereinafter, a high level is represented by "1" and a low level is represented by "0" according to the binary logic positive logic rule) is input to any one of 09 and 210. When the control signal line 208 is “1”, the signal of the input signal line 205 is selected and output to the output signal line 211. When the control signal line 209 is “1”, the signal of the input signal line 206 is selected and output to the output signal line 211. Input signal line 2 when control signal line 210 is "1"
The signal 07 is selected and output to the output signal line 211.

第2図は、第1図に示した基本セルにより構成される
8入力,8出力シフト回路の一実施例である。
FIG. 2 shows an embodiment of an 8-input, 8-output shift circuit composed of the basic cells shown in FIG.

なお、第1図に示す入力信号線205を第1の入力信号
線とし、入力信号線206を第2の入力信号線とし、入力
信号線207を第3の入力信号線とする。
The input signal line 205 shown in FIG. 1 is the first input signal line, the input signal line 206 is the second input signal line, and the input signal line 207 is the third input signal line.

第2図に示すように3入力1出力の基本セルを8個並
べて単位セル列とし、単位セル列の出力信号線を次段の
単位セル列の入力信号線に結合させ3段の単位セル列を
構成している。
As shown in FIG. 2, eight basic cells each having three inputs and one output are arranged to form a unit cell row, and an output signal line of the unit cell row is connected to an input signal line of the unit cell row of the next stage to form a unit cell row of three stages. Are configured.

そして、1段目の単位セル列の1番目の基本セルは、
1ビット目の被シフトデータ入力信号線308を第1の入
力信号線に結合させ、8番目の基本セルは接地電極を第
3の入力信号線に結合させている。
Then, the first basic cell of the unit cell row in the first row is
The first-bit shifted data input signal line 308 is coupled to the first input signal line, and the eighth basic cell has the ground electrode coupled to the third input signal line.

そして、被シフトデータ入力信号線308が結合されて
いる1段目の単位セル列の1番目の基本セルの第1の入
力信号線、及び、被シフトデータ入力信号線301が結合
されている1段目の単位セル列の8番目の基本セルの第
3の入力信号線を除く1〜8番目の基本セルの入力信号
線のうち、2番目の基本セルについては、第1、第2、
第3の入力信号線に被シフトデータ入力信号線308、30
7、306をそれぞれ結合させている。3番目の基本セルに
ついては、第1、第2、第3の入力信号線に被シフトデ
ータ入力信号線307、306、305をそれぞれ結合させてい
る。3〜7番目の基本セルについても同様である。ま
た、1番目の基本セルについては、第1、第2、第3の
入力信号線に被シフトデータ入力信号線308、308、307
をそれぞれ結合させ、8番目の基本セルについては、第
1、第2、第3の入力信号線に被シフトデータ入力信号
線302、301、接地電極をそれぞれ結合させている。
Then, the first input signal line of the first basic cell of the unit cell row of the first stage to which the shifted data input signal line 308 is coupled and the shifted data input signal line 301 are coupled to 1 Of the input signal lines of the first to eighth basic cells, excluding the third input signal line of the eighth basic cell of the unit cell row in the tier, the first, second, and
Shifted data input signal lines 308 and 30 are connected to the third input signal line.
7 and 306 are connected respectively. In the third basic cell, the shifted data input signal lines 307, 306, 305 are coupled to the first, second, and third input signal lines, respectively. The same applies to the third to seventh basic cells. For the first basic cell, the shifted data input signal lines 308, 308, 307 are connected to the first, second and third input signal lines.
In the eighth basic cell, the shifted data input signal lines 302 and 301 and the ground electrode are connected to the first, second and third input signal lines, respectively.

そして、2段目の単位セル列の1〜2番目の基本セル
は、第1の入力信号線に1段目の1番目の基本セルの出
力信号線を結合させ、2段目の単位セル列の7から8番
目の基本セルは、第3の入力信号線に接地電極を結合さ
せている。
The 1st to 2nd basic cells of the unit cell row of the 2nd stage are formed by connecting the output signal lines of the 1st basic cell of the 1st stage to the 1st input signal line. In the 7th to 8th basic cells, the ground electrode is coupled to the third input signal line.

また、3段目の単位セル列の1から4番目の基本セル
は、第1の入力信号線に2段目の1番目の基本セルの出
力信号線を結合させ、3段目の単位セル列の5〜8番目
の基本セルは、第3の入力信号線に接地電極を結合させ
ている。
Further, the first to fourth basic cells in the unit cell row in the third stage are formed by connecting the output signal lines of the first basic cells in the second stage to the first input signal lines. In the fifth to eighth basic cells of No. 3, the ground electrode is coupled to the third input signal line.

そして、1段目を除く(2段目〜3段目の)単位セル
列のうち、2段目の1〜2(=2(x-1))番目、3段目の
1〜4(=2(3-1))番目の基本セルの第1の入力信号
線、及び、2段目の7(=23−2(2-1)+1)から8(=
23)番目、3段目の5(=23−2(3-1)+1)から8(=
23)番目の基本セルの第3の入力信号線を除く基本セル
の入力信号線については、次のように前段の基本セルの
出力信号線を結合させている。
Then, among the unit cell columns excluding the first stage (second stage to third stage), the second stage 1-2 (= 2 (x-1) ) third stage 1-4 (= The first input signal line of the 2 (3-1) ) th basic cell and 7 (= 2 3 −2 (2-1) +1) to 8 (=
2 3 ) th, 3rd stage 5 (= 2 3 -2 (3-1) +1) to 8 (=
Regarding the input signal lines of the basic cells except the third input signal line of the 2 3 ) th basic cell, the output signal lines of the preceding basic cells are combined as follows.

具体例を挙げて説明すると、2段目の単位セル列の3
番目の基本セルについては、第1、第2、第3の入力信
号線に、1段目の単位セル列の2番目、3番目、4番目
の基本セルの出力信号線をそれぞれ結合させている。
Explaining with a specific example, 3 of the unit cell row in the second stage
Regarding the second basic cell, the output signal lines of the second, third and fourth basic cells of the unit cell row of the first stage are respectively coupled to the first, second and third input signal lines. .

そして、各単位セル列に5本の制御信号線がそれぞれ
接続され、制御信号線は、以下のように接続されてい
る。
Then, five control signal lines are connected to each unit cell row, and the control signal lines are connected as follows.

3段目の単位セル列を例に挙げて説明すると、単位セ
ル列の基本セルを8(=23)ビット単位で基本セル群と
するとそれぞれの単位セル列の基本セル群の1番目から
4{=(1/2)・23}番目の基本セルに、制御信号線32
1、323、324が接続され、残りの基本セル(5番目から
8番目の基本セル)には、制御信号線322、323、325が
接続されている。そして、制御信号線321または322が選
択されると基本セルは第1の入力信号線を選択し、制御
信号線323が選択されると第2の入力信号線を選択し、
制御信号324または325が選択されると第3の入力信号線
を選択する構成になっている。
The unit cell sequence in the third row will be described as an example. If the basic cells of the unit cell sequence are set to a basic cell group in units of 8 (= 2 3 ) bits, the first to fourth cells of the basic cell group of each unit cell sequence will be described. {= (1/2) · 2 3} to th basic cell, the control signal line 32
1, 323 and 324 are connected, and control signal lines 322, 323 and 325 are connected to the remaining basic cells (5th to 8th basic cells). Then, when the control signal line 321 or 322 is selected, the basic cell selects the first input signal line, and when the control signal line 323 is selected, the second input signal line is selected.
When the control signal 324 or 325 is selected, the third input signal line is selected.

そして、上記構成のように構成されるシフト回路で
は、MSBのビットを基準にすると、正方向7ビットから
負方向7ビット、つまり+7ビットから−7ビットのシ
フトが可能であり、負方向へのシフトの場合には、入力
データのMSBのビットの符号ビットが負方向へのシフト
により空になる上位ビットに入る。正方向へのシフトの
場合には、正方向へのシフトにより空になる下位ビット
に“0"が入る。
The shift circuit configured as described above can shift from 7 bits in the positive direction to 7 bits in the negative direction, that is, from +7 bits to -7 bits based on the MSB bit, and shifts in the negative direction. In the case of shift, the sign bit of the MSB bit of the input data enters the upper bit which becomes empty by the negative shift. In the case of positive shift, "0" is put in the lower bit that is emptied by positive shift.

第2図で301〜308は被シフトデータ入力信号線、311
〜325はシフト制御信号線、331〜338は出力信号線であ
る。
In FIG. 2, 301 to 308 are shifted data input signal lines, 311
325 are shift control signal lines, and 331 to 338 are output signal lines.

なお、上記実施例では、被シフトデータ入力信号線30
8を1番目の被シフトデータ入力信号線とし、被シフト
データ入力信号線307を2番目の被シフトデータ入力信
号線とし、....、被シフトデータ入力信号線301を8番
目の被シフトデータ入力信号線としている。
In the above embodiment, the shifted data input signal line 30
8 is the first shifted data input signal line, the shifted data input signal line 307 is the second shifted data input signal line, ..., and the shifted data input signal line 301 is the eighth shifted data input signal line. It is used as a data input signal line.

第2図の基本セルは第1図に示した3入力1出力デー
タセレクタであり、入出力の位置は一致している。基本
セルを8個横方向に並べた第1段の単位セル列は+1ビ
ット,0ビット,−1ビットのシフト、および隣り合う2
ビットについてビットの入れ換えを行う。第2段の単位
セル列は+2ビット,0ビット,−2ビットのシフト、お
よび連続した4ビットについて、上位2ビットと下位2
ビットの入れ換えを行う。第3段の単位セル列は+4ビ
ット,0ビット,−4ビットのシフト、および連続した8
ビットについて、上位4ビットと下位4ビットの入れ換
えを行う。各段の単位セル列に接続される各5本のシフ
ト制御信号線311〜315,316〜320,321〜325は、シフトデ
ータをデコードするデコード回路(図示しない)によ
り、各5本のうち1本または2本が選択される。第1段
の単位セル列では、シフト制御信号線311,312が選択さ
れると−1ビットのシフト、シフト制御信号線313が選
択されると0ビットのシフト、シフト制御信号線314,31
5が選択されると+1ビットのシフトを行う。また、シ
フト制御信号線312,315が選択されると隣り合う2ビッ
トについてビットの入れ換えを行う。第2段の単位セル
列では、シフト制御信号線316,317が選択されると−2
ビットのシフト、シフト制御信号線318が選択されると
0ビットのシフト、シフト制御信号線319,320が選択さ
れると+2ビットのシフトを行う。またシフト制御信号
線317,320が選択されると連続した4ビットについて、
上位2ビットと下位2ビットの入れ換えを行う。第3段
の単位セル列では、シフト制御信号線321,322が選択さ
れると−4ビットのシフト、シフト制御信号線323が選
択されると0ビットのシフト、シフト制御信号線324,32
5が選択されると+4ビットのシフトを行う。またシフ
ト制御信号線322,325が選択されると、第2段の単位セ
ル列の8ビット出力について、上位4ビットと下位4ビ
ットの入れ換えを行う。第2図のシフト回路では、ビッ
ト逆順動作時には、シフト制御信号線312,315,317,320,
322,325が選択され、シフト動作時には、シフト制御信
号線311と312または313または314と315が第1段の単位
セル列のシフト制御に選択され、シフト制御信号線316
と317または318または319と320が第2段の単位セル列の
シフト制御に選択され、シフト制御信号線321と322また
は323または324と325が第3段の単位セル列のシフト制
御に選択される。第2図のシフト回路では、シフト動作
時には各段の単位セル列でのシフト数の総和のシフト数
のシフト結果が出力信号線331〜338に出力される。以上
のように第2図のシフト回路は、+7ビットから−7ビ
ットの間の任意のビットのシフト動作およびビット逆順
動作が可能である。
The basic cell in FIG. 2 is the 3-input 1-output data selector shown in FIG. 1, and the input / output positions are the same. The unit cell row of the first stage in which eight basic cells are arranged in the horizontal direction is shifted by +1 bit, 0 bit, −1 bit, and adjacent two.
Bits are swapped. The unit cell row in the second stage has +2 bits, 0 bits, -2 bits of shift, and continuous 4 bits, with the upper 2 bits and the lower 2 bits.
Swap bits. The unit cell row in the third stage is +4 bits, 0 bits, -4 bits shift, and 8 consecutive
Regarding the bits, the upper 4 bits and the lower 4 bits are exchanged. Each of the five shift control signal lines 311 to 315, 316 to 320, 321 to 325 connected to the unit cell row of each stage is one or two of the five shift control signal lines 311 to 315, 316 to 320, 321 to 325 by a decoding circuit (not shown) for decoding shift data. Is selected. In the unit cell row of the first stage, if the shift control signal lines 311 and 312 are selected, -1 bit shift is performed, and if the shift control signal line 313 is selected, 0 bit shift and shift control signal lines 314 and 31 are performed.
When 5 is selected, +1 bit shift is performed. Further, when the shift control signal lines 312 and 315 are selected, the bits of the adjacent two bits are exchanged. When the shift control signal lines 316 and 317 are selected in the unit cell row of the second stage, -2
When the bit shift / shift control signal line 318 is selected, 0 bit shift is performed, and when the shift control signal lines 319 and 320 are selected, +2 bit shift is performed. Also, when the shift control signal lines 317 and 320 are selected, for consecutive 4 bits,
The upper 2 bits and the lower 2 bits are exchanged. In the unit cell row of the third stage, when the shift control signal lines 321 and 322 are selected, -4 bit shift is performed, and when the shift control signal line 323 is selected, 0 bit shift and shift control signal lines 324 and 32 are performed.
When 5 is selected, +4 bit shift is performed. When the shift control signal lines 322 and 325 are selected, the upper 4 bits and the lower 4 bits of the 8-bit output of the unit cell row in the second stage are switched. In the shift circuit of FIG. 2, the shift control signal lines 312, 315, 317, 320,
322 and 325 are selected, and during the shift operation, the shift control signal lines 311 and 312 or 313 or 314 and 315 are selected for the shift control of the unit cell row of the first stage, and the shift control signal line 316 is selected.
And 317 or 318 or 319 and 320 are selected for shift control of the second unit cell row, and shift control signal lines 321 and 322 or 323 or 324 and 325 are selected for shift control of the third unit cell row. It In the shift circuit of FIG. 2, during the shift operation, the shift result of the total number of shifts in the unit cell row of each stage is output to the output signal lines 331 to 338. As described above, the shift circuit shown in FIG. 2 can perform the shift operation of any bit between +7 bit and -7 bit and the bit reverse order operation.

第3図は第2図のシフト回路でビット逆順動作を行っ
た場合の各段の単位セル列の入出力信号の状態を示す状
態図であり、401〜404は単位セル列ビット状態である。
401は第2図の被シフトデータ入力信号線の各信号線の
状態を示している。402は第2図の第1段の単位セル列
の出力の状態を、403は第2図の第2段の単位セル列の
出力の状態を示している。404は第2図の第3段の単位
セル列の出力、つまり出力信号線331〜338の状態を示し
ている。第3図の状態図の401,402間、つまり第2図の
第1段の単位セル列では、+1ビットのシフト機能と−
1ビットのシフト機能の組み合わせにより、隣り合う2
ビットについてのビットの入れ換えを行う。第3図の状
態図の402,403間、つまり第2図の第2段の単位セル列
では、+2ビットのシフト機能と−2ビットのシフト機
能を組み合わせることにより、連続した4ビットについ
て、上位2ビットと下位2ビットの入れ換えを行う。第
3図の状態図の403,404間、つまり第2図の単位セル列
では、+4ビットのシフト機能と−4ビットのシフト機
能を組み合わせることにより、連続した8ビットについ
て、上位4ビットと下位4ビットの入れ換えを行う。以
上のシフト機能を組み合わせて用いることで、単位セル
列ビット状態404に示すようにビット逆順機能が実現で
きる。
FIG. 3 is a state diagram showing the states of the input / output signals of the unit cell row of each stage when the bit reverse operation is performed in the shift circuit of FIG. 2, and 401 to 404 are the unit cell row bit states.
Reference numeral 401 shows the state of each signal line of the shifted data input signal line in FIG. Reference numeral 402 shows the output state of the unit cell row of the first stage of FIG. 2, and 403 shows the output state of the unit cell row of the second stage of FIG. Reference numeral 404 indicates the output of the unit cell row at the third stage in FIG. 2, that is, the state of the output signal lines 331 to 338. Between 401 and 402 in the state diagram of FIG. 3, that is, in the first unit cell row of FIG. 2, a shift function of +1 bit and −
Adjacent two by the combination of 1-bit shift function
Swap bits with respect to each other. Between 402 and 403 in the state diagram of FIG. 3, that is, in the unit cell row in the second stage of FIG. 2, by combining the +2 bit shift function and the −2 bit shift function, the upper 2 bits of the continuous 4 bits are combined. And the lower 2 bits are exchanged. Between 403 and 404 in the state diagram of FIG. 3, that is, in the unit cell string of FIG. 2, by combining the +4 bit shift function and the -4 bit shift function, the upper 4 bits and the lower 4 bits can be set for consecutive 8 bits. Replace. By using the above shift functions in combination, the bit reverse order function can be realized as shown in the unit cell column bit state 404.

なお、上記実施例では、8ビットの被シフトデータを
シフトさせるシフト回路についてのみ説明したが、被シ
フトデータが2nビットのデータであっても同様の効果が
得られるのは言うまでもない。
In the above embodiment, only the shift circuit for shifting the 8-bit shifted data has been described, but it goes without saying that the same effect can be obtained even if the shifted data is 2 n- bit data.

発明の効果 本発明のシフト回路によれば、シフト回路を基本セル
のみにより構成でき、基本セルの接続もアレー接続が可
能であり、設計が効率良くでき、しかも基本セル数段で
シフト機能,ビット逆順機能が実現できるため、高速で
ある。また、シフト回路を制御する。シフトデータをデ
コードする回路についても、トランジスタのマトリック
ス構成のシフト回路のデコード回路より回路の簡素化が
可能であり、半導体集積化に適している等の効果があ
る。
EFFECTS OF THE INVENTION According to the shift circuit of the present invention, the shift circuit can be configured only by the basic cells, the basic cells can be connected in array, and the design can be efficiently performed. It is fast because it can implement the reverse order function. It also controls the shift circuit. Also in the circuit for decoding the shift data, the circuit can be simplified as compared with the decode circuit of the shift circuit having a matrix structure of transistors, and there is an effect that it is suitable for semiconductor integration.

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

第1図は本発明の一実施例のシフト回路を構成する基本
セル回路図、第2図は本発明の一実施例の8入力8出力
シフト回路構成図、第3図は第2図のシフト回路でビッ
ト逆順動作を行った場合の状態図、第4図は従来例の8
入力8出力シフト回路の構成図である。 101〜108……被シフトデータ入力信号線、111〜118……
出力信号線、121〜129……シフト制御信号線、201〜203
……AND回路、204……OR回路、205〜207……入力信号
線、208〜210……制御信号線、211……出力信号線、301
〜308……被シフトデータ入力信号線、311〜325……シ
フト制御信号線、331〜338……出力信号線、401〜404…
…単位セル列ビット状態。
FIG. 1 is a basic cell circuit diagram which constitutes a shift circuit according to an embodiment of the present invention, FIG. 2 is a configuration diagram of an 8-input 8-output shift circuit according to an embodiment of the present invention, and FIG. 3 is a shift shown in FIG. FIG. 4 is a state diagram when the circuit performs the bit reverse order operation, and FIG.
It is a block diagram of an input 8-output shift circuit. 101 to 108 …… Shifted data input signal line, 111 to 118 ……
Output signal lines, 121 to 129 ...... Shift control signal lines, 201 to 203
…… AND circuit, 204 …… OR circuit, 205 to 207 …… input signal line, 208 to 210 …… control signal line, 211 …… output signal line, 301
~ 308 …… Shifted data input signal line, 311 ~ 325 …… Shift control signal line, 331 ~ 338 …… Output signal line, 401 ~ 404…
... Unit cell column bit state.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】2n(nは2以上の自然数)ビットの被シフ
トデータをシフトさせるシフト回路において、 3入力1出力の基本セルを2n個並べて単位セル列とし、
単位セル列の出力信号線を次段の単位セル列の入力信号
線に結合させn段の単位セル列を構成し、 1段目の単位セル列の1番目の基本セルは、1ビット目
の被シフトデータ入力信号線を第1の入力信号線に結合
させ、2n番目の基本セルは接地電極を第3の入力信号線
に結合させ、 1段目の単位セル列の前記1番目の基本セルの第1の入
力信号線、及び、前記2n番目の基本セルの第3の入力信
号線を除くy(yは2n以下の自然数)番目の基本セルの
入力信号線については、第1、第2、第3の入力信号線
に(y−1)、y、(y+1)ビット目の被シフトデー
タ入力信号線をそれぞれ結合させ、 x(xは2以上であってx≦nを満たす自然数)段目の
単位セル列の1から2(x-1)番目の基本セルは、第1の入
力信号線に前段の1番目の基本セルの出力信号線を結合
させ、 x段目の単位セル列の(2n−2(x-1)+1)から2n番目の
基本セルは、第3の入力信号線に接地電極を結合させ、 前記1段目を除く単位セル列のうち、前記1から2(x-1)
番目の基本セルの第1の入力信号線、及び、前記(2n
2(x-1)+)から2n番目の基本セルの第3の入力信号線を
除くy番目の基本セルの入力信号線については、第1、
第2、第3の入力信号線に前段の(y−2(x-1))、y、
(y+2(x-1))番目の基本セルの出力信号線をそれぞれ
結合させ、 前記単位セル列に5本の制御信号線がそれぞれ接続さ
れ、x段目の単位セル列の基本セルを2xビット単位で基
本セル群とするとそれぞれの単位セル列の基本セル群の
1番目から(1/2)・2x番目の基本セルに、第1、第
3、第4の制御信号線が接続され、残りの基本セルに
は、第2、第3、第5の制御信号線が接続され、 第1または第2の制御信号線が選択されると基本セルは
第1の入力信号線を選択し、第3の制御信号線が選択さ
れると第2の入力信号線を選択し、第4または第5の制
御信号が選択される第3の入力信号線を選択することを
特徴とするシフト回路。
1. A shift circuit for shifting 2 n (n is a natural number of 2 or more) bits of shifted data, 2 n basic cells each having 3 inputs and 1 output are arranged to form a unit cell row,
The output signal line of the unit cell row is connected to the input signal line of the unit cell row of the next stage to form an n-stage unit cell row, and the first basic cell of the first-stage unit cell row is the first bit. The shifted data input signal line is connected to the first input signal line, the 2 nth basic cell is connected to the ground electrode to the third input signal line, and the first basic cell of the unit cell row of the first stage is connected. a first input signal line of the cell, and, for an input signal line of the 2 n th third y except input signal lines (y is a natural number of less than 2 n) th basic cell of the basic cell, the first , (Y−1), y, and (y + 1) th bit shifted data input signal lines are respectively coupled to the second and third input signal lines, and x (x is 2 or more and x ≦ n is satisfied. The 1st to 2 (x-1) th basic cells in the unit cell row of the ( natural number) stage are connected to the first input signal line of the first basic cell of the preceding stage. The output signal line is coupled, and the (2 n −2 (x−1) +1) to 2 n th basic cell of the unit cell row of the x- th stage is coupled with the ground electrode to the third input signal line, 1 to 2 (x-1) of the unit cell row excluding the first row
The first input signal line of the th basic cell and the (2 n
The input signal line of the y-th basic cell excluding the third input signal line of the 2 n- th basic cell from 2 (x-1) +) is
The second and third input signal lines have (y-2 (x-1) ), y, and
The output signal lines of the (y + 2 (x-1) ) th basic cell are connected to each other, and five control signal lines are connected to the unit cell row, and the basic cell of the x-th unit cell row is connected to the 2x When the basic cell group is defined in bit units, the first, third, and fourth control signal lines are connected to the first to (1/2) · 2 xth basic cells of the basic cell group of each unit cell row. The second, third, and fifth control signal lines are connected to the remaining basic cells, and when the first or second control signal line is selected, the basic cell selects the first input signal line. A shift circuit characterized by selecting the second input signal line when the third control signal line is selected and selecting the third input signal line where the fourth or fifth control signal is selected. .
JP63248133A 1988-09-30 1988-09-30 Shift circuit Expired - Lifetime JP2563519B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63248133A JP2563519B2 (en) 1988-09-30 1988-09-30 Shift circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63248133A JP2563519B2 (en) 1988-09-30 1988-09-30 Shift circuit

Publications (2)

Publication Number Publication Date
JPH0296222A JPH0296222A (en) 1990-04-09
JP2563519B2 true JP2563519B2 (en) 1996-12-11

Family

ID=17173720

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63248133A Expired - Lifetime JP2563519B2 (en) 1988-09-30 1988-09-30 Shift circuit

Country Status (1)

Country Link
JP (1) JP2563519B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5404555A (en) * 1991-05-17 1995-04-04 Duosi Software Co., Ltd. Macro instruction set computer architecture

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6044695B2 (en) * 1977-08-15 1985-10-04 株式会社日立製作所 data processing equipment
JPS5469346A (en) * 1977-11-14 1979-06-04 Fujitsu Ltd Shift circuit
JPS61157936A (en) * 1984-12-28 1986-07-17 Matsushita Electric Ind Co Ltd Data shifting circuit

Also Published As

Publication number Publication date
JPH0296222A (en) 1990-04-09

Similar Documents

Publication Publication Date Title
US7191205B2 (en) Function block
US4583197A (en) Multi-stage pass transistor shifter/rotator
KR100449963B1 (en) An adder circuit and a multiplier circuit including the adder circuit
JPS5836433B2 (en) Fukusuuko no Data Gen no Senkeiji Yunjiyo O Chikan Sultame no Houhou Oyobi Ronri Kairomo
US4748584A (en) Parallel multiplier utilizing Booth's algorithm
US4495590A (en) PLA With time division multiplex feature for improved density
US6715066B1 (en) System and method for arranging bits of a data word in accordance with a mask
KR100298029B1 (en) Barrel shifter
JP2563519B2 (en) Shift circuit
US4841484A (en) Tri-state IIL gate
US7000066B1 (en) Priority encoder circuit for content addressable memory (CAM) device
JP2821393B2 (en) Semiconductor memory circuit
KR100520591B1 (en) Adder circuit and associated layout structure
JPH0222409B2 (en)
JPS6170634A (en) Shifting circuit
JPH01237823A (en) Shift circuit
JP3965620B2 (en) Storage device, storage method, and data processing system
JPH0778068A (en) Semiconductor integrated circuit
US4905175A (en) Digit-serial shifters constructed from basic cells
JP2643576B2 (en) Address generation circuit for fast Fourier transform
JP2556613B2 (en) Barrel shifter circuit
JP3251217B2 (en) Adder circuit and its layout structure
JPH09321146A (en) Designing of semiconductor integrated circuit and semiconductor integrated circuit provided by the designing
JPH0824265B2 (en) D / A converter
JP2771687B2 (en) Decoding circuit