JP3157741B2 - Binary-decimal conversion circuit - Google Patents

Binary-decimal conversion circuit

Info

Publication number
JP3157741B2
JP3157741B2 JP07522497A JP7522497A JP3157741B2 JP 3157741 B2 JP3157741 B2 JP 3157741B2 JP 07522497 A JP07522497 A JP 07522497A JP 7522497 A JP7522497 A JP 7522497A JP 3157741 B2 JP3157741 B2 JP 3157741B2
Authority
JP
Japan
Prior art keywords
decimal
data
binary
binary data
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
JP07522497A
Other languages
Japanese (ja)
Other versions
JPH10271008A (en
Inventor
浩 清水
Original Assignee
甲府日本電気株式会社
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 甲府日本電気株式会社 filed Critical 甲府日本電気株式会社
Priority to JP07522497A priority Critical patent/JP3157741B2/en
Publication of JPH10271008A publication Critical patent/JPH10271008A/en
Application granted granted Critical
Publication of JP3157741B2 publication Critical patent/JP3157741B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、情報処理装置にお
ける2進10進変換回路に関し、特に、変換速度を向上
させた2進10進変換回路に関する。
The present invention relates to a binary-decimal conversion circuit in an information processing apparatus, and more particularly to a binary-decimal conversion circuit having an improved conversion speed.

【0002】[0002]

【従来の技術】従来の2進10進変換回路においては、
たとえば、「特開昭59−168543号公報」記載の
技術のように、2進データの各ビットを1ビット毎に検
査することにより変換を行っている。
2. Description of the Related Art In a conventional binary-decimal conversion circuit,
For example, conversion is performed by checking each bit of binary data bit by bit as in the technique described in Japanese Patent Application Laid-Open No. 59-168543.

【0003】図7は、この従来の技術を示すブロック図
である。図7を参照すると、この2進10進変換回路
は、2進データセレクタ11と、2進データレジスタ1
2と、10進加算器13と、10進データレジスタ14
とから構成される。
FIG. 7 is a block diagram showing this conventional technique. Referring to FIG. 7, this binary-decimal conversion circuit includes a binary data selector 11 and a binary data register 1.
2, decimal adder 13 and decimal data register 14
It is composed of

【0004】変換対象2進データ000と2進データレ
ジスタ12を1ビット左にシフトしたデータ300とを
2進データセレクタ11に入力し、2進データセレクタ
11の出力100を2進データレジスタ12に入力し、
10進データレジスタ14の出力500を10進加算器
13の両方の入力に入力し、2進データレジスタ12の
最上位1ビット200を10進加算器13のキャリー入
力に入力し、10進加算器13の出力400を10進デ
ータレジスタ14に入力する。
The binary data 000 to be converted and the data 300 obtained by shifting the binary data register 12 to the left by one bit are input to the binary data selector 11, and the output 100 of the binary data selector 11 is input to the binary data register 12. type in,
The output 500 of the decimal data register 14 is input to both inputs of the decimal adder 13, the most significant bit 200 of the binary data register 12 is input to the carry input of the decimal adder 13, and the decimal adder 13 is input to the decimal data register 14.

【0005】まず、変換対象の2進データ000を2進
データセレクタ11を経由して2進データレジスタ12
にロードし、同時に10進データレジスタ14をリセッ
トする。
[0005] First, binary data 000 to be converted is transferred to a binary data register 12 via a binary data selector 11.
And reset the decimal data register 14 at the same time.

【0006】次に、2進データレジスタ12の最上位ビ
ット200と10進データレジスタ14のデータ500
とを10進加算器13で加算することにより、10進デ
ータレジスタ14の値500の2倍数と2進データレジ
スタ12の最上位ビット200との加算を行う。また、
10進加算器13の出力400を10進データレジスタ
14に格納すると同時に、2進データレジスタ12のデ
ータを1ビット左シフトしたデータ300を、2進デー
タセレクタ11を経由して2進データレジスタ12に格
納する。
Next, the most significant bit 200 of the binary data register 12 and the data 500 of the decimal data register 14
Is added by the decimal adder 13 to add the multiple of the value 500 of the decimal data register 14 and the most significant bit 200 of the binary data register 12. Also,
The output 400 of the decimal adder 13 is stored in the decimal data register 14, and at the same time, the data 300 obtained by shifting the data of the binary data register 12 to the left by one bit is transferred via the binary data selector 11 to the binary data register 12. To be stored.

【0007】この動作を2進データのビット数分だけ繰
り返すことにより2進10進変換を行っている。
This operation is repeated by the number of bits of binary data, thereby performing binary-decimal conversion.

【0008】[0008]

【発明が解決しようとする課題】上述した従来の2進1
0進変換回路では、2進データがn(正整数)ビットと
すると、n回の加算動作が演算回路に要求される。この
ため2進10進変換に必要な実行時間が大きくなり、演
算速度の低下および処理時間の増大を招くという欠点が
ある。
SUMMARY OF THE INVENTION The above-described conventional binary 1
In the zero-ary conversion circuit, assuming that the binary data has n (positive integer) bits, the arithmetic circuit is required to perform an addition operation n times. For this reason, there is a disadvantage that the execution time required for the binary-decimal conversion is increased, which causes a reduction in the operation speed and an increase in the processing time.

【0009】本発明の目的は、10進データの持つ特質
を利用し、従来の2進10進変換回路へ、わずかな回路
を追加することにより、従来技術が持つ問題点を改善し
た2進10進変換回路を提供することである。
An object of the present invention is to improve the problems of the prior art by utilizing the characteristics of the decimal data and adding a few circuits to the conventional binary / decimal conversion circuit. It is to provide a base conversion circuit.

【0010】[0010]

【課題を解決するための手段】本発明の第1の2進10
進変換回路は、10進データの加算を行う2つのデータ
入力およびキャリ入力を持つ10進加算器と10進デー
タの2倍数のデータを生成する10進2倍数生成回路と
を有し、前記10進2倍数生成回路の出力を前記10進
加算器の前記2つのデータ入力の上位に入力し、変換対
象2進データの2ビットのうちの上位ビットを前記10
進加算器の前記2つのデータ入力の下位に入力し、前記
変換対象2進データの2ビットのうちの下位ビットを前
記10進加算器の前記キャリ入力に入力し、前記変換対
象2進データを2ビット毎に10進数に変換する。
SUMMARY OF THE INVENTION A first binary 10 according to the present invention.
The decimal conversion circuit has a decimal adder having two data inputs for adding decimal data and a carry input, and a decimal double generation circuit for generating double data of the decimal data. The output of the binary doubling generation circuit is input to the upper part of the two data inputs of the decimal adder, and the upper bit of the two bits of the binary data to be converted is converted to the 10th bit.
The lower input of the two data inputs of the decimal adder, the lower bit of the two bits of the binary data to be converted is input to the carry input of the decimal adder, and the binary data to be converted is It is converted into a decimal number every two bits.

【0011】本発明の第2の2進10進変換回路は、
(a)2進データを保持する2進データレジスタと、
(b)変換対象2進データと前記2進データレジスタの
出力を2ビット左にシフトしたデータとのいずれかを選
択し、前記2進データレジスタへ出力する2進データ選
択回路と、(c)前記変換対象2進データから10進デ
ータに変換された10進データを格納する10進データ
レジスタと、(d)前記10進データレジスタの出力の
10進の2倍数のデータ生成する10進2倍数生成回路
と、(e)前記10進2倍数生成回路の出力を2つのデ
ータ入力の上位に入力し、前記2進データレジスタの上
位2ビットうちの上位ビットを前記2つのデータ入力の
下位に入力し、前記上位2ビットのうちの下位ビットを
前記10進加算器の前記キャリ入力に入力し、前記10
進データレジスタの出力の4倍数と前記2進データレジ
スタの上位2ビットとの10進加算を行うことにより、
2ビット毎に前記変換対象2進データを前記10進デー
タに変換し、前記10進データレジスタに出力する10
進加算器と、を有する。
A second binary-decimal conversion circuit according to the present invention comprises:
(A) a binary data register for holding binary data;
(B) a binary data selection circuit for selecting either binary data to be converted or data obtained by shifting the output of the binary data register to the left by 2 bits, and outputting the selected data to the binary data register; A decimal data register for storing decimal data converted from the binary data to be converted into decimal data; and (d) a decimal double number for generating data of a double of the output of the decimal data register. A generation circuit, and (e) inputting the output of the decimal double generation circuit to the upper part of two data inputs, and inputting the upper bit of the upper two bits of the binary data register to the lower part of the two data inputs Inputting the lower bit of the upper two bits to the carry input of the decimal adder;
By performing a decimal addition of a quadruple number of the output of the binary data register and the upper 2 bits of the binary data register,
The conversion target binary data is converted into the decimal data every two bits and output to the decimal data register.
And a binary adder.

【0012】本発明の第3の2進10進変換回路は、前
記第2の2進10進変換回路であって、前記2進データ
レジスタと、前記2進データ選択回路と、前記10進デ
ータレジスタと、前記10進2倍数生成回路と、前記1
0進加算器とを含んで1チップで構成される。
A third binary-decimal conversion circuit according to the present invention is the second binary-decimal conversion circuit, wherein the binary data register, the binary data selection circuit, and the decimal data A register, the decimal double number generation circuit,
It is composed of one chip including a zero-base adder.

【0013】[作用]2進10進変換を、10進データ
の2倍数生成回路と10進加算器を用いて、2ビット毎
に行うため、2進データがn(正整数)ビットとする
と、n/2回の加算動作で10進データへの変換を行う
ことができる。このため実行時間が従来の1/2と少な
くなり、演算速度の高速化および処理時間の短縮を容易
に実現できる。
[Operation] Since the binary-to-decimal conversion is performed every two bits using a double data generation circuit for decimal data and a decimal adder, if the binary data is n (positive integer) bits, Conversion to decimal data can be performed by n / 2 addition operations. For this reason, the execution time is reduced to one half of that of the conventional art, and it is possible to easily realize an increase in the operation speed and a reduction in the processing time.

【0014】[0014]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して詳細に説明する。図1は、本発明の実
施の形態を示すブロック図である。図1を参照すると、
本発明の2進10進変換回路は、2進データセレクタ1
1と、2進データレジスタ12と、10進加算器13
と、10進データレジスタ14と、10進2倍数生成回
路15とから構成される。また、変換対象2進データ0
00と2進データレジスタ12のデータを2ビット左に
シフトしたデータ300とを2進データセレクタ11に
入力する。また、2進データセレクタ11の出力100
を2進データレジスタ12に入力し、10進データレジ
スタ14の出力500を10進2倍数生成回路15に入
力し、10進2倍数生成回路15の出力600(2倍数
の最下位ビットの0を除いたデータ)を、10進加算器
13の両方の入力の最下位1ビット以外のビットに入力
し、2進データレジスタ12の最上位1ビット200
を、10進加算器13の両方の入力の最下位ビットに入
力し、2進データレジスタ12の最上位1ビットの次の
ビット201を、10進加算器13のキャリー入力に入
力し、10進加算器13の出力400を10進データレ
ジスタ14に入力する。図2は、図1の10進2倍数生
成回路15のブロック図である。図2を参照すると、1
0進2倍数生成回路15は、 j桁(jは正整数)の10進データ d0(0),d0(1),d0(2),d0(3)・・
・di−1(0),di−1(1),di−1(2),
di−1(3),di(0),di(1),di
(2),di(3),di+1(0),di+1
(1),di+1(2),di+1(3),・・・,d
j−1(0),dj−1(1),dj−1(2),dj
−1(3) から、 10進2倍数データ D−1(3),D0(0),D0(1),D0(2),
D0(3)・・・Di−1(0),Di−1(1),D
i−1(2),Di−1(3),Di(0),Di
(1),Di(2),Di(3),Di+1(0),D
i+1(1),Di+1(2),Di+1(3),・・
・,Dj−1(0),Dj−1(1),Dj−1
(2),Dj−1(3) を生成するように、1桁の10進2倍数生成回路20〜
24から構成される(これらはすべて同一の構成を持
つ)。図3は、図2の1桁の10進2倍数生成回路20
〜24の詳細回路図である。図4は1桁の10進2倍数
生成回路20〜24の変換表である。図4に示すとお
り、10進データの1桁は“0”から“9”までである
ことから、その2倍数は“0”から“18”までであ
り、10進2倍数生成結果の変換桁の最下位ビットD
(3)は必ず“0”となる。図5は、図1の10進数の
10進2倍数生成回路15の1桁単位の変換表である。
複数桁の10進数の10進2倍数の生成においては、下
位桁からの桁上がりが1ビット生じるが、図4で説明し
た通り、各桁の最下位ビットは2倍されることにより
“0”となるため、下位桁からの桁上がり1ビットをそ
のまま入れることができる。
Next, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention. Referring to FIG.
The binary-decimal conversion circuit according to the present invention includes a binary data selector 1
1 and binary data register 12 and decimal adder 13
, A decimal data register 14 and a decimal double number generation circuit 15. Also, conversion target binary data 0
00 and data 300 obtained by shifting the data of the binary data register 12 to the left by 2 bits are input to the binary data selector 11. Also, the output 100 of the binary data selector 11
Is input to the binary data register 12, the output 500 of the decimal data register 14 is input to the decimal double generation circuit 15, and the output 600 of the decimal double generation circuit 15 (the least significant bit 0 of the double is Excluding data) is input to bits other than the least significant 1 bit of both inputs of the decimal adder 13, and the most significant 1 bit 200 of the binary data register 12 is input.
Is input to the least significant bit of both inputs of the decimal adder 13, the next bit 201 of the most significant 1 bit of the binary data register 12 is input to the carry input of the decimal adder 13, and The output 400 of the adder 13 is input to the decimal data register 14. FIG. 2 is a block diagram of the decimal double generation circuit 15 of FIG. Referring to FIG.
The 0-ary double generation circuit 15 generates j-digit (j is a positive integer) decimal data d0 (0), d0 (1), d0 (2), d0 (3),.
-Di-1 (0), di-1 (1), di-1 (2),
di-1 (3), di (0), di (1), di
(2), di (3), di + 1 (0), di + 1
(1), di + 1 (2), di + 1 (3),..., D
j-1 (0), dj-1 (1), dj-1 (2), dj
-1 (3) from the decimal double data D-1 (3), D0 (0), D0 (1), D0 (2),
D0 (3) ... Di-1 (0), Di-1 (1), D
i-1 (2), Di-1 (3), Di (0), Di
(1), Di (2), Di (3), Di + 1 (0), D
i + 1 (1), Di + 1 (2), Di + 1 (3),.
·, Dj-1 (0), Dj-1 (1), Dj-1
(2), so as to generate Dj-1 (3)
24 (they all have the same configuration). FIG. 3 is a circuit diagram of the one-digit decimal double generation circuit 20 shown in FIG.
24 to 24 are detailed circuit diagrams. FIG. 4 is a conversion table of the one-digit decimal double number generation circuits 20 to 24. As shown in FIG. 4, since one digit of the decimal data is from "0" to "9", its double number is from "0" to "18", and the conversion digit of the decimal double number generation result. Least significant bit D of
(3) is always "0". FIG. 5 is a conversion table in units of one digit of the decimal double generation circuit 15 of FIG.
In the generation of a decimal double number of a plurality of decimal numbers, one bit is generated from the lower digit, but as described with reference to FIG. 4, the least significant bit of each digit is doubled to “0”. Therefore, one bit of carry from the lower digit can be directly input.

【0015】したがって、j桁(jは正整数)の10進
数の任意の1桁の di(0),di(1),di(2),di(3) を10進2倍数 Di−1(3),Di(0),Di(1),Di
(2),Di(3) に変換する場合(iは0からj−1の正整数)、 Di−1(3)=di(0)+di(1)*(di
(2)+di(3)) Di(0)=di(0)*di(3)+di(1)*d
i(2)’*di(3)’ Di(1)=di(0)*di(3)’+di(1)’
*di(2)+di(2)*di(3) Di(2)=di(0)’*di(1)’*di(3)
+di(1)*di(2)*di(3)’+di(0)
*di(3)’ の論理により生成できる(ここで、「*」は論理積、
「+」は論理和、「’」は反転(コンプリメント)を示
している)。
Therefore, any one digit di (0), di (1), di (2), di (3) of a j-digit (j is a positive integer) decimal number is converted to a decimal double Di-1 ( 3), Di (0), Di (1), Di
(2), when converting to Di (3) (i is a positive integer from 0 to j-1), Di-1 (3) = di (0) + di (1) * (di
(2) + di (3)) Di (0) = di (0) * di (3) + di (1) * d
i (2) '* di (3)' Di (1) = di (0) * di (3) '+ di (1)'
* Di (2) + di (2) * di (3) Di (2) = di (0) '* di (1)' * di (3)
+ Di (1) * di (2) * di (3) ′ + di (0)
* Di (3) ′ (where “*” is a logical product,
“+” Indicates a logical sum, and “′” indicates an inversion (complement).

【0016】よって、図3の10進1桁の10進2倍数
生成回路20等を、図2のように並列に接続して10進
2倍数生成回路15を構成することにより、複数桁の1
0進数の10進2倍数を生成することができる。
Thus, by connecting the decimal double-number generating circuit 20 of FIG. 3 in parallel with the decimal single-digit generating circuit 20 as shown in FIG.
A decimal doubling of a decimal number can be generated.

【0017】次に、本発明の実施の形態の動作につい
て、図1と図6を参照して説明する。図6は、2進デー
タ“1110010000110110”を10進デー
タに変換する場合の演算動作を、演算サイクル毎に各構
成回路の出力値を示した状態推移表である。まず、変換
対象の2進データ000を2進データセレクタ11を経
由して2進データレジスタ12にロードし、同時に10
進データレジスタ14をリセットする。
Next, the operation of the embodiment of the present invention will be described with reference to FIGS. FIG. 6 is a state transition table showing the operation of converting binary data “1110010000110110” into decimal data, showing the output value of each component circuit for each operation cycle. First, the binary data 000 to be converted is loaded into the binary data register 12 via the binary data selector 11, and at the same time,
The binary data register 14 is reset.

【0018】次に、10進データレジスタ14のデータ
500から10進2倍数生成回路15により10進2倍
数データ600(最下位1ビットは除いたデータ)を生
成する。2進データレジスタ12の最上位1ビット20
0と、2進データレジスタ12の最上位1ビットの次の
ビット201(すなわち、2進データレジスタ12の最
上位2ビット)と、10進2倍数生成回路15の出力6
00とを10進加算器13で加算することにより、10
進データレジスタ14の値の4倍数生成と、2進データ
レジスタ12の最上位2ビットの加算とを行う。
Next, from the data 500 of the decimal data register 14, a decimal double number generating circuit 15 generates decimal double number data 600 (data excluding the least significant bit). Most significant 1 bit 20 of binary data register 12
0, the next bit 201 of the most significant bit of the binary data register 12 (that is, the most significant two bits of the binary data register 12), and the output 6 of the decimal double generation circuit 15
00 and the decimal adder 13 add 10
A quadruple generation of the value of the binary data register 14 and addition of the two most significant bits of the binary data register 12 are performed.

【0019】また、10進加算器13の出力400を1
0進データレジスタ14に格納すると同時に、2進デー
タレジスタ12のデータを2ビット左シフトしたデータ
300を、2進データレジスタ12に格納する。
The output 400 of the decimal adder 13 is 1
At the same time as the data 300 is stored in the binary data register 14, the data 300 obtained by shifting the data of the binary data register 12 to the left by 2 bits is stored in the binary data register 12.

【0020】この動作を2進データのビット数の半分の
回数だけ繰り返すことにより、変換対象の2進データ0
00が10進データ900に2進10進変換される。こ
のようにして、本発明により、2進データ“11100
10000110110”を10進データ“5842
2”に変換する動作が、変換対象2進データのビット数
の1/2回のサイクル数で実現できる。
By repeating this operation for half the number of bits of the binary data, binary data 0 to be converted is obtained.
00 is converted to decimal data 900 in a binary-decimal manner. Thus, according to the present invention, the binary data "11100"
10000111010 ”to decimal data“ 5842 ”
The operation of converting to 2 "can be realized with half the number of cycles of the bit number of the binary data to be converted.

【0021】[0021]

【発明の効果】以上説明したように、本発明には、nビ
ットの2進データを2ビット単位に10進データに変換
することにより、従来必要としたn回の演算がn/2回
となり、演算速度の向上を達成できるという効果があ
る。
As described above, according to the present invention, by converting n-bit binary data into decimal data in units of 2 bits, the number of operations required in the past becomes n / 2 times. This has the effect that the calculation speed can be improved.

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

【図1】本発明の実施の形態を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】図1の10進2倍数生成回路のブロック図であ
る。
FIG. 2 is a block diagram of a decimal double generation circuit of FIG. 1;

【図3】1桁の10進2倍数生成回路の回路図である。FIG. 3 is a circuit diagram of a single-digit decimal double generation circuit.

【図4】1桁の10進2倍数生成回路の変換表である。FIG. 4 is a conversion table of a one-digit decimal double number generation circuit.

【図5】複数桁の10進2倍数生成回路の変換表であ
る。
FIG. 5 is a conversion table of a multiple-digit decimal double generation circuit.

【図6】10進2倍数生成回路における変換の状態推移
表である。
FIG. 6 is a state transition table of conversion in a decimal double number generation circuit.

【図7】従来の技術の2進10進変換回路を示すブロッ
ク図である。
FIG. 7 is a block diagram showing a conventional binary-decimal conversion circuit.

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

11 2進データセレクタ 12 2進データレジスタ 13 10進加算器 14 10進データレジスタ 15 10進2倍数生成回路 20〜24 1桁の10進2倍数生成回路 11 Binary data selector 12 Binary data register 13 Decimal adder 14 Decimal data register 15 Decimal doubling number generation circuit 20 to 24 1 digit decimal doubling number generation circuit

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭57−61333(JP,A) 特開 昭53−78133(JP,A) 特開 昭59−139443(JP,A) 特開 昭59−177645(JP,A) 特開 昭60−169229(JP,A) 特開 昭61−251331(JP,A) 特開 平3−13011(JP,A) 実開 昭58−85235(JP,U) (58)調査した分野(Int.Cl.7,DB名) H03M 7/12 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-57-61333 (JP, A) JP-A-53-78133 (JP, A) JP-A-59-139443 (JP, A) JP-A-59-139443 177645 (JP, A) JP-A-60-169229 (JP, A) JP-A-61-251331 (JP, A) JP-A-3-13011 (JP, A) (58) Field surveyed (Int. Cl. 7 , DB name) H03M 7/12

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 10進データの加算を行う2つのデータ
入力およびキャリ入力を持つ10進加算器と10進デー
タの2倍数のデータを生成する10進2倍数生成回路と
を有し、前記10進2倍数生成回路の出力を前記10進
加算器の前記2つのデータ入力の上位に入力し、変換対
象2進データの2ビットのうちの上位ビットを前記10
進加算器の前記2つのデータ入力の下位に入力し、前記
変換対象2進データの2ビットのうちの下位ビットを前
記10進加算器の前記キャリ入力に入力し、前記変換対
象2進データを2ビット毎に10進数に変換することを
特徴とする2進10進変換回路。
A decimal adder having two data inputs for adding decimal data and a carry input; and a decimal double generation circuit for generating data of a double of the decimal data. The output of the binary doubling generation circuit is input to the upper part of the two data inputs of the decimal adder, and the upper bit of the two bits of the binary data to be converted is converted to the 10th bit.
The lower input of the two data inputs of the decimal adder, the lower bit of the two bits of the binary data to be converted is input to the carry input of the decimal adder, and the binary data to be converted is A binary-to-decimal conversion circuit for converting into a decimal number every two bits.
【請求項2】(a)2進データを保持する2進データレ
ジスタと、(b)変換対象2進データと前記2進データ
レジスタの出力を2ビット左にシフトしたデータとのい
ずれかを選択し、前記2進データレジスタへ出力する2
進データ選択回路と、(c)前記変換対象2進データか
ら10進データに変換された10進データを格納する1
0進データレジスタと、(d)前記10進データレジス
タの出力の10進の2倍数のデータ生成する10進2倍
数生成回路と、(e)前記10進2倍数生成回路の出力
を2つのデータ入力の上位に入力し、前記2進データレ
ジスタの上位2ビットうちの上位ビットを前記2つのデ
ータ入力の下位に入力し、前記上位2ビットのうちの下
位ビットを前記10進加算器の前記キャリ入力に入力
し、前記10進データレジスタの出力の4倍数と前記2
進データレジスタの上位2ビットとの10進加算を行う
ことにより、2ビット毎に前記変換対象2進データを前
記10進データに変換し、前記10進データレジスタに
出力する10進加算器と、を有することを特徴とする2
進10進変換回路。
2. Select one of (a) a binary data register for holding binary data, and (b) binary data to be converted and data obtained by shifting the output of the binary data register to the left by 2 bits. Output to the binary data register
(C) storing decimal data converted from the binary data to be converted into decimal data;
A zero-decimal data register, (d) a decimal double-number generating circuit for generating data of a decimal double of the output of the decimal data register, and (e) an output of the decimal double-number generating circuit as two data. Input to the upper part of the input; input the upper bit of the upper two bits of the binary data register to the lower part of the two data inputs; and input the lower bit of the upper two bits to the carry of the decimal adder. Input to the input, a quadruple of the output of the decimal data register and the 2
A decimal adder for converting the binary data to be converted into the decimal data every two bits by performing a decimal addition with the upper two bits of the decimal data register, and outputting the converted data to the decimal data register; 2 characterized by having
Decimal-decimal conversion circuit.
【請求項3】 前記2進データレジスタと、前記2進デ
ータ選択回路と、前記10進データレジスタと、前記1
0進2倍数生成回路と、前記10進加算器とを含んで1
チップで構成されることを特徴とする請求項2記載の2
進10進変換回路。
3. The binary data register, the binary data selection circuit, the decimal data register,
1 including a zero-ary double generation circuit and the decimal adder
3. The device according to claim 2, wherein the device comprises a chip.
Decimal-decimal conversion circuit.
JP07522497A 1997-03-27 1997-03-27 Binary-decimal conversion circuit Expired - Fee Related JP3157741B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP07522497A JP3157741B2 (en) 1997-03-27 1997-03-27 Binary-decimal conversion circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07522497A JP3157741B2 (en) 1997-03-27 1997-03-27 Binary-decimal conversion circuit

Publications (2)

Publication Number Publication Date
JPH10271008A JPH10271008A (en) 1998-10-09
JP3157741B2 true JP3157741B2 (en) 2001-04-16

Family

ID=13570051

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07522497A Expired - Fee Related JP3157741B2 (en) 1997-03-27 1997-03-27 Binary-decimal conversion circuit

Country Status (1)

Country Link
JP (1) JP3157741B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012209755A (en) 2011-03-29 2012-10-25 Fujitsu Ltd Arithmetic circuit and binary number conversion method

Also Published As

Publication number Publication date
JPH10271008A (en) 1998-10-09

Similar Documents

Publication Publication Date Title
US4953115A (en) Absolute value calculating circuit having a single adder
US5299145A (en) Adder for reducing carry processing
EP0416869B1 (en) Digital adder/accumulator
JP3157741B2 (en) Binary-decimal conversion circuit
US5875125A (en) X+2X adder with multi-bit generate/propagate circuit
JP3626105B2 (en) Pseudo random signal generation circuit
JPH0342715A (en) Approximated inverse number generation device for division
KR0147942B1 (en) Booths recording circuit in a multiplier
JP3913921B2 (en) Circuit for reciprocal of arbitrary element in finite field
JP2991788B2 (en) Decoder
JPH0467213B2 (en)
JPH01220528A (en) Parity generator
JPH0682395B2 (en) Bit mask generation circuit
JP4230234B2 (en) Parity prediction circuit for full adder
JP3017203B1 (en) Binary-decimal conversion circuit and method
JP3592242B2 (en) Binary-decimal conversion circuit and method
JP2005128832A (en) Data processor and residue arithmetic circuit
JP3936476B2 (en) Code generator
JP2734438B2 (en) Multiplier
JP3241642B2 (en) Binary-decimal conversion circuit
JPH04232529A (en) Unified ratio decoder and method for determining diviser multiple
JP3199196B2 (en) 5-input adder
JP2643576B2 (en) Address generation circuit for fast Fourier transform
JP3012557B2 (en) Decimal-binary conversion circuit
JP3433487B2 (en) Binary to decimal converter

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010116

LAPS Cancellation because of no payment of annual fees