JP2685466B2 - Address calculator - Google Patents

Address calculator

Info

Publication number
JP2685466B2
JP2685466B2 JP62321304A JP32130487A JP2685466B2 JP 2685466 B2 JP2685466 B2 JP 2685466B2 JP 62321304 A JP62321304 A JP 62321304A JP 32130487 A JP32130487 A JP 32130487A JP 2685466 B2 JP2685466 B2 JP 2685466B2
Authority
JP
Japan
Prior art keywords
bit
adder
constant
carrier
input
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 - Fee Related
Application number
JP62321304A
Other languages
Japanese (ja)
Other versions
JPH01163827A (en
Inventor
孝樹 野口
卓 塚元
英夫 中村
吉宗 萩原
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62321304A priority Critical patent/JP2685466B2/en
Publication of JPH01163827A publication Critical patent/JPH01163827A/en
Application granted granted Critical
Publication of JP2685466B2 publication Critical patent/JP2685466B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、加減算器、例えばマイクロコンピユータ等
のロジツクLSIに係り、特に定数の加減算に好適な論理
回路構成に関する。 〔従来の技術〕 従来の加減算器は、第2図に示すようにフルアダー3
の入力の一方が正負両論理がとれる構成となつていた。 第2図において変数xと定数Kの加算は、それぞれを
正論理でフルアダー3に入力し、それにキヤリーC0103
=0を加算して出力yとする。一方減算では、定数Kは
負論理で、変数xは正論理でフルアダー3に入力し、そ
れにキヤリーC0103=1を加算して出力yとする。 例えば10進表現で5(以下5(10)と表記する)、8
ビツト符号付2進表現で00000101(以下00000101(2)
と表記する)となるxと、3(10)=00000011(2)と
なるKの演算を考える。x+Kの演算は5(10)+3
(10)=8となるが、これは2進演算においても、0000
0101(2)+00000011(2)=00001000(2)=8(1
0)となり、単純に2進数の加算をフルアダーの加算回
路を用いて行なえばよい。 フルアダーの加算回路の構成例を第3図に示す。1ビ
ツト単位の演算はフルアダー回路100とキヤリー回路106
とから構成される。第3図で示した加算回路は2ビツト
加算回路で、入力x(下位ビツトx0:101,上位ビツトx1:
108)とK(下位ビツトK0:102,上位ビツトK1:109)を加
算して出力y(下位ビツトy0:107,上位ビツトy1:111)
を出力する。 フルアダー回路では、まず2つの入力x,Kの加算を行
ない、その加算結果113,114とキヤリー103,110との加算
をし、出力yを出力する。キヤリー回路106は、上位ビ
ツトへのキヤリーの出力を行なう。上位ビツトへのキヤ
リー出力は、演算を行なうビツト位置の入力、例えば
a0:101とb0:102が2入力共に1の場合と、a0とb0の加算
結果が1で、かつ下位ビツトからのキヤリー入力c0:103
が1である場合とで行なわれる。前者をキヤリー発生
(Carry Generate)、後者をキヤリー伝播(Carry Pr
opagate)と言つている。キヤリー発生の結果104とキヤ
リー伝播の結果105は論理和をとられて、上位ビツトへ
キヤリー信号c1:110として出力される。 x−Kの演算は、Kの各ビツトの0,1を反転させた
を用いて、x++1を演算すればよい。例えばx=5
(10)=00000101(2),K=3(10)=00000011(2)
の場合を考える。=11111100(2)であるから、x+
K=00000001(2)となり、その結果に1を加えると00
000010(2)=2(10)となる。+1の演算は第3図に
示した加算回路のc0:103に“1"を入力すれば、x++
1は同時に演算することができる。 加算回路の構成に関しては例えば(株)産報出版の電
子科学シリーズ「やさしい電子計算」等に、また加算回
路を用いた減算の手法に関しては例えば、CQ出版社の
「16ビツトマイクロコンピユータとプログラミングの基
礎」等において論じられている。 第3図で示した加算回路内のキヤリー信号生成論理10
6は、1ビツト単位毎にキヤリー論理をとり、上位側ビ
ツトに伝播させていく、リプル桁上げ方式の回路であ
る。そのため、演算ビツト長が長くなると、キヤリー論
理が直列構成されているため遅延時間が長くなつてしま
う。これを高速化する手段として桁上げ先見(Carry L
ook Ahead:CLA)技術がある。これは、各ビツト単位で
のキヤリー発生の結果104とキヤリー伝播条件113(キヤ
リー信号を含まない2入力の加算結果)とを用いて、各
ビツトのキヤリー入力信号C1(110),C2(112)等を直
接生成してしまうものである。最下位ビツトのキヤリー
発生の結果104をG0,以下、上位ビツト側の対応信号を
それぞれ、G1,G2,G3とする。一方、キヤリー伝播条件
113の値も、最下位ビツトからP0,P1,P2,P3とする。
各ビツトのキヤリー入力信号は、第3図に示すようにC0
(103),C1(110),C2(112),C3とする。この時、C
1〜C3信号の生成論理は下式のようになる。 C1=G0+C0・P0 C2=G1+C1・P1 =G1+G0・P1+C0・P0 ・P1 C3=G2+C2・P2 =G2+G1・P2+G0・P2 ・P1+C0・P0・P1・P2 上式でも明らかなように、キヤリー入力信号はキヤリ
ー発生の結果、キヤリー伝播条件およびC0のみで決まつ
ているため、各ビツト単位での直列構成となつていな
い。そのため、キヤリー論理は演算ビツト長に関係なく
高速化される。実施例を第4図に示すが、この構成に関
しては、近代科学社出版の「コンピユータの高速演算方
式」等に詳しく論じられている。 一般の加減演算を行なうためには、前述のフルアダー
構成の加算回路が必要であるが、ある数とその数よりも
有効ビツト長がはるかに短い定数との加算は、ハーフア
ダーの加算回路で実現できる。たとえば、カウンタはあ
る数と定数1との加算であるが、この構成を第5図に示
す。定数1の最下位ビツトを除く上位側ビツトが全て0
であるから、これらのビツト位置では、ある入力数とキ
ヤリーとの加算のみを行なえばよい。このように、2数
のみ(フルアダーは3数の加算)の加算を行なう構成を
ハーフアダー構成といつている。この構成はフルアダー
の構成に比較して回路規模は小さいが、扱える演算は加
算のみである。 1ビツト単位の演算はハーフアダー回路120とキヤリ
ー回路121とから構成される。入力x(下位ビツトx0:12
2,上位ビツトx1:123)と定数Kとを加算して、出力y
(下位ビツトy0:124,上位ビツトy1:125)を出力する。
定数Kの上位ビツトは0なので加算する際には入力する
必要がない。そのため最下位ビツトのK0:126のみを、第
3図のキヤリー入力103に対応させて入力する。キヤリ
ー回路121は、Kの上位ビツトが0であるためキヤリー
発生論理は不用で、キヤリー伝播結果127のみを上位側
ビツトにキヤリー信号として送つていく。 〔発明が解決しようとする問題点〕 上記従来技術は、2つの入力信号のうちで片方の有効
ビツト長がはるかに短い加減演算を行なう場合に、それ
をハーフアダーの加算回路で行なう方式については考慮
されておらず、これをフルアダーの加算回路で行なう
と、高速化のためのキヤリー論理等も複雑になり、回路
規模が大きくなるという問題があつた。 本発明の目的は定数の加減算を回路規模の小さいハー
フアダーの加算回路で実現可能な方式を提供することに
ある。 〔問題点を解決するための手段〕 上記目的は、加算部をハーフアダーにし、このハーフ
アダーの入出力が正負両論理をとれるようにすることに
より、達成される。 〔作用〕 2進数表現されたある値xの各ビツトを反転させる
と、その値は−x−1となる。x−Kを演算する場合
に、まずxの値をビツト反転させると、−x−1とな
る。この値にKを加える。Kの値が2ビツト程度のもの
であれば、この加算部はハーフアダーで構成できる。加
算後の結果は−x−1+Kとなる。この結果をビツト反
転させると、−(−x−1+K)−1=x−Kとなり、
変数x−定数Kの演算ができる。 x+Kは、ビツト反転をさせない、そのままのxにK
を加え、ビツト反転をさせずに出力すれば変数x+定数
Kの演算ができる。このようにすれば、従来のハーフア
ダーの加算回路による定数加算のみで減算まで実行可能
となる。 〔実施例〕 以下、本発明の一実施例を第1図により説明する。信
号反転回路1は、入力データのビツト正転あるいは反転
データを出力する選択回路である。ハーフアダー2は、
数ビツトの定数Kと変数xあるいはビツト反転された変
数xの加算器で、定数Kのビツト幅分はフルアダー、そ
れより上位側のビツト位置はハーフアダーで構成され
る。変数xから定数Kを減算する場合には、変数xをイ
ンバータINV1によりビツト反転させ、ハーフアダー2で
定数Kと加算し、その結果をさらにインバータINV2によ
りビツト反転させて出力(y)する。変数xと定数Kの
加算は、変数xをそのままビツト反転させずに定数Kと
加算し、加算結果をそのまま出力(y)すればよい。 第6図に8ビツトの変数x(LSB=x0,MSB=x7)と定
数0(K0=K1=0)、1(K0=1,K1=0),2(K0=0,K1
=1)との加減算回路を示す。第1図に示した信号反転
回路1は、第6図に示すように制御信号8で制御される
選択回路4で実現される。定数との減算を行なう場合に
は、制御信号8をLレベルにし、変数x(x0〜x7)およ
びハーフアダー2の出力150のビツト反転データを選
択,出力する。加算の場合には制御信号8をHレベルに
して、ビツト正転データを選択,出力する。第1図に示
したハーフアダー2は、第6図では、2ビツト単位のハ
ーフアダー5,6と、桁上げ先見(CLA)7とで構成する。
下位側の2ビツト単位のハーフアダー5は、2ビツトの
定数K0,K1と2ビツトのLSB側データ(変数xあるいはビ
ツト反転した変数x/x0,x1あるいは▲▼,▲
▼)を加算する。最下位ビツトの加算は、x0あるいは▲
▼とK0の加算として演算する。最下位ビツトよりも
1ビツト上位のビツトの加算は、最下位ビツト加算で発
生したキヤリーと定数K1のOR信号151と、x1あるいは▲
▼の加算として演算する。定数K0=K1=1、すなわ
ち定数3の演算はサポートしないため、キヤリーと定数
K1とが共に1になることはない。 下位2ビツトの加算で発生したキヤリー152は、桁上
げ先見(CLA)7と、最下位ビツトから2および3ビツ
ト上位のビツト加算を行なうハーフアダー6に入力され
る。ハーフアダー6は入力される2ビツトのデータxi
よびxi+1と、キヤリーの加算結果153を出力すると同時
に、データxiおよびxi+1が共に1の場合、即ちキヤリー
伝播条件信号154を出力する。下位2ビツトの加算で発
生したキヤリー152と、このキヤリー伝播信号154を桁上
げ先見(CLA)7で、キヤリー先見論理をとることによ
り、上位ビツト側の2ビツト単位のハーフアダー6のキ
ヤリー入力155,156を決める。定数Kの上位6ビツトは
0であるから、キヤリー伝播は、下位2ビツトの加算で
発生するキヤリーの上位ビツト側への伝播のみを考える
だけでよい。 本発明の定数0,1,2の加減算器は、マイクロプロセツ
サ等のアドレス計算用演算器として利用する。データバ
スが16ビツトのマイクロプロセツサ等で、データをスタ
ツクする場合、書込み時にスタツクアドレスを+1(バ
イトデータ)あるいは+2(ワードデータ)と加算演算
で計算した場合、読出し時のスタツクアドレス計算は−
1,−2の減算となる。アドレス計算の加算と減算の関係
は、この逆の場合も考えられる。命令フエツチアドレス
は、+1(バイトフエツチ)あるいは+2(ワードフエ
ツチ)の加算演算をしていく。このように、プロセツサ
のアドレス演算の多くは定数加減演算である。 〔発明の効果〕 本発明によれば、高速な定数加減算器をハーフアダー
と、P信号のみのキヤリールツクアヘツド回路で実現で
きるので、回路規模を小さくできるという効果がある。
定数加減算はプロセツサのアドレス計算として広く利用
されることができる。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an adder / subtractor, for example, a logic LSI such as a microcomputer, and more particularly to a logic circuit configuration suitable for addition and subtraction of constants. [Prior Art] A conventional adder / subtractor has a full adder 3 as shown in FIG.
One of the inputs was configured to be able to take both positive and negative logic. In FIG. 2, the variable x and the constant K are added to the full adder 3 in positive logic, and the carrier C 0 103
= 0 is added to obtain the output y. On the other hand, in the subtraction, the constant K has a negative logic and the variable x has a positive logic and is input to the full adder 3, and the carrier C 0 103 = 1 is added thereto to obtain an output y. For example, 5 in decimal notation (hereinafter referred to as 5 (10)), 8
Bit-signed binary representation 00000101 (hereinafter 00000101 (2)
And the calculation of K such that 3 (10) = 00000011 (2). The calculation of x + K is 5 (10) +3
(10) = 8, which is 0000 even in binary operation
0101 (2) +00000011 (2) = 00001000 (2) = 8 (1
0), and the addition of binary numbers may be simply performed using a full adder addition circuit. FIG. 3 shows a configuration example of a full adder adder circuit. The operation of one bit unit is the full adder circuit 100 and the carrier circuit 106.
It is composed of The adder circuit shown in FIG. 3 is a 2-bit adder circuit, and the input x (lower bit x 0 : 101, upper bit x 1 :
108) and K (lower bit K 0 : 102, upper bit K 1 : 109) and output y (lower bit y 0 : 107, upper bit y 1 : 111)
Is output. The full adder circuit first adds two inputs x and K, adds the addition results 113 and 114 and the carriers 103 and 110, and outputs the output y. The carrier circuit 106 outputs the carrier to the upper bits. The carrier output to the upper bit is the input of the bit position where the calculation is performed, for example,
When both a 0 : 101 and b 0 : 102 are 1 and when the addition result of a 0 and b 0 is 1 and the carrier input from the lower bit is c 0 : 103
Is 1 and. The former is Carry Generate and the latter is Carry Generate.
opagate). The result 104 of carrier generation and the result 105 of carrier propagation are ORed and output as a carrier signal c 1 : 110 to the upper bits. To calculate x-K, x ++ 1 may be calculated by inverting 0 and 1 of each bit of K. For example, x = 5
(10) = 00000101 (2), K = 3 (10) = 00000011 (2)
Consider the case = 11111100 (2), so x +
K = 00000001 (2), and if you add 1 to the result, 00
000010 (2) = 2 (10). The operation of +1 is x ++ if "1" is input to c 0 : 103 of the adder circuit shown in FIG.
1 can be calculated at the same time. For the configuration of the adder circuit, refer to, for example, "Easy Electronic Calculations" in the electronic science series published by Kobo Co., Ltd. Basics "and so on. Carrier signal generation logic 10 in the adder circuit shown in FIG.
Reference numeral 6 is a ripple carry circuit that takes carrier logic for each 1-bit unit and propagates it to the higher-order bits. Therefore, when the operation bit length becomes long, the delay time becomes long because the carrier logic is configured in series. Carry foresight (Carry L)
ook Ahead (CLA) technology. This is performed by using the carrier generation result 104 for each bit and the carrier propagation condition 113 (the addition result of two inputs not including the carrier signal), and the carrier input signals C 1 (110) and C 2 (for each bit). 112) etc. are directly generated. The result 104 of the carrier occurrence of the lowest bit is G 0 , and the corresponding signals on the higher bit side are G 1 , G 2 , and G 3 , respectively. On the other hand, carrier propagation conditions
The value of 113 is also P 0 , P 1 , P 2 , P 3 from the lowest bit.
The carrier input signal of each bit is C 0 as shown in FIG.
Let (103), C 1 (110), C 2 (112), and C 3 . At this time, C
1 -C 3 signal generation logic is as following equation. C 1 = G 0 + C 0 · P 0 C 2 = G 1 + C 1 · P 1 = G 1 + G 0 · P 1 + C 0 · P 0 · P 1 C 3 = G 2 + C 2 · P 2 = G 2 + G 1 · P 2 + G 0 · P 2 · P 1 + C 0 · P 0 · P 1 · P 2 As is clear from the above equation, the carrier input signal is determined by the carrier propagation condition and C 0 only as a result of carrier generation. Therefore, it is not connected in series for each bit unit. Therefore, the carrier logic is accelerated regardless of the operation bit length. An embodiment is shown in FIG. 4, and this configuration is discussed in detail in "High-speed computer computing system" published by Modern Science Co., Ltd. In order to perform general addition / subtraction operation, the adder circuit of the above-mentioned full adder is necessary, but addition of a certain number and a constant whose effective bit length is much shorter than that number can be realized by a half adder adder circuit. . For example, the counter is an addition of a certain number and a constant 1. This configuration is shown in FIG. All upper bits except the lowest bit of constant 1 are 0
Therefore, at these bit positions, it is only necessary to add a certain number of inputs and the carrier. In this way, a configuration in which only two numbers are added (addition of three numbers in a full adder) is called a half adder configuration. Although this configuration has a smaller circuit scale than the configuration of the full adder, it can handle only addition. A one-bit operation is composed of a half adder circuit 120 and a carry circuit 121. Input x (lower bits x 0: 12
2, upper bit x 1 : 123) and constant K are added, and output y
(Lower bit y 0 : 124, Higher bit y 1 : 125) is output.
Since the upper bit of the constant K is 0, there is no need to input it when adding. Therefore, only the lowest bit K 0 : 126 is input in correspondence with the carrier input 103 in FIG. Since the upper bit of K is 0, the carrier circuit 121 does not need the carrier generation logic and sends only the carrier propagation result 127 to the upper bit as a carrier signal. [Problems to be Solved by the Invention] The above-mentioned prior art considers a method of performing an addition / subtraction operation in which the effective bit length of one of the two input signals is much shorter, by a half adder adder circuit. However, if this is performed by a full adder adder circuit, the carrier logic for speeding up becomes complicated and the circuit scale becomes large. An object of the present invention is to provide a method in which constant addition / subtraction can be realized by a half-adder addition circuit having a small circuit scale. [Means for Solving the Problems] The above-mentioned object is achieved by making the adder a half adder so that the input and output of this half adder can take both positive and negative logic. [Operation] When each bit of a certain value x expressed in binary number is inverted, the value becomes -x-1. When x-K is calculated, the value of x is first bit-inverted to obtain -x-1. Add K to this value. If the value of K is about 2 bits, this adder can be constructed by a half adder. The result after addition is -x-1 + K. Bit-reversing this result gives-(-x-1 + K) -1 = x-K,
Variable x-constant K can be calculated. x + K is K as it is, without bit inversion.
And output without bit inversion, the variable x + constant K can be calculated. By doing so, it is possible to execute subtraction only by constant addition by the conventional adder of the half adder. Embodiment An embodiment of the present invention will be described below with reference to FIG. The signal inversion circuit 1 is a selection circuit for outputting bit forward rotation or inversion data of input data. Half adder 2
In the adder of the constant K of several bits and the variable x or the bit x which is bit-inverted, the bit width of the constant K is formed by a full adder, and the bit positions on the upper side are formed by a half adder. When the constant K is subtracted from the variable x, the variable x is bit-inverted by the inverter INV1, added with the constant K by the half adder 2, and the result is bit-inverted by the inverter INV2 and output (y). To add the variable x and the constant K, the variable x may be added as it is to the constant K without bit-inversion, and the addition result may be output as it is (y). Fig. 6 shows 8-bit variable x (LSB = x0, MSB = x7) and constants 0 (K0 = K1 = 0), 1 (K0 = 1, K1 = 0), 2 (K0 = 0, K1).
= 1). The signal inversion circuit 1 shown in FIG. 1 is realized by the selection circuit 4 controlled by the control signal 8 as shown in FIG. When the subtraction with the constant is performed, the control signal 8 is set to the L level, and the variable x (x0 to x7) and the bit inversion data of the output 150 of the half adder 2 are selected and output. In the case of addition, the control signal 8 is set to H level to select and output bit normal data. The half adder 2 shown in FIG. 1 is composed of half bit adders 5 and 6 of 2 bit unit and carry look ahead (CLA) 7 in FIG.
The 2-bit unit half adder 5 on the lower-order side is a 2-bit constant K0, K1 and 2-bit LSB side data (variable x or bit-inverted variable x / x0, x1 or ▲ ▼, ▲
▼) is added. Addition of the lowest bit is x0 or ▲
Calculated as the addition of ▼ and K0. To add a bit one bit higher than the lowest bit, the OR generated by the lowest bit addition and the OR signal 151 of constant K1, x1 or ▲
Calculated as addition of ▼. Constant K0 = K1 = 1, that is, the operation of constant 3 is not supported, so carry and constant
K1 and 1 cannot be 1 together. The carrier 152 generated by the addition of the lower 2 bits is input to the carry look-ahead (CLA) 7 and the half adder 6 which adds the upper 2 and 3 bits from the lowest bit. The half adder 6 outputs the input 2-bit data x i and x i + 1 and the carrier addition result 153, and at the same time, when the data x i and x i + 1 are both 1, that is, the carrier propagation condition signal 154. Output. The carrier input 155,156 of the 2-bit unit half adder 6 on the upper bit side is obtained by carrying the carrier lookahead logic (CLA) 7 for the carrier 152 generated by the addition of the lower 2 bits and the carry propagation signal 154. Decide Since the upper 6 bits of the constant K are 0, the carrier propagation need only consider the propagation of the carrier to the upper bit side, which is generated by the addition of the lower 2 bits. The constant 0, 1, 2 adder / subtractor according to the present invention is used as an address calculator for a microprocessor or the like. If the data bus is a 16-bit microprocessor or the like, and the data is to be stacked, the stack address is calculated at the time of writing by adding +1 (byte data) or +2 (word data), and at the time of reading the stack address is calculated. Is-
Subtraction of 1, -2. The relationship between addition and subtraction in the address calculation can be considered in the opposite case. The instruction fetch address is added by +1 (byte fetch) or +2 (word fetch). As described above, most of the address operations of the processor are constant addition / subtraction operations. [Advantages of the Invention] According to the present invention, a high-speed constant adder / subtractor can be realized by a half adder and a carrier lock head circuit for only P signals, so that the circuit scale can be reduced.
The constant addition / subtraction can be widely used as the address calculation of the processor.

【図面の簡単な説明】 第1図は本発明の構成図、第2図は従来の加減算器の構
成図、第3図はフルアダー回路による加算器の論理図、
第4図はキヤリールツクアヘツド回路、第5図はハーフ
アダー回路による加算器(カウンタ)の論理図、第6図
は本発明によるハーフアダー回路の加減算器。 1…信号反転回路、2…ハーフアダー、4…信号反転回
路、5…2ビツトハーフアダー、6…2ビツトハーフア
ダー、7…キヤリールツクアヘツド回路。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of the present invention, FIG. 2 is a block diagram of a conventional adder / subtractor, and FIG. 3 is a logic diagram of an adder using a full adder circuit.
FIG. 4 is a carrier-scheduled head circuit, FIG. 5 is a logic diagram of an adder (counter) using a half adder circuit, and FIG. 1 ... Signal inversion circuit, 2 ... Half adder, 4 ... Signal inversion circuit, 5 ... 2 bit half adder, 6 ... 2 bit half adder, 7 ... Carrier task head circuit.

フロントページの続き (72)発明者 中村 英夫 東京都国分寺市東恋ケ窪1丁目280番地 株式会社日立製作所中央研究所内 (72)発明者 萩原 吉宗 東京都国分寺市東恋ケ窪1丁目280番地 株式会社日立製作所中央研究所内 (56)参考文献 特開 昭59−66790(JP,A) 特開 昭60−156139(JP,A) 特開 昭62−25325(JP,A) 特開 昭62−111362(JP,A) 特開 昭62−118436(JP,A) 特開 昭63−49835(JP,A)Continuation of front page    (72) Inventor Hideo Nakamura               1-280 Higashi Koikebo, Kokubunji-shi, Tokyo                 Central Research Laboratory, Hitachi, Ltd. (72) Inventor Yoshimune Hagiwara               1-280 Higashi Koikebo, Kokubunji-shi, Tokyo                 Central Research Laboratory, Hitachi, Ltd.                (56) References JP-A-59-66790 (JP, A)                 JP-A-60-156139 (JP, A)                 JP 62-25325 (JP, A)                 JP-A-62-111362 (JP, A)                 JP 62-118436 (JP, A)                 JP 63-49835 (JP, A)

Claims (1)

(57)【特許請求の範囲】 1.2進数表現された被演算数に、前記被演算数よりも
ビット長の短い2進数表現された定数を加減算するアド
レス演算器であって、 前記アドレス演算器は、前記被演算数及び前記定数が入
力される全加算器と、 前記被演算数が入力され前記定数が入力されない半加算
器とを有し、 前記全加算器は上記アドレスの少なくとも最下位ビット
を含む下位ビット側に、前記半加算器は前記全加算器よ
りも上位ビット側に配置されてなり、 前記被演算数のビットを正転、反転して前記全加算器及
び前記半加算器に入力可能に構成されると共に、前記全
加算器及び前記半加算器の出力のビットを正転、反転し
て出力可能に構成されることを特徴とするアドレス演算
器。 2.前記被演算数と前記定数との加算を行う場合には前
記被演算数のビットの正転データを入力すると共に前記
出力のビットの正転データを出力し、 前記被演算数から前記定数の減算を行う場合には前記被
演算数のビットの逆転データを入力すると共に前記出力
のビットの逆転データを出力することを特徴とする第1
項記載のアドレス演算器。
(57) [Claims] 1. An address calculator for adding / subtracting a binary-valued constant having a bit length shorter than the operand to / from the operand to be represented by the address operation. A full adder to which the operand and the constant are input, and a half adder to which the operand is input and the constant is not input, and the full adder is at least the least significant of the addresses. The half adder is arranged on the higher bit side than the full adder on the lower bit side including the bit, and the full adder and the half adder are provided by rotating and inverting the bits of the operand. The address arithmetic unit is configured to be capable of being input to, and to be output by inverting and inverting the bits of the outputs of the full adder and the half adder. 2. When the operand is added to the constant, the normal data of the bit of the operand is input and the normal data of the output bit is output, and the constant is subtracted from the operand. When performing the above, the reverse data of bits of the operand is input and the reverse data of bits of the output is output.
The address calculator described in the item.
JP62321304A 1987-12-21 1987-12-21 Address calculator Expired - Fee Related JP2685466B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62321304A JP2685466B2 (en) 1987-12-21 1987-12-21 Address calculator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62321304A JP2685466B2 (en) 1987-12-21 1987-12-21 Address calculator

Publications (2)

Publication Number Publication Date
JPH01163827A JPH01163827A (en) 1989-06-28
JP2685466B2 true JP2685466B2 (en) 1997-12-03

Family

ID=18131079

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62321304A Expired - Fee Related JP2685466B2 (en) 1987-12-21 1987-12-21 Address calculator

Country Status (1)

Country Link
JP (1) JP2685466B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5966790A (en) * 1982-10-08 1984-04-16 Nec Corp Operating circuit
JPS60156139A (en) * 1984-01-25 1985-08-16 Nec Corp Absolute difference calculating circuit
JPS6225325A (en) * 1985-07-25 1987-02-03 Fujitsu Ltd Absolute value adding and subtracting circuit
JPS62111362A (en) * 1985-11-08 1987-05-22 Matsushita Electric Ind Co Ltd Data processor
JPS62118436A (en) * 1985-11-19 1987-05-29 Nec Corp Adder
JPS6349835A (en) * 1986-08-19 1988-03-02 Matsushita Electric Ind Co Ltd Arithmetic processor

Also Published As

Publication number Publication date
JPH01163827A (en) 1989-06-28

Similar Documents

Publication Publication Date Title
EP0328063B1 (en) Absolute value calculating circuit having a single adder
US6564239B2 (en) Computer method and apparatus for division and square root operations using signed digit
US6820107B1 (en) Square root extraction circuit and floating-point square root extraction device
JPH0727456B2 (en) Floating point arithmetic unit
JPH0479013B2 (en)
EP0530372B1 (en) Numerical expression converter and vector processor using the same
JPH01169531A (en) Fast binary/decimal arithmetic logical computing apparatus and computing of binary coded decimal number
US5957996A (en) Digital data comparator and microprocessor
JP3304971B2 (en) Absolute value calculation circuit
JPH0573269A (en) Adder
JP2511527B2 (en) Floating point arithmetic unit
JPH0552530B2 (en)
JP2685466B2 (en) Address calculator
US5097434A (en) Hybrid signed-digit/logarithmic number system processor
JPH0464091B2 (en)
JPH0511980A (en) Overflow detecting method and circuit
US6065034A (en) Circuit and method employing an adder for sign extending operands
JPH086766A (en) Sine and cosine arithmetic device
US6148318A (en) Square root extraction circuit and floating-point square root extraction device
US7240085B2 (en) Faster shift value calculation using modified carry-lookahead adder
JP3370688B2 (en) Flag generation circuit of adder
JP2555135B2 (en) Arithmetic circuit
JP3482102B2 (en) Absolute distance calculation circuit
Santosh et al. Complex Binary Number System-based Co-Processor Design for Signal Processing Applications
JP2907276B2 (en) Arithmetic processing unit

Legal Events

Date Code Title Description
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees