JPS6043744A - Division circuit - Google Patents

Division circuit

Info

Publication number
JPS6043744A
JPS6043744A JP58150581A JP15058183A JPS6043744A JP S6043744 A JPS6043744 A JP S6043744A JP 58150581 A JP58150581 A JP 58150581A JP 15058183 A JP15058183 A JP 15058183A JP S6043744 A JPS6043744 A JP S6043744A
Authority
JP
Japan
Prior art keywords
bit
bits
dividend
quotient
data
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
JP58150581A
Other languages
Japanese (ja)
Inventor
Yoshinobu Nishikawa
義信 西川
Yoji Sugiura
杉浦 洋治
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.)
Sanyo Electric Co Ltd
Sanyo Denki Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Sanyo Denki Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd, Sanyo Denki Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP58150581A priority Critical patent/JPS6043744A/en
Publication of JPS6043744A publication Critical patent/JPS6043744A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
    • G06F7/52Multiplying; Dividing
    • G06F7/535Dividing only

Abstract

PURPOSE:To obtain a division circuit which divides the binary digital data by ''3'' in a simple constitution. CONSTITUTION:A dividend having three bits is denoted by (a)-(c) in order from high-order bit is divided by 3 to obtain the quotient X of one bit together with the residue of two bits Y and Z in order from high-order bit. When bits (a)-(c) are supplied under such conditions, the bits X-Z are outputted from a logical circuit 1. Then the binary data of N bits is supplied to the circuit 1 by one bit from the most significant bit in the form of the least significant bit (c) of the dividend. The outputs X of this time point are extracted successively as the quotient. At the same time, the outputs Y and Z are fed back to the input side of the circuit 1 in the form of bits (a) and (b) of the next dividend respectively. This action is repeated until the least significant bit of the binary, data of N bits is supplied. Thus both the quotient and the residue are obtained.

Description

【発明の詳細な説明】 イ、産業上の利用分野 2進デジタルデータの除算回路に関する。[Detailed description of the invention] B. Industrial application fields This invention relates to a division circuit for binary digital data.

口1発明の背景 最近に於いて、音声信号(アナログ信号)をサンプリン
グした後パルスコード変調して記録し、再生時gD−A
変換器を利用して元の音声信号に戻す構成としたパルス
コード変調方式の録音再生装置等が提案されている。と
の場合、デジタルデータの記録再生中に何等かの原因に
よ)符号誤ルが生じると元のデジタルデータが正しく再
生できないことになる。この場合、正しく再生されなか
ったデータに替えて、その前後のデータの平均値を補間
することが行われる。例えば、第1図に於いて、データ
(dn−2)とデータ(dn++)は正しく再生された
が、データ(dn−+)とデータ(dn)が正しく再生
されなかった場合、t/、(2dn−2+dn+t )
をデータ(dn−1)の替わJIK、また’15(dn
−2+ Zdn+1)をデータ(dn)の替わシに補間
することが行われる。従って、デジタルデータを3で除
算する回路が必要となる。しかし、2進デジタルデータ
を3で除算する回路を構成することは、一般的に困難で
あった。
1. Background of the invention Recently, audio signals (analog signals) are sampled, pulse code modulated, and recorded, and when played back, gD-A
A recording/playback device using a pulse code modulation method has been proposed, which uses a converter to restore the original audio signal. In this case, if a coding error (for some reason) occurs during recording and reproduction of digital data, the original digital data cannot be reproduced correctly. In this case, in place of the data that was not correctly reproduced, the average value of the data before and after it is interpolated. For example, in FIG. 1, if data (dn-2) and data (dn++) are correctly reproduced, but data (dn-+) and data (dn) are not correctly reproduced, then t/, ( 2dn-2+dn+t)
The data (dn-1) is replaced by JIK, and '15 (dn
−2+Zdn+1) is interpolated in place of the data (dn). Therefore, a circuit that divides digital data by 3 is required. However, it has generally been difficult to construct a circuit that divides binary digital data by three.

ハ0発明の目的 本発明は、2進デジタルデータを6で除算する回路を、
簡単な構成にて実現せんとするものである。
Object of the Invention The present invention provides a circuit for dividing binary digital data by 6.
This is intended to be realized with a simple configuration.

二。発明の構成 3ビツトの被除数を上位ビットよ’)”s bsCとし
、との被除数を3で除算したときの1ビツトの商をXと
し、2ビツトの剰余を上位ビットよシY12としたとき
、aN bl Cが入力された場合、x、y、zを出力
する論理回路を構成し、Nビットの2進データを最上位
ビットより1ビツト出力Yを次の被除数のaビットとし
て、また出力名を次の被除数のbビットとして論理回路
の入力側に帰還し、・以ってNビットの2進データの最
下位ビットを入力するまで前記動作を繰返することによ
択商及び剰余をめる構成としたものである。
two. Structure of the invention Let the 3-bit dividend be the upper bits ')'s bsC, let the 1-bit quotient when the dividend is divided by 3 be X, and let the 2-bit remainder be the upper bits Y12, When aN bl C is input, configures a logic circuit that outputs x, y, and z, outputs N bits of binary data from the most significant bit, and outputs Y as the a bit of the next dividend. is returned to the input side of the logic circuit as the b bit of the next dividend, and the above operation is repeated until the least significant bit of the N-bit binary data is input, thereby calculating the selective quotient and the remainder. It is structured as follows.

ホ、実施例 5ビツトの2進データ(10110)を3で除算する場
合を例にとって説明する。この演算の様子は次の表1に
示す通シである。
E. Embodiment A case in which 5-bit binary data (10110) is divided by 3 will be explained as an example. The appearance of this calculation is shown in Table 1 below.

表1 (MSB) (LSB) MSBは最上位ビットを、LSBは最下位ビットを示し
ている。また、下線は剰余を示している。
Table 1 (MSB) (LSB) MSB indicates the most significant bit, and LSB indicates the least significant bit. Also, the underline indicates the remainder.

表1よ)、除算を行うには、MSBよシ1ビットづつ除
算を行い、その際剰余が生じた場合は、これを桁上げし
、次のビットと加え合せた後、次の除算を行えば良いこ
とが分る。
(Table 1), to perform division, divide the MSB bit by bit, and if a remainder occurs, carry it, add it to the next bit, and then perform the next division. If you do, you'll know what's good.

さて、2進データを3で除算する場合、下記表2に示す
6ビツトで表わされる6種類の被除数に対する演算が基
本となる。
Now, when binary data is divided by 3, the basic operation is for six types of dividends represented by 6 bits as shown in Table 2 below.

表2 表2に於いて、被除数のうち、(110)及び(111
)を示していないが、これは(011)の除算過程に於
いて剰余が生じない為(丁度割シ切れる)、(110)
及び(111)の演算をする事態は生じないからである
Table 2 In Table 2, among the dividends, (110) and (111
) is not shown, but this is because no remainder is generated in the division process of (011) (it is just divisible), (110)
This is because the situation where calculations of (111) and (111) are performed does not occur.

さて、表2に於いて、被除数(3ビツト)を上位ビット
からalb、cとし、商(1ビツト)をX、剰余(2ビ
ツト)を上位ビットからY、Zとすると、即ち、 (2Xa+2xb+e)÷3=X+(2xY+Z)とす
ると、 X、Y、Zは、被除数を構成するピッ)(”% b%C
)を利用して、例えば、下記の論理式で示すことができ
る。
Now, in Table 2, let the dividend (3 bits) be alb, c from the most significant bits, the quotient (1 bit) be X, and the remainder (2 bits) be Y, Z from the most significant bits, that is, (2Xa+2xb+e) If ÷3=X+(2xY+Z), then X, Y, and Z are the numbers that make up the dividend.
), it can be expressed, for example, by the following logical formula.

X −a + b x c 曲・・(1)以上の説明よ
)明かな通シ、Nビットよ多構成される2進データを3
で除算するには、6人力(a、b、c)に対して、前記
(1)(2)(3)式の関係を満足するx、y、zを出
力する論理回路を作成し、被除数となるデータをMSB
よシ1ビットづつ順次この論理回路に印加し、商に)を
順次取出すと共に、剰余(y、z)が生じた場合には、
これを桁上げして、論理回路の入力側に戻す動作を繰返
せば良いことが分る。
X -a + b x c Song... (1) As explained above) It is clear that binary data consisting of N bits is 3
To divide by , create a logic circuit that outputs x, y, and z that satisfy the relationships of equations (1), (2), and (3) above for six human forces (a, b, c), and calculate the dividend. MSB
Apply one bit at a time to this logic circuit, take out the quotient) one by one, and if a remainder (y, z) is generated,
It turns out that it is sufficient to repeat the operation of carrying this and returning it to the input side of the logic circuit.

第2図は上導した論理回路(1)を有する除算回路を示
すものであシ、これを参照して演算過程を更に詳しく説
明する。
FIG. 2 shows a division circuit having the above-described logic circuit (1), and the calculation process will be explained in more detail with reference to this figure.

論理回路(1)は三つの入力端子(x1tx2.I3)
と三つの出力端子(01,02,03)を有する。入力
端子(I3)は被除数(3ビツト)の最下位ピッ) (
(りの入力端となシ、入力端子(I2)は中位ビット0
)の入力端となシ、入力端子(11)は最上位ピッ) 
(jL)の入力端となる。
Logic circuit (1) has three input terminals (x1tx2.I3)
and three output terminals (01, 02, 03). The input terminal (I3) is the lowest bit of the dividend (3 bits) (
(The input terminal (I2) is the middle bit 0.
), the input terminal (11) is the topmost pin)
(jL) becomes the input terminal.

アンドゲート(2)の二人力は(b%(りであシ、オア
ゲート(3)の−人力はこのアンドゲート(2)の出゛
力でア)、他方の入力はaである。即ち、アンドゲート
(2)及びオアゲート(3)は前記(1)式の右辺の論
理式倉実現也しておシ、従ってオアゲート(3」の出力
はX(商)となっている。而して出力端(01)よシ商
Xが出力される。
The two-manpower of AND gate (2) is (b%), the -manpower of OR gate (3) is the output of this AND gate (2), and the other input is a. That is, AND gate (2) and OR gate (3) also realize the logical formula on the right side of equation (1) above, so the output of OR gate (3) is X (quotient). At the end (01), the quotient X is output.

同様にして、インバータ【4)及びアンドゲート(57
は第+27式の右辺第1項を、tたインバータ(6)及
びアンドゲート(7)は第2項を実現しているから、オ
アゲート(8)の出力は剰余の上位ビット(1)となっ
ている。このYは出力端(o2)よシ取出され、スリッ
プ・70ツブ彌を介して次の被除数の最上位ビット(a
)として入力端(I1)に入力される。
Similarly, inverter [4] and AND gate (57
Since the inverter (6) and the AND gate (7) realize the second term, the output of the OR gate (8) becomes the upper bit (1) of the remainder. ing. This Y is taken out from the output terminal (o2) and passed through the slip/70 knob to the most significant bit (a
) is input to the input terminal (I1).

インバータ(9)及びインバータ(4)及びアンドゲー
ト叫は第3式の右辺の第1項を、またインバータ16)
及びアンドゲートαυは第2項を実現しているから、オ
アゲート12の出方は剰余の下位ビットのとなっている
。この2は出、カ端(o3)よシ取出され、スリップ・
7戸ツブ(211を介して次の被除数の中位ビット0)
として入力端(I2)に入力される。
Inverter (9), inverter (4), and the AND gate are the first term on the right side of the third equation, and inverter 16)
Since the AND gate αυ realizes the second term, the output of the OR gate 12 is the lower bit of the remainder. This 2 is taken out from the end (o3) and slips.
7 units (middle bit 0 of the next dividend via 211)
The signal is input to the input terminal (I2) as follows.

さて、フリップ・フロップ(21(21)にクリア入力
が印加され、その出力Qは共に0となシ、夫々入力端子
(It、12)に入力される。ごの状態に於いて5ビツ
トのデータ(1011o)oMSB11#が入力端子(
I3)に入力される。即ち、最初の除算に於いて被除数
(abc)は′″oo1”斯かる(xyz)が出力端子
(01,02,0!1)よ多出力される。
Now, a clear input is applied to the flip-flop (21 (21)), and its output Q is both 0 and is input to the input terminals (It, 12).In each state, 5-bit data is (1011o) oMSB11# is the input terminal (
I3). That is, in the first division, the dividend (abc) is ``oo1'', so (xyz) is outputted from the output terminals (01, 02, 0!1).

クロックに同期して商QQ1o“がシフトレジスタ@に
取込まれると共に、剰余[株]11“がフリップ・フロ
ップ(2Bに取込まれる。而して、入力端子(11)に
は10〃が、(I2)には桁上げされた剰余のである鳩
1“が、そして(13)にはデータの第2位ビット1o
”が入力される。即ち、次の除算は被除数が’oio“
として行われる。
The quotient QQ1o" is taken into the shift register @ in synchronization with the clock, and the remainder 11" is taken into the flip-flop (2B). Therefore, 10 is input to the input terminal (11). (I2) contains the carried remainder, ``dove 1'', and (13) contains the second significant bit 1o of the data.
” is input. That is, in the next division, the dividend is 'oio“.
It is done as.

以下同様の動作が、データ(voiio)のLSB−Q
“が入力端子(I3)に入力されるまで行われる。そし
て、このとき、シフトレジスタのにはデータ(1011
0)を6で除算したときの商”00111’が取込まれ
ておシ、また出力端子(yz)よシ剰余11o#が得ら
れることになる。
Below, the same operation is performed on the LSB-Q of data (voiio).
" is input to the input terminal (I3). At this time, the shift register has data (1011
The quotient "00111' when dividing 0) by 6 is taken in, and the remainder 11o# is obtained from the output terminal (yz).

(xyz)を(abc)を利用して表わす論理式は前述
した式(1)、(2)、(3)に限定されるものではな
い。例えば、下記の式であっても良い。
The logical expressions expressing (xyz) using (abc) are not limited to the above-mentioned expressions (1), (2), and (3). For example, the following formula may be used.

X = a x b + b x c +e++++ 
(4)y=(b■c ) x (a 十b ) −−−
−−−(5)z=(b■c ) x c + a x 
c−・−(6)尚、■は排他論理和である。
X = a x b + b x c +e++++
(4) y=(b■c) x (a + b) ---
---(5) z=(b■c) x c + a x
c-.-(6) Note that ■ is an exclusive OR.

上記論理式+4)(5J(6)を実現した論理回路(1
)′を第6へ1発明の効果 本発明は、被除数(abc)を入力したとき商(ト)及
び剰余(yz)を出力する論理回路を構成することによ
シ除算を行うものであシ、比較的簡単な構成にて、除算
回路を実現することができる。
Logic circuit (1) that realizes the above logical formula + 4) (5J (6)
)' to No. 6 1. Effects of the Invention The present invention performs division by configuring a logic circuit that outputs a quotient (g) and a remainder (yz) when a dividend (abc) is input. , the division circuit can be realized with a relatively simple configuration.

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

第1図は、データの補間の説明に供する図、第2図は本
発明の一実施例を示す図、第3図は他の実施例を示す図
である。 111(1/は論理回路。
FIG. 1 is a diagram for explaining data interpolation, FIG. 2 is a diagram showing one embodiment of the present invention, and FIG. 3 is a diagram showing another embodiment. 111 (1/ is a logic circuit.

Claims (1)

【特許請求の範囲】[Claims] (1)Nビットよシなる2進データを3で除算して商及
び剰余をめる除算回路であって、3ビツトの被除数を上
位ビットよpa、b、eとし、この被除数を3で除算し
たときの1ビツトの商をXとし、2ビツトの剰余を上位
ビットよ!IY、Zとしたとき前記a、b、cが入力さ
れた場合、前記x、y、zを出力する論理回路を有し、
前記Nビットの2進データを最上位ビットよシラビット
づつ被除数の最下位ピッ)(C)として前記論理回路に
入力し、このときの出力Xを商として順次取出すと共に
出力Yを次の被除数のaビットとして、また出力2を次
の被除数のbビットとして前記論理回路の入力側に帰還
し、以って前記Nビットの2進データの最下位ビットを
入力するまで前記動作を繰返すことによシ、商及び剰余
をめることを特徴とする除算回路。
(1) A division circuit that divides binary data of N bits by 3 and calculates the quotient and remainder, and sets the 3-bit dividend to the upper bits pa, b, and e, and divides this dividend by 3. Let the 1-bit quotient be X, and the 2-bit remainder be the upper bit! It has a logic circuit that outputs the x, y, and z when the a, b, and c are input when IY, Z,
The N-bit binary data is input to the logic circuit as the most significant bit (from the most significant bit to the least significant bit of the dividend) (C), and the output bit, and the output 2 is fed back to the input side of the logic circuit as the b bit of the next dividend, and the above operation is repeated until the least significant bit of the N-bit binary data is input. , a quotient, and a remainder.
JP58150581A 1983-08-18 1983-08-18 Division circuit Pending JPS6043744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58150581A JPS6043744A (en) 1983-08-18 1983-08-18 Division circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58150581A JPS6043744A (en) 1983-08-18 1983-08-18 Division circuit

Publications (1)

Publication Number Publication Date
JPS6043744A true JPS6043744A (en) 1985-03-08

Family

ID=15500008

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58150581A Pending JPS6043744A (en) 1983-08-18 1983-08-18 Division circuit

Country Status (1)

Country Link
JP (1) JPS6043744A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63502792A (en) * 1985-11-09 1988-10-13 ロ−ベルト ボツシユ ゲゼルシヤフト ミツト ベシユレンクテル ハフツング electric machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63502792A (en) * 1985-11-09 1988-10-13 ロ−ベルト ボツシユ ゲゼルシヤフト ミツト ベシユレンクテル ハフツング electric machine

Similar Documents

Publication Publication Date Title
US4387364A (en) Method and apparatus for reducing DC components in a digital information signal
JPS6192476A (en) Channel coding method
JPS6367268B2 (en)
JPS5875950A (en) Encoding method for binary data
EP0059224B1 (en) System for coding and decoding binary data
JP3482212B2 (en) Encoding device and method for encoding (n-1) -bit information words into n-bit channel words, and decoding device and method for decoding channel words into information words
JPS6043744A (en) Division circuit
JP3243138B2 (en) Data conversion method and decoding method
KR970010528B1 (en) Digital modulation method and apparatus thereof
JPH04195423A (en) Multiplier
JPS60114053A (en) Code conversion system
JP3092299B2 (en) Decoding device for run-length 1 / n compressed floating code
JPH05235775A (en) Information conversion method and information converter adopting said method
JPS6240888B2 (en)
JP2713011B2 (en) Information conversion method and information recording device / information reproducing device
SU763950A1 (en) Device for coding speech signal in data voice output
JPH01314023A (en) Digital signal processing circuit
JPH0348774Y2 (en)
KR850001689B1 (en) Method for incording digital data
JPH1074365A (en) Device and method for 8/9 conversion
KR20030005315A (en) Method and apparatus for compression, method and apparatus for decompression, compression/decompression system, recored medium
JP3645819B2 (en) Digital normalization circuit
JP2794719B2 (en) Code conversion device
JPH0666815B2 (en) Information conversion method and data demodulation method
JPS6156523A (en) Digital expander