JPS6129019B2 - - Google Patents

Info

Publication number
JPS6129019B2
JPS6129019B2 JP53092826A JP9282678A JPS6129019B2 JP S6129019 B2 JPS6129019 B2 JP S6129019B2 JP 53092826 A JP53092826 A JP 53092826A JP 9282678 A JP9282678 A JP 9282678A JP S6129019 B2 JPS6129019 B2 JP S6129019B2
Authority
JP
Japan
Prior art keywords
weight
output
adder
correction
signal
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
JP53092826A
Other languages
Japanese (ja)
Other versions
JPS5520533A (en
Inventor
Akimasa Tanabe
Keiji Matsumoto
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
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP9282678A priority Critical patent/JPS5520533A/en
Publication of JPS5520533A publication Critical patent/JPS5520533A/en
Publication of JPS6129019B2 publication Critical patent/JPS6129019B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】[Detailed description of the invention]

この発明は2進化10進コードを使用した並列10
進加算および並列10進減算の補正回路に関するも
のである。 一般に2進化10進コード(以下BCDコードと
称する)を使用した並列10進加算器は桁当り4ビ
ツト並列16進加算を行なう加算器と、さらにその
加算器の演算結果の数値が1桁につき1.0を超え
た場合にはそれを検出して数値6を加算して補正
演算を行なう補正器によつて構成され、また
BCDコードを使用した並列10減算器は4ビツト
並列16進減算器とさらにその減算の結果上位桁へ
の借り信号(ボロー)が生じた場合に数値6を減
算して補正演算を行なう補正器(または数値10を
加算して補正演算を行なう補正器)によつて構成
されていた。 このように加算または減算の結果の状態を検出
してさらに特定の数値を加算または減算する補正
方式を用いて並列10進加減算器を構成した場合に
は通常の4ビツト並列加減算器とは別に補正演算
用加減算器を必要とし、回路構成が複雑になり、
また補正演算に要する時間も問題となつた。 本発明の目的は並列10進加減算器内の補正回路
を従来のような補正演算用加減算器を使用せず簡
単な論理回路で構成でき、10進の加算補正および
減算補正の両方が行ないうる補正回路を提供する
ことにある。 本発明によれば従来の補正回路と比較して回路
を構成する論理素子の数を減少せしめると共に補
正に要する時間もより短かくすることができる。 本発明による10進補正回路は4ビツト並列加減
算器の出力を補正する10進補正回路において、上
記並列16進加減算器からの1−2−4−8の重み
をもつ並列ビツト出力の値が10進表現で10以上で
あるかまたは16進桁上げ信号があることを判定し
検出信号を生成する論理回路であつて、1の重み
の桁の信号は前記16進加減算器の1の重みの出力
より得るようにし、該10進補正回路に接続された
第1の制御信号により加算補正が指示された場合
には、前記検出信号が真であれば2の重みの桁の
信号を前記16進加減算器の2の重みの出力を反転
して得るようにし、4の重みの桁の信号を前記16
進加減算器の2の重みの出力と4の重みの出力と
の一致を検出することにより得るようにし、8の
重みの桁の信号を前記16進加減算器の2の重みの
出力と16進桁上げ信号の論理積より得るように
し、上記検出信号が偽であれば2、4、8の重み
の桁の信号は前記16進加減算器の2、4、8の重
みの出力よりそれぞれ得るようになし、該10進補
正回路に接続された第2の制御信号により減算補
正が指示された場合には、上記検出信号が真であ
れば2の重みの桁の信号を上記16進加減算器の2
の重みの出力を反転して得、4の重みの桁の信号
を上記16進加減算器の2の重みの出力と4の重み
の出力との排他的論理和により得るようにし、8
の重みの桁の信号を上記16進加減算器の2、4、
8の重みの出力の論理積により得るようにし、上
記検出信号が偽であれば2、4、8の重みの桁の
信号は上記16進加減算器の2、4、8の重みの出
力よりそれぞれ得るようにし、上記第1および第
2の制御信号による加算および減算の補正指示が
ない場合には2、4、8の重みの桁の信号を上記
16進加減算器の2、4、8の重みの出力よりその
まま得るようにした論理回路を含むことを特徴と
する。 次に第1図ないし第2図を参照して本発明につ
いて説明する。第1図は並列16進加減算器と本発
明による10進加減算補正回路を使用して並列10進
加減算器を構成したブロツク図であり、ここでは
4ビツト1桁について説明する。 並列16進加減算器1には各々1−2−4−8の
重みをもつBCDコードの入力X1,X2,X4,X8
よびY1,Y2,Y4,Y8が印加される。ここでは、
制御信号G1はその加減算器1に加算または減算
の指示をするものであり、桁上げ信号(キヤリー
又はボロー)Coは低位桁から入力されている。
また桁上げ信号Coは並列16進演算の結果加減算
器1から生ずる信号である。加減算器1で行なわ
れた16進加算または減算の出力信号S′1,S′2
S′4,S′8は10進加減算用補正回路2の入力とな
り、ここでは制御信号G2は補正回路2が加算補
正動作を行なうか否かを決定する信号であり、制
御信号G3は2が減算補正動作を行なうか否かを
決定する信号である。補正された演算出力信号
S1,S2,S4,S8は補正各々1−2−4−8の重み
をもつBCDコードとして出力され、上位桁への
桁上げ信号C′o+1は補正回路2により得られる。 ここで2進化10進数の加減算を行なう場合に補
正回路2に入力される16進加減算器1の出力
C′o,S′8,S′4,S′2,S′1は加算の場合には2進数
表示で各々00000から10011まで減算の場合には
00000から01001まで及び10110から11111までのそ
れぞれ20通りの組合せが可能である。これらの出
力が補正回路2に入力されて10進補正されること
によつて得られる結果を加算と減算に分けて第1
表に示す。第1表の中で×印の部分はBCDコー
ド演算においては生ずる可能性のない部分であ
る。 第1表に示される16進加減算器の出力を加算
This invention uses parallel 10
This relates to a correction circuit for decimal addition and parallel decimal subtraction. In general, a parallel decimal adder using a binary coded decimal code (hereinafter referred to as a BCD code) is an adder that performs 4-bit parallel hexadecimal addition per digit, and the value of the result of the adder's operation is 1.0 per digit. It is composed of a corrector that detects when the value exceeds 6 and performs a correction calculation by adding a value of 6.
A parallel 10 subtracter using a BCD code is a 4-bit parallel hexadecimal subtracter and a compensator that performs a correction operation by subtracting the numerical value 6 when a borrow signal (borrow) to the upper digit occurs as a result of the subtraction. or a corrector that performs correction calculations by adding a numerical value of 10). When a parallel decimal adder/subtractor is configured using a correction method that detects the state of the result of addition or subtraction and then adds or subtracts a specific value, it must be corrected separately from a normal 4-bit parallel adder/subtractor. Requires an adder/subtracter for calculations, making the circuit configuration complicated.
Another problem was the time required for correction calculations. The purpose of the present invention is to configure a correction circuit in a parallel decimal adder/subtracter with a simple logic circuit without using a conventional adder/subtracter for correction calculations, and to perform correction that can perform both addition and subtraction corrections in decimal. The purpose is to provide circuits. According to the present invention, compared to conventional correction circuits, the number of logic elements constituting the circuit can be reduced, and the time required for correction can also be shortened. The decimal correction circuit according to the present invention is a decimal correction circuit that corrects the output of a 4-bit parallel adder/subtracter, and the value of the parallel bit output having a weight of 1-2-4-8 from the parallel hexadecimal adder/subtracter is 10. A logic circuit that determines whether the value is 10 or more in decimal representation or the presence of a hexadecimal carry signal and generates a detection signal, and the signal of the 1 weight digit is the 1 weight output of the hexadecimal adder/subtractor. If the addition correction is instructed by the first control signal connected to the decimal correction circuit, if the detection signal is true, the signal of the weighted digit of 2 is added to and subtracted from the hexadecimal correction circuit. The output of the weight of 2 is obtained by inverting the output of the weight of 2, and the signal of the weight of 4 is obtained by the above 16
It is obtained by detecting the coincidence between the output of the weight 2 of the hexadecimal adder/subtractor and the output of the weight 4, and the signal of the weight digit of 8 is obtained by comparing the output of the weight 2 of the hexadecimal adder/subtractor with the hexadecimal digit. If the detection signal is false, the signals of weights 2, 4, and 8 are obtained from the outputs of weights 2, 4, and 8 of the hexadecimal adder/subtractor, respectively. None, if the subtraction correction is instructed by the second control signal connected to the decimal correction circuit, if the detection signal is true, the signal of the weighted digit of 2 is sent to the hexadecimal adder/subtractor.
The output of the weight of 4 is obtained by inverting the output of the weight of 4, and the signal of the weight of 4 is obtained by the exclusive OR of the output of the weight of 2 and the output of the weight of 4 of the hexadecimal adder/subtractor,
2, 4, and 4 of the above hexadecimal adder/subtractor
If the detection signal is false, the signals of weights 2, 4, and 8 are obtained from the outputs of weights 2, 4, and 8 of the hexadecimal adder/subtractor, respectively. If there is no correction instruction for addition and subtraction by the first and second control signals, the signals of the weighting digits of 2, 4, and 8 are
It is characterized by including a logic circuit that directly obtains the weight outputs of 2, 4, and 8 from the hexadecimal adder/subtractor. Next, the present invention will be explained with reference to FIGS. 1 and 2. FIG. 1 is a block diagram in which a parallel decimal adder/subtractor is constructed using a parallel hexadecimal adder/subtracter and a decimal addition/subtraction correction circuit according to the present invention.Here, a 4-bit single digit will be explained. BCD code inputs X 1 , X 2 , X 4 , X 8 and Y 1 , Y 2 , Y 4 , Y 8 each having a weight of 1-2-4-8 are applied to the parallel hexadecimal adder/subtractor 1. Ru. here,
The control signal G1 instructs the adder/subtractor 1 to perform addition or subtraction, and the carry signal (carry or borrow) C o is input from the lower digits.
Further, the carry signal C o is a signal generated from the adder/subtractor 1 as a result of parallel hexadecimal operation. Output signals of hexadecimal addition or subtraction performed in adder/subtractor 1 S′ 1 , S′ 2 ,
S' 4 and S' 8 are the inputs of the decimal addition/subtraction correction circuit 2. Here, the control signal G2 is a signal that determines whether or not the correction circuit 2 performs the addition correction operation, and the control signal G3 is the signal that 2 This is a signal that determines whether or not to perform a subtraction correction operation. Corrected calculation output signal
S 1 , S 2 , S 4 , and S 8 are corrected and output as BCD codes with weights of 1-2-4-8, respectively, and the carry signal C′ o+1 to the upper digit is obtained by correction circuit 2. . Here, when performing addition and subtraction of binary coded decimal numbers, the output of hexadecimal adder/subtractor 1 is input to correction circuit 2
C′ o , S′ 8 , S′ 4 , S′ 2 , and S′ 1 are expressed as binary numbers in the case of addition, and from 00000 to 10011 in the case of subtraction.
There are 20 possible combinations from 00000 to 01001 and from 10110 to 11111. These outputs are input to the correction circuit 2 and subjected to decimal correction, and the results obtained are divided into addition and subtraction.
Shown in the table. The parts marked with an x in Table 1 are parts that have no possibility of occurring in BCD code operations. Add the output of the hexadecimal adder/subtractor shown in Table 1

【表】 または減算に応じてBCDコードに変換する操作
を従来の如く特定の数値を加算または減算して行
なわずに、一義的にコード変換を行なう簡単な論
理ゲート回路で置換えることによりまつたく同様
の10進補正動作を行なうことが可能である。 以下にその論理ゲート回路の構成方法を第2図
を参照しながら加算補正と減算補正の場合に分け
て説明する。 (イ) 加算補正の場合 加算の場合の10進桁上げ信号をC′o+1とする
と、C′o+1はS′1〜S′8で表わされるコードが10以
上であるか、16進の桁上げ信号C′oが発生した
場合に生ずるのでその論理式は C′o+1=C′o+S′8(S′4+S′2) ……(1) で表わされる。 “1”の重みをもつ10進補正後出力S1に対し
ては何ら補正を必要としないので S1=S′1 …………(2) で表わされる。 “2”の重みをもつ10進補正後出力S2は16進
演算結果が0〜9の時はS′2そのままで、それ
以外はS′2を論理反転したものであるから S2=S′2・′o+1+′2・Co+1 ……(3) で表わされる。 “4”の重みをもつ10進補正後出力S4は10進
桁上げ信号C′o+1が〓の時はS′4に等しくC′o+1
1の時はS′4とS′2の一致論理出力に相当するの
で S4=C′o+1(S′4・S′2+′4・′2) +′o+1・S′4 ………(4) で表わされる。 “8”の重みをもつ10進補正後出力S8
C′o+1が〓の時はS′8に等しくそれ以外はC′o
S′2の論理積で表わされるが、後者の場合には
C′o+1の無関係に成り立つので S8=′o+1・S′8+C′o・S′2 ………(5) で表わされる。 (ロ) 減算補正の場合 減算の場合の10進桁上げ信号(ボロー信号)
をC′o+1とするとC′o+1及び“1”の重みをもつ
出力S1は何ら補正の必要がないので C′o+1=C′o S1=S′1 で表わされる。 “2”の重みをもつ出力S2に関してはC′o+1
とS′2の排他的論理和を求めればよいので S2=′o+1・S′2+C′o+1・′2 ……(8) で表わされる。 “4”の重みをもつ出力S4はC′o+1が〓の時
はS′4出力に等しくそれ以外はS′4出力とS′2出力
の排他的論理和を求めればよいので S4=C′o+1(S′4・′2+′4・S′2) +′o+1・S′4 ………(9) で表わされる。 “8”の重みをもつ出力S8はC′o+1が〓の時
はS′8に等しくそれ以外はS′2,S′4,S′8各出力
の論理積を求めればよいので S8=′o+1・S′8+S′8・S′4・S′2 ……(10) で表わされる。 上述の論理式(1)〜(10)に従つて第1図の補正回路
2を構成するためには第1図中の制御信号G2,
G3を組込んで最終的な論理式を求めればよい。
G2とG3の組合せ入力に対する補正回路の動作
を第2表に示す。
[Table] Alternatively, the operation of converting into a BCD code according to subtraction can be done by replacing it with a simple logic gate circuit that uniquely performs code conversion without adding or subtracting a specific numerical value as in the past. Similar decimal correction operations can be performed. The method of configuring the logic gate circuit will be explained below separately for addition correction and subtraction correction with reference to FIG. (b) In the case of addition correction If the decimal carry signal in the case of addition is C′ o+1 , C′ o+1 indicates whether the code represented by S′ 1 to S′ 8 is 10 or more, or 16 This occurs when the decimal carry signal C' o is generated, so its logical formula is expressed as C' o+1 = C' o + S' 8 (S' 4 + S' 2 )...(1). Since the output S 1 after decimal correction having a weight of "1" does not require any correction, it is expressed as S 1 =S' 1 ......(2). The output S 2 after decimal correction with a weight of "2" remains S' 2 as is when the hexadecimal operation result is 0 to 9, and is the logically inverted version of S' 2 otherwise , so S 2 = S ′ 2・′ o+1 +′ 2・C o+1 ...(3) The output S 4 after decimal correction with a weight of “4” is equal to S′ 4 when the decimal carry signal C′ o+1 is 〓, and when C′ o+1 is 1, S′ 4 and S ′ 2 , so it is expressed as S 4 =C′ o+1 (S′ 4・S′ 2 +′ 4・′ 2 ) +′ o+1・S′ 4 ………(4) It can be done. The output S 8 after decimal correction with a weight of “8” is
When C′ o+1 is 〓, it is equal to S′ 8 , otherwise it is C′ o
It is expressed as the logical product of S′ 2 , but in the latter case,
This holds true regardless of C′ o+1 , so it can be expressed as S 8 =′ o+1・S′ 8 +C′ o・S′ 2 ……(5). (b) For subtraction correction Decimal carry signal (borrow signal) for subtraction
Let C′ o+1 be C′ o+1 and the output S 1 with a weight of “1” does not require any correction, so it is expressed as C′ o+1 = C′ o S 1 = S′ 1 . For output S 2 with weight “2”, C′ o+1
It is sufficient to find the exclusive OR of The output S 4 with a weight of "4" is equal to the S' 4 output when C' o+1 is 4 = C′ o+1 (S′ 4・′ 2 +′ 4・S′ 2 ) +′ o+1・S′ 4 ………(9). The output S 8 with a weight of "8" is equal to S' 8 when C' o+1 is 〓.Otherwise, it is enough to calculate the logical product of each output of S' 2 , S' 4 , and S' 8 . S 8 =′ o+1・S′ 8 +S′ 8・S′ 4・S′ 2 ……(10) In order to configure the correction circuit 2 in FIG. 1 according to the above logical formulas (1) to (10), the control signals G2, G2 in FIG.
The final logical formula can be obtained by incorporating G3.
Table 2 shows the operation of the correction circuit for the combined input of G2 and G3.

【表】 論理式(1)と(6)に信号G2,G3を組合わせると
最終的な10進桁上げ信号Co+1は Co+1=C′o+G2・S′8(S′4+S′2) ……(11) となる。論理式(11)に信号G3に関する項がないの
は減算時のC′o+1は全てC′oに含まれるためであ
る。 出力S1に関しては加減算に関係なく下記の式が
成り立つ。 S1=S′1 …………(12) 出力S2については上記(3)式と(8)式に信号G2,
G3を関係づけて S2=2・3・S′2+(G2+G3)(C′o+1・′2+′o+1・S′2) =S′2(2・3+′o+1)+′2・C′o+1・(G2+G3) …………(13) で表わされる。 出力S4は上記(4)式と(9)式に信号G2,G3を関
係づけて S4=S′4(2・3+′o+1)+G2・C′o+1(′4・S′2+S′4・′2) +G3・C′o+1(′4・S′2+S′4・′2) ……(14) で表わされる。 同様に出力S8の場合には上記(5)式と(10)式から S8=2・3・S′8+G2(′o+1・S′8+C′o・S′2)+G3・S′8(′o+1+S′4・S′2) =S′8(2・3+′o+1)+G2・C′o・S′2+G3・S′8・S′4・S′2 で表わされる。 次に第2図を参照して上記の補正回路の具体的
な構成の一実施例を示す。 第2図においてS′1,S′2,S′4,S′8,C′o,G
2,G3,S1,S2,S4,S8,Co+1は第1図にお
ける記号の意味と同じである。 ORゲート3とANDゲート4により16進加減算
器の出力が10以上であることを検出し、さらに
ORゲート5により加減算補正に共通な桁上け信
号C′o+1を発生する。ANDゲート6は上記桁上げ
信号C′o+1と加算補正指示制御信号G2との論理
積により加算補正実行時の制御信号G2,C′o+1
を生成し、ANDゲート7は減算実行時の制御信
号G3・C′o+1を生成する。さらにNORゲート8は
補正を全く必要としない時にS′1〜S′8の信号をそ
のままS1〜S8に出力するための制御信号(2+
G3)C′o+1を発生させる。 “1”の重みをもつS1出力は上記(12)式により
S′1に直接々続される。 “2”の重みをもつS2出力は上記(13)式によ
り加算および減算補正時にはNORゲート9によ
りS′2を反転し、補正の必要がない時はANDゲー
ト10によりS′2をそのまま出力し、上記2つの
信号をORゲート11により合成して得られる。 “4”の重みをもつS4出力は上記(14)式によ
り減算補正時にはS′2とS′4の排他的論理和ゲート
12による出力をANDゲート14により得、加
算補正時には上記12の出力をインバータ・ゲート
13により反転した出力(S′2とS′4の一致信号出
力)をANDゲート15により得、補正を要しな
い時にはANDゲート16によりS′4をそのまま出
力し、上記3種の記号をORゲート17により合
成して得られる。 “8”の重みをもつS8出力は上記(15)式によ
り減算補正時のS′2,S′4,S′8の論理積をANDゲ
ート18により得、加算補正時のC′oとS′2の論理
積をANDゲート19により得、補正を要しない
時にはANDゲート20によりS′8をそのまま出力
し上記3種の信号をORゲート21により合成し
て得られる。 補正後の桁上げ信号Co+1は上記(11)式により16
進桁上げ信号CoとG2・C′o+1をORゲート22で
合成して得られる。 上記の各論理ゲートの働きにより式(11)〜(15)
式の論理が満足され、第1表に示される並列10進
加算および減算の補正動作ならびに補正を必要と
しない並列16進加減算の動作を簡単な論理回路に
より実現できると共に、補正に要する時間も最悪
でも数段の論理ゲートの伝達遅延時間ですますこ
とができる。
[Table] Combining signals G2 and G3 with logical formulas (1) and (6), the final decimal carry signal C o+1 is C o+1 = C′ o + G2・S′ 8 (S′ 4 +S′ 2 ) ...(11). The reason why there is no term regarding the signal G3 in the logical formula (11) is that C′ o+1 during subtraction is all included in C′ o . Regarding the output S1 , the following formula holds true regardless of addition or subtraction. S 1 = S' 1 ......(12) For the output S 2 , the signal G2,
Relating G3, S 2 = 2・3・S′ 2 + (G2+G3) (C′ o+1・′ 2 +′ o+1・S′ 2 ) = S′ 2 (2・3+′ o+1 ) +′ 2・C′ o+1・(G2+G3) ………(13) The output S 4 is calculated by relating the signals G2 and G3 to the above equations (4) and (9) as follows: S 4 = S′ 4 (2・3+′ o+1 )+G2・C′ o+1 (′ 42 +S′ 4・′ 2 ) +G3・C′ o+1 (′ 4・S′ 2 +S′ 4・′ 2 ) ……(14) Similarly, in the case of output S 8 , from equations (5) and (10) above, S 8 = 2・3・S′ 8 +G2 (′ o+1・S′ 8 +C′ o・S′ 2 ) + G3・S′ 8 (′ o+1 +S′ 4・S′ 2 ) =S′ 8 (2・3+′ o+1 )+G2・C′ o・S′ 2 +G3・S′ 8・S′ 4・S′ Represented by 2 . Next, an example of a specific configuration of the above correction circuit will be shown with reference to FIG. In Figure 2, S' 1 , S' 2 , S' 4 , S' 8 , C' o , G
2, G3, S 1 , S 2 , S 4 , S 8 , and Co +1 have the same meanings as the symbols in FIG. OR gate 3 and AND gate 4 detect that the output of the hexadecimal adder/subtractor is 10 or more, and
The OR gate 5 generates a carry signal C′ o+1 common to addition and subtraction corrections. AND gate 6 generates control signals G2, C'o+1 when executing addition correction by ANDing the carry signal C'o + 1 and addition correction instruction control signal G2.
The AND gate 7 generates a control signal G3·C′ o+1 when executing subtraction. Furthermore , the NOR gate 8 outputs a control signal (2+
G3) Generate C′ o+1 . The S 1 output with a weight of “1” is calculated by the above equation (12).
Directly connected to S′ 1 . The S 2 output, which has a weight of "2", is inverted by the NOR gate 9 during addition and subtraction correction according to equation (13 ) above, and when no correction is necessary, the AND gate 10 outputs S' 2 as it is. The above two signals are then synthesized by an OR gate 11. The S4 output with a weight of " 4 " is obtained by the AND gate 14 as the output from the exclusive OR gate 12 of S' 2 and S' 4 during subtraction correction according to the above equation (14), and the output from the above 12 during addition correction. is inverted by the inverter gate 13 (coincidence signal output of S' 2 and S' 4 ) is obtained by the AND gate 15, and when no correction is required, the AND gate 16 outputs S' 4 as it is, and the above three types are output. It is obtained by combining the symbols using an OR gate 17. The S8 output with a weight of "8" is obtained by using the AND gate 18 to obtain the logical product of S' 2 , S' 4 , and S' 8 at the time of subtraction correction using the above equation (15), and is calculated from C' o at the time of addition correction. The logical product of S' 2 is obtained by the AND gate 19, and when no correction is required, the AND gate 20 outputs S' 8 as it is, and the above three types of signals are synthesized by the OR gate 21. The carry signal C o+1 after correction is 16 according to the above equation (11).
It is obtained by combining the advance carry signal C o and G2·C' o+1 at the OR gate 22. Formulas (11) to (15) are expressed by the functions of each logic gate above.
The logic of the equation is satisfied, and the parallel decimal addition and subtraction correction operations shown in Table 1 as well as the parallel hexadecimal addition and subtraction operations that do not require correction can be realized with a simple logic circuit, and the time required for correction is also the worst. However, the transmission delay time of several stages of logic gates is sufficient.

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

第1図は本発明によるBCDコード1桁の加算
および減算を行なう並列10進加減算器の概略構成
を示すブロツク図、第2図は本発明の10進補正回
路の一例を示すブロツク図である。 なお図において、1……並列16進加減算器、2
……10進補正回路である。
FIG. 1 is a block diagram showing a schematic configuration of a parallel decimal adder/subtractor for adding and subtracting one digit BCD code according to the present invention, and FIG. 2 is a block diagram showing an example of a decimal correction circuit according to the present invention. In the figure, 1...parallel hexadecimal adder/subtractor, 2
...This is a decimal correction circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 4ビツト並列加減算器の出力を補正する10進
補正回路において、前記加減算器からの並列4ビ
ツト出力の値が10進表現で10以上であるかまたは
16進桁上げ信号があることを判定し検出信号を生
成する論理回路であつて、1の重みの桁の出力を
前記加減算器の1の重みの出力により得るように
し、該10進補正回路に第1の制御信号により加算
補正が指示された場合には、前記検出信号が真で
あれば2の重みの桁の出力を前記加減算器の2の
重みの出力を反転して得るようにし、4の重みの
桁の信号を前記加減算器の2の重みの出力と4の
重みの出力との排他的論理和の否定により得るよ
うにし、8の重みの桁の信号を前記加減算器の2
の重みの出力と16進桁上げ信号の論理積より得る
ようにし、前記検出信号が偽であれば2、4、8
の重みの桁の信号は前記16進加減算器の2、4、
8の重みの出力よりそれぞれ得るようにし、該10
進補正回路に第2の制御信号により減算補正が指
示された場合には、前記検出信号が真であれば2
の重みの桁の信号を前記加減算器の2の重みの出
力を反転して得るようにし、4の重みの桁の信号
を前記加減算器の2の重みの出力と4の重みの出
力との排他的論理和により得るようにし、8の重
みの桁の信号を前記加減算器の2、4、8の重み
の出力の論理積により得るようにし、前記検出信
号が偽であれば、2、4、8の重みの桁の信号は
前記加減算器の2、4、8の重みの出力よりそれ
ぞれ得るようにし、前記第1および第2の制御信
号による加算および減算の補正指示がない場合に
は2、4、8の重みの桁の信号を前記16進加減算
器の2、4、8の重みの出力よりそのまま得るよ
うにした論理回路を含むことを特徴とする10進補
正回路。
1. In a decimal correction circuit that corrects the output of a 4-bit parallel adder/subtracter, the value of the parallel 4-bit output from the adder/subtracter is 10 or more in decimal representation, or
a logic circuit that determines the presence of a hexadecimal carry signal and generates a detection signal, the output of a digit having a weight of 1 is obtained by the output of a weight of 1 of the adder/subtractor; When addition correction is instructed by the first control signal, if the detection signal is true, the output of the weight of 2 is obtained by inverting the output of the weight of 2 of the adder/subtractor; A signal with a weight of 8 is obtained by negating the exclusive OR of the output with a weight of 2 and the output with a weight of 4 of the adder/subtractor.
If the detection signal is false, 2, 4, 8
The weight digit signals of the hexadecimal adder/subtractor 2, 4,
8 weights, respectively, and the 10
When the subtractive correction is instructed to the leading correction circuit by the second control signal, if the detection signal is true, 2
A signal with a weight of 2 is obtained by inverting the output of a weight of 2 of the adder/subtractor, and a signal with a weight of 4 is obtained by exclusive of the output of a weight of 2 and the output of a weight of 4 of the adder/subtractor. A signal with a weight of 8 is obtained by a logical AND of the outputs of weights 2, 4, and 8 from the adder/subtractor, and if the detection signal is false, the Signals with a weight of 8 are obtained from the outputs of weights 2, 4, and 8 of the adder/subtracter, respectively, and when there is no correction instruction for addition and subtraction by the first and second control signals, 2, A decimal correction circuit comprising a logic circuit configured to directly obtain signals of weights of 4 and 8 from outputs of weights of 2, 4, and 8 of the hexadecimal adder/subtractor.
JP9282678A 1978-07-28 1978-07-28 Decimal correction circuit Granted JPS5520533A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9282678A JPS5520533A (en) 1978-07-28 1978-07-28 Decimal correction circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9282678A JPS5520533A (en) 1978-07-28 1978-07-28 Decimal correction circuit

Publications (2)

Publication Number Publication Date
JPS5520533A JPS5520533A (en) 1980-02-14
JPS6129019B2 true JPS6129019B2 (en) 1986-07-03

Family

ID=14065230

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9282678A Granted JPS5520533A (en) 1978-07-28 1978-07-28 Decimal correction circuit

Country Status (1)

Country Link
JP (1) JPS5520533A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4245328A (en) * 1979-01-03 1981-01-13 Honeywell Information Systems Inc. Binary coded decimal correction apparatus for use in an arithmetic unit of a data processing unit

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5248045A (en) * 1975-10-15 1977-04-16 Ozawa Jiyuichirou Thinnfilm fuse resistor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5248045A (en) * 1975-10-15 1977-04-16 Ozawa Jiyuichirou Thinnfilm fuse resistor

Also Published As

Publication number Publication date
JPS5520533A (en) 1980-02-14

Similar Documents

Publication Publication Date Title
JPS5829539B2 (en) arithmetic unit
JPS6125245A (en) Rounding process circuit
JPS6129019B2 (en)
US5745399A (en) Decimal arithmetic apparatus and method
US4441159A (en) Digital adder circuit for binary-coded numbers of radix other than a power of two
JPS608933A (en) Arithmetic processing unit
US5671022A (en) Image processing system and method for converting YCbCr data composed of luminance and chroma into RGB data of three primary colors
US4197587A (en) Correction circuit for arithmetic operations with non-hexadecimal operands in hexadecimal arithmetic units
EP0442220B1 (en) Decoder
JPS6015967B2 (en) 3-input series full adder capable of detecting overflow
JP3071607B2 (en) Multiplication circuit
JPH0377538B2 (en)
JPH0511978A (en) Subtraction circuit
JP2506891B2 (en) Floating point arithmetic unit
JPS6152493B2 (en)
JP2551111B2 (en) Square arithmetic circuit
JPS5940665Y2 (en) Power calculation control device
JPH04149728A (en) Rom type digital arithmetic circuit
JPS59174944A (en) Multiplying device
JPS60247736A (en) Dividing circuit
JPS5931896B2 (en) Differential nonlinearity correction circuit for analog-to-digital converter
JPS60665Y2 (en) Arithmetic control unit
JPH0553768A (en) Divider
SU407308A1 (en) DEVICE FOR COMPLEX - CLEANING
JPH04294420A (en) Divider