JP2001034457A - Adding and subtracting circuit - Google Patents

Adding and subtracting circuit

Info

Publication number
JP2001034457A
JP2001034457A JP11204170A JP20417099A JP2001034457A JP 2001034457 A JP2001034457 A JP 2001034457A JP 11204170 A JP11204170 A JP 11204170A JP 20417099 A JP20417099 A JP 20417099A JP 2001034457 A JP2001034457 A JP 2001034457A
Authority
JP
Japan
Prior art keywords
circuit
bit
signal
holding
exclusive
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
JP11204170A
Other languages
Japanese (ja)
Inventor
Makoto Ujiie
誠 氏家
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.)
Toyo Communication Equipment Co Ltd
Original Assignee
Toyo Communication Equipment 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 Toyo Communication Equipment Co Ltd filed Critical Toyo Communication Equipment Co Ltd
Priority to JP11204170A priority Critical patent/JP2001034457A/en
Publication of JP2001034457A publication Critical patent/JP2001034457A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an adding and subtracting circuit for causing no decrease of a system clock speed by reducing the number of gates between the input and output of a signal. SOLUTION: This adding circuit 10 is provided with a first holding circuit 11 for holding the bit string of an augend X, a second holding circuit 12 for holding the bit string of an addend Y, a carrier signal generating circuit 15 for successively inputted each bit string held in the first and second holding circuits from the least significant bit synchronously with a prescribed synchronizing signal, and for generating a carry signal being transited to a first state when both the inputted bits are 1, and to a second state when both the inputted signals are 0, an exclusive logical sum circuit 14 for inputting the carry signal and each bit in the next stage of the bits being the basis of the carry signal in the first and second holding circuits and for outputting the exclusive OR thereof, and a third holding circuit 13 for holding a bit string outputted from the exclusive logical sum circuit.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ディジタル信号の
加減算回路に関する。
The present invention relates to a digital signal addition / subtraction circuit.

【0002】[0002]

【従来の技術】通信装置やコンピュータにおいて、ディ
ジタル信号処理のためにその加減算演算は必須のもので
ある。図8に、ゲートにより構成される一般的な加算回
路を示す。加算回路80は、加算する各々のビットの排
他的論理和(XOR)を加算結果とし、各々のビットが
両方とも1である時に次段への桁上げとしてキャリーを
出力する。回路構成としては、図9(A)に示す両ビッ
トの論理積(AND)をキャリーとしている半加算器
と、図9(B)に示す前段からのキャリーをも含めた加
算をする全加算器を組合わせることによって構成され
る。
2. Description of the Related Art In communication devices and computers, addition and subtraction operations are essential for digital signal processing. FIG. 8 shows a general addition circuit constituted by gates. The addition circuit 80 uses the exclusive OR (XOR) of each bit to be added as an addition result, and outputs a carry as a carry to the next stage when both bits are 1s. As a circuit configuration, a half adder that carries a logical product (AND) of both bits shown in FIG. 9A and a full adder that performs addition including the carry from the preceding stage shown in FIG. 9B Is configured by combining

【0003】一方、減算回路は、一般的に加算回路を利
用して実現される。すなわち、入力AとBの減算A−B
は、次式のように補数を用いることによって、加算処理
で実現できる。
On the other hand, a subtraction circuit is generally realized by using an addition circuit. That is, subtraction AB of inputs A and B
Can be realized by an addition process by using a complement as in the following equation.

【0004】A−B=A+not B+1A−B = A + not B + 1

【0005】ここで、not Bは、Bの全ビットのビット
反転を表す。
[0005] Here, not B represents bit inversion of all bits of B.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、前記加
算回路においては、上位ビットにおける加算は、下位ビ
ットにおけるキャリーの結果を加えることによって行わ
れるために、加算回路の入出力間には多数段のゲートが
入ることになる。このゲートの段数は入力ビット数が増
加するほど大きくなる。
However, in the above-mentioned addition circuit, since the addition in the upper bit is performed by adding the result of the carry in the lower bit, a multi-stage gate is provided between the input and output of the addition circuit. Will enter. The number of stages of this gate increases as the number of input bits increases.

【0007】加算回路を構成するFPGA(Field Prog
ramable Gate Array)では、1ゲートあたり数ns程度
の遅延を生じる。そのため、入力ビット数の大きい加算
回路を用いて加算又は減算処理を行うと、レジスタ間の
遅延が増大し、システムのクロック速度を低下させると
いう問題があった。
An FPGA (Field Prog) constituting an adder circuit
In a ramable gate array, a delay of about several ns per gate occurs. Therefore, when the addition or subtraction processing is performed using an addition circuit having a large number of input bits, there is a problem that the delay between registers increases and the clock speed of the system decreases.

【0008】従って、本発明の目的は、信号の入出力間
におけるゲート数を少なくすることにより、システムク
ロック速度の低下を来たすことのない加算回路を提供す
ることにある。
Accordingly, it is an object of the present invention to provide an adder circuit which does not reduce the system clock speed by reducing the number of gates between signal input and output.

【0009】また、本発明の別の目的は、入力信号の減
算をその補数を用いることなく算出することができる、
演算速度が高速な減算回路を提供することにある。
It is another object of the present invention that the subtraction of an input signal can be calculated without using its complement.
An object of the present invention is to provide a subtraction circuit having a high operation speed.

【0010】更に、本発明の別の目的は、入力信号の加
算及び減算をすることができる、演算速度が高速な加減
算回路を提供することにある。
Another object of the present invention is to provide an addition / subtraction circuit which can perform addition and subtraction of input signals and has a high operation speed.

【0011】[0011]

【課題を解決するための手段】前記目的を達成するため
本発明の加算回路は、被加数Xのビット列を保持する第
1の保持回路と、加数Yのビット列を保持する第2の保
持回路と、前記第1及び第2の保持回路に保持された各
ビット列を、所定の同期信号に同期して順次その最下位
ビットから入力し、該入力されたビットの双方が1であ
るときに第1の状態に遷移され、該入力された信号の双
方が0であるときに第2の状態に遷移されるキャリー信
号を生成するキャリー信号生成回路と、前記キャリー信
号と、前記第1及び第2の保持回路における該キャリー
信号の基となったビットの次の段の各ビットを入力し、
これらの排他的論理和を出力する排他的論理和回路と、
該排他的論理和回路から出力されるビット列を保持する
第3の保持回路とを備えて構成される。
To achieve the above object, an adder circuit according to the present invention comprises a first holding circuit for holding a bit string of an augend X and a second holding circuit for holding a bit string of an addend Y. Circuit, and the bit strings held in the first and second holding circuits are sequentially input from the least significant bit in synchronization with a predetermined synchronization signal, and when both of the input bits are 1, A carry signal generating circuit for generating a carry signal which is transited to a first state and which is transited to a second state when both of the inputted signals are 0, the carry signal; Inputting each bit of the next stage of the bit on which the carry signal is based in the holding circuit of No. 2;
An exclusive OR circuit that outputs the exclusive OR,
A third holding circuit for holding a bit string output from the exclusive OR circuit.

【0012】また、本発明の減算回路は、被減数Xのビ
ット列を保持する第1の保持回路と、減数Y(但し、X
>Y)のビット列を保持する第2の保持回路と、前記第
1及び第2の保持回路に保持された各ビット列を、所定
の同期信号に同期して順次その最下位ビットから入力
し、該入力されたビットのうち前記第1の保持回路から
のビットが0で、前記第2の保持回路からのビットが1
であるときに第1の状態に遷移され、該入力された信号
のうち前記第1の保持回路からのビットが1で、前記第
2の保持回路からのビットが0であるときに第2の状態
に遷移されるボロウ信号を生成するボロウ信号生成回路
と、前記ボロウ信号と、前記第1及び第2の保持回路に
おける該ボロウ信号の基となったビットの次の段の各ビ
ットを入力し、これらの排他的論理和を出力する排他的
論理和回路と、該排他的論理和回路から出力されるビッ
ト列を保持する第3の保持回路とを備えて構成される。
Further, the subtraction circuit of the present invention comprises a first holding circuit for holding a bit string of the minuend X, and a subtraction Y (where X
> Y), and the respective bit strings held in the first and second holding circuits are sequentially input from the least significant bit in synchronization with a predetermined synchronization signal. Of the input bits, the bit from the first holding circuit is 0, and the bit from the second holding circuit is 1
, The state is transited to the first state, and when the bit from the first holding circuit is 1 in the input signal and the bit from the second holding circuit is 0, A borrow signal generating circuit for generating a borrow signal to be transitioned to a state, and inputting the borrow signal and each bit of a stage next to the bit on which the borrow signal is based in the first and second holding circuits. , An exclusive-OR circuit for outputting these exclusive-ORs, and a third holding circuit for holding a bit string output from the exclusive-OR circuit.

【0013】更に、本発明の加減算回路は、数Xのビッ
ト列を保持する第1の保持回路と、数Y(但し、X>
Y)のビット列を保持する第2の保持回路と、前記第1
の保持回路からのビット列を反転する否定回路と、加算
の命令信号に基いて前記否定回路からのビット列を出力
し、減算の命令信号に基いて前記第1の保持回路からの
ビット列を出力するセレクタと、前記セレクタ及び前記
第2の保持回路からの各ビット列を、所定の同期信号に
同期して順次その最下位ビットから入力し、前記数Xと
Yの加算を行うときには、該入力されたビットの双方が
1であるときに第1の状態に遷移され、該入力された信
号の双方が0であるときに第2の状態に遷移されると共
に、前記数Xに対するYの減算を行うときには、該入力
されたビットのうち前記セレクタからのビットが0で、
前記第2の保持回路からのビットが1であるときに第1
の状態に遷移され、該入力された信号のうち前記セレク
タからのビットが1で、前記第2の保持回路からのビッ
トが0であるときに第2の状態に遷移される信号を生成
する信号生成回路と、前記信号と、前記第1及び第2の
保持回路における該信号の基となったビットの次の段の
各ビットを入力し、これらの排他的論理和を出力する排
他的論理和回路と、該排他的論理和回路から出力される
ビット列を保持する第3の保持回路とを備えて構成され
る。
Further, the addition / subtraction circuit of the present invention comprises a first holding circuit for holding a bit string of the number X, and a number Y (where X>
Y) a second holding circuit for holding the bit string;
And a selector for outputting the bit sequence from the negation circuit based on the command signal for addition and outputting the bit sequence from the first storage circuit based on the command signal for subtraction. And when the bit strings from the selector and the second holding circuit are sequentially input from the least significant bit in synchronization with a predetermined synchronization signal, and when the addition of the numbers X and Y is performed, the input bits When both are 1, the state is transited to the first state, when both of the input signals are 0, the state is transited to the second state, and when subtracting Y from the number X, When the bit from the selector among the input bits is 0,
When the bit from the second holding circuit is 1, the first
And a signal that generates a signal that is shifted to the second state when the bit from the selector is 1 and the bit from the second holding circuit is 0 in the input signal. An exclusive OR that inputs a generation circuit, the signal, and each bit of a stage next to the bit on which the signal is based in the first and second holding circuits, and outputs an exclusive OR of these And a third holding circuit for holding a bit string output from the exclusive OR circuit.

【0014】[0014]

【発明の実施の形態】以下、図示した一実施形態に基い
て本発明を詳細に説明する。図1は、本発明の一実施形
態に係る加算回路のブロック図である。図に示すよう
に、加算回路10は、加算する2つの数、すなわち被加
数Xと加数Yを保持する2つのレジスタ11、12、加
算の結果Zを保持するレジスタ13、入力信号の加算を
行うXOR回路14、キャリー信号を生成するための同
期式ラッチ15、ラッチセット用の論理回路16及びラ
ッチリセット用の論理回路17を備えて構成される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described in detail based on one embodiment shown in the drawings. FIG. 1 is a block diagram of an adding circuit according to an embodiment of the present invention. As shown in the figure, an adder circuit 10 includes two registers 11 and 12 for holding two numbers to be added, that is, an augend X and an addend Y, a register 13 for holding an addition result Z, and an addition of input signals. , A synchronous latch 15 for generating a carry signal, a logic circuit 16 for latch setting, and a logic circuit 17 for latch reset.

【0015】レジスタ11及び12は、シフトレジスタ
であり、クロック信号に同期して格納したビット列を1
ビットづつ右シフトして、その最下位ビット(LSB)
から順番に出力する。
The registers 11 and 12 are shift registers, each of which stores a bit string stored in synchronization with a clock signal.
Shift right by bit, and the least significant bit (LSB)
Output in order.

【0016】XOR回路14は、レジスタ11からの被
加数Xのビット、レジスタ12からの加数Yのビット及
び同期式ラッチ15からのキャリー信号を入力し、それ
らを排他的論理和した結果を出力する。レジスタ13に
は、XOR回路14から順次出力されるビットが蓄積さ
れ、すべてのビットについての演算が終了すると、レジ
スタ13には、XとYを加算した結果Zが格納されるこ
ととなる。
The XOR circuit 14 receives the bit of the augend X from the register 11, the bit of the addend Y from the register 12, and the carry signal from the synchronous latch 15, and outputs the result of exclusive ORing them. Output. The bits sequentially output from the XOR circuit 14 are accumulated in the register 13, and when the operation on all the bits is completed, the register 13 stores the result Z obtained by adding X and Y.

【0017】同期式ラッチ15は、数XとYのビット列
を加算した際のキャリー信号を生成するためのもので、
加算の際に桁上げが発生した場合に、セット信号に基い
て1に遷移され、また加算ビットの双方が0である場合
にリセット信号に基いて0に遷移される。同期式ラッチ
15のセット信号を生成する論理回路16は、レジスタ
11及び12に接続されたAND回路で構成され、入力
ビットの論理積を同期式ラッチ15のセット信号として
出力する。すなわち、論理回路16は、両レジスタから
のビットが共に1である場合に1を出力し、同期式ラッ
チ15をセットしてその出力キャリー信号を1に遷移さ
せる。一方、同期式ラッチ15のリセット信号を生成す
る論理回路17は、その両入力端にNOT回路を備えた
AND回路で構成され、両レジスタ11及び12からの
ビットを反転したものの論理積を同期式ラッチ15のリ
セット信号として出力する。すなわち、論理回路17
は、両レジスタからのビットが共に1である場合に1を
出力し、同期式ラッチ15をリセットしてその出力キャ
リー信号を0に遷移させる。
The synchronous latch 15 is for generating a carry signal when the bit strings of the numbers X and Y are added.
When a carry occurs during the addition, the transition is made to 1 based on the set signal, and when both of the addition bits are 0, the transition is made to 0 based on the reset signal. A logic circuit 16 that generates a set signal for the synchronous latch 15 is configured by an AND circuit connected to the registers 11 and 12, and outputs a logical product of input bits as a set signal for the synchronous latch 15. That is, the logic circuit 16 outputs 1 when the bits from both registers are 1 and sets the synchronous latch 15 to transition the output carry signal to 1. On the other hand, the logic circuit 17 for generating the reset signal of the synchronous latch 15 is constituted by an AND circuit having NOT circuits at both input terminals thereof, and the logical product of the inverted bits of the registers 11 and 12 is synchronously calculated. This is output as a reset signal for the latch 15. That is, the logic circuit 17
Outputs 1 when the bits from both registers are 1, resets the synchronous latch 15 and changes its output carry signal to 0.

【0018】次に、前記加算回路10の動作を、図2に
示すタイミングチャートに沿って説明する。図2には、
レジスタ11及び12からの出力ビットX_LSB及びY_LS
B、論理回路16及び17の出力信号FIND_11及びFIND_0
0、同期式ラッチ15の出力キャリー信号CARRY及びXO
R回路14の出力信号OUTが示されている。以下、レジ
スタ11に格納された被加数X「10111001101100」と、
レジスタ12に格納された加数Y「01001111100000」を
加算する例に沿って、本発明に係る加算回路10の動作
を説明する。
Next, the operation of the adding circuit 10 will be described with reference to the timing chart shown in FIG. In FIG.
Output bits X_LSB and Y_LS from registers 11 and 12
B, output signals FIND_11 and FIND_0 of the logic circuits 16 and 17
0, output carry signal CARRY and XO of synchronous latch 15
The output signal OUT of the R circuit 14 is shown. Hereinafter, the augend X “10111001101100” stored in the register 11
The operation of the adder circuit 10 according to the present invention will be described along with an example of adding the addend Y “01001111100000” stored in the register 12.

【0019】図に示すように、キャリー信号CARRYは、
最初0にリセットされている。レジスタ11及び12か
らの各ビットは順次クロック信号に同期して、XOR回
路14、論理回路16及び17に入力される。最初の4
ビットに関し、X_LSB、Y_LSBの何れかは0であるので桁
上げは生じず、同期式ラッチ15のキャリー信号CARRY
は0のままとされ、XOR回路14では、X_LSB、Y_LSB
の排他的論理和が加算結果OUTとしてレジスタ13に出
力される。次のビットにおいて、X_LSB、Y_LSBは両方1
であるので、論理回路16がこれを検出し、FIND_11信
号が1に遷移される。これによって、同期式ラッチ15
は、次のクロック信号の立上がりで出力キャリー信号CA
RRYを1に遷移する。この状態は、同期式ラッチ15に
リセット信号が入力されるまで維持される。キャリー信
号は、XOR回路14に入力され、ここで次のX_LSB、Y
_LSBと排他的論理和演算され、その演算結果がレジスタ
13に出力される。
As shown in the figure, carry signal CARRY is
Initially reset to zero. Each bit from the registers 11 and 12 is sequentially input to the XOR circuit 14 and the logic circuits 16 and 17 in synchronization with the clock signal. First four
Regarding the bit, any of X_LSB and Y_LSB is 0, so no carry occurs, and the carry signal CARRY of the synchronous latch 15
Is left at 0, and the XOR circuit 14 outputs X_LSB, Y_LSB
Is output to the register 13 as the addition result OUT. In the next bit, X_LSB and Y_LSB are both 1
Therefore, the logic circuit 16 detects this, and the FIND_11 signal transitions to 1. As a result, the synchronous latch 15
Is the output carry signal CA at the next rising of the clock signal.
Transition RRY to 1. This state is maintained until the reset signal is input to the synchronous latch 15. The carry signal is input to the XOR circuit 14, where the next X_LSB, Y
An exclusive OR operation with _LSB is performed, and the operation result is output to the register 13.

【0020】入力信号の10ビット目において、X_LSB
及びY_LSBの双方に0が与えられると、論理回路17は
これを検出し、FIND_00信号が1に遷移される。これに
よって、同期式ラッチ15は、次のクロック信号の立ち
上がりでキャリー信号CARRYを0に遷移する。本入力信
号においては、それ以降のビットにおいて双方が1とな
ることがないので、この状態が最終ビットまで維持され
る。以上のようにして、被加数Xと加数Yの演算結果Z
がレジスタ13に蓄積される。
In the tenth bit of the input signal, X_LSB
When both 0 and Y_LSB are provided with 0, the logic circuit 17 detects this, and the FIND_00 signal transitions to 1. As a result, the synchronous latch 15 changes the carry signal CARRY to 0 at the next rising edge of the clock signal. In this input signal, since both bits do not become 1 in subsequent bits, this state is maintained until the last bit. As described above, the operation result Z of the addend X and the addend Y
Is stored in the register 13.

【0021】次に、本発明の一実施形態に係る減算回路
について説明する。図3は、本発明の一実施形態に係る
減算回路のブロック図である。図に示すように、減算回
路30は、減算する2つの数、すなわち被減数Xと減数
Yを保持する2つのレジスタ31、32、減算の結果Z
を保持するレジスタ33、入力信号の排他的論理和を行
うXOR回路34、ボロウ信号を生成するための同期式
ラッチ35、ラッチセット用の論理回路36及びラッチ
リセット用の論理回路37を備えて構成される。
Next, a subtraction circuit according to an embodiment of the present invention will be described. FIG. 3 is a block diagram of a subtraction circuit according to one embodiment of the present invention. As shown in the figure, the subtraction circuit 30 includes two registers 31 and 32 for holding two numbers to be subtracted, that is, a minuend X and a subtrahend Y, and a subtraction result Z.
33, an XOR circuit 34 for performing an exclusive OR of input signals, a synchronous latch 35 for generating a borrow signal, a logic circuit 36 for latch setting, and a logic circuit 37 for latch reset. Is done.

【0022】レジスタ31及び32は、シフトレジスタ
であり、クロック信号に同期して格納したビット列を1
ビットづつ右シフトして、その最下位ビット(LSB)
から順番に出力する。減算回路において、レジスタ31
に格納する被減数Xは、レジスタ32に格納する減数Y
よりも大きいもの、すなわちX>Yでなければならな
い。
Each of the registers 31 and 32 is a shift register, and stores a bit string stored in synchronization with a clock signal into one.
Shift right by bit, and the least significant bit (LSB)
Output in order. In the subtraction circuit, the register 31
Is the minuend X stored in the register 32.
Must be greater than X> Y.

【0023】XOR回路34は、レジスタ31からの被
減数Xのビット、レジスタ32からの減数Yのビット及
び同期式ラッチ35からのボロウ信号を入力し、それら
を排他的論理和した結果を出力する。レジスタ33に
は、XOR回路34から順次出力されるビットが蓄積さ
れ、すべてのビットについての演算が終了すると、レジ
スタ33には、XとYを減算した結果Zが格納されるこ
ととなる。
The XOR circuit 34 receives the bit of the minuend X from the register 31, the bit of the minuend Y from the register 32, and the borrow signal from the synchronous latch 35, and outputs the result of exclusive ORing them. The bits sequentially output from the XOR circuit 34 are accumulated in the register 33, and when the operation for all the bits is completed, the result 33 obtained by subtracting X and Y is stored in the register 33.

【0024】同期式ラッチ35は、数XとYのビット列
を減算した際のボロウ信号を生成するためのもので、減
算の際に桁下げが発生した場合に、セット信号に基いて
1に遷移され、またレジスタ31からのビットが1であ
り、レジスタ32からのビットが0である場合にリセッ
ト信号に基いて0に遷移される。同期式ラッチ35のセ
ット信号を生成する論理回路36は、レジスタ31及び
32に接続され、レジスタ31側の入力端にNOT回路
を備えたAND回路で構成され、入力ビットの論理積を
同期式ラッチ15のセット信号として出力する。すなわ
ち、論理回路36は、レジスタ31からのビットが0で
ありレジスタ32からのビットが1である場合に1を出
力し、同期式ラッチ35をセットしてその出力ボロウ信
号を1に遷移させる。一方、同期式ラッチ35のリセッ
ト信号を生成する論理回路37は、レジスタ32側の入
力端にNOT回路を備えたAND回路で構成され、入力
ビットの論理積を同期式ラッチ35のリセット信号とし
て出力する。すなわち、論理回路37は、レジスタ31
からのビットが1でありレジスタ32のビットが0であ
る場合に1を出力し、同期式ラッチ35をリセットして
その出力ボロウ信号を0に遷移させる。
The synchronous latch 35 is used to generate a borrow signal when the bit strings of the numbers X and Y are subtracted. When a carry occurs during the subtraction, the latch changes to 1 based on the set signal. In addition, when the bit from the register 31 is 1 and the bit from the register 32 is 0, a transition is made to 0 based on the reset signal. A logic circuit 36 for generating the set signal of the synchronous latch 35 is connected to the registers 31 and 32 and is constituted by an AND circuit having a NOT circuit at the input end of the register 31. It is output as 15 set signals. That is, the logic circuit 36 outputs 1 when the bit from the register 31 is 0 and the bit from the register 32 is 1, sets the synchronous latch 35, and changes the output borrow signal to 1. On the other hand, the logic circuit 37 for generating the reset signal of the synchronous latch 35 is constituted by an AND circuit having a NOT circuit at the input end of the register 32, and outputs the logical product of the input bits as the reset signal of the synchronous latch 35. I do. That is, the logic circuit 37 includes the register 31
When the bit from is 1 and the bit of the register 32 is 0, 1 is output, and the synchronous latch 35 is reset to change its output borrow signal to 0.

【0025】次に、前記減算回路30の動作を、図4に
示すタイミングチャートに沿って説明する。図4には、
レジスタ31及び32からの出力ビットX_LSB及びY_LS
B、論理回路36及び37の出力信号FIND_01及びFIND_1
0、同期式ラッチ35の出力ボロウ信号BORROW及びXO
R回路34の出力信号OUTが示されている。以下、レジ
スタ31に格納された被減数X「10111001101100」か
ら、レジスタ32に格納された減数Y「0100111110000
0」を減算する例に沿って、本発明に係る減算回路30
の動作を説明する。
Next, the operation of the subtraction circuit 30 will be described with reference to the timing chart shown in FIG. In FIG.
Output bits X_LSB and Y_LS from registers 31 and 32
B, output signals FIND_01 and FIND_1 of the logic circuits 36 and 37
0, output borrow signals BORROW and XO of synchronous latch 35
The output signal OUT of the R circuit 34 is shown. Hereinafter, the subtrahend X “10111001101100” stored in the register 31 is converted to the subtrahend Y “0100111110000” stored in the register 32.
According to the example of subtracting “0”, the subtraction circuit 30 according to the present invention is used.
Will be described.

【0026】図に示すように、ボロウ信号BORROWは、最
初0にリセットされている。レジスタ31及び32から
の各ビットは順次クロック信号に同期して、XOR回路
34、論理回路36及び37に入力される。最初の1ビ
ットに関し、Y_LSBは0であるので桁下げは生じず、同
期式ラッチ35のボロウ信号BORROWは0のままとされ、
XOR回路34では、X_LSB、Y_LSBの排他的論理和が減
算結果OUTとしてレジスタ33に出力される。次のビッ
トにおいて、X_LSBが0であり、Y_LSBが1であるので、
論理回路36がこれを検出し、FIND_01信号が1に遷移
される。これによって、同期式ラッチ35は、次のクロ
ック信号の立上がりで出力ボロウ信号BORROWを1に遷移
する。この状態は、同期式ラッチ35にリセット信号が
入力されるまで維持される。ボロウ信号は、XOR回路
34に入力され、ここで次のX_LSB、Y_LSBと排他的論理
和演算され、その結果がレジスタ33に出力される。
As shown in the figure, the borrow signal BORROW is initially reset to zero. Each bit from the registers 31 and 32 is sequentially input to the XOR circuit 34 and the logic circuits 36 and 37 in synchronization with the clock signal. Regarding the first bit, since Y_LSB is 0, no carry-down occurs, and the borrow signal BORROW of the synchronous latch 35 remains 0,
In the XOR circuit 34, the exclusive OR of X_LSB and Y_LSB is output to the register 33 as the subtraction result OUT. In the next bit, since X_LSB is 0 and Y_LSB is 1,
The logic circuit 36 detects this, and the FIND_01 signal transitions to 1. Thus, the synchronous latch 35 changes the output borrow signal BORROW to 1 at the next rising of the clock signal. This state is maintained until the reset signal is input to the synchronous latch 35. The borrow signal is input to the XOR circuit 34, where it is subjected to an exclusive OR operation with the next X_LSB and Y_LSB, and the result is output to the register 33.

【0027】入力信号の3ビット目において、X_LSBに
1が与えられY_LSBに0が与えられると、論理回路37
はこれを検出し、FIND_10信号が1に遷移される。これ
によって、同期式ラッチ35は、次のクロック信号の立
ち上がりでボロウ信号BORROWを0に遷移する。同様に、
入力信号の6ビット目で、X_LSBに0が与えられY_LSBに
1が与えられると、同期式ラッチ35はボロウ信号BORR
OWを1に遷移し、これは、入力信号の11ビット目でX_
LSBに1が与えられY_LSBに0が与えられるまで維持さ
れ、その次のクロック信号の立ち上がりで0に遷移され
る。以上のようにして、被減数Xと減数Yの演算結果Z
がレジスタ33に蓄積される。
In the third bit of the input signal, when 1 is given to X_LSB and 0 is given to Y_LSB, the logic circuit 37
Detects this, and the FIND_10 signal transits to 1. Accordingly, the synchronous latch 35 changes the borrow signal BORROW to 0 at the next rising edge of the clock signal. Similarly,
When 0 is given to X_LSB and 1 is given to Y_LSB at the sixth bit of the input signal, the synchronous latch 35 outputs the borrow signal BORR.
OW transitions to 1, which means that X_
It is maintained until 1 is given to LSB and 0 is given to Y_LSB, and transitions to 0 at the next rise of the clock signal. As described above, the calculation result Z of the minuend X and the subtrahend Y
Is stored in the register 33.

【0028】次に、本発明の一実施形態に係る加減算回
路について説明する。図5は、本発明の一実施形態に係
る加減算回路のブロック図である。図に示すように、加
減算回路50は、加減算する2つの数XとYを保持する
2つのレジスタ51、52、加減算の結果Zを保持する
レジスタ53、入力信号の排他的論理和を行うXOR回
路54、キャリー又はボロウ信号を生成するための同期
式ラッチ55、ラッチセット用の論理回路56、ラッチ
リセット用の論理回路57、セレクタ58及びNOT回
路59を備えて構成される。すなわち、本加減算回路5
0は、先に示した減算回路30に、セレクタ58及びN
OT回路59を追加して構成されるものである。
Next, an adding / subtracting circuit according to an embodiment of the present invention will be described. FIG. 5 is a block diagram of an addition / subtraction circuit according to one embodiment of the present invention. As shown in the figure, an addition / subtraction circuit 50 includes two registers 51 and 52 for holding two numbers X and Y to be added / subtracted, a register 53 for holding a result Z of addition / subtraction, and an XOR circuit for performing exclusive OR of an input signal. 54, a synchronous latch 55 for generating a carry or borrow signal, a logic circuit 56 for latch set, a logic circuit 57 for latch reset, a selector 58 and a NOT circuit 59. That is, the addition / subtraction circuit 5
0 indicates that the selector 58 and N
This is configured by adding an OT circuit 59.

【0029】セレクタ58は、レジスタ51と論理回路
56の間に備えられ、レジスタ51の入力ビット又はそ
の反転ビットを論理回路58へ与えるものである。セレ
クタ58は、AS_SEL信号によって制御され、演算の実行
前に切り替えられる。すなわち、加算を実行する場合、
AS_SEL信号は0とされ、NOT回路59からの信号(レ
ジスタ51の反転ビット)を論理回路58へ与え、減算
を実行する場合、AS_SEL信号は1とされ、レジスタ51
からの信号を論理回路58へ与える。なお、他の構成部
分については、先の減算回路30の構成部分と同じであ
り、その説明を省略する。ここで、同期式ラッチ55の
出力信号DIGIT_UDは、本加減算回路において、加算を行
う場合はキャリー信号として機能し、減算を行う場合は
ボロウ信号として機能する。
The selector 58 is provided between the register 51 and the logic circuit 56, and supplies the input bit of the register 51 or its inverted bit to the logic circuit 58. The selector 58 is controlled by the AS_SEL signal and is switched before execution of the operation. That is, when performing addition,
The AS_SEL signal is set to 0, the signal from the NOT circuit 59 (the inverted bit of the register 51) is supplied to the logic circuit 58, and when the subtraction is executed, the AS_SEL signal is set to 1 and the register 51 is set.
Is applied to the logic circuit 58. The other components are the same as the components of the subtraction circuit 30 described above, and a description thereof will be omitted. Here, the output signal DIGIT_UD of the synchronous latch 55 functions as a carry signal when performing addition in the present addition / subtraction circuit, and functions as a borrow signal when performing subtraction.

【0030】次に、前記加減算回路50の動作を、図6
及び図7に示すタイミングチャートに沿って説明する。
図6及び図7は、それぞれ加算時(AS_SEL=0)及び減算
時(AS_SEL=1)の場合のタイミングチャートであり、こ
れらには、レジスタ51及び52からの出力ビットX_LS
B及びY_LSB、セレクタ58の出力ビットX_IN、論理回路
56及び57の出力信号ON及びOFF、同期式ラッチ55
の出力信号DIGIT_UD及びXOR回路54の出力信号OUT
が示されている。最初に、レジスタ51に格納された被
加数X「10111001101100」と、レジスタ52に格納され
た加数Y「01001111100000」を加算する例に沿って、本
発明に係る加減算回路50の動作を説明する。
Next, the operation of the addition / subtraction circuit 50 will be described with reference to FIG.
And a timing chart shown in FIG.
FIGS. 6 and 7 are timing charts for the case of addition (AS_SEL = 0) and the case of subtraction (AS_SEL = 1), respectively, in which the output bits X_LS from the registers 51 and 52 are shown.
B and Y_LSB, output bit X_IN of selector 58, output signals ON and OFF of logic circuits 56 and 57, synchronous latch 55
Output signal DIGIT_UD and the output signal OUT of the XOR circuit 54
It is shown. First, the operation of the addition / subtraction circuit 50 according to the present invention will be described along with an example of adding the augend X “10111001101100” stored in the register 51 and the addend Y “01001111100000” stored in the register 52. .

【0031】図6に示すように、同期式ラッチ55の出
力信号DIGIT_UDは、最初0にリセットされ、またセレク
タ58のAS_SEL信号は0にセットされている。レジスタ
51及び52からの各ビットは順次クロック信号に同期
して、XOR回路54、論理回路57に入力される。論
理回路56への入力信号X_INは、セレクタ58によっ
て、レジスタ51の反転ビットとされる。最初の4ビッ
トに関し、X_LSB、Y_LSBの何れかは0であるので桁上げ
は生じず、同期式ラッチ55の出力信号DIGIT_UDは0の
ままとされ、XOR回路54では、X_LSB、Y_LSBの排他
的論理和が加算結果OUTとしてレジスタ53に出力され
る。次のビットにおいて、X_INは0であり、Y_LSBは1
であるので、論理回路56がこれを検出し、ON信号が1
に遷移される。これによって、同期式ラッチ55は、次
のクロック信号の立上がりで出力信号DIGIT_UDを1に遷
移する。この状態は、同期式ラッチ55にリセット信号
が入力されるまで維持される。信号DIGIT_UDは、XOR
回路54に入力され、ここで次のX_LSB、Y_LSBと排他的
論理和演算され、その演算結果がレジスタ53に出力さ
れる。
As shown in FIG. 6, the output signal DIGIT_UD of the synchronous latch 55 is first reset to 0, and the AS_SEL signal of the selector 58 is set to 0. Each bit from the registers 51 and 52 is sequentially input to the XOR circuit 54 and the logic circuit 57 in synchronization with the clock signal. The input signal X_IN to the logic circuit 56 is turned into an inverted bit of the register 51 by the selector 58. Regarding the first four bits, any one of X_LSB and Y_LSB is 0, so no carry occurs, the output signal DIGIT_UD of the synchronous latch 55 remains 0, and the XOR circuit 54 outputs the exclusive logic of X_LSB and Y_LSB. The sum is output to the register 53 as the addition result OUT. In the next bit, X_IN is 0 and Y_LSB is 1
Therefore, the logic circuit 56 detects this, and the ON signal becomes 1
Is transited to. As a result, the synchronous latch 55 changes the output signal DIGIT_UD to 1 at the next rise of the clock signal. This state is maintained until the reset signal is input to the synchronous latch 55. The signal DIGIT_UD is XOR
The signal is input to the circuit 54, where it is subjected to an exclusive OR operation with the next X_LSB and Y_LSB, and the operation result is output to the register 53.

【0032】入力信号の10ビット目において、X_LSB
及びY_LSBの双方に0(X_INは1となる)が与えられる
と、論理回路57はこれを検出し、OFF信号が1に遷移
される。これによって、同期式ラッチ55は、次のクロ
ック信号の立ち上がりで出力信号DIGIT_UDを0に遷移す
る。本入力信号においては、それ以降のビットにおいて
双方が1となることがないので、この状態が最終ビット
まで維持される。以上のようにして、被加数Xと加数Y
の演算結果Zがレジスタ53に蓄積される。
In the tenth bit of the input signal, X_LSB
When 0 (X_IN becomes 1) is given to both of the signals and Y_LSB, the logic circuit 57 detects this and the OFF signal is transited to 1. As a result, the synchronous latch 55 changes the output signal DIGIT_UD to 0 at the next rise of the clock signal. In this input signal, since both bits do not become 1 in subsequent bits, this state is maintained until the last bit. As described above, the addend X and the addend Y
Is accumulated in the register 53.

【0033】次に、レジスタ51に格納された被減数X
「10111001101100」から、レジスタ52に格納された減
数Y「01001111100000」を減算する例に沿って、本発明
に係る加減算回路50の動作を説明する。
Next, the minuend X stored in the register 51
The operation of the addition / subtraction circuit 50 according to the present invention will be described along an example of subtracting the subtraction Y “01001111100000” stored in the register 52 from “10111001101100”.

【0034】図7に示すように、同期式ラッチ55の出
力信号DIGIT_UDは、最初0にリセットされ、またセレク
タ58のAS_SEL信号は1にセットされている。レジスタ
51及び52からの各ビットは順次クロック信号に同期
して、XOR回路54、論理回路56及び57に入力さ
れる。論理回路56への入力信号X_INは、セレクタ58
によって、レジスタ51の信号そのままとされる。最初
の1ビットに関し、Y_LSBは0であるので桁下げは生じ
ず、同期式ラッチ55の出力信号DIGIT_UDは0のままと
され、XOR回路54では、X_LSB、Y_LSBの排他的論理
和が減算結果OUTとしてレジスタ53に出力される。次
のビットにおいて、X_INが0であり、Y_LSBが1である
ので、論理回路56がこれを検出し、ON信号が1に遷移
される。これによって、同期式ラッチ55は、次のクロ
ック信号の立上がりで出力信号DIGIT_UDを1に遷移す
る。この状態は、同期式ラッチ55にリセット信号が入
力されるまで維持される。信号DIGIT_UDは、XOR回路
54に入力され、ここで次のX_LSB、Y_LSBと排他的論理
和演算され、その結果がレジスタ53に出力される。
As shown in FIG. 7, the output signal DIGIT_UD of the synchronous latch 55 is first reset to 0, and the AS_SEL signal of the selector 58 is set to 1. Each bit from the registers 51 and 52 is sequentially input to the XOR circuit 54 and the logic circuits 56 and 57 in synchronization with the clock signal. The input signal X_IN to the logic circuit 56 is supplied to the selector 58
As a result, the signal of the register 51 remains unchanged. Regarding the first bit, since Y_LSB is 0, no carry-down occurs, the output signal DIGIT_UD of the synchronous latch 55 remains 0, and the XOR circuit 54 calculates the exclusive OR of X_LSB and Y_LSB as the subtraction result OUT. Is output to the register 53. In the next bit, since X_IN is 0 and Y_LSB is 1, the logic circuit 56 detects this, and the ON signal transits to 1. As a result, the synchronous latch 55 changes the output signal DIGIT_UD to 1 at the next rise of the clock signal. This state is maintained until the reset signal is input to the synchronous latch 55. The signal DIGIT_UD is input to the XOR circuit 54, where it is subjected to an exclusive OR operation with the next X_LSB, Y_LSB, and the result is output to the register 53.

【0035】入力信号の3ビット目において、X_LSB(=
X_IN)に1が与えられY_LSBに0が与えられると、論理
回路57はこれを検出し、OFF信号が1に遷移される。
これによって、同期式ラッチ55は、次のクロック信号
の立ち上がりで出力信号DIGIT_UDを0に遷移する。同様
に、入力信号の6ビット目で、X_LSBに0が与えられY_L
SBに1が与えられると、同期式ラッチ55は出力信号DI
GIT_UDを1に遷移し、これは、入力信号の11ビット目
でX_LSBに1が与えられY_LSBに0が与えられるまで維持
され、その次のクロック信号の立ち上がりで0に遷移さ
れる。以上のようにして、被減数Xと減数Yの演算結果
Zがレジスタ53に蓄積される。
In the third bit of the input signal, X_LSB (=
When 1 is given to (X_IN) and 0 is given to Y_LSB, the logic circuit 57 detects this, and the OFF signal is changed to 1.
As a result, the synchronous latch 55 changes the output signal DIGIT_UD to 0 at the next rise of the clock signal. Similarly, at the sixth bit of the input signal, 0 is given to X_LSB and Y_L
When 1 is given to SB, the synchronous latch 55 outputs the output signal DI.
GIT_UD transitions to 1, which is maintained until X_LSB is set to 1 and Y_LSB is set to 0 at the 11th bit of the input signal, and is changed to 0 at the next rising edge of the clock signal. As described above, the operation result Z of the minuend X and the subtrahend Y is accumulated in the register 53.

【0036】以上、本発明の一実施形態を図面に沿って
説明した。しかしながら本発明は前記実施形態に示した
事項に限定されず、特許請求の範囲の記載に基いてその
変更、改良等が可能であることは明らかである。
The embodiment of the present invention has been described with reference to the drawings. However, it is apparent that the present invention is not limited to the matters described in the above embodiments, and that changes, improvements, and the like can be made based on the description in the claims.

【0037】[0037]

【発明の効果】以上の如く本発明によれば、加減算回路
において、信号の入出力間におけるゲート数を少なくす
ることにより、システムクロック速度の低下を来たすこ
とがない。
As described above, according to the present invention, in the addition / subtraction circuit, the number of gates between the input and output of signals is reduced, so that the system clock speed does not decrease.

【0038】また、本発明により、加減算回路の回路規
模を、入力信号のビット数に拘わらず極めて小さいもの
とすることができる。
Further, according to the present invention, the circuit scale of the addition / subtraction circuit can be made extremely small regardless of the number of bits of the input signal.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施形態に係る加算回路のブロック
図である。
FIG. 1 is a block diagram of an adding circuit according to an embodiment of the present invention.

【図2】図1の加算回路のタイミングチャートである。FIG. 2 is a timing chart of the adding circuit of FIG. 1;

【図3】本発明の一実施形態に係る減算回路のブロック
図である。
FIG. 3 is a block diagram of a subtraction circuit according to one embodiment of the present invention.

【図4】図3の減算回路のタイミングチャートである。FIG. 4 is a timing chart of the subtraction circuit of FIG. 3;

【図5】本発明の一実施形態に係る加減算回路のブロッ
ク図である。
FIG. 5 is a block diagram of an addition / subtraction circuit according to an embodiment of the present invention.

【図6】図5の加減算回路における加算演算の場合のタ
イミングチャートである。
6 is a timing chart in the case of an addition operation in the addition / subtraction circuit of FIG. 5;

【図7】図5の加減算回路における減算演算の場合のタ
イミングチャートである。
FIG. 7 is a timing chart in the case of a subtraction operation in the addition / subtraction circuit of FIG. 5;

【図8】従来の加減算回路のブロック図である。FIG. 8 is a block diagram of a conventional addition / subtraction circuit.

【図9】図8の加減算回路を構成する(A)半加算器及
び(B)全加算器のブロック図である。
9 is a block diagram of (A) a half adder and (B) a full adder which constitute the addition / subtraction circuit of FIG. 8;

【符号の説明】[Explanation of symbols]

10 加算回路 11〜13 レジスタ 14 XOR回路 15 同期式ラッチ 16、17 論理回路 30 減算回路 31〜33 レジスタ 34 XOR回路 35 同期式ラッチ 36、37 論理回路 50 加減算回路 51〜53 レジスタ 54 XOR回路 55 同期式ラッチ 56、57 論理回路 58 セレクタ 59 NOT回路 Reference Signs List 10 adder circuit 11-13 register 14 XOR circuit 15 synchronous latch 16, 17 logic circuit 30 subtraction circuit 31-33 register 34 XOR circuit 35 synchronous latch 36, 37 logic circuit 50 addition / subtraction circuit 51-53 register 54 XOR circuit 55 synchronous Expression latch 56, 57 Logic circuit 58 Selector 59 NOT circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 被加数Xのビット列を保持する第1の保
持回路と、 加数Yのビット列を保持する第2の保持回路と、 前記第1及び第2の保持回路に保持された各ビット列
を、所定の同期信号に同期して順次その最下位ビットか
ら入力し、該入力されたビットの双方が1であるときに
第1の状態に遷移され、該入力された信号の双方が0で
あるときに第2の状態に遷移されるキャリー信号を生成
するキャリー信号生成回路と、 前記キャリー信号と、前記第1及び第2の保持回路にお
ける該キャリー信号の基となったビットの次の段の各ビ
ットを入力し、これらの排他的論理和を出力する排他的
論理和回路と、 該排他的論理和回路から出力されるビット列を保持する
第3の保持回路と、を備えたことを特徴とする加算回
路。
1. A first holding circuit for holding a bit string of an augend X, a second holding circuit for holding a bit string of an augend Y, and each of the first and second holding circuits held in the first and second holding circuits. A bit string is sequentially input from the least significant bit in synchronization with a predetermined synchronization signal, and when both of the input bits are 1, a transition is made to the first state, and both of the input signals are 0. And a carry signal generation circuit that generates a carry signal that transits to the second state when the carry signal is generated, and the carry signal and a bit next to the bit on which the carry signal is based in the first and second holding circuits. An exclusive OR circuit that inputs each bit of the stage and outputs an exclusive OR thereof, and a third holding circuit that holds a bit string output from the exclusive OR circuit. Addition circuit characterized.
【請求項2】 被減数Xのビット列を保持する第1の保
持回路と、 減数Y(但し、X>Y)のビット列を保持する第2の保
持回路と、 前記第1及び第2の保持回路に保持された各ビット列
を、所定の同期信号に同期して順次その最下位ビットか
ら入力し、該入力されたビットのうち前記第1の保持回
路からのビットが0で、前記第2の保持回路からのビッ
トが1であるときに第1の状態に遷移され、該入力され
た信号のうち前記第1の保持回路からのビットが1で、
前記第2の保持回路からのビットが0であるときに第2
の状態に遷移されるボロウ信号を生成するボロウ信号生
成回路と、 前記ボロウ信号と、前記第1及び第2の保持回路におけ
る該ボロウ信号の基となったビットの次の段の各ビット
を入力し、これらの排他的論理和を出力する排他的論理
和回路と、 該排他的論理和回路から出力されるビット列を保持する
第3の保持回路と、を備えたことを特徴とする減算回
路。
2. A first holding circuit for holding a bit string of a minuend X, a second holding circuit for holding a bit string of a decrement Y (where X> Y), and The held bit strings are sequentially input from the least significant bit in synchronization with a predetermined synchronization signal, and when the bit from the first holding circuit is 0 among the input bits, the second holding circuit Is transitioned to the first state when the bit from is 1, and the bit from the first holding circuit in the input signal is 1,
When the bit from the second holding circuit is 0, the second
A borrow signal generation circuit that generates a borrow signal that is transitioned to the state described above, and inputs the borrow signal and each bit of a stage next to the bit on which the borrow signal is based in the first and second holding circuits. A subtraction circuit, comprising: an exclusive-OR circuit that outputs the exclusive-OR, and a third holding circuit that holds a bit string output from the exclusive-OR circuit.
【請求項3】 数Xのビット列を保持する第1の保持回
路と、 数Y(但し、X>Y)のビット列を保持する第2の保持
回路と、 前記第1の保持回路からのビット列を反転する否定回路
と、 加算の命令信号に基いて前記否定回路からのビット列を
出力し、減算の命令信号に基いて前記第1の保持回路か
らのビット列を出力するセレクタと、 前記セレクタ及び前記第2の保持回路からの各ビット列
を、所定の同期信号に同期して順次その最下位ビットか
ら入力し、前記数XとYの加算を行うときには、該入力
されたビットの双方が1であるときに第1の状態に遷移
され、該入力された信号の双方が0であるときに第2の
状態に遷移されると共に、前記数Xに対するYの減算を
行うときには、該入力されたビットのうち前記セレクタ
からのビットが0で、前記第2の保持回路からのビット
が1であるときに第1の状態に遷移され、該入力された
信号のうち前記セレクタからのビットが1で、前記第2
の保持回路からのビットが0であるときに第2の状態に
遷移される信号を生成する信号生成回路と、 前記信号と、前記第1及び第2の保持回路における該信
号の基となったビットの次の段の各ビットを入力し、こ
れらの排他的論理和を出力する排他的論理和回路と、 該排他的論理和回路から出力されるビット列を保持する
第3の保持回路と、を備えたことを特徴とする加減算回
路。
3. A first holding circuit for holding a bit string of a number X, a second holding circuit for holding a bit string of a number Y (where X> Y), and a bit string from the first holding circuit. An inverting circuit for inverting, a selector for outputting a bit string from the negating circuit based on an instruction signal for addition, and outputting a bit string from the first holding circuit based on an instruction signal for subtraction; 2 are sequentially input from the least significant bit in synchronization with a predetermined synchronization signal, and when adding the numbers X and Y, when both of the input bits are 1 To the first state, and to the second state when both of the input signals are 0, and to perform the subtraction of Y from the number X, Bits from the selector 0, the second bit from the holding circuit is a transition to the first state when it is 1, bits from the selector of the input signal is 1, the second
A signal generation circuit that generates a signal that is transitioned to a second state when a bit from the holding circuit is 0, and the signal and the signal in the first and second holding circuits are formed. An exclusive-OR circuit that inputs each bit of the next stage of the bit and outputs an exclusive-OR thereof, and a third holding circuit that holds a bit string output from the exclusive-OR circuit. An addition / subtraction circuit, comprising:
JP11204170A 1999-07-19 1999-07-19 Adding and subtracting circuit Pending JP2001034457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11204170A JP2001034457A (en) 1999-07-19 1999-07-19 Adding and subtracting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11204170A JP2001034457A (en) 1999-07-19 1999-07-19 Adding and subtracting circuit

Publications (1)

Publication Number Publication Date
JP2001034457A true JP2001034457A (en) 2001-02-09

Family

ID=16486004

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11204170A Pending JP2001034457A (en) 1999-07-19 1999-07-19 Adding and subtracting circuit

Country Status (1)

Country Link
JP (1) JP2001034457A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008146807A (en) * 2006-12-07 2008-06-26 Hynix Semiconductor Inc Apparatus and method for generating dbi signal in semiconductor integrated circuit
JP2015019714A (en) * 2013-07-17 2015-02-02 株式会社平和 Game machine
JP2016224596A (en) * 2015-05-28 2016-12-28 富士通株式会社 Adder-subtractor and adder-subtractor control method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008146807A (en) * 2006-12-07 2008-06-26 Hynix Semiconductor Inc Apparatus and method for generating dbi signal in semiconductor integrated circuit
JP2015019714A (en) * 2013-07-17 2015-02-02 株式会社平和 Game machine
JP2016224596A (en) * 2015-05-28 2016-12-28 富士通株式会社 Adder-subtractor and adder-subtractor control method

Similar Documents

Publication Publication Date Title
US9166795B2 (en) Device and method for forming a signature
JP2585649B2 (en) Division circuit
JP3276852B2 (en) Code conversion circuit
JP2001034457A (en) Adding and subtracting circuit
JPH09222991A (en) Adding method and adder
JPH0346024A (en) Floating point computing element
JP2766133B2 (en) Parallel-serial data conversion circuit
JP2991788B2 (en) Decoder
US5615141A (en) Multiplying apparatus
JP3074958B2 (en) Serial multiplier with addition function
JP3166781B2 (en) Adder circuit
JP3097081B2 (en) Variable stage m-sequence code generator
JP3270659B2 (en) Arithmetic circuit and arithmetic method
KR100203742B1 (en) Adder using multiplex
US20110066827A1 (en) Multiprocessor
JP3017203B1 (en) Binary-decimal conversion circuit and method
JPH04170637A (en) Divider circuit
JPH04107729A (en) Arithmetic circuit device
JPH02239325A (en) Division circuit
JPH04345211A (en) Code converter
JPH0437211A (en) Digital arithmetic circuit
JPH03255524A (en) Adding circuit
JPH0612230A (en) Multiplication circuit over integer
JP2004234110A (en) Parity prediction circuit for full adder
JPS6250928A (en) Series multiplication of fixed coefficient and digital circuit thereof