JP2001237710A - Binary number conversion circuit of binarized decimal number - Google Patents

Binary number conversion circuit of binarized decimal number

Info

Publication number
JP2001237710A
JP2001237710A JP2000049500A JP2000049500A JP2001237710A JP 2001237710 A JP2001237710 A JP 2001237710A JP 2000049500 A JP2000049500 A JP 2000049500A JP 2000049500 A JP2000049500 A JP 2000049500A JP 2001237710 A JP2001237710 A JP 2001237710A
Authority
JP
Japan
Prior art keywords
binary
digit
output
coded decimal
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.)
Pending
Application number
JP2000049500A
Other languages
Japanese (ja)
Inventor
Atsushi Naito
淳 内藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Computertechno Ltd
Original Assignee
NEC Computertechno 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 NEC Computertechno Ltd filed Critical NEC Computertechno Ltd
Priority to JP2000049500A priority Critical patent/JP2001237710A/en
Publication of JP2001237710A publication Critical patent/JP2001237710A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To convert individual digits of a binarized decimal number into a binary number at high speed by using a conversion table and to simultaneously add them in parallel by a three input two output addition circuit tree to perform addition processing at a high speed. SOLUTION: The binary number conversion circuit 1 of a binarized decimal number is provided with a binarized decimal data register 10 for storing a binarized decimal number which is to be converted, conversion tables 11 to 18 for storing the binary numbers corresponding to the numerical values of 1 to 9 of the respective digits of the binarized decimal number, a three input two output addition circuit tree 20, which simultaneously reads and partially adds the binary numbers corresponding to the whole digits of the binarized decimal number from the conversion tables 11 to 18, partial sum storage resisters 21 and 22 for storing two outputs partially added by the three input two output addition circuit tree, a binary addition circuit 30, which binary-adds the partial addition outputs of the partial sum registers and a binary data register 40 storing the output of a binary addition circuit.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は2進化10進数の
2進数変換に関し、特に2進化10進数の各位桁の2進
数を記憶したテーブルから変換定数を読み出し、3入力
2出力加算回路木で加算して高速化することに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a binary conversion of a binary-coded decimal number, and in particular, reads a conversion constant from a table storing binary numbers of each digit of the binary-coded decimal number and adds the conversion constant with a three-input two-output addition circuit tree. And speeding up.

【0002】[0002]

【従来の技術】従来の1桁毎に変換する10進2進変換
回路においては、図5に示す方法がある。これはセレク
タ51によって、2進化10進データレジスタ52に格
納されている2進化10進数列を上位から1桁(4ビッ
ト)ごと、セレクタ51で切り出し、2進加算器(3入
力加算器)54の第1入力に入れると共に、前サイクル
で得られた2進加算器54の出力が格納されている2進
レジスタ55の出力をシフタ53で8倍(3ビットシフ
ト)及び2倍(1ビットシフト)して第2入力及び第3
入力にそれぞれ入力し、2進加算することにより、10
進2進変換を行う方式である。3ビットシフト及び2ビ
ットシフトは、2進化10進の1桁を上げる10倍する
操作に当たる。上記の方式は、毎サイクル、2進化10
進数1桁を切り出して前サイクルの結果に桁合わせを行
いつつ加算して2進数に変換しているため、2進数に変
換するために必要な総サイクルが、2進化10進数の桁
数分だけ必要となり、変換する2進化10進数の桁数が
多い場合には処理時間が大きくなってしまうという問題
がある。
2. Description of the Related Art In a conventional decimal-to-binary conversion circuit for converting each digit, there is a method shown in FIG. This is because the selector 51 cuts out the binary-coded decimal sequence stored in the binary-coded decimal data register 52 by one digit (4 bits) from the upper bit by the selector 51 and a binary adder (three-input adder) 54 Of the binary register 55, in which the output of the binary adder 54 obtained in the previous cycle is stored, and the shifter 53 multiplies the output by 8 (3 bit shift) and 2 times (1 bit shift). ) Then the second input and the third
By inputting to each input and performing binary addition, 10
This is a system for performing binary-to-binary conversion. The three-bit shift and the two-bit shift correspond to an operation of increasing the digit of binary-coded decimal by 10 times. The above method is used every cycle,
Since one digit of the binary number is cut out and added to the result of the previous cycle while performing digit alignment and then converted to a binary number, the total cycle required to convert to a binary number is only the number of digits of the binary coded decimal number. This is necessary, and there is a problem that the processing time increases when the number of binary coded decimal numbers to be converted is large.

【0003】更に、2桁毎の10進2進変換回路におい
ては、図6に示す方法がある。この10進2進変換回路
は、2個の2進化10進数を択一的に選択する2進化1
0進データセレクタ61と、2進化10進数を格納して
おく2進化10進データレジスタ62と、サムとキャリ
ーを別々に出力する3入力2出力加算器(CSA:Ca
rry Save Adder)63と3入力2出力加
算器64と、2入力加算器65と、2入力加算器65の
出力の2進数を格納する2進データレジスタ66とから
構成される。この方式では、毎サイクル、10進数2桁
を切り出して前サイクルの結果を100倍(64倍+3
2倍+4倍)したものに変換対象の2桁の2進化10進
数の上位桁を10倍(8倍+2倍)、下位桁をそのまま
(1倍)桁合わせを行いつつ加算して2進数に変換して
いるため、2進数に変換するために必要な総サイクル
が、(10進数の桁数)/2 分だけ必要となる。前述
の1桁毎の処理に比べると2倍の性能を有するが変換す
る2進化10進数の桁数が多い場合にはこれも処理時間
が大きくなってしまうという問題がある。
Further, in a decimal-to-binary conversion circuit for every two digits, there is a method shown in FIG. This decimal-to-binary conversion circuit is a binary-to-binary 1 that selectively selects two binary-coded decimal numbers.
A 0-ary data selector 61, a binary-coded decimal data register 62 for storing a binary-coded decimal number, and a 3-input 2-output adder (CSA: Ca) for separately outputting a sum and a carry
An adder (rry save adder) 63, a three-input two-output adder 64, a two-input adder 65, and a binary data register 66 for storing the binary number of the output of the two-input adder 65. In this method, two digits of a decimal number are cut out every cycle, and the result of the previous cycle is multiplied by 100 (64 times +3).
(2 times + 4 times) the upper digit of the 2-digit binary coded decimal number to be converted to 10 times (8 times + 2 times), and the lower digit as it is (1 time), and adding it to the binary number Because of the conversion, the total number of cycles required to convert to a binary number is (number of decimal digits) / 2 minutes. Although it has twice the performance as compared with the above-described processing for every single digit, if the number of binary coded decimal numbers to be converted is large, this also has a problem that the processing time becomes long.

【0004】更に、特開昭59−177646号公報に
よれば、2進化10進数の内の1桁を選択して、2進形
態データに変換する変換手段を備え、変換手段は2進形
態データを記憶する専用のメモリを読み出すことによっ
て、桁毎に変換して加算する発明が説明されている。こ
の発明では、変換は2進形態データをメモリから読み出
すことによって高速化されるが、1桁毎に変換加算する
ため高速化は十分でない。
Further, according to Japanese Patent Application Laid-Open No. S59-177646, there is provided a conversion means for selecting one digit of a binary-coded decimal number and converting the data into binary data. Has been described in which a dedicated memory for storing .alpha. Is read and converted and added digit by digit. In the present invention, the conversion is speeded up by reading the binary form data from the memory, but the speedup is not sufficient because the conversion and addition are performed digit by digit.

【0005】[0005]

【発明が解決しようとする課題】2進化10進数の桁数
が大きい場合、従来の技術では変換に処理時間がかか
る。それは、2進化10進数を1桁ずつ変換する、ある
いは2桁ずつ変換するためである。そこで、2進化10
進数の各位桁の2進数を記憶するテーブルを読み出すこ
とによって、2進化10進数の各桁を2進数に高速変換
し、3入力2出力加算回路木で並列同時に加算して高速
化する。
In the case where the number of digits of the binary coded decimal number is large, the conventional technique requires a long processing time for conversion. This is for converting binary coded decimal numbers one digit at a time or two digits at a time. Therefore, binary evolution 10
By reading a table that stores a binary number of each digit of a decimal number, each digit of a binary-coded decimal number is converted into a binary number at a high speed, and the three-input two-output addition circuit tree is added simultaneously in parallel to increase the speed.

【0006】この発明は目的は、2進化10進数8桁を
一度に変換する変換テーブルと3入力2出力加算回路木
によって、変換処理時間を短縮することにある。
An object of the present invention is to reduce the conversion processing time by using a conversion table for converting eight digits of a binary-coded decimal number at a time and a 3-input / 2-output addition circuit tree.

【0007】[0007]

【課題を解決するための手段】そのため、この発明の、
2進化10進数を2進数に変換する変換回路において、
被変換数値の2進化10進数を格納する2進化10進デ
ータレジスタと、2進化10進数の各位桁の1から9ま
での数値に対応する2進数を位桁毎に格納する変換テー
ブルと、前記変換テーブルから2進化10進数の全位桁
に対応する2進数を同時に読み出して部分加算する3入
力2出力加算回路木と、前記3入力2出力加算回路の部
分加算した2出力を格納する部分和格納レジスタと、部
分和レジスタの部分加算出力を2進加算する2進加算回
路と、2進加算回路の出力を格納する2進データレジス
タと、を備えることを特徴とする。
SUMMARY OF THE INVENTION Therefore, according to the present invention,
In a conversion circuit for converting a binary-coded decimal number into a binary number,
A binary-coded decimal data register for storing a binary-coded decimal number of a converted numeric value, a conversion table for storing, for each digit, a binary number corresponding to each digit from 1 to 9 of the binary-coded decimal number; A three-input two-output addition circuit tree for simultaneously reading out and partially adding binary numbers corresponding to all digits of a binary-coded decimal number from a conversion table, and a partial sum storing two partially added two outputs of the three-input two-output addition circuit It is characterized by comprising a storage register, a binary addition circuit for performing binary addition on the partial addition output of the partial sum register, and a binary data register for storing the output of the binary addition circuit.

【0008】更に、2進化10進数を2進数に変換する
変換回路において、被変換数値の2進化10進数を格納
する2進化10進データレジスタと、2進化10進数の
各位桁の1から9までの数値に対応する2進数を位桁毎
に格納する変換テーブルと、前記変換テーブルから2進
化10進数の全位桁に対応する2進数を同時に読み出し
て部分加算する3入力2出力加算回路木と、前記3入力
2出力加算回路木の部分加算した2出力を2進加算する
2進加算回路と、2進加算回路の出力を格納する2進デ
ータレジスタと、を備えることを特徴とする。
Further, in a conversion circuit for converting a binary-coded decimal number into a binary number, a binary-coded decimal data register for storing a binary-coded decimal number of a value to be converted, and a digit from 1 to 9 of each digit of the binary-coded decimal number A conversion table for storing a binary number corresponding to the numerical value of each digit, and a three-input two-output adding circuit tree for simultaneously reading out and partially adding binary numbers corresponding to all the digits of the binary-coded decimal number from the conversion table. A three-input two-output addition circuit, comprising: a binary addition circuit for binary-adding two outputs obtained by partially adding the tree; and a binary data register for storing an output of the binary addition circuit.

【0009】更に、前記変換テーブルは、2進化10進
数の最上位桁から最下位桁までのそれぞれに対応する2
進数を格納し、各位桁の2進化10進数値でアクセス
し、前記2進数を読み出すことを特徴とする。
[0009] Further, the conversion table includes a binary code corresponding to each of the most significant digit to the least significant digit of the binary-coded decimal number.
A binary number is stored, accessed by a binary coded decimal value of each digit, and the binary number is read.

【0010】更に、前記3入力2出力加算回路木は、2
進化10進数の全位桁のビット幅を最上位桁のビット幅
と同じにして、前記各位桁の2進数を3入力2出力加算
回路を多段に接続して並列に部分加算し、和成分と桁上
がり成分との2つを出力することを特徴とする。
[0010] Further, the three-input two-output addition circuit tree has two
The bit width of all the digits of the evolved decimal number is made the same as the bit width of the most significant digit, and the binary number of each digit is partially added in parallel by connecting a three-input two-output addition circuit in multiple stages, and the sum component and It is characterized in that two of the carry component are output.

【0011】更に、前記3入力2出力加算回路木は、2
進化10進数の各位桁のビット幅を各位桁の有効ビット
幅にして、前記各位桁の2進数を3入力2出力加算回路
を多段に接続して並列に部分加算して和成分と桁上がり
成分との2つを出力することを特徴とする。
Further, the three-input two-output addition circuit tree has two
The bit width of each digit of the evolved decimal number is set to the effective bit width of each digit, and the binary number of each digit is partially added in parallel by connecting a three-input / two-output addition circuit in multiple stages, so that a sum component and a carry component are obtained. Is output.

【0012】更に、前記部分和格納レジスタは、前記部
分和の和成分に対応する部分和格納レジスタと、前記部
分和の桁上がり成分に対応する部分和レジスタと、でな
ることを特徴とする。
Further, the partial sum storage register comprises a partial sum storage register corresponding to a sum component of the partial sum and a partial sum register corresponding to a carry component of the partial sum.

【0013】[0013]

【発明の実施の形態】次に、この発明の第1の実施の形
態について図面を参照して説明する。図1は実施の形態
を示すブロック図である。図1を参照すると、2進化1
0進数の2進数変換回路1は、2進化10進数000を
格納する2進化10進データレジスタ10と、2進化1
0進数の各位桁の2進数を記憶する1桁目の変換テーブ
ル11から8桁目の変換テーブル18と、変換テーブル
11乃至18から出力された2進数を3入力2出力加算
で並列多段に行う3入力2出力加算回路木20と、3入
力2出力加算回路木20から出力する和成分210と桁
上がり成分301とをそれぞれ格納する部分和(1)格
納レジスタ21及び部分和(2)格納レジスタ22と、
部分和(1)格納レジスタ21及び部分和(2)格納レ
ジスタ22の出力を2進加算して、2進数を出力する2
進加算回路30と、2進加算回路の出力を格納する2進
データレジスタ40と、を備える。
Next, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment. Referring to FIG. 1, binary evolution 1
The 0-ary binary conversion circuit 1 includes a binary-coded decimal data register 10 for storing a binary-coded decimal number 000, and a binary-coded 1
The conversion table 11 for the first digit to the eighth digit for storing the binary number of each digit of the 0-digit number and the conversion table 18 for the eight digits and the binary numbers output from the conversion tables 11 to 18 are added in parallel and multistage by adding three inputs and two outputs. A partial sum (1) storage register 21 and a partial sum (2) storage register for respectively storing a three-input two-output addition circuit tree 20, a sum component 210 and a carry component 301 output from the three-input two-output addition circuit tree 20 22 and
Binary addition of the outputs of the partial sum (1) storage register 21 and the partial sum (2) storage register 22 to output a binary number 2
A binary addition circuit 30 and a binary data register 40 for storing an output of the binary addition circuit are provided.

【0014】この実施の形態の動作を図1を参照して説
明すると、変換対象の2進化10進データ000を2進
化10進データレジスタ10に入力する。2進化10進
データレジスタの最上位桁から1桁毎(1桁は4ビッ
ト)のビットデータ101、102、103、104、
105、106、107、108を対応する変換テーブ
ル11、12、13、14、15、16、17、18に
入力し、10のn乗倍(n=0〜7)された2進数20
1、202、203、204,205、206、20
7、208をそれぞれの変換テーブルから出力する。
(1桁目変換テーブル11は10の7乗倍、2桁目変換
テーブル12は10の6乗倍、3桁目変換テーブル13
は10の5乗倍、4桁目変換テーブル14は10の4乗
倍、5桁目変換テーブル15は10の3乗倍、6桁目変
換テーブル16は10の2乗倍、7桁目変換テーブル1
7は10の1乗倍、8桁目変換テーブル18は10の0
乗倍の2進数を出力する。)各桁を10のn乗倍の2進
数に変換した201〜208を3入力2出力加算回路木
20へ全ビット並列入力し、部分和210,211を得
る。この和成分と桁上がり成分からなる2つの部分和2
10,211を部分和格納レジスタ21,22に格納す
る。部分和格納レジスタ21,22の出力300、30
1を2進加算器30の2つの入力に入力し加算した2進
加算器30の出力400を2進データレジスタ40に入
力し、2進化10進数の2進変換した2進数を得るす。
The operation of this embodiment will be described with reference to FIG. 1. Binary-coded decimal data 000 to be converted is input to binary-coded decimal data register 10. Bit data 101, 102, 103, 104 for each digit (one digit is 4 bits) from the most significant digit of the binary-coded decimal data register
105, 106, 107, and 108 are input to the corresponding conversion tables 11, 12, 13, 14, 15, 16, 17, and 18, and a binary number 20 multiplied by 10 to the nth power (n = 0 to 7)
1, 202, 203, 204, 205, 206, 20
7 and 208 are output from the respective conversion tables.
(The first digit conversion table 11 is 10 7 times, the second digit conversion table 12 is 10 6 times, and the third digit conversion table 13
Is the fifth power of 10; the fourth digit conversion table 14 is the fourth power of 10; the fifth digit conversion table 15 is the third power of 10; the sixth digit conversion table 16 is the second power of 10; Table 1
7 is a power of 10 and the 8th digit conversion table 18 is 0 of 10
Outputs a multiplied binary number. ) All the bits 201 to 208 obtained by converting each digit into a binary number multiplied by 10 to the power of n are input to the three-input two-output addition circuit tree 20 in parallel with all bits, and partial sums 210 and 211 are obtained. Two partial sums 2 composed of the sum component and the carry component
10 and 211 are stored in the partial sum storage registers 21 and 22. Outputs 300 and 30 of partial sum storage registers 21 and 22
1 is input to the two inputs of the binary adder 30, and the added output 400 of the binary adder 30 is input to the binary data register 40 to obtain a binary converted from a binary-coded decimal number.

【0015】各位桁の変換テーブル11乃至18を示す
図3(a)乃至図3(h)を参照すると、変換される2
進化10進データの上位から1桁目を10の7乗倍、2
桁目を10の6乗倍、3桁目を10の5乗倍、4桁目を
10の4乗倍、5桁目を10の3乗倍、6桁目を10の
2乗倍、7桁目を10の1乗倍、8桁目を10の0乗倍
の2進数を出力するテーブルであることを示している。
このテーブルから出力される2進数の全ビットをすべて
並列加算することで8桁の10進数を一度に2進数に変
換することができる。
Referring to FIGS. 3A to 3H showing the conversion tables 11 to 18 of the respective digits,
The first digit from the top of the evolutionary decimal data is multiplied by 10 7, 2
Digit 10 times 6 times, 3rd digit 10 5 times, 4th digit 10 4 times, 5th digit 10 3 times, 6th digit 10 2 times, 7 This shows that the table outputs a binary number whose first digit is 10 times and the eighth digit is 10 times.
An 8-digit decimal number can be converted into a binary number at a time by adding all the bits of the binary number output from this table in parallel.

【0016】次に、この実施の形態の動作について、図
4を参照して具体的に説明する。図4は2進化10進デ
ータ”12345678”を2進データに変換する場合
の演算動作を、図1を元に各構成回路の動作を説明する
図である。変換対象の8バイトの2進化10進データ0
00を2進化10進データレジスタ10にロードする。
次に、最上位桁から1桁毎(1桁は4ビット)に10
1、102、103、104、105、106、10
7、108の4ビットデータを対応する変換テーブル1
1、12、13、14、15、16、17、18に入力
し、10のn乗倍された2進数の27ビットデータ20
1、24ビットデータ202、20ビットデータ20
3、17ビットデータ204,14ビットデータ20
5、10ビットデータ206、7ビットデータ207、
4ビットデータ208をそれぞれの変換テーブルから出
力する。その出力されたデータ201乃至データ208
を3入力2出力加算回路木20に全て並列に入力し、和
成分と桁上がり成分の2つの部分和210,211を得
る。この2つの部分和を部分和格納レジスタ21、22
に格納する。部分和格納レジスタ21,22の出力30
0、301を2進加算器30で加算し、加算結果400
を得る。この加算結果を2進データレジスタ40に格納
することで8桁の2進化10進を一度に2進数に変換す
ることができる。以上の説明から、2進化10進デー
タ”12345678”を2進データ”1011110
00110000101001110”に変換する動作
の高速化を実現する。
Next, the operation of this embodiment will be specifically described with reference to FIG. FIG. 4 is a diagram for explaining the operation of converting the binary-coded decimal data "12345678" into binary data and the operation of each component circuit based on FIG. 8-byte binary-coded decimal data 0 to be converted
00 is loaded into the binary-coded decimal data register 10.
Next, 10 digits are set for each digit from the most significant digit (one digit is 4 bits).
1, 102, 103, 104, 105, 106, 10
Conversion table 1 corresponding to 4-bit data 7 and 108
1, 12, 13, 14, 15, 16, 17, 18 and 27-bit binary data 20 multiplied by 10 n
1, 24-bit data 202, 20-bit data 20
3, 17-bit data 204, 14-bit data 20
5, 10-bit data 206, 7-bit data 207,
The 4-bit data 208 is output from each conversion table. The output data 201 to data 208
Are input in parallel to the three-input two-output addition circuit tree 20 to obtain two partial sums 210 and 211 of a sum component and a carry component. The two partial sums are stored in the partial sum storage registers 21 and 22.
To be stored. Output 30 of partial sum storage registers 21 and 22
0 and 301 are added by the binary adder 30, and the addition result 400
Get. By storing the addition result in the binary data register 40, the 8-digit binary-coded decimal can be converted into a binary number at a time. From the above description, the binary-coded decimal data “12345678” is converted to the binary data “1011110”.
The speed of the operation for converting to "001100100100110" is realized.

【0017】次に、第2の実施の形態を説明する。図2
を参照すると、2進化10進数の2進数変換回路2は第
1の実施の形態に対して、部分和(1)レジスタ21及
び部分和(2)レジスタ22を除き、3入力2出力加算
回路木20の2つの出力を直接、2進加算回路30に入
力する変形を施す。部分和(1)レジスタ21及び部分
和(2)レジスタ22に格納するタイミングを省くこと
により、第1の実施の形態より高速化が更に図られるこ
とは明らかである。
Next, a second embodiment will be described. FIG.
, The binary conversion circuit 2 of the binary-coded decimal system is different from the first embodiment in that a 3-input 2-output addition circuit tree is provided except for the partial sum (1) register 21 and the partial sum (2) register 22. A modification in which the two outputs 20 are directly input to the binary addition circuit 30 is performed. Obviously, by omitting the timing of storing the partial sum (1) register 21 and the partial sum (2) register 22, the speed can be further increased as compared with the first embodiment.

【0018】更に、変換テーブル11乃至変換テーブル
18をそれぞれの位桁の2進数値の有効ビット幅をデー
タ長とすること、あるいは、最高位桁の2進数値の有効
ビット幅を全位桁のデータ長とすること、で3入力2出
力加算回路木30のゲート数を節減する変形を施すこと
ができることは明らかである。
Further, the conversion tables 11 to 18 may use the effective bit width of the binary value of each digit as the data length, or the effective bit width of the binary value of the highest digit may be used as the data length of all digits. Obviously, the data length can be modified to reduce the number of gates of the 3-input / 2-output addition circuit tree 30.

【0019】[0019]

【発明の効果】以上の説明のよれば、この発明は、8桁
の2進化10進データを一度に2進データに変換するこ
とにより、従来の1桁ずつあるいは2桁ずつ変換した演
算サイクルが2回のサイクルないしは1回の演算サイク
ルで2進数に変換できるので、変換速度を向上させる効
果がある。
As described above, according to the present invention, by converting 8-digit binary-coded decimal data into binary data at a time, the conventional operation cycle of converting one digit or two digits at a time can be realized. Since conversion into a binary number can be performed in two cycles or one operation cycle, there is an effect of improving the conversion speed.

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

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

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

【図3】図1及び図2の変換テーブルに記憶する2進数
値を説明する図である。
FIG. 3 is a diagram illustrating binary values stored in the conversion tables of FIGS. 1 and 2;

【図4】第1の実施の形態の動作を説明する図である。FIG. 4 is a diagram illustrating the operation of the first embodiment.

【図5】従来技術を説明する図である。FIG. 5 is a diagram illustrating a conventional technique.

【図6】従来技術を説明する図である。FIG. 6 is a diagram illustrating a conventional technique.

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

1 2進化10進数の2進数変換回路 2 2進化10進数の2進数変換回路 10 10進データレジスタ 11乃至18 変換テーブル 20 3入力2出力加算回路木 21 部分和(1)格納レジスタ 22 部分和(2)格納レジスタ 30 2進加算器 40 2進データレジスタ Reference Signs List 1 binary-coded decimal binary conversion circuit 2 binary-coded decimal binary conversion circuit 10 decimal data register 11 to 18 conversion table 20 3-input / 2-output addition circuit tree 21 partial sum (1) storage register 22 partial sum ( 2) Storage register 30 Binary adder 40 Binary data register

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 2進化10進数を2進数に変換する変換
回路において、 被変換数値の2進化10進数を格納する2進化10進デ
ータレジスタと、 2進化10進数の各位桁の1から9までの数値に対応す
る2進数を位桁毎に格納する変換テーブルと、 前記変換テーブルから2進化10進数の全位桁に対応す
る2進数を同時に読み出して部分加算する3入力2出力
加算回路木と、 前記3入力2出力加算回路の部分加算した2出力を格納
する部分和格納レジスタと、 部分和レジスタの部分加算出力を2進加算する2進加算
回路と、 2進加算回路の出力を格納する2進データレジスタと、 を備えることを特徴とする2進化10進数の2進変換回
路。
1. A conversion circuit for converting a binary-coded decimal number to a binary number, comprising: a binary-coded decimal data register for storing a binary-coded decimal number of a value to be converted; A conversion table for storing a binary number corresponding to each digit of each digit, and a three-input two-output addition circuit tree for simultaneously reading out and partially adding binary numbers corresponding to all digits of a binary-coded decimal number from the conversion table. A partial sum storage register for storing two outputs obtained by partial addition of the three-input two-output addition circuit; a binary addition circuit for performing binary addition on the partial addition output of the partial sum register; and an output of the binary addition circuit. A binary data register, comprising: a binary conversion circuit for converting a binary number into a decimal number.
【請求項2】 2進化10進数を2進数に変換する変換
回路において、 被変換数値の2進化10進数を格納する2進化10進デ
ータレジスタと、 2進化10進数の各位桁の1から9までの数値に対応す
る2進数を位桁毎に格納する変換テーブルと、 前記変換テーブルから2進化10進数の全位桁に対応す
る2進数を同時に読み出して部分加算する3入力2出力
加算回路木と、 前記3入力2出力加算回路木の部分加算した2出力を2
進加算する2進加算回路と、 2進加算回路の出力を格納する2進データレジスタと、 を備えることを特徴とする2進化10進数の2進変換回
路。
2. A conversion circuit for converting a binary-coded decimal number to a binary number, comprising: a binary-coded decimal data register for storing a binary-coded decimal number of a value to be converted; and a digit from 1 to 9 for each digit of the binary-coded decimal number. A conversion table for storing a binary number corresponding to each digit of each digit, and a three-input two-output addition circuit tree for simultaneously reading out and partially adding binary numbers corresponding to all digits of a binary-coded decimal number from the conversion table. The two outputs obtained by partially adding the three-input two-output addition circuit tree are represented by 2
A binary conversion circuit for converting a binary number to a decimal number, comprising: a binary addition circuit for performing binary addition; and a binary data register for storing an output of the binary addition circuit.
【請求項3】 前記変換テーブルは、 2進化10進数の最上位桁から最下位桁までのそれぞれ
に対応する2進数を格納し、各位桁の2進化10進数値
でアクセスし、前記2進数を読み出すことを特徴とする
請求項1及び請求項2記載の2進化10進数の2進数変
換回路。
3. The conversion table stores a binary number corresponding to each of a most significant digit to a least significant digit of a binary-coded decimal number, accesses the binary-coded decimal number using a binary-coded decimal value of each digit, and 3. A binary conversion circuit according to claim 1, wherein said binary number is read.
【請求項4】 前記3入力2出力加算回路木は、 2進化10進数の全位桁のビット幅を最上位桁のビット
幅と同じにして、前記各位桁の2進数を3入力2出力加
算回路を多段に接続して並列に部分加算し、和成分と桁
上がり成分との2つを出力することを特徴とする請求項
1及び請求項2記載の2進化10進数の2進数変換回
路。
4. The three-input two-output addition circuit tree, wherein the bit width of all the digits of the binary-coded decimal number is the same as the bit width of the most significant digit, and the binary number of each digit is added to the three-input two-output number. 3. The binary conversion circuit according to claim 1, wherein the circuits are connected in multiple stages and partial addition is performed in parallel to output two of a sum component and a carry component.
【請求項5】 前記3入力2出力加算回路木は、 2進化10進数の各位桁のビット幅を各位桁の有効ビッ
ト幅にして、前記各位桁の2進数を3入力2出力加算回
路を多段に接続して並列に部分加算して和成分と桁上が
り成分との2つを出力することを特徴とする請求項1及
び請求項2記載の2進化10進数の2進数変換回路。
5. The three-input two-output addition circuit tree, wherein the bit width of each digit of the binary-coded decimal number is set to an effective bit width of each digit, and the binary number of each digit is multi-staged by a three-input two-output addition circuit. 3. The binary conversion circuit according to claim 1, further comprising: a partial conversion circuit for performing partial addition in parallel to output a sum component and a carry component.
【請求項6】 前記部分和格納レジスタは、 前記部分和の和成分に対応する部分和格納レジスタと、 前記部分和の桁上がり成分に対応する部分和レジスタ
と、 でなることを特徴とする請求項1記載の部分和レジス
タ。
6. The partial sum storage register comprises: a partial sum storage register corresponding to a sum component of the partial sum; and a partial sum register corresponding to a carry component of the partial sum. Item 2. The partial sum register according to Item 1.
JP2000049500A 2000-02-25 2000-02-25 Binary number conversion circuit of binarized decimal number Pending JP2001237710A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000049500A JP2001237710A (en) 2000-02-25 2000-02-25 Binary number conversion circuit of binarized decimal number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000049500A JP2001237710A (en) 2000-02-25 2000-02-25 Binary number conversion circuit of binarized decimal number

Publications (1)

Publication Number Publication Date
JP2001237710A true JP2001237710A (en) 2001-08-31

Family

ID=18571434

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000049500A Pending JP2001237710A (en) 2000-02-25 2000-02-25 Binary number conversion circuit of binarized decimal number

Country Status (1)

Country Link
JP (1) JP2001237710A (en)

Similar Documents

Publication Publication Date Title
US4611305A (en) Digital signal processing circuit
US5617089A (en) Huffman code decoding circuit
US5177703A (en) Division circuit using higher radices
US3882483A (en) Code converter system and method
JP2001237710A (en) Binary number conversion circuit of binarized decimal number
JP3159349B2 (en) Addition decoding device
JPH07202714A (en) Parallel/series data converter circuit
US4325056A (en) BCD To binary converter
KR0147942B1 (en) Booths recording circuit in a multiplier
US6578062B1 (en) Method and circuit for digital division
JP2991788B2 (en) Decoder
KR880001011B1 (en) Digital signal process method
JPH06301711A (en) High speed hadamard converter
JPH05224888A (en) Multiplication circuit for decimal point position varying data
US4141077A (en) Method for dividing two numbers and device for effecting same
JPH0471228B2 (en)
JP3433487B2 (en) Binary to decimal converter
JP3012557B2 (en) Decimal-binary conversion circuit
JPH04263317A (en) Arithmetic device
JP2830075B2 (en) Binary to decimal converter
SU739523A1 (en) Binary decimal-to-binary converter
JP3645819B2 (en) Digital normalization circuit
JP2004295345A (en) Arithmetic unit and multiplying unit
JPH10254680A (en) Square circuit
JPH0997165A (en) Pure binary conversion circuit for binary-coded decimal and binary-coded decimal conversion circuit for pure binary

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030715