JP2763545B2 - Bit slide device - Google Patents
Bit slide deviceInfo
- Publication number
- JP2763545B2 JP2763545B2 JP63125302A JP12530288A JP2763545B2 JP 2763545 B2 JP2763545 B2 JP 2763545B2 JP 63125302 A JP63125302 A JP 63125302A JP 12530288 A JP12530288 A JP 12530288A JP 2763545 B2 JP2763545 B2 JP 2763545B2
- Authority
- JP
- Japan
- Prior art keywords
- output
- data
- bit
- input
- gate
- 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
Links
Description
【発明の詳細な説明】 [産業上の利用分野] 本発明は、データ処理装置に関し、特に所定のビット
数の2値データに含まれる“1"又は“0"の1つの値の情
報ビットを上位側又は下位側にスライドさせるビットス
ライド装置、並びに上記ビットスライド装置を用いて上
記2値データに含まれる“1"又は“0"の1つの値の情報
ビット数を計数するビット計数装置に関する。Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing apparatus, and more particularly, to a data processing apparatus that converts information bits of one value “1” or “0” included in binary data having a predetermined number of bits. The present invention relates to a bit slide device for sliding to an upper side or a lower side, and a bit counting device for counting the number of information bits of one value “1” or “0” included in the binary data using the bit slide device.
[従来の技術] 従来、所定のビット数の2値データに含まれる“1"又
は“0"の1つの値の情報ビット数を計数するビット計数
装置が知られている。このビット計数装置は、画像デー
タ処理装置又は音声データ処理装置などに広く用いら
れ、例えば入力データが8ビットのビット計数装置の場
合、11個の1ビット全加算器を用いて構成される。2. Description of the Related Art Conventionally, there is known a bit counter for counting the number of information bits of one value of “1” or “0” included in binary data having a predetermined number of bits. This bit counting device is widely used in an image data processing device or an audio data processing device. For example, in the case of an 8-bit bit counting device, it is configured using 11 1-bit full adders.
また、上記ビット計数装置は、例えば、2値データに
含まれる“1"情報ビットを例えば下位側にスライドさせ
るビットスライド回路と、上記ビットスライド装置から
出力されるデータに基づいて“1"の情報ビット数を表す
データを符号化して出力する優先順位付きエンコーダか
ら構成される。上記ビットスライド回路は、例えば“10
101010"である8ビットのデータを“00001111"に変換し
て出力する。次いで、上記優先順位付きエンコーダは上
記データ“00001111"を、最下位ビットに最高の優先順
位を付けかつ最上位ビットに最低の優先順位を付けて符
号化し、上記データ“00001111"に含まれる“1"の情報
ビット数を表す4ビットのデータ“0100“を出力する。Further, the bit counting device includes, for example, a bit slide circuit that slides a “1” information bit included in the binary data to, for example, a lower side, and a “1” information bit based on data output from the bit slide device. It is composed of an encoder with a priority that encodes and outputs data representing the number of bits. The bit slide circuit is, for example, “10
The 8-bit data of "101010" is converted to "00001111" and output. The encoder with priority assigns the data "00001111" to the least significant bit with the highest priority and the most significant bit to the lowest. And outputs 4-bit data “0100” representing the number of information bits of “1” included in the data “00001111”.
[発明が解決しようとする課題] しかしながら、上述のビット計数装置は上述のように
11個の1ビット全加算器を用いて構成されるので、構成
される回路が非常に複雑になり、上記ビット計数装置を
例えば集積回路チップ(以下、ICチップという。)上に
形成した場合大きな基板面積を占有するという問題点が
あった。[Problems to be Solved by the Invention] However, the above-described bit counting device is
Since the configuration is made up of 11 1-bit full adders, the configuration circuit becomes very complicated. When the bit counting device is formed on an integrated circuit chip (hereinafter, referred to as an IC chip), it is large. There is a problem that it occupies the substrate area.
また、上記ビットスライド回路を同様に、複数個の1
ビット全加算器を用いて構成する場合、回路が非常に複
雑になり、上記ビットスライド回路を例えばICチップ上
に形成した場合、大きな基板面積を占有するという問題
点があった。Similarly, the above bit slide circuit is provided with a plurality of 1s.
In the case of using a bit full adder, the circuit becomes very complicated, and when the bit slide circuit is formed on, for example, an IC chip, there is a problem that a large substrate area is occupied.
本発明の第1の目的は以上の問題点を解決し、従来例
に比較し簡単な回路で構成できるビットスライド装置を
提供することにある。A first object of the present invention is to solve the above problems and to provide a bit slide device which can be constituted by a simpler circuit than the conventional example.
本発明の第2の目的は以上の問題点を解決し、従来例
に比較し簡単な回路で構成できるビット計数装置を提供
することにある。A second object of the present invention is to solve the above problems and to provide a bit counting device which can be constituted by a simpler circuit than the conventional example.
[問題を解決するための手段] 第1の発明に係るビットスライド装置は、第1と第2
の入力端子と第1と第2の出力端子を有し下記の真理値
表に従ってデータを入出力する複数n個のデータ変換手
段を備え、上記複数n個のデータ変換手段を下表の論理
が得られるように接続し、 上記各データ変換手段は、 第1の入力端子に入力されるデータに基づいて第2の
入力端子に入力されるデータを出力するか否かを切り換
える第1のゲート手段と、 上記第1のゲート手段の出力が“1"以外であるとき上
記第1のゲート手段の出力を“0"にプルダウンさせる第
1のプルダウン抵抗と、 上記第1の入力端子に入力されるデータと上記第1の
ゲート手段から出力されるデータの和論理を行い論理結
果のデータを第1の出力端子に出力するオアゲートと、 第1のゲート手段の出力データに基づいて第2の入力
端子に入力されるデータを第2の出力端子に出力するか
否かを切り換える第2のゲート手段と、 上記第2のゲート手段の出力が“1"以外であるとき上
記第2のゲート手段の出力を“0"にプルダウンさせる第
2のプルダウン抵抗とを備えたことを特徴とする。[Means for Solving the Problem] The bit slide device according to the first invention includes first and second bit slide devices.
And a plurality of n data converters having input terminals and first and second output terminals for inputting and outputting data in accordance with the following truth table. Connect to get Each of the data conversion means includes: first gate means for switching whether to output data input to a second input terminal based on data input to a first input terminal; and A first pull-down resistor for pulling down the output of the first gate means to "0" when the output of the means is other than "1"; data input to the first input terminal; and the first gate An OR gate that performs a logical sum of data output from the means and outputs data of a logical result to a first output terminal; and an OR gate that outputs data input to a second input terminal based on output data of the first gate means. Second gate means for switching whether or not to output to the second output terminal; and when the output of the second gate means is other than "1", the output of the second gate means is pulled down to "0". The second pull-down resistor It is characterized by having.
また、第2の発明に係るビットスライド装置は、入力
される2ビットの2値データに含まれる1つの値の情報
ビットを上位側又は下位側にスライドさせて2ビットの
2値データをそれぞれ出力する複数のデータ変換手段を
備え、入力端子に入力される複数ビットの2値データに
含まれる1つの値の情報ビットを上位側又は下位側にス
ライドさせて複数ビットの2値データを出力端子に出力
するように上記複数のデータ変換手段を接続し、 上記各データ変換手段は、 第1の入力端子に入力されるデータに基づいて第2の
入力端子に入力されるデータを出力するか否かを切り換
える第1のゲート手段と、 上記第1のゲート手段の出力が“1"以外であるとき上
記第1のゲート手段の出力を“0"にプルダウンさせる第
1のプルダウン抵抗と、 上記第1の入力端子に入力されるデータと上記第1の
ゲート手段から出力されるデータの和論理を行い論理結
果のデータを第1の出力端子に出力するオアゲートと、 第1のゲート手段の出力データに基づいて第2の入力
端子に入力されるデータを第2の出力端子に出力するか
否かを切り換える第2のゲート手段と、 上記第2のゲート手段の出力が“1"以外であるとき上
記第2のゲート手段の出力を“0"にプルダウンさせる第
2のプルダウン抵抗とを備えたことを特徴とする。Further, the bit slide device according to the second invention slides the information bit of one value included in the input 2-bit binary data to the upper side or the lower side to output the 2-bit binary data, respectively. A plurality of data conversion means, and slides an information bit of one value included in the binary data of a plurality of bits input to the input terminal to an upper side or a lower side to output the binary data of a plurality of bits to an output terminal. The plurality of data conversion means are connected so as to output, and each of the data conversion means outputs data input to a second input terminal based on data input to a first input terminal. A first pull-down resistor for pulling down the output of the first gate means to “0” when the output of the first gate means is other than “1”; An OR gate that performs a logical sum of data input to an input terminal of the first gate and data output from the first gate means and outputs data of a logical result to a first output terminal; A second gate means for switching whether or not to output data input to the second input terminal to the second output terminal based on the first gate means, and when the output of the second gate means is other than "1", A second pull-down resistor for pulling down the output of the second gate means to "0".
さらに、第3の発明に係るビットスライド装置は、入
力される複数ビットの2値データに含まれる1つの値の
情報ビットを上位側又は下位側にスライドさせるビット
スライド装置であって、第1及び第2の入力端子に入力
される2ビットの2値データに含まれる1つの値の情報
ビットを上位側又は下位側にスライドさせて2ビットの
2値データを第1及び第2の出力端子に出力する複数の
データ変換手段を備え、上記ビットスライド装置の最下
位ビットの入力端子を第1の上記データ変換手段の第1
の入力端子に接続し、上記ビットスライド装置の最上位
ビットの入力端子を第2の上記データ変換手段の第2の
入力端子に接続し、上記ビットスライド装置の最下位ビ
ットの出力端子を第1の上記データ変換手段の第1の出
力端子に接続し、上記ビットスライド装置の最上位ビッ
トの出力端子を第3の上記データ変換手段の第2の出力
端子に接続され、 上記各データ変換手段は、 第1の入力端子に入力されるデータに基づいて第2の
入力端子に入力されるデータを出力するか否かを切り換
える第1のゲート手段と、 上記第1のゲート手段の出力が“1"以外であるとき上
記第1のゲート手段の出力を“0"にプルダウンさせる第
1のプルダウン抵抗と、 上記第1の入力端子に入力されるデータと上記第1の
ゲート手段から出力されるデータの和論理を行い論理結
果のデータを第1の出力端子に出力するオアゲートと、 第1のゲート手段の出力データに基づいて第2の入力
端子に入力されるデータを第2の出力端子に出力するか
否かを切り換える第2のゲート手段と、 上記第2のゲート手段の出力が“1"以外であるとき上
記第2のゲート手段の出力を“0"にプルダウンさせる第
2のプルダウン抵抗とを備えたことを特徴とする。Further, a bit slide device according to a third invention is a bit slide device for sliding an information bit of one value included in input binary data of a plurality of bits to an upper side or a lower side, wherein The information bit of one value included in the 2-bit binary data input to the second input terminal is slid to the upper side or the lower side, and the 2-bit binary data is transmitted to the first and second output terminals. A plurality of data converting means for outputting the data, wherein the least significant bit input terminal of the bit slide device is connected to the first terminal of the first data converting means.
The input terminal of the most significant bit of the bit slide device is connected to the second input terminal of the second data conversion means, and the output terminal of the least significant bit of the bit slide device is connected to the first input terminal. Connected to the first output terminal of the data conversion means, and the output terminal of the most significant bit of the bit slide device is connected to the second output terminal of the third data conversion means. First gate means for switching whether or not to output data input to the second input terminal based on data input to the first input terminal; and output of the first gate means being "1" A first pull-down resistor for pulling down the output of the first gate means to “0” when the value is other than “1”; data input to the first input terminal; and data output from the first gate means. Sum of An OR gate that outputs data of a logical result to a first output terminal and outputs data input to a second input terminal to a second output terminal based on output data of the first gate means A second gate means for switching whether or not the second gate means is turned off; and a second pull-down resistor for pulling down the output of the second gate means to "0" when the output of the second gate means is other than "1". It is characterized by having.
ここで、上記1第1と第2のゲート手段は例えばそれ
ぞれトランスミッションゲートである。Here, the first and second gate means are, for example, transmission gates, respectively.
また、好ましくは、上記ビットスライド装置と、上記
ビットスライド装置から出力される2値データに基づい
て上記2値データに含まれる1つの値の情報ビットの数
を表す2値データに符号化して出力する符号化手段とを
備える。Preferably, the bit slide device is coded into binary data representing the number of information bits of one value included in the binary data based on the binary data output from the bit slide device. Encoding means.
[作用] 以上のように構成することにより、ビットスライド装
置の入力端子に入力される複数ビットの2値データに含
まれる1つの値の情報ビットを上位側又は下位側にスラ
イドさせて複数ビットの2値データを出力することがで
きる。[Operation] By configuring as described above, the information bits of one value included in the binary data of a plurality of bits input to the input terminal of the bit slide device are slid to the upper side or the lower side, and the plurality of bits are shifted. Binary data can be output.
また、上記符号化手段を備えたとき、上記符号化手段
は、上記ビットスライド装置から出力される2値データ
に基づいて上記2値データに含まれる1つの値の情報ビ
ットの数を表す2値データに符号化して出力する。従っ
て、上記ビットスライド装置に入力される2値データに
含まれる1つの値の情報ビットの数を表す2値データを
得ることができる。In addition, when the encoding means is provided, the encoding means includes a binary value representing the number of information bits of one value included in the binary data based on the binary data output from the bit slide device. Encode the data and output. Therefore, binary data representing the number of information bits of one value included in the binary data input to the bit slide device can be obtained.
[実施例] 第1図は本発明の一実施例であるビット計数装置のブ
ロック図である。第2図は第1図のデータ変換回路10−
1ないし10−28の回路図である。なお、以下の実施例に
おいて用いられるデータはすべて“1"又は“0"の1つの
値の情報ビットを有する2値データである。Embodiment FIG. 1 is a block diagram of a bit counter according to an embodiment of the present invention. FIG. 2 shows the data conversion circuit 10- of FIG.
It is a circuit diagram of 1 to 10-28. The data used in the following embodiments are all binary data having one value information bit of “1” or “0”.
本実施例のビット計数装置は、ビットスライド回路1
と優先順位付きエンコーダ2から構成され、上記ビット
スライド回路1は28個のデータ変換回路10−1ないし10
−28から構成される。The bit counting device of the present embodiment has a bit slide circuit 1
The bit slide circuit 1 comprises 28 data conversion circuits 10-1 through 10-1.
It consists of -28.
第1図において、D0ないしD7はビット計数装置及びビ
ットスライド回路1の入力端子であり、入力端子D0に最
下位ビットのデータが入力され、一方、入力端子D7に最
上位ビットのデータが入力される。また、E0ないしE7は
ビットスライド回路1の出力端子であり、出力端子E0か
ら最下位ビットのデータが出力され、一方、出力端子E7
から最上位ビットのデータが出力される。さらに、Q0な
いしQ3は優先順位付きエンコーダ2及びビット計数装置
の出力端子であり、出力端子Q0から最下位ビットのデー
タが出力され、一方、出力端子Q3から最上位ビットのデ
ータが出力される。In FIG. 1, D0 to D7 are input terminals of the bit counting device and the bit slide circuit 1. Data of the least significant bit is input to the input terminal D0, while data of the most significant bit is input to the input terminal D7. You. E0 to E7 are output terminals of the bit slide circuit 1, and the least significant bit data is output from the output terminal E0.
Outputs the data of the most significant bit. Further, Q0 to Q3 are output terminals of the encoder 2 with priority and the bit counting device, and output data of the least significant bit is output from the output terminal Q0, while data of the most significant bit is output from the output terminal Q3.
入力端子D0ないしD6がそれぞれデータ変換回路10−1
ないし10−7の各入力端子A1に接続され、入力端子D7は
データ変換回路10−7の入力端子A2に接続される。デー
タ変換回路10−1ないし10−7の各出力端子B1はそれぞ
れ、出力端子E0、及びデータ変換回路10−1ないし10−
6の各入力端子A2に接続され、データ変換回路10−1な
いし10−7の各出力端子B2はそれぞれ、データ変換回路
10−8ないし10−13の各入力端子A1及びデータ変換回路
10−13の入力端子A2に接続される。The input terminals D0 to D6 are respectively connected to the data conversion circuit 10-1.
The input terminal D7 is connected to the input terminal A2 of the data conversion circuit 10-7. Each output terminal B1 of the data conversion circuits 10-1 to 10-7 is connected to an output terminal E0 and the data conversion circuits 10-1 to 10-, respectively.
6 is connected to each input terminal A2, and each output terminal B2 of the data conversion circuits 10-1 to 10-7 is connected to a data conversion circuit.
10-8 to 10-13 input terminals A1 and data conversion circuit
Connected to input terminal A2 of 10-13.
データ変換回路10−8ないし10−13の各出力端子B1は
それぞれ、出力端子E1及びデータ変換回路10−8ないし
10−12の各入力端子A2に接続され、データ変換回路10−
8ないし10−13の各出力端子B2はそれぞれ、データ変換
回路10−14ないし10−18の各入力端子A1及びデータ変換
回路10−18の入力端子A2に接続される。Each output terminal B1 of the data conversion circuits 10-8 to 10-13 has an output terminal E1 and the data conversion circuits 10-8 to 10-13, respectively.
10−12 are connected to each input terminal A2, and the data conversion circuit 10−
The output terminals B2 of 8 to 10-13 are connected to the input terminals A1 of the data conversion circuits 10-14 to 10-18 and the input terminal A2 of the data conversion circuit 10-18, respectively.
データ変換回路10−14ないし10−18の各出力端子B1は
それぞれ、出力端子E2及びデータ変換回路10−14ないし
10−17の各入力端子A2に接続され、データ変換回路10−
14ないし10−18の各出力端子B2はそれぞれ、データ変換
回路10−19ないし10−22の各入力端子A1及びデータ変換
回路10−22の入力端子A2に接続される。Each output terminal B1 of the data conversion circuits 10-14 to 10-18 has an output terminal E2 and the data conversion circuits 10-14 to 10-14, respectively.
Connected to each input terminal A2 of 10-17, the data conversion circuit 10-
The output terminals B2 of 14 to 10-18 are connected to the input terminals A1 of the data conversion circuits 10-19 to 10-22 and the input terminal A2 of the data conversion circuit 10-22, respectively.
データ変換回路10−19ないし10−22の各出力端子B1は
それぞれ、出力端子E3及びデータ変換回路10−19ないし
10−21の各入力端子A2に接続され、データ変換回路10−
19ないし10−22の各出力端子B2はそれぞれ、データ変換
回路10−23ないし10−25の各入力端子A1及びデータ変換
回路10−25の入力端子A2に接続される。The output terminals B1 of the data conversion circuits 10-19 to 10-22 are respectively connected to the output terminal E3 and the data conversion circuits 10-19 to 10-19.
Connected to each input terminal A2 of 10−21, the data conversion circuit 10−
The output terminals B2 of 19 to 10-22 are connected to the input terminals A1 of the data conversion circuits 10-23 to 10-25 and the input terminal A2 of the data conversion circuit 10-25, respectively.
データ変換回路10−23ないし10−25の各出力端子B1は
それぞれ、出力端子E4及びデータ変換回路10−26ないし
10−27の各入力端子A2に接続され、データ変換回路10−
23ないし10−25の各出力端子B2はそれぞれ、データ変換
回路10−26及び10−26の各入力端子A1及びデータ変換回
路10−26の入力端子A2に接続される。Each output terminal B1 of the data conversion circuits 10-23 to 10-25 has an output terminal E4 and the data conversion circuits 10-26 to 10-26, respectively.
10-27 is connected to each input terminal A2,
Output terminals B2 of 23 to 10-25 are connected to input terminals A1 of data conversion circuits 10-26 and 10-26 and input terminal A2 of data conversion circuit 10-26, respectively.
データ変換回路10−26及び10−27の各出力端子B1はそ
れぞれ、出力端子E5及びデータ変換回路10−26の入力端
子A2に接続され、データ変換回路10−26ないし10−27の
各出力端子B2はそれぞれ、データ変換回路10−28の入力
端子A1及び入力端子A2に接続される。Each output terminal B1 of the data conversion circuits 10-26 and 10-27 is connected to the output terminal E5 and the input terminal A2 of the data conversion circuit 10-26, respectively, and each output terminal of the data conversion circuits 10-26 to 10-27. B2 is connected to the input terminal A1 and the input terminal A2 of the data conversion circuit 10-28, respectively.
データ変換回路10−28の出力端子B1,B2はそれぞれ出
力端子E6,E7に接続される。出力端子E0ないしE7はそれ
ぞれ優先順位付きエンコーダ2の8ビットの入力端子に
接続され、上記エンコーダ2の4ビットの出力端子はそ
れぞれ出力端子Q0ないしQ3に接続される。Output terminals B1 and B2 of data conversion circuit 10-28 are connected to output terminals E6 and E7, respectively. The output terminals E0 to E7 are respectively connected to the 8-bit input terminals of the encoder 2 with priority, and the 4-bit output terminals of the encoder 2 are connected to the output terminals Q0 to Q3, respectively.
第2図は第1図のデータ変換回路10−1ないし10−28
の回路図である。FIG. 2 shows the data conversion circuits 10-1 to 10-28 of FIG.
FIG.
第2図において、入力端子A1はオアゲートORの第1の
入力端子及びトランスミッションゲートTG1のディスエ
ーブル端子に接続されるとともに、インバータINV1を介
してトランスミッションゲートTG1のイネーブル端子に
接続される。入力端子A2はトランスミッションゲートTG
1のゲートを介してオアゲートORの第2の入力端子に接
続されるとともに、トランスミッションゲートTG2のゲ
ートを介して出力端子B2に接続される。オアゲートORの
出力端子は出力端子B1に接続される。In FIG. 2, the input terminal A1 is connected to the first input terminal of the OR gate OR and the disable terminal of the transmission gate TG1, and is connected to the enable terminal of the transmission gate TG1 via the inverter INV1. Input terminal A2 is transmission gate TG
The gate is connected to the second input terminal of the OR gate OR via one gate, and is connected to the output terminal B2 via the gate of the transmission gate TG2. The output terminal of the OR gate OR is connected to the output terminal B1.
トランスミッションゲートTG1のゲートの出力端子は
また、トランスミッションゲートTG2のディスエーブル
端子に接続されるとともに、プルダウン抵抗R1を介して
アースに接続される。トランスミッションゲートTG1の
ゲートの出力端子はさらに、インバータINV2を介してト
ランスミッションゲートTG2のイネーブル端子に接続さ
れる。The output terminal of the gate of the transmission gate TG1 is also connected to the disable terminal of the transmission gate TG2 and to the ground via the pull-down resistor R1. The output terminal of the gate of the transmission gate TG1 is further connected to the enable terminal of the transmission gate TG2 via the inverter INV2.
トランスミッションゲートTG2のゲートの出力端子は
プルダウン抵抗R2を介してアースに接続される。The output terminal of the transmission gate TG2 is connected to ground via a pull-down resistor R2.
第2図のように構成されたデータ変換回路10−1ない
し10−28は第1表の真理値表のように動作する。すなわ
ち、データ変換回路10−1ないし10−28はそれぞれ、入
力端子A1,A2に入力される2ビットのデータに含まれる
“1"の情報ビットを下位側、すなわち出力端子B1側にス
ライドさせ、一方、“0"の情報ビットを上位側、すなわ
ち出力端子B2側にスライドさせた後、2ビットのデータ
として出力端子B1,B2に出力する。The data conversion circuits 10-1 to 10-28 configured as shown in FIG. 2 operate as shown in the truth table of Table 1. That is, the data conversion circuits 10-1 to 10-28 respectively slide the information bit of "1" included in the 2-bit data input to the input terminals A1 and A2 to the lower side, that is, the output terminal B1. On the other hand, the information bit of "0" is slid to the upper side, that is, to the output terminal B2 side, and then output to the output terminals B1 and B2 as 2-bit data.
第1図のように構成されたデータスライド回路1は、
入力端子D0ないしD7に入力される8ビットのデータに含
まれる“1"の情報ビットを下位側、すなわち出力端子E0
側にスライドさせ、一方、“0"の情報ビットを上位側、
すなわち出力端子E7側にスライドさせた後、8ビットの
データとして出力端子E0ないしE7に出力する。The data slide circuit 1 configured as shown in FIG.
The information bit of "1" included in the 8-bit data input to the input terminals D0 to D7 is shifted to the lower side, that is, the output terminal E0.
Side, while the information bit of “0” is
That is, after sliding to the output terminal E7 side, the data is output to the output terminals E0 to E7 as 8-bit data.
優先順位付きエンコーダ2は、入力端子に入力される
8ビットのデータを、最下位ビットの最高の優先順位を
付けかつ最上位ビットに最低の優先順位を付けて符号化
し、上記入力データに含まれる“1"の情報ビット数を表
す8ビットのデータを出力端子Q0ないしQ3に出力する。The priority encoder 2 encodes the 8-bit data input to the input terminal with the highest priority of the least significant bit and the lowest priority of the most significant bit, and is included in the input data. 8-bit data representing the number of information bits of "1" is output to output terminals Q0 to Q3.
以上のように構成されたビット計数装置において、例
えば8ビットのデータ“10011010"が入力端子D0ないしD
7に入力されたとき、ビットスライド回路1は、データ
に含まれる“1"の情報ビットを下位側、すなわち出力端
子E0側にスライドさせ、一方、“0"の情報ビットを上位
側、すなわち出力端子E7側にスライドさせた後、8ビッ
トのデータ“00001111"を出力端子E0ないしE7に出力す
る。次いで、優先順位付きエンコーダ2は、入力端子に
入力される8ビットのデータ“00001111"を、最下位ビ
ットに最高の優先順位を付けかつ最上位ビットに最低の
優先順位を付けて符号化し、上記入力データに含まれる
“1"の情報ビット数を表す8ビットのデータ“0100"を
出力端子Q0ないしQ3に出力する。In the bit counting device configured as described above, for example, 8-bit data “10011010” is input to the input terminals D0 to D0.
7, the bit slide circuit 1 slides the "1" information bit included in the data to the lower side, that is, to the output terminal E0, and shifts the "0" information bit to the upper side, that is, the output terminal. After sliding to the terminal E7 side, 8-bit data “00001111” is output to the output terminals E0 to E7. Next, the priority encoder 2 encodes the 8-bit data “00001111” input to the input terminal by assigning the highest priority to the least significant bit and the lowest priority to the most significant bit. 8-bit data “0100” representing the number of information bits “1” included in the input data is output to the output terminals Q0 to Q3.
第1図のようにビットスライド回路1及びビット計数
装置を構成することにより、従来例に比較して簡単な回
路で実現できる。これによって、該ビットスライド回路
1及びビット計数装置をICチップ上において従来例に比
較して小さい占有面積で形成することができるという利
点がある。例えば8ビットのビット計数装置の場合、本
発明者の試算によれば、ビット計数装置を従来例に比べ
てICチップ上において1/3の占有面積で形成できる。By configuring the bit slide circuit 1 and the bit counting device as shown in FIG. 1, it can be realized with a simpler circuit than the conventional example. Thus, there is an advantage that the bit slide circuit 1 and the bit counting device can be formed on an IC chip with a smaller occupied area as compared with the conventional example. For example, in the case of an 8-bit bit counter, according to a trial calculation made by the inventor, the bit counter can be formed on an IC chip with an area occupied by 1/3 as compared with the conventional example.
以上の実施例においては、8ビットのビット計数装置
及びビットスライド回路1について述べているが、これ
に限らず、複数ビットのデータを処理するビット計数装
置及びビットスライド回路1を同様に構成できる。すな
わち、nビットのスライド回路1は第3図のように構成
される。すなわち、第2図に示された回路を有するセル
をXとしてそれぞれのセルXに第3図に示した番号を付
け、それぞれのセルXの端子名をA1(1,1),A2(1,1),
B1(1,1)、B2(1,1)‥‥A1(α,β)、A2(α,
β),B1(α,β),B2(α,β)‥‥A1(n,n),A2(n,
n),B1(n,n),B2(n,n)と表すことにすると、セルX
(α,β)の各端子の接続は以下に示すようになる。
(ただし、n≧2,1≦α≦n,1≦β≦nとなる整数) ここで、Dnは入力ピン名、Enは出力ピン名を示し
“=”は端子どうしの接続を示す。In the above embodiments, the 8-bit bit counter and the bit slide circuit 1 are described. However, the present invention is not limited to this, and the bit counter and the bit slide circuit 1 for processing a plurality of bits of data can be similarly configured. That is, the n-bit slide circuit 1 is configured as shown in FIG. That is, a cell having the circuit shown in FIG. 2 is designated as X, and each cell X is numbered as shown in FIG. 3, and the terminal names of each cell X are A1 (1,1), A2 (1, 1),
B1 (1,1), B2 (1,1) ‥‥ A1 (α, β), A2 (α,
β), B1 (α, β), B2 (α, β) ‥‥ A1 (n, n), A2 (n,
n), B1 (n, n), B2 (n, n), the cell X
The connection of each terminal of (α, β) is as follows.
(However, n ≧ 2, 1 ≦ α ≦ n, 1 ≦ β ≦ n) Here, Dn indicates an input pin name, En indicates an output pin name, and “=” indicates connection between terminals.
以上の実施例において、“1"の情報ビットを下位側に
スライドさせかつ“0"の情報ビットを上位側にスライド
させるビットスライド回路1について述べているが、こ
れに限らず、入力端子D0ないしD7と出力端子E0ないしE7
のそれぞれに入力されるデータのビット配置を逆にする
ことによって、“1"の情報ビットを上位側にスライドさ
せかつ“0"の情報ビットを下位側にスライドさせること
ができる。すなわち、入力端子D0を最上位ビット用とし
入力端子D7を最下位ビット用とし、出力端子E0を最上位
ビット用とし出力端子E7を最下位ビット用とする。In the above embodiment, the bit slide circuit 1 that slides the information bit of "1" to the lower side and slides the information bit of "0" to the upper side is described. D7 and output terminals E0 to E7
, The information bit of “1” can be slid to the upper side and the information bit of “0” can be slid to the lower side. That is, the input terminal D0 is for the most significant bit, the input terminal D7 is for the least significant bit, the output terminal E0 is for the most significant bit, and the output terminal E7 is for the least significant bit.
[発明の効果] 以上詳述したように本発明によれば、入力される2ビ
ットの2値データに含まれる1つの情報ビットを上位側
又は下位側にスライドさせて2ビットの2値データをそ
れぞれ出力する複数のデータ変換手段を備え、入力端子
に入力される複数ビットの2値データに含まれる1つの
値の情報ビットを上位側又は下位側にスライドさせて複
数ビットの2値データを出力するように上記複数のデー
タ変換手段を接続し、 上記各データ変換手段は、 第1の入力端子に入力されるデータに基づいて第2の
入力端子に入力されるデータを出力するか否かを切り換
える第1のゲート手段と、 上記第1のゲート手段の出力が“1"以外であるとき上
記第1のゲート手段の出力を“0"にプルダウンさせる第
1のプルダウン抵抗と、 上記第1の入力端子に入力されるデータと上記第1の
ゲート手段から出力されるデータの和論理を行い論理結
果のデータを第1の出力端子に出力するオアゲートと、 第1のゲート手段の出力データに基づいて第2の入力
端子に入力されるデータを第2の出力端子に出力するか
否かを切り換える第2のゲート手段と、 上記第2のゲート手段の出力が“1"以外であるとき上
記第2のゲート手段の出力を“0"にプルダウンさせる第
2のプルダウン抵抗とを備えて構成したので、従来例に
比較し簡単な回路で、ビットスライド装置を実現出来
る。 [Effect of the Invention] As described above in detail, according to the present invention, one information bit included in input 2-bit binary data is slid to the upper side or the lower side to convert the 2-bit binary data. A plurality of data conversion means for outputting each of the plurality of data bits, and sliding the information bits of one value included in the plurality of binary data inputted to the input terminal to the upper side or the lower side to output the plurality of binary data; The plurality of data conversion means are connected to each other, and each of the data conversion means determines whether to output data input to the second input terminal based on data input to the first input terminal. First gate means for switching; a first pull-down resistor for pulling down the output of the first gate means to "0" when the output of the first gate means is other than "1"; Input end An OR gate for performing a logical sum of the data input to the first and the data output from the first gate means and outputting data of a logical result to a first output terminal; and an OR gate based on the output data of the first gate means. Second gate means for switching whether or not to output data input to the second input terminal to the second output terminal; and when the output of the second gate means is other than "1", the second gate means Since it is provided with the second pull-down resistor for pulling down the output of the gate means to "0", the bit slide device can be realized with a simpler circuit than the conventional example.
さらに、上記ビットスライド装置に加えて、上記ビッ
トスライド装置から出力される2値データに基づいて上
記2値データに含まれる1つの値の情報ビットの数を表
す2値データに符号化する符号化手段を備えたので、従
来例に比較し簡単な回路でビット計数装置を実現出来
る。Further, in addition to the bit slide device, coding for coding into binary data representing the number of information bits of one value included in the binary data based on the binary data output from the bit slide device Since the means is provided, a bit counting device can be realized with a simpler circuit than the conventional example.
第1図は本発明の一実施例であるビット計数装置のブロ
ック図、 第2図は第1図のデータ変換回路の回路図、第3図は他
の実施例を示すブロック図である。 1…ビットスライド回路、2…優先順位付きエンコー
ダ、10−1ないし10−28…データ変換回路。FIG. 1 is a block diagram of a bit counting device according to one embodiment of the present invention, FIG. 2 is a circuit diagram of a data conversion circuit of FIG. 1, and FIG. 3 is a block diagram showing another embodiment. 1. Bit slide circuit, 2. Encoder with priority, 10-1 to 10-28 Data conversion circuit.
フロントページの続き (72)発明者 福井 良 東京都大田区中馬込1丁目3番6号 株 式会社リコー内 (72)発明者 坂本 和穂 東京都大田区中馬込1丁目3番6号 株 式会社リコー内 (72)発明者 田中 正文 東京都大田区中馬込1丁目3番6号 株 式会社リコー内 (56)参考文献 特開 昭64−26223(JP,A) 特開 昭55−33223(JP,A) (58)調査した分野(Int.Cl.6,DB名) G06F 7/00 - 7/04 G06F 7/24Continued on the front page (72) Inventor Ryo Fukui 1-3-6 Nakamagome, Ota-ku, Tokyo Inside Ricoh Company (72) Inventor Kazuho Sakamoto 1-3-6 Nakamagome, Ota-ku, Tokyo Co., Ltd. Ricoh (72) Inventor Masafumi Tanaka 1-3-6 Nakamagome, Ota-ku, Tokyo Ricoh Co., Ltd. (56) References JP-A-64-22323 (JP, A) JP-A-55-33223 (JP) , A) (58) Field surveyed (Int. Cl. 6 , DB name) G06F 7/00-7/04 G06F 7/24
Claims (5)
端子を有し下記の真理値表に従ってデータを入出力する
複数n個のデータ変換手段を備え、 上記複数n個のデータ変換手段を下表に示す論理関係が
得られるように接続し、 上記各データ変換手段は、 第1の入力端子に入力されるデータに基づいて第2の入
力端子に入力されるデータを出力するか否かを切り換え
る第1のゲート手段と、 上記第1のゲート手段の出力が“1"以外であるとき上記
第1のゲート手段の出力を″0″にプルダウンさせる第
1のプルダウン抵抗と、 上記第1の入力端子に入力されるデータと上記第1のゲ
ート手段から出力されるデータの和論理を行い論理結果
のデータを第1の出力端子に出力するオアゲートと、 第1のゲート手段の出力データに基づいて第2の入力端
子に入力されるデータを第2の出力端子に出力するか否
かを切り換える第2のゲート手段と、 上記第2のゲート手段の出力が“1"以外であるとき上記
第2のゲート手段の出力を″0″にプルダウンさせる第
2のプルダウン抵抗とを備えたことを特徴とするビット
スライド装置。A plurality of data conversion means having first and second input terminals and first and second output terminals for inputting and outputting data in accordance with the following truth table; Are connected so that the logical relationship shown in the table below can be obtained. Each of the data conversion means includes: first gate means for switching whether to output data input to a second input terminal based on data input to a first input terminal; and A first pull-down resistor for pulling down the output of the first gate means to "0" when the output of the means is other than "1"; data inputted to the first input terminal and the first gate; An OR gate that performs a logical sum of data output from the means and outputs data of a logical result to a first output terminal; and an OR gate that outputs data input to a second input terminal based on output data of the first gate means. Second gate means for switching whether or not to output to the second output terminal; and when the output of the second gate means is other than "1", the output of the second gate means is pulled down to "0". Second pulldown Bit slide apparatus characterized by comprising an anti-city.
る1つの値の情報ビットを上位側又は下位側にスライド
させて2ビットの2値データをそれぞれ出力する複数の
データ変換手段を備え、 入力端子に入力される複数ビットの2値データに含まれ
る1つの値の情報ビットを上位側又は下位側にスライド
させて複数ビットの2値データを出力端子に出力するよ
うに上記複数のデータ変換手段を接続し、 上記各データ変換手段は、 第1の入力端子に入力されるデータに基づいて第2の入
力端子に入力されるデータを出力するか否かを切り換え
る第1のゲート手段と、 上記第1のゲート手段の出力が“1"以外であるとき上記
第1のゲート手段の出力を“0"にプルダウンさせる第1
のプルダウン抵抗と、 上記第1の入力端子に入力されるデータと上記第1のゲ
ート手段から出力されるデータの和論理を行い論理結果
のデータを第1の出力端子に出力するオアゲートと、 第1のゲート手段の出力データに基づいて第2の入力端
子に入力されるデータを第2の出力端子に出力するか否
かを切り換える第2のゲート手段と、 上記第2のゲート手段の出力が“1"以外であるとき上記
第2のゲート手段の出力を“0"にプルダウンさせる第2
のプルダウン抵抗とを備えたことを特徴とするビットス
ライド装置。2. A plurality of data conversion means for sliding information bits of one value included in input 2-bit binary data to an upper side or a lower side to output 2-bit binary data, respectively. The plurality of data bits are output so that one value information bit included in the multi-bit binary data input to the input terminal is slid to the upper side or the lower side to output the multi-bit binary data to the output terminal. A first gate means for connecting the conversion means, wherein each of the data conversion means switches whether or not to output the data input to the second input terminal based on the data input to the first input terminal; A first step of pulling down the output of the first gate means to "0" when the output of the first gate means is other than "1";
An OR gate for performing a logical sum of the data input to the first input terminal and the data output from the first gate means, and outputting a logical result data to the first output terminal; A second gate means for switching whether or not to output data input to the second input terminal to the second output terminal based on output data of the first gate means; and When the value is other than "1", the output of the second gate means is pulled down to "0".
A bit slide device comprising: a pull-down resistor.
れる1つの値の情報ビットを上位側又は下位側にスライ
ドさせるビットスライド装置であって、 第1及び第2の入力端子に入力される2ビットの2値デ
ータに含まれる1つの値の情報ビットを上位側又は下位
側にスライドさせて2ビットの2値データを第1及び第
2の出力端子に出力する複数のデータ変換手段を備え、 上記ビットスライド装置の最下位ビットの入力端子を第
1の上記データ変換手段の第1の入力端子に接続し、上
記ビットスライド装置の最上位ビットの入力端子を第2
の上記データ変換手段の第2の入力端子に接続し、上記
ビットスライド装置の最下位ビットの出力端子を第1の
上記データ変換手段の第1の出力端子に接続し、上記ビ
ットスライド装置の最上位ビットの出力端子を第3の上
記データ変換手段の第2の出力端子に接続され、 上記各データ変換手段は、 第1の入力端子に入力されるデータに基づいて第2の入
力端子に入力されるデータを出力するか否かを切り換え
る第1のゲート手段と、 上記第1のゲート手段の出力が“1"以外であるとき上記
第1のゲート手段の出力を“0"にプルダウンさせる第1
のプルダウン抵抗と、 上記第1の入力端子に入力されるデータと上記第1のゲ
ート手段から出力されるデータの和論理を行い論理結果
のデータを第1の出力端子に出力するオアゲートと、 第1のゲート手段の出力データに基づいて第2の入力端
子に入力されるデータを第2の出力端子に出力するか否
かを切り換える第2のゲート手段と、 上記第2のゲート手段の出力が“1"以外であるとき上記
第2のゲート手段の出力を“0"にプルダウンさせる第2
のプルダウン抵抗とを備えたことを特徴とするビットス
ライド装置。3. A bit slide device for sliding an information bit of one value included in binary data of a plurality of bits to be inputted to an upper side or a lower side, wherein the information bit is inputted to first and second input terminals. A plurality of data conversion means for sliding the information bit of one value included in the binary data of two bits to the upper side or the lower side to output the binary data of two bits to the first and second output terminals. The input terminal of the least significant bit of the bit slide device is connected to the first input terminal of the first data conversion means, and the input terminal of the most significant bit of the bit slide device is connected to the second input terminal.
Connected to the second input terminal of the data conversion means, and connected to the output terminal of the least significant bit of the bit slide device to the first output terminal of the first data conversion means. An output terminal of the upper bit is connected to a second output terminal of the third data conversion means, and each of the data conversion means is input to a second input terminal based on data input to the first input terminal. First gate means for switching whether or not to output data to be output, and a second means for pulling down the output of the first gate means to "0" when the output of the first gate means is other than "1". 1
An OR gate for performing a logical sum of the data input to the first input terminal and the data output from the first gate means, and outputting a logical result data to the first output terminal; A second gate means for switching whether or not to output data input to the second input terminal to the second output terminal based on output data of the first gate means; and When the value is other than "1", the output of the second gate means is pulled down to "0".
A bit slide device comprising: a pull-down resistor.
ランスミッションゲートであることを特徴とする請求項
第1項、第2項又は第3項記載のビットスライド装置。4. The bit slide device according to claim 1, wherein said first and second gate means are transmission gates.
記載のビットスライド装置と、上記ビットスライド装置
から出力される2値データに基づいて上記2値データに
含まれる1つの値の情報ビットの数を表す2値データに
符号化して出力する符号化手段とを備えたことを特徴と
するビット計数装置。5. The bit slide device according to claim 1, 2, 3 or 4, and the binary data included in the binary data based on the binary data output from the bit slide device. Encoding means for encoding binary data representing the number of information bits of one value and outputting the binary data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63125302A JP2763545B2 (en) | 1988-05-23 | 1988-05-23 | Bit slide device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63125302A JP2763545B2 (en) | 1988-05-23 | 1988-05-23 | Bit slide device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01295329A JPH01295329A (en) | 1989-11-29 |
| JP2763545B2 true JP2763545B2 (en) | 1998-06-11 |
Family
ID=14906724
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63125302A Expired - Lifetime JP2763545B2 (en) | 1988-05-23 | 1988-05-23 | Bit slide device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2763545B2 (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5533223A (en) * | 1978-08-30 | 1980-03-08 | Chiyou Lsi Gijutsu Kenkyu Kumiai | Sorting function integrated-circuit device |
| JPS6426223A (en) * | 1987-07-22 | 1989-01-27 | Canon Kk | Sequential array circuit |
-
1988
- 1988-05-23 JP JP63125302A patent/JP2763545B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH01295329A (en) | 1989-11-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US3707680A (en) | Digital differential pulse code modulation system | |
| US4209773A (en) | Code converters | |
| JP2763545B2 (en) | Bit slide device | |
| US4467315A (en) | Digital compandor having nonlinear companding characteristics | |
| US4686512A (en) | Integrated digital circuit for processing speech signal | |
| JPS6136415B2 (en) | ||
| US20020001414A1 (en) | System for building a data compression encoder | |
| CN115567059B (en) | Data compression and decompression method and device | |
| CN111031388A (en) | YUV4:4:4 data coding and decoding method | |
| CN112421776B (en) | Transformer remote signal gear synthesis method and its module with variable input quantity | |
| JPS5938770B2 (en) | PCM decoder | |
| US6816098B2 (en) | High-speed oversampling modulator device | |
| JPS6276931A (en) | Data compressor | |
| JP3150689B2 (en) | ROM digital arithmetic circuit | |
| JP3261742B2 (en) | Redundant binary / binary conversion circuit including rounding processing | |
| JP2650964B2 (en) | Image processing device | |
| Ogawa et al. | A single chip compression/decompression LSI based on JPEG | |
| JPS61136378A (en) | Encoding method | |
| CN119999096A (en) | A method and apparatus for converting representations of values in different systems | |
| JP2838964B2 (en) | Variable length coding circuit | |
| JPS60251763A (en) | Magnifying and reducing circuit of facsimile information | |
| JP2929591B2 (en) | Image coding device | |
| JPS5829917B2 (en) | Weyl code encoding circuit | |
| KR0159655B1 (en) | Data compression apparatus using ccd | |
| CN119729000A (en) | Enhancement QOI encoder based on FPGA |