JPH0199123A - Bit shifting circuit - Google Patents

Bit shifting circuit

Info

Publication number
JPH0199123A
JPH0199123A JP62257677A JP25767787A JPH0199123A JP H0199123 A JPH0199123 A JP H0199123A JP 62257677 A JP62257677 A JP 62257677A JP 25767787 A JP25767787 A JP 25767787A JP H0199123 A JPH0199123 A JP H0199123A
Authority
JP
Japan
Prior art keywords
data
output
input
selector
serial
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
JP62257677A
Other languages
Japanese (ja)
Inventor
Reiichi Fukuda
福田 玲一
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP62257677A priority Critical patent/JPH0199123A/en
Publication of JPH0199123A publication Critical patent/JPH0199123A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten a delaying time by providing plural selectors to select and output one of input data in accordance with a selecting control signal. CONSTITUTION:Serial data D of four-bit constitution added to an input terminal 11 are converted to parallel data in a serial/parallel converting circuit 9. Selectors 1-4 are the ones to select and output one of the data added to input terminals 11-15 in accordance with selecting control signals S1-S4. Selecting control signals S1-S4 outputted from ROM 5-8 and signals A3-A1 added as a reading address to the ROM 5-8 have the prescribed relation. A parallel/ serial converting circuit 10 executes the parallel/serial conversion of the data of the selectors 1-4 and outputs the serial data to an output terminal 12. Thus, the input data can be shifted by the delaying time for a selector one step and therefore, the delaying time can be shortened.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はディジタル信号処理で用いられるビットシフト
回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a bit shift circuit used in digital signal processing.

〔従来の技術〕[Conventional technology]

従来、この種のビットシフト回路は例えば第3図に示す
構成を有している。
Conventionally, this type of bit shift circuit has a configuration shown in FIG. 3, for example.

同図に示したビットシフト回路は、入力端子38に加え
られた4ビツト構成の直列データDを、入力端子40.
41.42に加えられた信号A +、 A z、 A 
zが示すビット数だけシフトして出力端子39から出力
するものであり、直列データDのビット数の2倍の入力
端子を有するセレクタ31〜35と、直列並列変換回路
36と、並列直列変換回路37とから構成されている。
The bit shift circuit shown in the figure transfers 4-bit serial data D applied to an input terminal 38 to an input terminal 40.
41. Signals added to 42 A +, A z, A
It is shifted by the number of bits indicated by z and outputted from the output terminal 39, and includes selectors 31 to 35 having input terminals twice the number of bits of the serial data D, a serial-to-parallel conversion circuit 36, and a parallel-to-serial conversion circuit. It consists of 37.

尚、セレクタ31〜35ばセレクト端子Sに加えられる
信号が70″の場合は入力端子11〜■4に加えられて
いるデータを出力端子01〜04から出力し、セレクト
端子Sに加えられている信号が1″の場合は入力端子■
5〜I8に加えられているデータを出力端子01〜04
に出力するものである。
Incidentally, when the signal applied to the select terminal S of the selectors 31 to 35 is 70'', the data applied to the input terminals 11 to ■4 is outputted from the output terminals 01 to 04, and is applied to the select terminal S. If the signal is 1″, use the input terminal■
Output the data added to 5 to I8 to terminals 01 to 04
This is what is output to.

直列並列変換回路36は入力端子38を介して加えられ
た4ビツト構成の直列データDを並列データ(D4.D
r、DZ、D、)に変換し、セレクタ31.33に加え
る。直列並列変換回路36から出力された並列データの
内の最上位ビットのデータD4はセレクタ31の入力端
子■1及びセレクタ33の入力端子11.15〜■7に
加えられ、データD3はセレクタ31の入力端子■2及
びセレクタ33の入力端子12.18に加えられ、デー
タD2はセレクタ31の入力端子[3,I5及びセレク
タ33の入力端子I3に加えられ、最下位ビットのデー
タD、はセレクタ31の入力端子14.16及びセレク
タ33の入力端子I4に加えられる。また、セレクタ3
1の入力端子17.18は接地されており、その入力デ
ータは0″となっている。
The serial/parallel conversion circuit 36 converts the 4-bit serial data D applied via the input terminal 38 into parallel data (D4.D).
r, DZ, D,) and added to selectors 31 and 33. Data D4, the most significant bit of the parallel data output from the serial/parallel conversion circuit 36, is applied to the input terminal 1 of the selector 31 and input terminals 11.15 to 7 of the selector 33, and the data D3 is applied to the input terminal 11.15 to 7 of the selector 33. The data D2 is applied to the input terminal 2 of the selector 31 and the input terminal 12.18 of the selector 33, and the data D2 is applied to the input terminal [3, I5 of the selector 31 and the input terminal I3 of the selector 33. and the input terminal I4 of the selector 33. Also, selector 3
The input terminals 17 and 18 of No. 1 are grounded, and their input data is 0''.

セレクタ31.33は前述したように、セレクト端子S
に加えられている信号A、が“0”の場せは入力端子■
1〜14に入力されているデータを出力端子01〜04
から出力し、信号A、が“1”の場合は入力端子15〜
■8に入力されているデータを出力端子01〜04から
出力するものであるから、信号A、が0”の場合、セレ
クタ31゜33は直列並列変換回路36の出力データ(
D4.Dff。
As mentioned above, the selectors 31 and 33 have select terminals S
If the signal A applied to is “0”, the input terminal ■
Output the data input to 1 to 14 to terminals 01 to 04
When the signal A is “1”, the input terminal 15~
■Since the data inputted to the output terminals 8 are outputted from the output terminals 01 to 04, when the signal A is 0'', the selectors 31 and 33 output the output data (
D4. Dff.

D 2. D + )を出力端子01. 02.03.
04から出力し、信号A1が“1”の場合、セレクタ3
1は直列並列変換回路36の出力データを2ビツトシフ
トアツプしたデータ(Dl、D、、0.0)を出力し、
セレクタ33は直列並列変換回路36の出力データを2
ビツトシフトダウンしたデータ (D4.D4゜D4.
Dl)を出力する。
D2. D + ) to the output terminal 01. 02.03.
When the signal A1 is "1", the selector 3
1 outputs data (Dl, D,, 0.0) obtained by shifting up the output data of the serial-parallel conversion circuit 36 by 2 bits,
The selector 33 converts the output data of the serial/parallel conversion circuit 36 into 2
Bit shifted down data (D4.D4°D4.
Dl) is output.

セレクタ31の出力端子01から出力されたデータはセ
レクタ32の入力端子11に加えられ、出力端子02か
ら出力されたデータは入力端子12゜15に、出力端子
03から出力されたデータは入力端子13.16に、出
力端子04から出力されたデータは入力端子+4.I7
に加えられる。また、セレクタ32の入力端子I8は接
地されており、その入力データは“0”になっている。
The data output from the output terminal 01 of the selector 31 is applied to the input terminal 11 of the selector 32, the data output from the output terminal 02 is applied to the input terminal 12°15, and the data output from the output terminal 03 is applied to the input terminal 13. .16, the data output from output terminal 04 is input to input terminal +4. I7
added to. Further, the input terminal I8 of the selector 32 is grounded, and its input data is "0".

セレクタ32は前述したように、セレクト端子Sに加え
られている信号A2が“0”の場合は入力端子11〜■
4に加えられているデータを出力端子01〜04より出
力し、信号A2が“1”の場合は入力端子15〜I8に
加えられているデータを出力端子01〜04より出力す
るものであるから、信号A。
As mentioned above, when the signal A2 applied to the select terminal S is "0", the selector 32 selects the input terminals 11 to
4 is output from output terminals 01 to 04, and when signal A2 is "1", data added to input terminals 15 to I8 is output from output terminals 01 to 04. , signal A.

が“0”でセレクタ31より直列並列変換回路36の出
力データがそのまま出力されている場合は、信号A2が
“0′であれば並列直列変換回路36の出力データ(D
、、D、、DZ、D、)がそのままセレクタ32より出
力され、信号A2が“1′であれば並列直列変換回路3
6の出力データを1ビツトシフトアツプしたデータ (
D 3. D z、D +、O)が出力される。また、
信号A、が1”でセレクタ31より直列並列変換回路3
6の出力データを2ビツトシフトアツプしたデータが出
力されている場合は、信号A2が“0”であれば直列並
列変換回路36の出力データを2ビツトシフトアツプし
たデータ (DZ。
is "0" and the selector 31 outputs the output data of the serial-to-serial conversion circuit 36 as is, and if the signal A2 is "0', the output data (D
, ,D, ,DZ,D,) are output as they are from the selector 32, and if the signal A2 is "1", the parallel-to-serial conversion circuit 3
Data obtained by shifting up the output data of 6 by 1 bit (
D3. D z, D +, O) are output. Also,
When the signal A is 1", the selector 31 connects the serial-to-parallel converter circuit 3.
If the data obtained by shifting up the output data of the serial/parallel converting circuit 36 by 2 bits is output, and the signal A2 is "0", the data obtained by shifting up the output data of the serial/parallel converter circuit 36 by 2 bits is output (DZ.

DI、O,O)が出力され、信号A2が“1”であれば
直列並列変換回路36の出力データを3ビツトシフトア
ツプしたデータ (Dl、0. 0. 0)が出力され
る。即ち、セレクタ31.32によって直列並列変換回
路36の出力データが信号A+、Azによって示される
ビット数だけシフトアップされる。
DI, O, O) are output, and if the signal A2 is "1", data (Dl, 0. 0. 0) obtained by shifting up the output data of the serial/parallel conversion circuit 36 by 3 bits is output. That is, the selectors 31 and 32 shift up the output data of the serial-parallel conversion circuit 36 by the number of bits indicated by the signals A+ and Az.

また、セレクタ33の出力端子01から出力されたデー
タはセレクタ34の入力端子11.  I5.16に加
えられ、出力端子02から出力されたデータは入力端子
+2.[7に、出力端子03から出力されたデータは入
力端子13.18に、出力端子o4から出力されたデー
タは入力端子■4に加えられる。セレクタ34は前述し
たように、セレクト端子Sに加えられる信号A2が“O
”の場合は入力端子11〜■4に加えられているデータ
を出力端子01〜04から出力し、“1”の場合は入力
端子15〜18に加えられているデータを出力端子01
〜04から出力するものであるから、信号A1が“0”
でセレクタ33から直列並列変換回路36の出力データ
がそのまま出力されている場合は、信号A2が“0”で
あれば並列直列変換回路36の出力データ(D a、 
D 3+ D z、 D + )がそのままセレクタ3
4より出力され、信号A2が“1”であれば並列直列変
換回路36の出力データを1ビツトシフトダウンしたデ
ータ (D、、D、、o、1.[)2>が出力される。
Furthermore, the data output from the output terminal 01 of the selector 33 is input to the input terminal 11 of the selector 34. The data added to I5.16 and output from output terminal 02 is input to input terminal +2. [7] The data output from the output terminal 03 is applied to the input terminal 13.18, and the data output from the output terminal o4 is applied to the input terminal 4. As mentioned above, the selector 34 is configured so that the signal A2 applied to the select terminal S is "O".
”, the data applied to input terminals 11 to 4 will be output from output terminals 01 to 04, and if “1”, the data applied to input terminals 15 to 18 will be output from output terminal 01.
~04, so the signal A1 is “0”
If the selector 33 outputs the output data of the serial-to-serial conversion circuit 36 as is, if the signal A2 is "0", the output data of the parallel-to-serial conversion circuit 36 (D a,
D 3+ D z, D + ) remains as selector 3
4, and if the signal A2 is "1", data (D,,D,,o,1.[)2>, which is obtained by shifting down the output data of the parallel-serial conversion circuit 36 by one bit, is output.

また、信号A、が“1”でセレクタ33より直列並列変
換回路36の出力データを2ビツトシフトダウンしたデ
ータが出力されている場合は、信号A、が“0”であれ
ば直列並列変換回路36の出力データを2ビツトシフト
ダウンしたデータ(Da、 0s、 Da、 D2 )
が出力され、信号Atが“1”であれば直列並列変換回
路36の出力データを3ビツトシフトダウンしたデータ
(Da、 Da、 D 4゜Da)が出力される。即ち
、セレクタ33.34によって直列並列変換回路36の
出力データが信号AI。
Furthermore, if the signal A is "1" and data obtained by shifting down the output data of the serial/parallel converter 36 by 2 bits is output from the selector 33, if the signal A is "0", the serial/parallel converter 36 output data shifted down by 2 bits (Da, 0s, Da, D2)
is output, and if the signal At is "1", data (Da, Da, D 4°Da) obtained by shifting down the output data of the serial-to-parallel converter circuit 36 by 3 bits is output. That is, the selectors 33 and 34 convert the output data of the serial-parallel conversion circuit 36 into the signal AI.

A2によって示されるビット数だけシフトダウンされる
It is shifted down by the number of bits indicated by A2.

セレクタ32の出力端子O1〜04から出力されたデー
タはセレクタ35の入力端子11−14に加えられ、セ
レクタ34の出力端子01〜04から出力されたデータ
はセレクタ35の入力端子11〜I4に加えられる。セ
レクタ35は前述したように、セレクト端子Sに加えら
れる信号A、が“0”の場合は入力端子■1〜■4に加
えられたデータを出力し、信号A3が“1”の場合は入
力端子■5〜■8に加えられたデータを出力するもので
あるから、信号A3を“O”にすることによりセレクタ
31.32によってシフトアップされたデータが出力さ
れ、信号A、を“1”とすることによりセレクタ33.
34によってシフトダウンされたデータが出力される。
The data output from the output terminals O1-04 of the selector 32 is applied to the input terminals 11-14 of the selector 35, and the data output from the output terminals 01-04 of the selector 34 is applied to the input terminals 11-I4 of the selector 35. It will be done. As mentioned above, the selector 35 outputs the data applied to the input terminals ■1 to ■4 when the signal A applied to the select terminal S is "0", and when the signal A3 is "1", it outputs the data applied to the input terminals ■1 to ■4. Since the data applied to the terminals ■5 to ■8 are output, by setting the signal A3 to "O", the data shifted up by the selectors 31 and 32 is output, and the signal A is set to "1". By setting the selector 33.
The data shifted down by 34 is output.

セレクタ35の出力端子01〜04から出力された4ビ
ツト構成の並列データは並列直列変換回路37で直列デ
ータに変換され、出力端子39より出力される。
The 4-bit parallel data outputted from the output terminals 01 to 04 of the selector 35 is converted into serial data by the parallel/serial conversion circuit 37 and outputted from the output terminal 39.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のビットシフト回路はセレクタをシフトe
を表す信号のビット数と同じ段数だけ多段接続すること
により構成しているため、シフト量の多い回路程、遅延
時間が長くなる問題があった。
The conventional bit shift circuit described above shifts the selector
Since the circuit is constructed by connecting the same number of stages as the number of bits of the signal representing the signal, there is a problem that the delay time increases as the amount of shift increases.

本発明は前述の如き問題点を解決したものであり、その
目的は、遅延時間を短縮させることにある。
The present invention solves the above-mentioned problems, and its purpose is to shorten the delay time.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は前述の如き問題点を解決するため、Nビット構
成の入力データを任意のビット数だけシフトするビット
シフト回路に於いて、(N+1)個の入力端子を有し、
前記Nビット構成の入力データと接地データとが入力さ
れるN個のセレクタと、 該各セレクタ対応に設けられ、ビットシフト量に対応し
た選択制御信号を出力する選択制御信号生成手段とを設
け、 前記各セレクタは前記対応する選択制御信号生成手段か
らの選択制御信号に従って前記(N+1)個の入力端子
に加えられているデータの内の1つを選択出力する。
In order to solve the above-mentioned problems, the present invention provides a bit shift circuit for shifting N-bit input data by an arbitrary number of bits, which has (N+1) input terminals.
N selectors to which the N-bit configuration input data and ground data are input, and selection control signal generation means provided corresponding to each selector and outputting a selection control signal corresponding to the bit shift amount, Each of the selectors selectively outputs one of the data applied to the (N+1) input terminals in accordance with a selection control signal from the corresponding selection control signal generating means.

〔作 用〕[For production]

各セレクタはNビット構成の入力データと接地データと
の内の1つを選択制御信号生成手段から出力される選択
制御信号に従って選択出力する。
Each selector selectively outputs one of the N-bit structured input data and the ground data in accordance with a selection control signal output from the selection control signal generating means.

従って、各セレクタから出力されるデータを集めたデー
タを上記Nビット構成の入力データをシフトしたものに
することができる。
Therefore, data that is a collection of data output from each selector can be obtained by shifting the N-bit configuration input data.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the invention.

同図に示したビットシフト回路は入力端子11に加えら
れた4ビツト構成の直列データDを入力端子13〜15
に加えられている信号A s、 A ffi+ A +
が示すビット数だけシフトして出力端子12より出力す
るものであり、シフト機能を司る4個のセレクタ1〜4
と、信号A s、 A z、 A Iが読出しアドレス
として加えられ、セレクタ1〜4に選択制御信号81〜
S4を加えるROM (、読出し専用メモリ)5〜8と
、入力端子Uから加えられた4ピツHll成の直列デー
タDを並列データ(D a、Ds、 Dz、 D+ )
に変換する直列並列変換回路9と、並列直列変換回路1
0とから構成されている。
The bit shift circuit shown in the figure transfers 4-bit serial data D applied to input terminal 11 to input terminals 13 to 15.
A signal A s, A ffi+ A +
is shifted by the number of bits indicated by and output from the output terminal 12, and four selectors 1 to 4 control the shift function.
, signals As, Az, and AI are added as read addresses, and selection control signals 81 to 81 are applied to selectors 1 to 4.
ROM (read-only memory) 5 to 8 to which S4 is added, and serial data D of 4-bit Hll configuration added from input terminal U to parallel data (Da, Ds, Dz, D+)
A serial-parallel conversion circuit 9 and a parallel-serial conversion circuit 1
It is composed of 0.

各セレクタ1〜4は入力データDのビット数に1を加え
た数の入力端子■1〜■5を存しており、選択制御信号
81〜S4に従って入力端子II〜I5に加えられてい
るデータの内の1つを選択出力する。また、各セレクタ
1〜4の入力端子■1は接地され、その入力データが“
0”となっておリ、他の入力端子I2〜■5には直列並
列変換回路9の出力データD、〜D4が加えられている
Each of the selectors 1 to 4 has input terminals 1 to 5 whose number is the number of bits of the input data D plus 1, and the data is applied to the input terminals II to I5 according to the selection control signals 81 to S4. Select and output one of them. In addition, the input terminal ■1 of each selector 1 to 4 is grounded, and its input data is “
0'', and the output data D, -D4 of the serial/parallel conversion circuit 9 are applied to the other input terminals I2 - 5.

第2図はROM5〜8に読出しアドレスとして加えられ
ている信号A s、 A z、 A + と各ROM5
〜8から出力される選択制御信号31〜S4との関係を
示した図である。信号A s、 A z、 A + は
2の補数表現(2’s comple+went Re
presentaLion)でシフト量を示しており、
信号A、、A、、A、の内の最上位ビットの信号A、は
サインビット (SB:SignBit)であり、Ax
=″′0”はビ・ノドのシフトアラプを示し、A、=“
j”はビットのシフトダウンを示す。従って、1ビツト
のシフトアップはA3=″0″、A2−“0”、A、−
“1”で表され、2ビツトのシフトダウンはA、=“1
″、A2−“1”、AI =”O”で表される。また、
各ROM5〜8は信号A 3+ A z、 A +によ
って表されるアドレスに格納されているデータを出力す
るものであり、例えばA、=”0”、Az=”O”IA
I=“1”の場合、即ち信号A I+ A t、 A 
sによって1ビツトのシフトアップが示されている場合
、ROM5はセレクタ1に入力端子I4に加えられてい
るデータを出力することを指示する選択制御信号S1を
出力し、ROM6はセレクタ2に入力端子■3に加えら
れているデータを出力することを指示する選択制御信号
S2を出力し、ROM7はセレクタ3に入力端子I2に
加えられているデータを出力することを指示する選択制
御信号S3を出力し、ROM8はセレクタ4に入力端子
■1に加えられているデータを出力することを指示する
選択制御信号S4を出力する。
Figure 2 shows signals A s, A z, A + added to ROMs 5 to 8 as read addresses and each ROM 5.
It is a figure showing the relationship with selection control signals 31-S4 outputted from -8. The signals A s, A z, A + are expressed in two's complement (2's complete+went Re
presentaLion) indicates the shift amount,
Signal A, the most significant bit of signals A, ,A, ,A, is a sign bit (SB:SignBit), and Ax
="'0" indicates the shift of the bi-nod, A, ="
j" indicates a bit shift down. Therefore, a 1 bit shift up is A3="0", A2-"0", A, -
It is represented by “1”, and a 2-bit shift down is A, = “1”.
”, A2-“1”, AI = “O”. Also,
Each of the ROMs 5 to 8 outputs the data stored at the address represented by the signals A3+Az, A+, for example, A, = "0", Az = "O" IA
When I=“1”, that is, the signal A I+ A t, A
When s indicates a shift up of 1 bit, ROM5 outputs a selection control signal S1 instructing selector 1 to output the data applied to input terminal I4, and ROM6 outputs selector 2 to output the data applied to input terminal I4. ■The ROM 7 outputs a selection control signal S2 that instructs the selector 3 to output the data added to the input terminal I2, and the ROM 7 outputs the selection control signal S3 that instructs the selector 3 to output the data added to the input terminal I2. The ROM 8 then outputs a selection control signal S4 instructing the selector 4 to output the data applied to the input terminal 1.

次に、第1図、第2図を参照して本実施例の動作を説明
する。
Next, the operation of this embodiment will be explained with reference to FIGS. 1 and 2.

入力端子11に加えられた4ビツト構成の直列データD
は直列並列変換回路9に於いて並列データ(D l+ 
D !+ Dz、 DI )に変換される。直列並列変
換回路9から出力される並列データの内の最上位ピント
のデータD4は各セレクタの入力端子■5に加えられ、
データD、は入力端子I4に、データD2は入力端子■
3に、最下位ピントのデータD1は入力端子■2に加え
られる。また、各セレクタ1〜4の入力端子11は接地
されており、その入力データは“0”となっている。
4-bit serial data D applied to input terminal 11
is the parallel data (D l+
D! +Dz, DI). The most significant focused data D4 of the parallel data output from the serial/parallel conversion circuit 9 is added to the input terminal 5 of each selector,
Data D is input to input terminal I4, and data D2 is input to input terminal ■
3, the data D1 of the lowest focus is applied to the input terminal 2. Further, the input terminals 11 of each selector 1 to 4 are grounded, and the input data thereof is "0".

前述したように、セレクタ1〜4はそれぞれROM5〜
8から加えられる選択制御信号81〜S4に従って入力
端子11〜I5に加えられているデータの内の1つを選
択出力するものであり、ROM5〜8から出力される選
択制御信号81〜S4とROM5〜8に読出しアドレス
として加えられる信号A s、 A z、 A + と
は第2図に示す関係を有しているものであるから、例え
ば、信号A s、 A t。
As mentioned above, selectors 1 to 4 are assigned to ROMs 5 to 4, respectively.
It selects and outputs one of the data applied to input terminals 11-I5 according to selection control signals 81-S4 applied from ROM5-8, and selects and outputs one of the data applied to input terminals 11-I5 according to selection control signals 81-S4 applied from ROM5-8 and ROM5. Since the signals As, Az, and A+ added as read addresses to 8 and 8 have the relationship shown in FIG. 2, for example, the signals As, At.

A1がそれぞれ“0″、“1″、“0”であり、2ビツ
トのシフトアップを示している場合は、ROM5. 6
. 7. 8から出力される選択制御信号S1.32,
33.34はそれぞれ入力端子13゜+2,11.[1
に加えられているデータを出力することを指示するもの
となるので、セレクタ1からは入力端子I3に加えられ
ているデータD2が出力され、セレクタ2からは入力端
子I2に加えられているデータDIが出力され、セレク
タ3゜4からは0”が出力される。即ち、セレクタl。
When A1 is "0", "1", and "0", respectively, indicating a 2-bit shift up, ROM5. 6
.. 7. Selection control signal S1.32 output from 8,
33, 34 are input terminals 13°+2, 11. [1
Since this is an instruction to output the data applied to input terminal I3, selector 1 outputs data D2 applied to input terminal I3, and selector 2 outputs data D2 applied to input terminal I2. is output, and 0'' is output from selector 3.4. That is, selector l.

2.3.4から出力されるデータは(Dz、DI+0゜
0)となり、直列並列変換回路9から出力されたデータ
 (D I D y、D t、 D r )を2ビツト
シフトアツプしたものとなる。また、例えば信号A3.
A2゜AIが全て“1゛であり、1ビツトのシフトダウ
ンを示している場合は、ROM5,6,7.8から出力
される選択制御信号31.S2.S3.S4はそれぞれ
入力端子[5,15,14,13に加えられているデー
タを出力することを指示するものとなるので、セレクタ
1.2からは入力端子■5に加えられているデータD4
が出力され、セレクタ3からは入力端子I4に加えられ
ているデータD3が出力され、セレクタ4からは入力端
子■3に加えられているデータD2が出力される。
The data output from 2.3.4 is (Dz, DI+0°0), which is obtained by shifting up the data (DI Dy, D t, Dr) output from the serial/parallel conversion circuit 9 by 2 bits. Become. Also, for example, signal A3.
When A2゜AI is all "1", indicating a 1-bit shift down, the selection control signals 31.S2.S3.S4 output from the ROMs 5, 6, 7.8 are input to the input terminal [5]. , 15, 14, and 13, the selector 1.2 outputs the data D4 applied to the input terminal ■5.
is output, the selector 3 outputs the data D3 applied to the input terminal I4, and the selector 4 outputs the data D2 applied to the input terminal 3.

即ち、セレクタ1. 2. 3. 4から出力されるデ
ータは(Da、 Da、 D3t D! )となり、直
列並列変換回路9の出力データ(Da、 D3+ Dz
+ DI )を1ビツトシフトダウンしたものとなる。
That is, selector 1. 2. 3. The data output from 4 is (Da, Da, D3t D!), and the output data of the serial-parallel conversion circuit 9 is (Da, D3+ Dz
+DI) shifted down by 1 bit.

セレクタ1〜4の出力データは並列直列変換回路10に
加えられ、並列直列変換回路10はセレクタ1の出力デ
ータを最上位ビット セレクタ4の出力データを最下位
ビットとして並列直列変換を行ない、直列データを出力
端子12に出力する。
The output data of selectors 1 to 4 is applied to a parallel-to-serial conversion circuit 10, which performs parallel-to-serial conversion using the output data of selector 1 as the most significant bit and the output data of selector 4 as the least significant bit, and converts the output data into serial data. is output to the output terminal 12.

尚、上述した実施例は4ビツト構成の入力データをシフ
トする場合について説明したが、Nビット構成の入力デ
ータをMビットシフトする場合に於いても、(N+1)
個の入力端子を有するセレクタをM個並列に配置すると
共に、M個の選択制御信号発生用のROMを設けること
により、上述したと同様なビットシフト回路を構成する
ことができる。また、実施例に於いては、ビットシフト
量を2の補数表現で表現した場合を例にとって説明した
が、ビットシフトffiの表現方法はこれに限られるも
のではなく、ROMの記憶内容を変更することによりビ
ットシフト量の表現方法を変更することができる。
In the above embodiment, the case where input data having a 4-bit structure is shifted has been explained, but even when shifting input data having a N-bit structure by M bits, (N+1)
A bit shift circuit similar to that described above can be constructed by arranging M selectors having M input terminals in parallel and providing M ROMs for generating selection control signals. In addition, in the embodiment, the case where the bit shift amount is expressed in two's complement representation has been explained as an example, but the method of expressing the bit shift ffi is not limited to this, and the storage contents of the ROM may be changed. This allows the method of expressing the bit shift amount to be changed.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は、Nピント構成の入力デ
ータと接地データとを入力とし、ROM等からなる選択
制御信号生成手段から出力される選択制御信号に従って
入力されたデータの内の1つを他のセレクタと同時に選
択出力するセレクタをN個設けたものであり、入力デー
タのビット数及びシフト量にかかわらず、セレクタ1段
分の遅延時間で入力データをシフトすることができるの
で、従来例に比較して遅延時間を少ないものにすること
ができる効果がある。
As explained above, the present invention receives input data of an N focus configuration and ground data as input, and selects one of the input data according to a selection control signal outputted from a selection control signal generation means consisting of a ROM or the like. It is equipped with N selectors that select and output simultaneously with other selectors, and regardless of the number of bits of input data and the amount of shift, input data can be shifted with a delay time of one selector stage. This has the effect of reducing the delay time compared to the example.

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

第1図は本発明の実施例のブロック図、第2図は信号A
s、Ax、A+ とROM5〜8の入出力との関係を示
す図及び、 第3図は従来例のブロック図である。 図に於いて、1〜4.31〜35・・・セレクタ、5〜
8・・・ROM、9.36・・・直列並列変換回路、1
0.37・・・並列直列変換回路、11.13〜15.
38.40〜42・・・入力端子、12.39・・・出
力端子。
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
s, Ax, A+ and the input/output of ROMs 5 to 8, and FIG. 3 is a block diagram of a conventional example. In the figure, 1~4.31~35...selector, 5~
8...ROM, 9.36...Serial parallel conversion circuit, 1
0.37...Parallel-serial conversion circuit, 11.13-15.
38.40-42...input terminal, 12.39...output terminal.

Claims (1)

【特許請求の範囲】 Nビット構成の入力データを任意のビット数だけシフト
するビットシフト回路に於いて、 (N+1)個の入力端子を有し、前記Nビット構成の入
力データと接地データとが入力されるN個のセレクタと
、 該各セレクタ対応に設けられ、ビットシフト量に対応し
た選択制御信号を出力する選択制御信号生成手段とを含
み、 前記各セレクタは前記対応する選択制御信号生成手段か
らの選択制御信号に従って前記(N+1)個の入力端子
に加えられているデータの内の1つを選択出力すること
を特徴とするビットシフト回路。
[Claims] A bit shift circuit that shifts input data having an N-bit configuration by an arbitrary number of bits, which has (N+1) input terminals, and wherein the input data having a N-bit configuration and ground data are connected to each other. N input selectors; selection control signal generation means provided corresponding to each selector and outputting a selection control signal corresponding to a bit shift amount; A bit shift circuit that selectively outputs one of the data applied to the (N+1) input terminals according to a selection control signal from the bit shift circuit.
JP62257677A 1987-10-13 1987-10-13 Bit shifting circuit Pending JPH0199123A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62257677A JPH0199123A (en) 1987-10-13 1987-10-13 Bit shifting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62257677A JPH0199123A (en) 1987-10-13 1987-10-13 Bit shifting circuit

Publications (1)

Publication Number Publication Date
JPH0199123A true JPH0199123A (en) 1989-04-18

Family

ID=17309571

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62257677A Pending JPH0199123A (en) 1987-10-13 1987-10-13 Bit shifting circuit

Country Status (1)

Country Link
JP (1) JPH0199123A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008502975A (en) * 2004-06-16 2008-01-31 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Data processing device
CN104808966A (en) * 2014-01-29 2015-07-29 马维尔以色列(Misl)有限公司 Method and apparatus for valid encoding

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008502975A (en) * 2004-06-16 2008-01-31 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Data processing device
US9239702B2 (en) 2004-06-16 2016-01-19 Intel Corporation Data processing apparatus
CN104808966A (en) * 2014-01-29 2015-07-29 马维尔以色列(Misl)有限公司 Method and apparatus for valid encoding
CN104808966B (en) * 2014-01-29 2019-03-12 马维尔以色列(M.I.S.L.)有限公司 The method and apparatus of efficient coding

Similar Documents

Publication Publication Date Title
US5696791A (en) Apparatus and method for decoding a sequence of digitally encoded data
US4437377A (en) Digital electronic musical instrument
JPH0199123A (en) Bit shifting circuit
JPS6338153B2 (en)
US5898396A (en) Analog-to-digital converter for both m-bit and n-bit analog conversion
US4486876A (en) Broadband transmission on limited bandwidth digital line
JPH02126296A (en) Musical sound information storage device
JP3135990B2 (en) Parity addition circuit
JPS6064573A (en) Picture signal reducing system
US5239558A (en) Pulse code modulation circuit
JPH0715344A (en) Data converter
JPH06224767A (en) D/a converter
JP2853203B2 (en) Audio signal delay device
JP2830075B2 (en) Binary to decimal converter
JP2530817B2 (en) Linear / non-linear code conversion method and conversion circuit
JP2538769B2 (en) Linear-nonlinear code conversion method and conversion circuit
JPS5871741A (en) Code converter
JP2001177408A (en) Pipeline a/d converter
KR950006448B1 (en) Data changing circuit of pip tv system
JPH0258440A (en) Frame converting circuit
JPS6174419A (en) Method and apparatus for data storage
JPH01216639A (en) Multiplexing system
JPH0220178B2 (en)
JPS62193413A (en) Digital-analog converting system
JPS62104322A (en) Parallel/serial converter