JPS636899Y2 - - Google Patents

Info

Publication number
JPS636899Y2
JPS636899Y2 JP1981111852U JP11185281U JPS636899Y2 JP S636899 Y2 JPS636899 Y2 JP S636899Y2 JP 1981111852 U JP1981111852 U JP 1981111852U JP 11185281 U JP11185281 U JP 11185281U JP S636899 Y2 JPS636899 Y2 JP S636899Y2
Authority
JP
Japan
Prior art keywords
bit
data
gate
input
output
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
Application number
JP1981111852U
Other languages
Japanese (ja)
Other versions
JPS5819343U (en
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 filed Critical
Priority to JP11185281U priority Critical patent/JPS5819343U/en
Publication of JPS5819343U publication Critical patent/JPS5819343U/en
Application granted granted Critical
Publication of JPS636899Y2 publication Critical patent/JPS636899Y2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Saccharide Compounds (AREA)

Description

【考案の詳細な説明】 本考案は符号付き入力データをその入力データ
より長い所望ビツト長の符号付きデータとなるよ
う符号ビツトの領域を拡張するビツト可変型符号
ビツト拡張回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a bit-variable sign bit expansion circuit that expands the sign bit area so that signed input data becomes signed data with a desired bit length longer than the input data.

デイジタル・データを取り扱う場合において、
入力データが符号付きの例えば9ビツト長データ
であつたり、8ビツト長データであつたりする場
合にこれを例えば12ビツトの演算装置や制御装置
等に与えて処理するとき、一般にデータの最上位
ビツトを符号ビツトとして取り扱うから、12ビツ
トに満たない入力データの符号ビツトを上記演算
装置や制御装置で取り扱い易い符号付き12ビツト
長に変換して与えるようにすると処理が行ない易
くなる。
When handling digital data,
When input data is signed data, such as 9-bit long data or 8-bit long data, and is fed to a 12-bit arithmetic unit or control device for processing, the most significant bit of the data is generally is treated as a sign bit, processing becomes easier if the sign bit of input data less than 12 bits is converted to a signed 12-bit length that is easier to handle by the arithmetic unit or control unit.

特に符号ビツトを除くデータ部分のビツト長を
一定として処理させる場合、12ビツト長のうち、
入力データの符号ビツト該当桁より上位の各ビツ
トを符号ビツトの領域として同一符号データをそ
の符号ビツトの領域の各々のビツトに割り付けれ
ば該領域のいずれのビツトを取り込んでも符号が
認識でき、入力データの含む情報をそのまま受け
取ることができる。
In particular, when processing the bit length of the data part excluding the sign bit as constant, out of the 12 bit length,
If the bits above the corresponding sign bit of input data are assigned as a sign bit area, and the same code data is assigned to each bit in the sign bit area, the code can be recognized no matter which bit in the area is taken in, and the input data can be recognized. You can receive the information contained in the data as is.

しかも、このように符号ビツトの領域を拡張し
ておけば9ビツト長から12ビツト長のデータ処理
装置にて処理が可能となる。
Moreover, by expanding the code bit area in this way, processing can be performed by a data processing device having a length of 9 bits to 12 bits.

かかる符号ビツトの拡張は従来、第1図に示す
如き構成の回路により行なつている。
Conventionally, such code bit expansion has been carried out by a circuit having a configuration as shown in FIG.

即ち、図においてSR1,SR2,SR3は4ビ
ツトのシフトレジスタであり、各々のA,B,
C,Dは並列入力端子、QA,QB,QC,QDは
並列出力端子、S0,S1はモード設定用のコン
トロール端子である。このモード設定用のコント
ロール端子S0,S1がともに論理レベル“1”
のとき、シフトレジスタは並列入力モードに、ま
た、S0が論理レベル“1”でS1が論理レベル
“0”のとき、下位ビツトへのシフトモードに、
また、S0が論理レベル“0”でS1が論理レベ
ル“1”のとき、上位ビツトへのシフトモード
に、また、S0,S1がともに論理レベル“0”
のときは禁止モードにそれぞれ設定される。
CLOCKはクロツク入力端子であり、前記各モー
ドにおける動作はこのクロツク入力端子CLOCK
に入力されるクロツク信号Ckに同期して行なわ
れる。CLEARはクリア信号入力端子であり、こ
の端子にクリア信号Crが入力されるとシフトレ
ジスタはクリアされる。Rは下位シフトの直列入
力端子、Lは上位シフトの直列入力端子であり、
シフトレジスタSR1はRを自己の出力端子QD
に、またLをシフトレジスタSR2の出力端子QD
に接続されている。また、シフトレジスタSR2
の直列入力端子RはシフトレジスタSR1の出力
端子QAに、またシフトレジスタSR2の直列入力
端子LはシフトレジスタSR3の出力端子QDに、
更にシフトレジスタSR3の直列入力端子Lは接
地され、直列入力端子RはシフトレジスタSR2
の出力端子QAにそれぞれ接続されて並列12ビツ
トまでのビツト可変型符号ビツト拡張回路として
いる。
That is, in the figure, SR1, SR2, and SR3 are 4-bit shift registers, and each A, B,
C and D are parallel input terminals, QA, QB, QC, and QD are parallel output terminals, and S0 and S1 are control terminals for mode setting. Both control terminals S0 and S1 for this mode setting are at logic level "1"
When , the shift register is in parallel input mode, and when S0 is at logic level "1" and S1 is at logic level "0", it is in shift mode to lower bits.
Also, when S0 is at logic level "0" and S1 is at logic level "1", the mode is set to shift to the upper bit, and both S0 and S1 are at logic level "0".
In each case, the prohibited mode is set.
CLOCK is a clock input terminal, and the operation in each mode is based on this clock input terminal CLOCK.
This is done in synchronization with the clock signal Ck input to the clock. CLEAR is a clear signal input terminal, and when the clear signal Cr is input to this terminal, the shift register is cleared. R is a serial input terminal for lower shift, L is a serial input terminal for upper shift,
Shift register SR1 connects R to its own output terminal QD
, and also shift L to the output terminal QD of shift register SR2.
It is connected to the. In addition, shift register SR2
The serial input terminal R of is connected to the output terminal QA of the shift register SR1, and the serial input terminal L of the shift register SR2 is connected to the output terminal QD of the shift register SR3.
Furthermore, the serial input terminal L of shift register SR3 is grounded, and the serial input terminal R of shift register SR2
They are each connected to the output terminal QA of the bit, forming a bit variable code bit expansion circuit of up to 12 bits in parallel.

このような回路において、各々のシフトレジス
タSR1、〜SR3のコントロール端子S0,S1
に論理レベル“1”のモード設定信号MOOD1,
MOOD2を与え、並列入力モードに設定し、ク
ロツク入力端子CLOCKに入力されるクロツク信
号Ckに同期させて動作させ、各々のシフトレジ
スタSR1、〜SR3の入力端子A、〜Dに与えら
れる入力データを各々のシフトレジスタSR1、
〜SR3に取り込ませる。
In such a circuit, control terminals S0, S1 of each shift register SR1, ~SR3
mode setting signal MOOD1 with logic level “1”,
MOOD2 is applied to set the parallel input mode, and the shift registers are operated in synchronization with the clock signal Ck input to the clock input terminal CLOCK, and the input data applied to the input terminals A and D of each shift register SR1 and ~SR3 are Each shift register SR1,
~ Import it into SR3.

次にモード設定を上位ビツトへのシフトモード
にすべくモード設定信号MOOD1,MOOD2を
論理レベル“1”,“0”に切り換える。そして、
前記取り込まれた入力データの指定された符号ビ
ツトがシフトレジスタSR1、〜SR3の最上位桁
に来る迄、シフトレジスタSR1、〜SR3の内容
全体をクロツク信号Ckにより上位ビツトへとシ
フトさせる。その時、最上位のシフトレジスタ
SR1の最上位の出力端子QDには符号ビツトが出
力され、この出力はシフトレジスタSR1の下位
シフトの直列入力端子Rに入ることになる。
Next, the mode setting signals MOOD1 and MOOD2 are switched to logic levels "1" and "0" in order to shift the mode setting to the upper bits. and,
The entire contents of the shift registers SR1, .about.SR3 are shifted to the upper bits by the clock signal Ck until the designated sign bit of the fetched input data reaches the most significant digit of the shift registers SR1, .about.SR3. At that time, the top shift register
The sign bit is output to the most significant output terminal QD of SR1, and this output is input to the serial input terminal R of the lower shift of shift register SR1.

そこで、次にモード設定を下位ビツトへのシフ
トモードにしてシフトした数だけ下位へシフトす
れば最上位のシフトレジスタSR1の最上位の出
力端子QDは直列入力端子Rとの接続によつて上
位ビツトへのシフトモード時にこの出力端子QD
に表われたデータが保持された状態となるので、
3つのシフトレジスタSR1、〜SR3によつて構
成されるこの第1図回路より出力されるデータは
入力データの最上位桁該当の桁位置より最上位桁
(MSB)まで入力データの最上位桁のデータが拡
張された形となる。
Therefore, if the mode is set to shift mode to lower bits and the bits are shifted lower by the number of shifts, the highest output terminal QD of the highest shift register SR1 will be connected to the serial input terminal R to shift to the lower bits. This output terminal QD when in shift mode to
Since the data appearing in is retained,
The data output from this circuit in Figure 1, which is composed of three shift registers SR1 and ~SR3, is from the digit position corresponding to the most significant digit of the input data to the most significant digit (MSB) of the most significant digit of the input data. The data is in an expanded form.

従つて、12ビツト長より短い任意のビツト長の
符号付きデータを12ビツト長の符号付きデータに
変換することができる。
Therefore, signed data of any bit length shorter than 12 bits can be converted to signed data of 12 bits.

しかしながら、この方式の場合、データを並例
で一旦読込み、これを最終的に得たいビツト長に
不足する桁数だけ上位方向にシフトし、そして再
び下位方向にシフトして符号ビツトを最上位桁に
移動させると言う複雑な手順を踏まなければなら
ず、従つて、並列入力、上位ビツトへのシフト、
下位ビツトへのシフトを行なうための制御が必要
となるばかりでなく上記操作のためにデータ処理
速度が遅いと言う欠点があつた。
However, in the case of this method, the data is read in once, shifted upwards by the number of digits insufficient for the final desired bit length, and then shifted downwards again to shift the sign bit to the most significant digit. Therefore, it is necessary to take complicated steps to move the bits to the upper bits.
This method not only requires control for shifting to lower bits, but also has the drawback that the data processing speed is slow due to the above operation.

本考案は上記事情に鑑みて成されたもので、符
号付き入力データをその符号ビツトを拡張してこ
の入力データのビツト長より長いビツト長のデー
タに変換する装置として変換データのビツト長に
対応するビツト数の入力端子を有し、且つ少なく
とも対象とする最小ビツト長の入力データの符号
ビツトに該当する入力端子を含めてこれよりも上
位のビツトの入力端子にデータ入出力用のそれぞ
れゲートコントロール可能なゲートを設け、ま
た、前記最小ビツト長の入力データの符号ビツト
に該当するビツトとそれより上位のビツトにおけ
るそれぞれ隣接するビツトの出力側間には前記ゲ
ートと逆極性のゲートコントロール信号で動作し
て下位ビツト側の出力を上位ビツト側に伝達する
下位ビツトデータ伝達用のゲートをそれぞれ設
け、また、前記データ入出力用の各ゲートにはそ
のゲート及び当該ゲートに出力側が接続される前
記下位ビツトデータ伝達用のゲートを組としてそ
れぞれのゲートコントロール信号を与える構成と
し、入力データの符号ビツト位置に応じて前記ゲ
ートコントロール信号を選択して入力データの符
号ビツトに該当するビツトよりも上位のビツトの
入力端子に設けられた前記データ入出力用のゲー
トを閉じ、また、下位ビツト側の出力を上位ビツ
トの出力側に伝達する前記ゲートのうち、前記入
力データの符号ビツトに該当するビツトよりも下
位のゲートを閉じ、他のゲートは開いて入力の伝
達を行なわせることにより、符号ビツトの拡張を
行なわせ、所要ビツト長のデータに変換するよう
にすることにより、入力データの符号ビツトに対
応するビツトを含むそれより下位のデータ入出力
用のゲートを開くコントロール信号を与えるだけ
と言う簡単な操作で、入力データの符号ビツトを
拡張して出力することが出来、従つて、制御が簡
単で、且つ作業が高速で行なえ、信頼性も高いビ
ツト可変型符号ビツト拡張回路を提供することを
目的とする。
The present invention was developed in view of the above circumstances, and is a device that expands the sign bit of signed input data and converts it into data with a bit length longer than the bit length of the input data, and supports the bit length of the converted data. It has input terminals with the number of bits, and at least the input terminal corresponding to the sign bit of the input data with the minimum bit length of interest and the input terminals of higher bits are provided with respective gate controls for data input/output. A possible gate is provided between the output sides of the bit corresponding to the sign bit of the input data having the minimum bit length and the respective adjacent bits of higher order bits, and is operated with a gate control signal of opposite polarity to the gate. A gate for transmitting lower bit data is provided to transmit the output of the lower bit side to the upper bit side, and each gate for data input/output is provided with a gate for transmitting the lower bit data, and a gate for transmitting the lower bit data to which the output side is connected to the gate. The configuration is such that a set of gates for transmitting bit data is provided to each gate control signal, and the gate control signal is selected according to the position of the sign bit of the input data, and the bits higher than the bit corresponding to the sign bit of the input data are selected. Close the data input/output gate provided at the input terminal of By closing the lower gate and opening the other gates to transmit the input, the sign bit is extended and converted to data of the required bit length, thereby responding to the sign bit of the input data. The sign bit of the input data can be expanded and outputted by simply applying a control signal to open the gate for input/output of lower-order data, including the bit to be outputted. Therefore, control is easy. It is an object of the present invention to provide a bit-variable code bit expansion circuit which can operate at high speed and has high reliability.

以下、本考案の一実施例について第2図を参照
しながら説明する。
An embodiment of the present invention will be described below with reference to FIG.

第2図において2−1,2−2〜2−8は各各
トライ・ステートのゲートであり、これらのうち
ゲート2−1,2−2・2−3,2−4はゲー
ト・コントロール信号が論理レベル“1”のとき
入力信号がそのまま出力され、またゲートコント
ロール信号が論理レベル“0”のときは出力はハ
イインピーダンスになる。
In Figure 2, 2-1, 2-2 to 2-8 are the gates of each tri-state, and among these, gates 2-1, 2-2, 2-3, and 2-4 are gate control signals. When the gate control signal is at logic level "1", the input signal is output as is, and when the gate control signal is at logic level "0", the output becomes high impedance.

尚、ゲート2−1はゲートコントロール信号
Sg4により制御され、最上位ビツト(MSB)の
データビツトbit0出力の通過を制御する。また、
ゲート2−2はデータビツトbit1の出力の通過
を制御し、またゲート2−3はデータビツトbit
2の出力の通過を、更にゲート2−4はデータビ
ツトbit3の通過をそれぞれ制御する。
Furthermore, gate 2-1 is a gate control signal.
It is controlled by Sg4 and controls the passage of the most significant bit (MSB) data bit bit0 output. Also,
Gate 2-2 controls the passage of the output of data bit bit1, and gate 2-3 controls the passage of the output of data bit bit1.
The gates 2-4 control the passage of the outputs of the gates 2 and 2, and the gates 2-4 control the passage of the data bit bit3, respectively.

また、前記ゲート2−5,2−6,2−7,2
−8はゲートコントロール信号が論理レベル
“0”のとき入力信号をそのまま通し、論理レベ
ル“1”のときハイインピーダンスとなつて入出
力を阻止する機能を有し、ゲート2−5は前記ゲ
ート2−1と2−2の出力端子間に、またゲート
2−6は前記ゲート2−2と2−3の出力端子間
に、また、ゲート2−7は前記ゲート2−3と2
−4の出力端子間に、またゲート2−8は前記ゲ
ート2−4の出力端子とデータビツトbit4の間
にそれぞれ出力端子側を上位ビツト側にして接続
されている。
In addition, the gates 2-5, 2-6, 2-7, 2
-8 has the function of passing the input signal as is when the gate control signal is at logic level "0", and becomes high impedance when the logic level is "1" to block input/output; -1 and 2-2, the gate 2-6 is between the output terminals of the gates 2-2 and 2-3, and the gate 2-7 is between the output terminals of the gates 2-3 and 2-3.
-4, and the gate 2-8 is connected between the output terminal of the gate 2-4 and the data bit bit 4, with the output terminal side being the upper bit side.

Sg1〜Sg4はそれぞれゲートコントロール信
号であり、ゲートコントロール信号Sg4はゲー
ト2−1の他にゲート2−5の、また、ゲートコ
ントロール信号Sg3はゲート2−2及び2−6
の、また、ゲートコントロール信号Sg2はゲー
ト2−3及び2−7の、また、ゲートコントロー
ル信号Sg1はゲート2−4及び2−8のゲート
制御を行なう。bit5〜bit11は各々データ・ビ
ツトであり、bit11は最下位ビツト(LSB)と
なる。
Sg1 to Sg4 are gate control signals, respectively. Gate control signal Sg4 is for gates 2-5 as well as gate 2-1, and gate control signal Sg3 is for gates 2-2 and 2-6.
Furthermore, the gate control signal Sg2 controls the gates 2-3 and 2-7, and the gate control signal Sg1 controls the gates 2-4 and 2-8. Bits 5 to 11 are data bits, and bit 11 is the least significant bit (LSB).

このような構成の本装置は12ビツトのデータラ
インのうち、下位ビツトに詰められたデータの中
の最上位に符号ビツトを含んでいる場合、データ
が8ビツト,9ビツト,10ビツト,11ビツト,12
ビツトいずれの場合でもゲートコントロール信号
によつて符号ビツトの領域を拡張して12ビツトの
データとすることが出来、しかも指定した符号ビ
ツトより上位のビツトの入力信号の状態にかかわ
らず、指定した符号ビツトの“1”または“0”
の符号情報を最上位ビツトまで拡張できる。
This device with such a configuration is capable of handling 8-bit, 9-bit, 10-bit, and 11-bit data if the data packed into the lower bits of the 12-bit data line includes a sign bit in the most significant position. ,12
In either case, the code bit area can be expanded to 12-bit data using the gate control signal, and the specified code can be used regardless of the state of the input signal of the higher-order bits than the specified code bit. Bit “1” or “0”
The code information can be expanded to the most significant bit.

例えば入力データが符号ビツトも含めて9ビツ
トの時、入力データは上位の第3ビツト目bit3
から最下位の第11ビツト目bit11に入り、入力
データの最上位ビツトである第3ビツトbit3が
符号ビツトである場合、まず、ゲートコントロー
ル信号Sg1〜Sg4のうち第3ビツト用のゲート
コントロール信号Sg1を論理レベル“1”に、
また、第2〜第0ビツト用のゲートコントロール
信号Sg2〜Sg4を論理レベル“0”に設定して
おく。
For example, when the input data is 9 bits including the sign bit, the input data is the third upper bit, bit3.
When the 11th bit 11 of the least significant bit is entered, and the third bit 3, which is the most significant bit of the input data, is a sign bit, first, the gate control signal Sg1 for the third bit of the gate control signals Sg1 to Sg4 is input. to logic level “1”,
Further, gate control signals Sg2 to Sg4 for the second to zeroth bits are set to logic level "0".

これによりゲートコントロール入力が正論理の
ゲート2−4とゲートコントロール入力が負論理
のゲート2−7〜2−5が開いた状態になり、ゲ
ートコントロール入力が正論理のゲート2−3〜
2−1とゲートコントロール入力が負論理のゲー
ト2−8は閉じた状態になる。そのため、入力デ
ータの第3ビツト目の符号情報は開かれたゲート
2−4を通つて出力側へ伝達され、またこのゲー
ト2−4に入力側を接続された前記開状態のゲー
ト2−7を通つて第2ビツトbit2の出力側にも
伝達される。更にこの第2ビツトbit2の出力側
に入力側が接続された前記開状態のゲート2−6
を通つて第1ビツトbit1の出力側にも伝達され、
更にこの第1ビツトbit1の出力側に入力側が接
続された前記開状態にあるゲート2−5を通つて
最上位ビツトである第0ビツトbit0出力側にも
伝達される。
As a result, gate 2-4 whose gate control input is positive logic and gates 2-7 to 2-5 whose gate control input is negative logic are open, and gates 2-3 to 2-5 whose gate control input is positive logic are open.
Gate 2-1 and gate 2-8 whose gate control inputs are negative logic are closed. Therefore, the code information of the third bit of the input data is transmitted to the output side through the open gate 2-4, and the open gate 2-7 whose input side is connected to this gate 2-4 It is also transmitted to the output side of the second bit bit2. Furthermore, the open gate 2-6 whose input side is connected to the output side of this second bit bit2
It is also transmitted to the output side of the first bit bit1 through
Furthermore, it is also transmitted to the output side of the 0th bit bit0, which is the most significant bit, through the open gate 2-5 whose input side is connected to the output side of the first bit bit1.

このとき、第0〜第2ビツトblt0〜bit2の入
力側の情報は前記閉状態にあるゲート2−1,2
−3により阻止されて出力側へは伝達されず、ま
た、第4ビツトbit4の出力を入力とするゲート
2−8は閉状態にあるため、この第4ビツトbit
4出力は第3ビツトbit3の出力側に伝達されな
い。
At this time, the information on the input side of the 0th to 2nd bits blt0 to bit2 is the information on the input side of the gates 2-1 and 2 in the closed state.
-3 and is not transmitted to the output side, and since the gate 2-8 which receives the output of the fourth bit bit4 as input is in a closed state, this fourth bit bit4 is not transmitted to the output side.
4 output is not transmitted to the output side of the third bit bit3.

かくして出力データは9ビツト長の入力データ
のうち下位8ビツト分はそのまま、そして、符号
ビツトである第3ビツトbit3の入力を第0〜第
3ビツトbit0〜bit3にそれぞれあてはめて12ビ
ツト長のデータとして出力されることになる。
In this way, the output data is 12-bit long data by leaving the lower 8 bits of the 9-bit long input data unchanged, and applying the input of the third bit (bit3, which is the sign bit) to the 0th to 3rd bits, bit0 to bit3, respectively. It will be output as

即ち、9ビツト長の符号付き入力データは符号
ビツトが上位4ビツトに拡張された12ビツト長の
データに変換されたことになる。
In other words, 9-bit long signed input data is converted to 12-bit long data with the sign bit extended to the upper 4 bits.

もちろん符号付き8ビツト長の入力データであ
ればゲートコントロール信号Sg1〜Sg4をそれ
ぞれ論理レベル“0”に設定することにより、入
力データの最上位ビツトである第4ビツトbit4
の符号データを第3〜第0ビツトbit3〜bit0に
拡張することができ、また符号付き11ビツト長の
入力データであればゲートコントロール信号Sg
1〜Sg4のうちSg1〜Sg3を論理レベル“1”
に、そしてSg4を論理レベル“0”に設定して
おくことにより、第1ビツトbit1から第11ビツ
トbit11のデータはそのまま出力側へ、そして
第1ビツトbit1の入力はゲート2−5を更に第
0ビツトbit0の出力側と伝達され、符号ビツト
の拡張された12ビツト長のデータに変換させるこ
とができる。同様にして、第2図構成であれば10
ビツト長,12ビツト長の入力データまで扱うこと
ができる。
Of course, if the input data is signed 8-bit length, by setting each of the gate control signals Sg1 to Sg4 to logic level "0", the fourth bit bit4, which is the most significant bit of the input data, can be set to the logic level "0".
It is possible to expand the coded data of
1 to Sg4, set Sg1 to Sg3 to logic level “1”
By setting Sg4 to the logic level "0", the data from the 1st bit bit1 to the 11th bit bit11 goes directly to the output side, and the input of the 1st bit bit1 further passes through gates 2-5. It is transmitted to the output side of 0 bit bit0 and can be converted into 12-bit length data with the sign bit extended. Similarly, for the configuration shown in Figure 2, 10
It can handle input data up to 12 bits long.

尚、本考案による回路はトライステートゲート
を第4ビツトbit4以下の各々のビツトに設ける
ことにより、符号付きの8ビツト長以下のデータ
に対しても符号ビツト拡張が可能となり、また12
ビツト長以上の拡張符号ビツト化されたデータを
得ることも可能である。
Furthermore, in the circuit according to the present invention, by providing a tri-state gate for each bit starting from the fourth bit 4, it is possible to extend sign bits even to data with a length of 8 bits or less with a sign.
It is also possible to obtain extended code bit data having a bit length or more.

以上詳述したように本考案は符号付き入力デー
タを符号ビツトを拡張してこの入力データのビツ
ト長より長い所望のビツト長のデータに変換する
装置として、変換データのビツト長に対応するビ
ツト数の入力端子を有し、且つ少なくとも対象と
する最小ビツト長の入力データの符号ビツトに該
当する入力端子を含めてこれよりも上位のビツト
の入力端子にデータ入出力用のそれぞれゲートコ
ントロール可能なゲートを設け、また、前記最小
ビツト長の入力データの符号ビツトに該当するビ
ツトとそれより上位のビツトにおけるそれぞれ隣
接するビツトの出力側間には前記ゲートと逆極性
のゲートコントロール信号で動作して下位ビツト
側の出力を上位ビツト側に伝達する下位ビツトデ
ータ伝達用のゲートをそれぞれ設け、また、前記
データ入出力用の各ゲートにはそのゲート及び当
該ゲートに出力側が接続される前記下位ビツトデ
ータ伝達用のゲートを組としてそれぞれのゲート
コントロール信号を与える構成としたものであ
る。そして、入力データの符号ビツトに該当する
ビツトを含めてこれより下位ビツトの前記コント
ロール信号を当該ビツトのゲートを開くための信
号として設定することにより、入力データの符号
ビツトに該当するビツトよりも上位のビツトの入
力端子に設けられた前記データ入出力用のゲート
を閉じ、また、下位ビツト側の出力を上位ビツト
の出力側に伝達する前記ゲートのうち、前記入力
データの符号ビツトに該当するビツトより下位の
ゲートを閉じ、他のゲートは開いて入力の伝達を
行なわせるようにしたので、ビツト長の短い符号
付き入力データは符号ビツトのみ不足ビツト数
分、上位ビツトに伝達され、拡張されるので、符
号ビツトのみ拡張された所望のビツト長の符号付
きデータに変換することができ、入力データのビ
ツト長が不足して符号ビツトの位置が必要なビツ
ト長の符号ビツト位置にない場合等において、単
に入力データの符号ビツトに対応するビツトのゲ
ートを開くコントロール信号を与えるだけと言う
簡単な操作を行なつて各ゲートの開閉を制御する
だけで、符号ビツトを上位ビツト側に拡張して必
要なビツト長とすることができ、符号ビツト領域
以外のデータ領域が下位何ビツトであるかを知つ
て処理を行なつている装置に対する入力データと
して用いるならば、符号付きデータとして元の情
報を正確に伝えることができる他、従来の装置よ
り制御が簡単でしかも開いているゲートを通して
入力を出力側に伝達するだけであるから高速で符
号ビツト拡張ができるなど信頼性の高い優れた特
徴を有するビツト可変型符号ビツト拡張回路を提
供することができる。
As described above in detail, the present invention provides a device for converting signed input data into data of a desired bit length that is longer than the bit length of the input data by expanding the sign bit, the device having input terminals with a number of bits corresponding to the bit length of the converted data, and providing gate-controllable gates for data input/output at least the input terminal corresponding to the sign bit of input data of a minimum bit length to be targeted and the input terminals for higher bits than this, and providing lower bit data transmission gates between the output sides of the bit corresponding to the sign bit of the input data of the minimum bit length and each of the higher bits that are adjacent to this, which operate with a gate control signal of opposite polarity to the gates and transmit the output of the lower bit side to the higher bit side, and providing each of the data input/output gates with a gate control signal of the same gate and the lower bit data transmission gate whose output side is connected to the gate in question as a pair. Then, by setting the control signal of the bit corresponding to the sign bit of the input data and the lower bits thereof as a signal for opening the gate of the bit, the data input/output gate provided at the input terminal of the bit higher than the bit corresponding to the sign bit of the input data is closed, and among the gates transmitting the output of the lower bits to the output side of the higher bits, the gate lower than the bit corresponding to the sign bit of the input data is closed and the other gates are opened to transmit the input. Therefore, signed input data with a short bit length is extended by transmitting only the sign bit to the higher bits by the number of missing bits, so that it can be converted into signed data of the desired bit length with only the sign bit extended, and when the bit length of the input data is insufficient, In cases where the code bit position is not at the code bit position of the required bit length, for example, by simply controlling the opening and closing of each gate by giving a control signal to open the gate of the bit corresponding to the code bit of the input data, the code bit can be expanded to the more significant bit side to obtain the required bit length.If the data area other than the code bit area is used as input data for a device that knows how many lower bits it has for processing, the original information can be accurately transmitted as signed data.In addition, the control is easier than conventional devices, and since the input is simply transmitted to the output side through an open gate, the code bit can be expanded at high speed.This provides a bit-variable type code bit expansion circuit with excellent reliable characteristics.

尚、本考案は上記し、且つ図面に示す実施例に
限定することなく、その要旨を変更しない範囲内
で適宜変形して実施し得るものである。
The present invention is not limited to the embodiments described above and shown in the drawings, but can be implemented with appropriate modifications within the scope of the invention.

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

第1図は従来装置を示す回路図、第2図は本考
案の一実施例を示す回路図である。 2−1,2−2〜2−8……ゲート、bit0,
bit1〜bit11……ビツト、Sg1,Sg2,Sg3,
Sg4……ゲートコントロール信号。
FIG. 1 is a circuit diagram showing a conventional device, and FIG. 2 is a circuit diagram showing an embodiment of the present invention. 2-1, 2-2 to 2-8...gate, bit0,
bit1~bit11...bit, Sg1, Sg2, Sg3,
Sg4...Gate control signal.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 符号付き入力データを符号ビツトを拡張してこ
の入力データのビツト長より長い所望のビツト長
のデータに変換する装置として、変換データのビ
ツト長に対応するビツト数の入力端子を有し、且
つ少なくとも対象とする最小ビツト長の入力デー
タの符号ビツトに該当する入力端子を含めてこれ
よりも上位のビツトの入力端子にデータ入出力用
のそれぞれゲートコントロール可能なゲートを設
け、また、前記最小ビツト長の入力データの符号
ビツトに該当するビツトとそれより上位のビツト
におけるそれぞれ隣接するビツトの出力側間には
前記ゲートと逆極性のゲートコントロール信号で
動作して下位ビツト側の出力を上位ビツト側に伝
達する下位ビツトデータ伝達用のゲートをそれぞ
れ設け、また、前記データ入出力用の各ゲートに
はそのゲート及び当該ゲートに出力側が接続され
る前記下位ビツトデータ伝達用のゲートを組とし
てそれぞれのゲートコントロール信号を与える構
成とし、入力データの符号ビツト位置に応じて前
記ゲートコントロール信号を選択して入力データ
の符号ビツトに該当するビツトより上位のビツト
の入力端子に設けられた前記データ入出力用のゲ
ートを閉じ、また、下位のビツト側の出力を上位
ビツトの出力側に伝達する前記ゲートのうち、前
記入力データの符号ビツトに該当するビツトより
下位のゲートを閉じ、他のゲートは開いて入力の
伝達を行わせることにより入力データの符号ビツ
トを拡張して出力することを特徴とするビツト可
変型符号ビツト拡張回路。
A device for converting signed input data into data with a desired bit length longer than the bit length of the input data by extending the sign bit, has an input terminal with a number of bits corresponding to the bit length of the converted data, and at least Including the input terminal corresponding to the sign bit of the input data with the target minimum bit length, gates that can be controlled for data input/output are provided at the input terminals of bits higher than this, and the minimum bit length is A gate control signal of opposite polarity to the gate is operated between the bit corresponding to the sign bit of the input data and the output sides of the adjacent bits of higher order bits, so that the output of the lower bit side is transferred to the upper bit side. Each gate is provided with a gate for transmitting the lower bit data to be transmitted, and each gate for data input/output is provided with a set of the gate and the gate for transmitting the lower bit data whose output side is connected to the gate. The gate control signal is configured to give a control signal, and the gate control signal is selected according to the position of the sign bit of the input data, and the gate control signal is connected to the input terminal of the bit higher than the bit corresponding to the sign bit of the input data. Also, among the gates that transmit the output of the lower bit side to the output side of the upper bit, the gate lower than the bit corresponding to the sign bit of the input data is closed, and the other gates are open and input. 1. A variable bit type sign bit expansion circuit, which expands the sign bit of input data and outputs the expanded sign bit by transmitting the bit.
JP11185281U 1981-07-28 1981-07-28 Bit variable code bit expansion circuit Granted JPS5819343U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11185281U JPS5819343U (en) 1981-07-28 1981-07-28 Bit variable code bit expansion circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11185281U JPS5819343U (en) 1981-07-28 1981-07-28 Bit variable code bit expansion circuit

Publications (2)

Publication Number Publication Date
JPS5819343U JPS5819343U (en) 1983-02-05
JPS636899Y2 true JPS636899Y2 (en) 1988-02-27

Family

ID=29906198

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11185281U Granted JPS5819343U (en) 1981-07-28 1981-07-28 Bit variable code bit expansion circuit

Country Status (1)

Country Link
JP (1) JPS5819343U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190090488A (en) * 2018-01-25 2019-08-02 김규진 Stick type cosmetic container

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6187267U (en) * 1984-11-15 1986-06-07

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52128024A (en) * 1976-04-20 1977-10-27 Nec Corp Binal data coding method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52128024A (en) * 1976-04-20 1977-10-27 Nec Corp Binal data coding method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190090488A (en) * 2018-01-25 2019-08-02 김규진 Stick type cosmetic container

Also Published As

Publication number Publication date
JPS5819343U (en) 1983-02-05

Similar Documents

Publication Publication Date Title
US4807172A (en) Variable shift-count bidirectional shift control circuit
US4593393A (en) Quasi parallel cyclic redundancy checker
US5696791A (en) Apparatus and method for decoding a sequence of digitally encoded data
JPS6398729A (en) Barrel shifter
KR960005751B1 (en) Data in-/out-put circuit
JPS636899Y2 (en)
JPS636898Y2 (en)
US5111488A (en) Doubling/dividing device for a series bit flow
US2973511A (en) Code converter
JPS5843934B2 (en) Shingouhenkansouchi
JPS5824980B2 (en) digital compressor
JPS6057774B2 (en) Logical operation type digital compandor
JPS622328B2 (en)
US4125832A (en) Digital information conversion system
SU1086449A1 (en) Device for translating codes in data transmission system
JPH01314023A (en) Digital signal processing circuit
JPS59108421A (en) Serial-parallel converting system
SU843269A1 (en) Code shaping device
SU591858A2 (en) Logical device
SU746431A1 (en) Linear-circular interpolator
EP1150432B1 (en) Successive-approximation analog-digital converter and related operating method
JPS579152A (en) Code converter
SU1191909A1 (en) Pipeline device for taking antilogarithms of binary number arrays
SU526905A1 (en) Device for solving differential equations
JP2530817B2 (en) Linear / non-linear code conversion method and conversion circuit