JPH01237823A - Shift circuit - Google Patents

Shift circuit

Info

Publication number
JPH01237823A
JPH01237823A JP63063577A JP6357788A JPH01237823A JP H01237823 A JPH01237823 A JP H01237823A JP 63063577 A JP63063577 A JP 63063577A JP 6357788 A JP6357788 A JP 6357788A JP H01237823 A JPH01237823 A JP H01237823A
Authority
JP
Japan
Prior art keywords
signal line
shift
control signal
circuit
input
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.)
Pending
Application number
JP63063577A
Other languages
Japanese (ja)
Inventor
Takao Suzuki
貴雄 鈴木
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 JP63063577A priority Critical patent/JPH01237823A/en
Publication of JPH01237823A publication Critical patent/JPH01237823A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simplify circuit constitution and to perform fast shift in both positive and negative directions by setting a three-input/one-output data selector as a basic cell, and constituting a unit cell by setting the same number of those cells as that of data bits in parallel. CONSTITUTION:The basic cell of the three-input/one-output data selector comprising a shift circuit is constituted of three AND circuits, an OR circuit, control signal lines, and an output signal line. The control signal lines 108, 109, and 110 connect the basic cells arranged in a lateral direction. A high level signal is inputted to either the control signal lines 108, 109, and 110. When the control signal line 108 is '1', the signal of an input signal line 105 is selected, and is outputted to the output signal line 111. When the control signal line 109 is '1', an input signal line 106 is selected and outputted to the output signal line 111. When the control signal line 110 is '1', an input signal line 107 is selected.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、シフト回路に関するものであり、特にシフト
データ、被シフトデータが2の補数表現で表わされた、
正方向、負方向の両方向へのシフト機能を有する高速の
シフト回路を1チツプの集積回路で実現するのに適して
いる。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention relates to a shift circuit, and particularly a shift circuit in which shift data and shifted data are expressed in two's complement representation.
It is suitable for realizing a high-speed shift circuit having a shift function in both positive and negative directions with a single-chip integrated circuit.

(従来の技術) 従来、この種のシフト回路は、トランジスタのマトリッ
クスによる構成であった。従来のシフト回路の一例を第
3図に示す。第3図のシフト回路は、被シフトデータが
8ビツト、シフトデータが8ビツト、出力が8ビツトの
トランジスタマトリックスから構成されている。第3図
において、301〜308は被シフトデータ入力信号線
、311〜318は出力信号線を、321〜328はシ
フト制御信号線をそれぞれ示す。
(Prior Art) Conventionally, this type of shift circuit has been configured with a matrix of transistors. An example of a conventional shift circuit is shown in FIG. The shift circuit shown in FIG. 3 is composed of a transistor matrix having 8 bits of shifted data, 8 bits of shift data, and 8 bits of output. In FIG. 3, 301-308 are shifted data input signal lines, 311-318 are output signal lines, and 321-328 are shift control signal lines.

以下、この回路の動作について説明する。被シフトデー
タ入力信号線301〜308には、2の補数表現の被シ
フトデータが入力される。シフトデータはデコード回路
(図示しない)に入力され、デコード化されて、シフト
制御信号線321〜328の1本が選択される。前記デ
コード回路は、シフトデータをデコードしてシフト制御
信号の1つを選択する機能をもつ。シフト制御信号線3
21〜328の1本が選択されると、選択されたシフト
制御信号線に接続されるトランジスタが導通して、出力
信号線311〜318に被シフトデータ入力信号線30
1〜308の被シフトデータをシフトして出力する。第
3図のシフト回路では、出力信号線のデータは2の補数
データであり、正方向のシフトでは下位ビットは0にな
り、負方向のシフトでは上位ビットは符号ビット(被シ
フトデータ入力信号線308のデータ)になる。
The operation of this circuit will be explained below. Shifted data in two's complement representation is input to the shifted data input signal lines 301 to 308. The shift data is input to a decoding circuit (not shown), decoded, and one of the shift control signal lines 321 to 328 is selected. The decoding circuit has a function of decoding shift data and selecting one of the shift control signals. Shift control signal line 3
When one of 21 to 328 is selected, the transistor connected to the selected shift control signal line becomes conductive, and the shifted data input signal line 30 is connected to the output signal lines 311 to 318.
The shifted data 1 to 308 are shifted and output. In the shift circuit shown in Fig. 3, the data on the output signal line is two's complement data; in a positive shift, the lower bit becomes 0, and in a negative shift, the upper bit becomes a sign bit (shifted data input signal line 308 data).

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

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

集積回路で第3図の回路を実現するには、入力。To realize the circuit shown in Figure 3 with an integrated circuit, input.

出力、制御の各信号用として3層の配線が必要であり、
配線のレイアウトが難しい。
Three layers of wiring are required for each output and control signal.
Wiring layout is difficult.

本発明はこのような問題点を解決するもので。The present invention solves these problems.

回路構成が簡素で、高速動作が可能な正方向、負方向の
両方向へのシフト機能を有するシフト回路を提供するも
のである。
The present invention provides a shift circuit having a simple circuit configuration, capable of high-speed operation, and having a shift function in both positive and negative directions.

(課題を解決するための手段) 本発明は、上記目的を達成するために、3入力1出力デ
ータセレクタを基本セルとし、該基本セルを被シフトデ
ータのビット数に基づく個数に並べて単位セル列を構成
し、該単位セル列をシフトデータを2の補数表現した場
合のビット数より1段少なく設け、前記基本セルの出力
を次段の基本セルの入力に結合させた回路構成とし、正
方向。
(Means for Solving the Problems) In order to achieve the above object, the present invention uses a 3-input 1-output data selector as a basic cell, and arranges the basic cells into a unit cell string in a number based on the number of bits of data to be shifted. , the unit cell string is provided with one stage less than the number of bits when the shift data is expressed as two's complement, and the circuit configuration is such that the output of the basic cell is connected to the input of the next basic cell, and .

負方向の両方向へのシフト機能を有するシフト回路であ
る。
This is a shift circuit that has a shift function in both negative directions.

(作 用) 本発明は上記の構成により、3入力1出力データセレク
タの基本セルのみで構成されるため、回路構成が簡素で
、高速動作が可能な正方向、負方向の両方向へのシフト
機能を有するシフト回路を実現できる。
(Function) With the above configuration, the present invention is composed of only the basic cell of the 3-input 1-output data selector, so the circuit configuration is simple and the shift function in both the positive and negative directions enables high-speed operation. A shift circuit having the following can be realized.

(実施例) 本発明のシフト回路を一実施例を用いて説明する。第1
図は、シフト回路を構成する3入力1出カデータセレク
タの基本セルの例であり、101゜102、103はA
ND回路、104はOR回路、105゜106、107
は入力信号線、108.109.110は制御信号線、
111は出力信号線である。制御信号線108゜109
、110は、基本セルを横方向に並べた場合にそれぞれ
が接続されるようにする。制御信号線108゜109、
110にはいずれか1本がハイレベル(以下、2進演算
正論理則に従い、ハイレベルを1′″。
(Example) A shift circuit of the present invention will be explained using an example. 1st
The figure shows an example of a basic cell of a 3-input, 1-output data selector that constitutes a shift circuit, and 101°, 102, and 103 are A
ND circuit, 104 is OR circuit, 105° 106, 107
is the input signal line, 108.109.110 is the control signal line,
111 is an output signal line. Control signal line 108°109
, 110 are connected to each other when the basic cells are arranged horizontally. Control signal line 108°109,
110, one of them is high level (hereinafter, according to the binary arithmetic positive logic rule, high level is 1''').

ローレベルを“0”と表わす)の信号が入力される。制
御信号線108がIt L IIの時には入力信号線1
05の信号が選択され、出力信号線111に出力される
。制御信号線109が″1″の時には入力信号線106
の信号が選択され、出力信号線111に出力される。制
御信号線110が1′″の時には入力信号線107の信
号が選択され、出力信号線111に出力される。
A low level signal (indicated by "0") is input. When the control signal line 108 is It L II, the input signal line 1
The signal 05 is selected and output to the output signal line 111. When the control signal line 109 is "1", the input signal line 106
is selected and output to the output signal line 111. When the control signal line 110 is 1'', the signal on the input signal line 107 is selected and output to the output signal line 111.

第2図において、第1図に示した基本セルにより構成さ
れる8入力、8出力シフト回路の一実施例であり、MS
Bのビットを基準にすると、正方向4ビツトから負方向
4ビツト、つまり+4ビツトから一4ビットのシフトが
可能であり、負方向へのシフトの場合には、入力データ
のMSBのビットの符号ビットが負方向へのシフトによ
り空になる上位ビットに入る。正方向へのシフトの場合
には、正方向へのシフトにより空になる下位ビットに“
O”が入る。
FIG. 2 shows an example of an 8-input, 8-output shift circuit composed of the basic cells shown in FIG.
Based on the bits of B, it is possible to shift from 4 bits in the positive direction to 4 bits in the negative direction, that is, from +4 bits to 14 bits, and in the case of a shift in the negative direction, the sign of the MSB bit of the input data Bits enter the upper bits that are emptied by a negative shift. In the case of a positive shift, “
O” is inserted.

第2図で、201〜208は被シフトデータ入力信号線
、211〜219はシフト制御信号線、221〜228
は出力信号線である。
In FIG. 2, 201 to 208 are shifted data input signal lines, 211 to 219 are shift control signal lines, and 221 to 228 are shift control signal lines.
is the output signal line.

第2図の基本セルは、第1図に示した3入力1出力デー
タセレクタであり、各信号線の入出力の位置は一致して
いる。基本セルを8個横方向に並べた第1段の単位セル
列は+1ビツト、0ビツト。
The basic cell in FIG. 2 is the three-input, one-output data selector shown in FIG. 1, and the input and output positions of each signal line match. The first row of unit cells in which eight basic cells are arranged horizontally has +1 bit and 0 bit.

−1ビツトのシフトを行なう回路で、第2段の単位セル
列は+2ビツト、0ビツト、−2ビツトのシフトを行な
い、第3段の単位セル列は+4ビツト、Oビット、−4
ビツトのシフトを行なう。各段の単位セル列に接続され
る各3本のシフト制御信号線211〜213.214〜
216.217〜219は、シフトデータをデコードす
るデコード回路(図示しない)により、各3本のうち1
本が選択される6第1段の単位セル列では、シフト制御
信号線211が選択されると一1ビットのシフト、シフ
ト制御信号線212が選択されるとOビットのシフト、
シフト制御信号線213が選択されると+1ビツトのシ
フトを行なう。第2段の単位セル列では、シフト制御信
号線214が選択されると一2ビットのシフト、シフト
制御信号線215が選択されると0ビツトのシフト、シ
フト制御信号線216が選択されると+2ビツトのシフ
トを行なう、第3段の単位セル列では、シフト制御信号
線217が選択されると一4ビットのシフト、シフト制
御信号線218が選択されるとOビットのシフト、シフ
ト制御信号線219が選択されると+4ピツ1〜のシフ
トが行なわれる。
This is a circuit that performs a -1 bit shift, and the unit cell string in the second stage shifts +2 bits, 0 bits, and -2 bits, and the unit cell string in the third stage shifts +4 bits, O bits, and -4 bits.
Shift bits. Three shift control signal lines 211 to 213 and 214 to each connected to the unit cell column of each stage
216, 217 to 219 are decoded by a decoding circuit (not shown) that decodes the shift data.
In the unit cell column of the 6 first stage where a book is selected, when the shift control signal line 211 is selected, a shift of 11 bits is performed, and when the shift control signal line 212 is selected, a shift of 0 bits is performed.
When shift control signal line 213 is selected, a +1 bit shift is performed. In the second stage unit cell column, when the shift control signal line 214 is selected, a 12-bit shift is performed, when the shift control signal line 215 is selected, a 0-bit shift is performed, and when the shift control signal line 216 is selected, a 0-bit shift is performed. In the third stage unit cell column that performs a +2-bit shift, when the shift control signal line 217 is selected, a 14-bit shift is performed, and when the shift control signal line 218 is selected, an O-bit shift is performed, and the shift control signal When line 219 is selected, a shift of +4 pits 1.about. is performed.

出力信号線221〜228には、各段の単位セル列のシ
フト数の総和のシフト結果が出力される。
The shift result of the sum of the shift numbers of the unit cell columns in each stage is output to the output signal lines 221 to 228.

第2図のシフト回路では、3段の単位セル列でシフト動
作を行なうことで、+7ビツトがら一7ビツトの間の任
意のビットのシフト動作が可能である。
In the shift circuit shown in FIG. 2, by performing a shift operation in three stages of unit cell columns, it is possible to shift any bit between +7 bits and 17 bits.

(発明の効果) 本発明のシフト回路によれば、シフト回路を基本セルの
みにより構成でき、基本セルの接続もアレー接続が可能
であり、設計が効率良くでき、しかもシフトが基本セル
数段で行なうことができるため、高速である。また、シ
フトデータをデコードする回路についても、トランジス
タのマトリックス構成のシフト回路のデコード回路より
回路の簡素化が可能であり、半導体集積化に適している
等の効果がある。
(Effects of the Invention) According to the shift circuit of the present invention, the shift circuit can be constructed only from basic cells, and the basic cells can be connected in an array, allowing for efficient design, and moreover, shifting can be performed in several stages of basic cells. It is fast because it can be done. Furthermore, the circuit for decoding shift data can be simpler than the decoding circuit of a shift circuit having a matrix structure of transistors, and is suitable for semiconductor integration.

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

第1図は本発明の一実施例のシフト回路を構成する基本
セル回路図、第2図は本発明の一実施例の8入力8出力
シフト回路の構成図、第3図は従来例の8入力8出力シ
フト回路の構成図である。 101〜103・・・AND回路、 104・・・OR
回路、105〜107・・・入力4g号線、 108〜
110・・・制御信号線、 111・・・出力信号線、
 201〜208・・・被シフトデータ入力信号線、 
211〜219・・・シフト制御信号線、 221〜2
28・・・出力信号線、 301〜308・・・被シフ
トデータ入力信号線、 311〜318・・・出力信号
線、 321〜328・・・シフト制御信号線。 特許出願人 松下電器産業株式会社 第i図 101へ103゛・ AND回発 104・・OR回持 重05〜107 ・・ 入力にさ3橡 108〜+10・ル〕イ仰惜テ牒 l11−・ぶjj倦8縁
FIG. 1 is a basic cell circuit diagram constituting 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 diagram of a conventional 8-input shift circuit. FIG. 2 is a configuration diagram of an input 8 output shift circuit. 101-103...AND circuit, 104...OR
Circuit, 105~107... Input line 4g, 108~
110... Control signal line, 111... Output signal line,
201 to 208...shifted data input signal lines,
211-219...Shift control signal line, 221-2
28... Output signal line, 301-308... Shifted data input signal line, 311-318... Output signal line, 321-328... Shift control signal line. Patent Applicant: Matsushita Electric Industrial Co., Ltd. Figure i Go to 101 103゛・AND times 104・・OR times 05~107 ・・Input 3 squares 108~+10・louis 11−・bu jj〦8 relationship

Claims (1)

【特許請求の範囲】[Claims] 3入力1出力データセレクタを基本セルとし、該基本セ
ルを被シフトデータのビット数に基づく個数に並べて単
位セル列を構成し、該単位セル列をシフトデータを2の
補数表現した場合のビット数より1段少なく設け、前記
基本セルの出力を次段の基本セルの入力に結合させた回
路構成とし、正方向、負方向の両方向へのシフト機能を
有することを特徴とするシフト回路。
The number of bits when a 3-input 1-output data selector is used as a basic cell, the basic cells are arranged in a number based on the number of bits of the data to be shifted to form a unit cell string, and the unit cell string is expressed as a two's complement of the shifted data. 1. A shift circuit characterized in that the circuit is configured such that the basic cell has one less stage, the output of the basic cell is coupled to the input of the next basic cell, and has a shift function in both the positive direction and the negative direction.
JP63063577A 1988-03-18 1988-03-18 Shift circuit Pending JPH01237823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63063577A JPH01237823A (en) 1988-03-18 1988-03-18 Shift circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63063577A JPH01237823A (en) 1988-03-18 1988-03-18 Shift circuit

Publications (1)

Publication Number Publication Date
JPH01237823A true JPH01237823A (en) 1989-09-22

Family

ID=13233252

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63063577A Pending JPH01237823A (en) 1988-03-18 1988-03-18 Shift circuit

Country Status (1)

Country Link
JP (1) JPH01237823A (en)

Similar Documents

Publication Publication Date Title
US4583197A (en) Multi-stage pass transistor shifter/rotator
JPS6228516B2 (en)
US4441158A (en) Arithmetic operation circuit
US4495590A (en) PLA With time division multiplex feature for improved density
KR100298029B1 (en) Barrel shifter
US4349888A (en) CMOS Static ALU
US7000066B1 (en) Priority encoder circuit for content addressable memory (CAM) device
JPH01237823A (en) Shift circuit
US3851185A (en) Blanking circuit
US5491431A (en) Logic module core cell for gate arrays
USRE33676E (en) Gate array circuit for decoding circuits
JP2770271B2 (en) Hierarchical memory from memory cells
JPS63140483A (en) Memory circuit
JPS6170634A (en) Shifting circuit
JP2563519B2 (en) Shift circuit
US4025799A (en) Decoder structure for a folded logic array
JP3965620B2 (en) Storage device, storage method, and data processing system
JP3155893B2 (en) Semiconductor storage device
JP2534652B2 (en) Semiconductor integrated circuit
JPS6424443A (en) Gate array
US4334213A (en) Circuit for addressing binarily addressable memories with BCD addresses
JPH0590967A (en) D/a converter
KR890002664B1 (en) Parity detection circuit
JPH0278094A (en) Semiconductor memory
JPH0347747B2 (en)