JPH0997165A - Pure binary conversion circuit for binary-coded decimal and binary-coded decimal conversion circuit for pure binary - Google Patents

Pure binary conversion circuit for binary-coded decimal and binary-coded decimal conversion circuit for pure binary

Info

Publication number
JPH0997165A
JPH0997165A JP7276469A JP27646995A JPH0997165A JP H0997165 A JPH0997165 A JP H0997165A JP 7276469 A JP7276469 A JP 7276469A JP 27646995 A JP27646995 A JP 27646995A JP H0997165 A JPH0997165 A JP H0997165A
Authority
JP
Japan
Prior art keywords
binary
data
conversion circuit
bit
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
JP7276469A
Other languages
Japanese (ja)
Inventor
Ayaka Iwasa
綾香 岩佐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
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 Corp filed Critical NEC Corp
Priority to JP7276469A priority Critical patent/JPH0997165A/en
Publication of JPH0997165A publication Critical patent/JPH0997165A/en
Pending legal-status Critical Current

Links

Landscapes

  • Logic Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To perform mutual conversion between 8-bit pure binary data(BIN) and binary-coded decimal data(BCD) at a high speed with a low voltage. SOLUTION: The pure binary conversion circuit for binary-coded decimal includes a conversion circuit 4 which converts upper four bits of an inputted 8-bit BCD into a 10-fold 8-bit BIN, and this conversion result and lower four bits of the inputted 8-bit BCD are added. Meanwhile, a binary-coded decimal conversion circuit for pure binary includes a first conversion circuit which converts upper four bits of an inputted 8-bit BIN into a 16-fold 8-bit BCD and a second conversion circuit which converts lower four bits into an 8-bit BCD, and respective upper four bits and lower four bits of these conversion results are added. Since the conversion circuit 4, etc., consist of combinations of logic circuits of about several tens of gates, quick conversion is realized.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、低消費電力で動作
するコンピュータ装置に好適なデータ変換回路に関し、
特に8ビットからなる2進化10進数(binary coded d
ecimal)データ(以下「BCDデータ」ともいう)の純
2進数(pure binary numeral)データ(以下「BIN
データ」ともいう)への変換回路と、それとは逆の8ビ
ットからなるBINデータのBCDデータへの変換回路
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data conversion circuit suitable for a computer device operating with low power consumption,
In particular, binary coded d consisting of 8 bits
ecimal) data (hereinafter also referred to as "BCD data") pure binary numeral data (hereinafter "BIN"
(Also referred to as "data") and a conversion circuit for converting BIN data consisting of 8 bits, which is the opposite of that, to BCD data.

【0002】[0002]

【従来の技術】BCDデータからBINデータに変換す
る従来の方式としては、変換テーブルROMを用いる方
式、シフトレジスタを用いる方式等が提案されている。
2. Description of the Related Art As a conventional method for converting BCD data into BIN data, a method using a conversion table ROM, a method using a shift register, etc. have been proposed.

【0003】図9は、従来の変換テーブルROMを用い
る方式を説明するための図である。
FIG. 9 is a diagram for explaining a method using a conventional conversion table ROM.

【0004】図9を参照すると、変換テーブルROMを
用いる方式としては、例えば変換前のBCDデータをア
ドレスとして入力し、その出力結果を変換後のBINデ
ータとして得るものがある。
Referring to FIG. 9, as a method of using the conversion table ROM, there is, for example, one in which BCD data before conversion is input as an address and an output result thereof is obtained as BIN data after conversion.

【0005】図10は、従来のシフトレジスタを用いる
方式を説明するための図である。
FIG. 10 is a diagram for explaining a conventional system using a shift register.

【0006】図10を参照すると、例えば特開昭57−
81723号公報に開示されたシフトレジスタを用いる
方式では、8ビットのBCDデータがシフト機能付き入
力データレジスタ38に入力される。1ビット右シフト
された後のデータは、4ビット単位に分けられ、入力さ
れた4ビットデータが8以上のときには入力4ビットに
対して3を減じ、8未満のときには何もせずに出力する
チェック回路CH1、CH0によって変換される。変換
された結果は、出力データレジスタ39に格納される。
このようなシフトと変換を入力されたBCDデータのビ
ット数分だけ繰り返す。
Referring to FIG. 10, for example, Japanese Patent Laid-Open No. 57-57
In the method using the shift register disclosed in Japanese Patent No. 81723, 8-bit BCD data is input to the input data register 38 with a shift function. The data after 1-bit right shift is divided into 4-bit units. When the input 4-bit data is 8 or more, 3 is subtracted from the input 4 bits, and when it is less than 8, it is output without doing anything. It is converted by the circuits CH1 and CH0. The converted result is stored in the output data register 39.
Such shift and conversion are repeated for the number of bits of the input BCD data.

【0007】すなわち、8ビットからなるBCDデータ
であれば、シフトと変換を8回繰り返した後の上位8ビ
ットデータであるP1、P0が変換後のBINデータと
なる。
That is, in the case of 8-bit BCD data, the high-order 8-bit data P1 and P0 after the shift and conversion are repeated eight times become the converted BIN data.

【0008】一方、BINデータからBCDデータに変
換する従来の方式についても、前述したBCDデータか
らBINデータへの変換と同様に、変換テーブルROM
を用いる方式、シフトレジスタを用いる方式等が提案さ
れている。
On the other hand, also in the conventional method of converting BIN data to BCD data, the conversion table ROM is used in the same manner as the conversion from BCD data to BIN data described above.
A method using a shift register, a method using a shift register, and the like have been proposed.

【0009】図11は、従来の変換テーブルROMを用
いる方式を説明するための図である。
FIG. 11 is a diagram for explaining a method using a conventional conversion table ROM.

【0010】図11を参照すると、変換テーブルROM
を用いる方式としては、例えば変換前のBINデータを
アドレスとして入力し、その出力結果を変換後のBCD
データとして得るものがある。
Referring to FIG. 11, a conversion table ROM
As a method of using, for example, BIN data before conversion is input as an address and the output result is converted to BCD
There is something to get as data.

【0011】図12は、従来のシフトレジスタを用いる
方式を説明するための図である。
FIG. 12 is a diagram for explaining a conventional method using a shift register.

【0012】図12を参照すると、例えば特開昭59−
168543号公報に開示されたシフトレジスタを用い
る方式では、制御器43からの制御信号(入力ラッチ信
号、シフト信号、クリア信号)に基づき、まず8ビット
のBINデータがシフトレジスタ40に入力される。シ
フトレジスタ40の最上位ビット(MSB)は10進加
算器42のキャリーイン端子に接続され、一時記憶レジ
スタ41の出力は10進加算器42の2入力端子に並列
に接続されている。10進加算器42の出力を一時記憶
レジスタ41に戻し、BINデータの桁数分だけシフト
レジスタ40を1ビットずつシフトすることにより、変
換後のBCDデータを得ることができる。
Referring to FIG. 12, for example, Japanese Patent Laid-Open No. 59-59
In the method using the shift register disclosed in Japanese Patent No. 168543, 8-bit BIN data is first input to the shift register 40 based on a control signal (input latch signal, shift signal, clear signal) from the controller 43. The most significant bit (MSB) of the shift register 40 is connected to the carry-in terminal of the decimal adder 42, and the output of the temporary storage register 41 is connected in parallel to the two input terminals of the decimal adder 42. The converted BCD data can be obtained by returning the output of the decimal adder 42 to the temporary storage register 41 and shifting the shift register 40 bit by bit by the number of digits of the BIN data.

【0013】[0013]

【発明が解決しようとする課題】しかしながら、BCD
データからBINデータに変換する従来の方式及びBI
NデータからBCDデータに変換する従来の方式では、
動作スピードが遅いという問題がある。
However, the BCD
Conventional method for converting data to BIN data and BI
In the conventional method of converting N data to BCD data,
There is a problem that the operation speed is slow.

【0014】以下、変換テーブルROMを用いる方式と
シフトレジスタを用いる方式とに分けて説明する。
The method using the conversion table ROM and the method using the shift register will be separately described below.

【0015】まず、ROMを用いる方式では、動作スピ
ードが遅く、特に低電圧動作時のスピードダウンが顕著
になるという問題がある。
First, in the method using the ROM, there is a problem that the operation speed is slow and the speed down becomes remarkable especially at the low voltage operation.

【0016】その理由は、プリチャージ後の電荷の放電
時間がROMの読み出し時間を規定し、そのような放電
に時間がかかるためである。特に低電圧時には充電され
た電荷の放電時間がさらに長くなり、ROMの読み出し
はさらに遅くなる。
The reason is that the discharge time of the charges after precharge defines the read time of the ROM, and such discharge takes time. In particular, when the voltage is low, the discharge time of the charged charges becomes longer, and the reading of the ROM becomes even slower.

【0017】一方、シフトレジスタを用いる方式では、
変換テーブルROMを用いる方式と比べてさらに動作ス
ピードが遅くなるという問題がある。
On the other hand, in the system using the shift register,
There is a problem that the operation speed becomes slower than that of the method using the conversion table ROM.

【0018】その理由は、前述した通り、変換を終了す
るのに8ビットのデータでは8回のシフト動作を必要と
するためである。
The reason is that, as described above, 8-bit data requires eight shift operations to complete the conversion.

【0019】従って、本発明は前記問題点に鑑みてなさ
れたものであり、低電圧下においても、8ビットのBC
DデータからBINデータへの変換及び8ビットのBI
NデータからBCDデータへの変換を高速に行うことが
できる簡易な構成からなる変換回路を提供することを目
的とする。
Therefore, the present invention has been made in view of the above problems, and the 8-bit BC is used even under a low voltage.
Conversion from D data to BIN data and 8-bit BI
It is an object of the present invention to provide a conversion circuit having a simple configuration capable of converting N data to BCD data at high speed.

【0020】[0020]

【課題を解決するための手段】前記目的を達成するため
本発明は、8ビットの2進化10進数データを入力と
し、8ビットの純2進数データを出力する2進化10進
数の純2進数変換回路において、前記入力された8ビッ
トの2進化10進数データの上位4ビットデータを10
倍した8ビットの純2進数データに変換する変換回路
と、該変換回路によって変換された前記8ビットの純2
進数データと、前記入力された8ビットの2進化10進
数データの下位4ビットデータと、を加算する加算器
と、を含むことを特徴とする2進化10進数の純2進数
変換回路を提供する。
In order to achieve the above object, the present invention is a binary-coded binary conversion of binary-coded decimal numbers which inputs 8-bit binary coded decimal data and outputs 8-bit binary coded binary data. In the circuit, the upper 4-bit data of the input 8-bit binary-coded decimal number data is converted into 10-bit data.
A conversion circuit for converting to doubled 8-bit pure binary data, and the 8-bit pure 2 converted by the conversion circuit
Provided is a pure binary conversion circuit for a binary coded decimal number, comprising: an adder for adding the binary coded data and the lower 4-bit data of the input 8-bit binary coded decimal number data. .

【0021】また、8ビットの純2進数データを入力と
し、8ビットの2進化10進数データを出力する純2進
数の2進化10進数変換回路において、前記入力された
8ビットの純2進数データの上位4ビットデータを16
倍した8ビットの2進化10進数データに変換する第1
の変換回路と、前記入力された8ビットの純2進数デー
タの下位4ビットデータを8ビットの2進化10進数デ
ータに変換する第2の変換回路と、前記第1の変換回路
の出力データの下位4ビットデータと、前記第2の変換
回路の出力データの下位4ビットデータと、を加算し、
4ビットの2進化10進数データとキャリー信号とを出
力する第1の10進加算器と、前記第1の10進加算器
から出力される前記キャリー信号と、前記第1の変換回
路の出力データの上位4ビットデータと、前記第2の変
換回路の出力データの上位4ビットデータと、を加算す
る第2の10進加算器と、を含むことを特徴とする純2
進数の2進化10進数変換回路を提供する。
In addition, in the binary-coded binary-coded decimal conversion circuit for inputting 8-bit pure binary-coded data and outputting 8-bit binary-coded decimal-coded data, the input 8-bit pure binary-coded data is input. 16-bit upper 4-bit data
First conversion to doubled 8-bit binary coded decimal data
Of the output data of the first conversion circuit, and a second conversion circuit for converting the lower 4-bit data of the input 8-bit pure binary number data into 8-bit binary coded decimal number data. The lower 4 bit data and the lower 4 bit data of the output data of the second conversion circuit are added,
A first decimal adder for outputting 4-bit binary coded decimal data and a carry signal, the carry signal output from the first decimal adder, and output data of the first conversion circuit Second decimal adder for adding the upper 4-bit data of the second conversion circuit and the upper 4-bit data of the output data of the second conversion circuit.
A binary evolution decimal conversion circuit is provided.

【0022】なお、本発明の2進化10進数の純2進数
変換回路及び純2進数の2進化10進数変換回路におい
ては、前記変換回路、前記第1の変換回路及び前記第2
の変換回路は論理ゲート回路又はPLAによって構成す
るとよい。
In the binary-coded decimal pure binary conversion circuit and the binary-coded binary coded decimal conversion circuit of the present invention, the conversion circuit, the first conversion circuit, and the second conversion circuit are provided.
The conversion circuit of 1 may be configured by a logic gate circuit or PLA.

【0023】本発明の2進化10進数の純2進数変換回
路及び純2進数の2進化10進数変換回路は、数十ゲー
ト程度の論理回路の組み合わせからなる変換回路と加算
器のみで実現することができるため、従来のシフトレジ
スタを用いる方式に比べて高速な変換を行うことがで
き、また従来の変換テーブルROMを用いる方式に比べ
ても低電圧下での動作速度の低下がきわめて少ない。
The binary coded binary conversion circuit and the binary coded binary conversion circuit of the present invention are realized only by a conversion circuit and an adder which are composed of a combination of logic circuits of about several tens of gates. Therefore, it is possible to perform conversion at a higher speed than the conventional method using the shift register, and the operation speed under the low voltage is not much lower than the conventional method using the conversion table ROM.

【0024】[0024]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

【0025】[0025]

【実施形態1】まず、本発明の第1の実施形態に係る2
進化10進数の純2進数変換回路について説明する。
[First Embodiment] First, a second embodiment of the present invention will be described.
A pure binary number conversion circuit for an evolved decimal number will be described.

【0026】はじめに、本実施形態に係る2進化10進
数の純2進数変換回路の原理を説明する。
First, the principle of the binary coded decimal binary conversion circuit according to this embodiment will be described.

【0027】8ビットからなる2進化10進数データ
(BCDデータ)が入力される場合には、入力されたB
CDデータの下位4ビットデータは0ないし9hexの値
をとるため、下位4ビットデータについては何ら変換す
る必要がない。
When binary-coded decimal number data (BCD data) consisting of 8 bits is input, the input B
Since the lower 4-bit data of the CD data has a value of 0 to 9 hex, it is not necessary to convert the lower 4-bit data.

【0028】一方、入力されたBCDデータの上位4ビ
ットデータはBCDデータの10の位になるため、BI
Nデータに変換するには10倍しなければならない。し
かし、この変換はBCDの1桁に対して、すなわち0な
いし9の値に対してのみ行えば足りることから、後述す
る単純な論理ゲート回路の組み合わせ又はビット数の少
ないPLAで簡易に実現することができる。
On the other hand, since the upper 4-bit data of the input BCD data is the tens digit of the BCD data, BI
To convert it to N data, it must be multiplied by 10. However, since this conversion only needs to be performed for one digit of BCD, that is, for a value of 0 to 9, it can be easily realized by a combination of simple logic gate circuits described later or a PLA having a small number of bits. You can

【0029】なお、このような変換により得られた結果
と前述した下位4ビットデータとを単純に2進数加算す
ることにより、BCDデータから純2進数データ(BI
Nデータ)への変換を完了することができる。
The result obtained by such conversion and the above-mentioned lower 4-bit data are simply binary-added to convert the BCD data into pure binary data (BI).
Conversion to N data) can be completed.

【0030】このように、入力されるBCDデータを8
ビットに限定し、4ビット単位でデータを扱うようにす
ることにより、きわめて単純な回路構成でBCDデータ
からBINデータへの変換を実現することができる。
In this way, the input BCD data is converted into 8
By limiting the data to bits and handling the data in units of 4 bits, the conversion from BCD data to BIN data can be realized with an extremely simple circuit configuration.

【0031】図1は、本発明の第1の実施形態に係る2
進化10進数の純2進数変換回路の構成を説明するため
の図である。
FIG. 1 shows a second embodiment of the present invention.
It is a figure for demonstrating the structure of the evolved decimal number pure binary number conversion circuit.

【0032】図1を参照すると、本実施形態に係る2進
化10進数の純2進数変換回路は、8ビットの入力デー
タバス1と、入力データの上位4ビット側のデータバス
2と、入力データの下位4ビット側のデータバス3と、
4ビットデータを図2に示した変換対応表に従って8ビ
ットデータに変換する変換回路4と、変換回路4から出
力される8ビットデータと入力データの下位4ビットデ
ータとを加算する加算器5と、加算器5の出力データバ
ス6と、から構成される。
Referring to FIG. 1, a binary-coded decimal binary conversion circuit according to the present embodiment has an 8-bit input data bus 1, a data bus 2 on the upper 4-bit side of the input data, and an input data bus. Data bus 3 on the lower 4 bits of
A conversion circuit 4 for converting 4-bit data into 8-bit data according to the conversion correspondence table shown in FIG. 2, and an adder 5 for adding 8-bit data output from the conversion circuit 4 and lower 4-bit data of input data. , And an output data bus 6 of the adder 5.

【0033】次に、本実施形態に係る2進化10進数の
純2進数変換回路の動作を説明する。
Next, the operation of the binary coded decimal binary conversion circuit according to this embodiment will be described.

【0034】入力データバス1から入力された8ビット
のBCDデータの上位4ビットデータは、変換回路4に
よって8ビットデータに変換される。
The upper 4-bit data of the 8-bit BCD data input from the input data bus 1 is converted into 8-bit data by the conversion circuit 4.

【0035】図2は、図1に示した本実施形態に係る2
進化10進数の純2進数変換回路の変換回路4の変換対
応表である。
FIG. 2 shows a second embodiment of the present invention shown in FIG.
It is a conversion correspondence table of the conversion circuit 4 of the evolved decimal number pure binary number conversion circuit.

【0036】図2に示すように、変換回路4は、データ
バス2から入力された4ビットデータの示す値を10倍
した値に変換する。例えば、入力された4ビットデータ
が“0011”である場合には、これを10倍した値
(すなわち30)の2進数表示である“0001111
0”を出力する。このような変換により、BCDデータ
の10の位に相当する値の2進数変換値が得られる。
As shown in FIG. 2, the conversion circuit 4 converts the value represented by the 4-bit data input from the data bus 2 into a value multiplied by 10. For example, when the input 4-bit data is “0011”, a value obtained by multiplying this by 10 (that is, 30) is a binary number display “0001111”.
0 "is output. By such conversion, a binary conversion value of a value corresponding to the tens digit of the BCD data is obtained.

【0037】この得られた2進数変換値と、BCDデー
タの1の位に相当するデータバス3から入力される下位
4ビットデータが示す値と、を加算器5によって2進数
加算することにより、求める2進数変換値を得ることが
できる。
The obtained binary conversion value and the value represented by the lower 4-bit data input from the data bus 3 corresponding to the ones digit of the BCD data are binary-added by the adder 5, The desired binary conversion value can be obtained.

【0038】なお、入力データはBCDデータであるた
め、変換回路4に入力される4ビットデータの範囲は0
ないし9に限定され、それ以外については考慮する必要
がない。
Since the input data is BCD data, the range of 4-bit data input to the conversion circuit 4 is 0.
It is limited to Nos. 9 to 9 and the others need not be considered.

【0039】図3は、図2に示した変換対応表に従った
変換を実現するための変換回路4の具体的な構成を説明
するための図である。
FIG. 3 is a diagram for explaining a specific configuration of the conversion circuit 4 for realizing conversion according to the conversion correspondence table shown in FIG.

【0040】図3に示すように、変換回路4を論理ゲー
ト回路で構成する場合には、4ビット分の入力端子7か
ら信号を入力し、所定個のインバータとNANDゲート
とを通過させた後、8ビット分の出力端子8から変換後
の信号を出力させるようにする。
As shown in FIG. 3, when the conversion circuit 4 is formed of a logic gate circuit, a signal is input from the input terminal 7 for 4 bits, and after passing through a predetermined number of inverters and NAND gates. , The output signal 8 for 8 bits outputs the converted signal.

【0041】図2及び図3を参照して、変換回路4の構
成及び動作を説明する。
The configuration and operation of the conversion circuit 4 will be described with reference to FIGS.

【0042】入力端子I3ないしI0には、信号を反転さ
せるためのインバータINV3ないしINV0がそれぞれ
対応して設けられている。
Inverters INV 3 to INV 0 for inverting signals are provided corresponding to the input terminals I 3 to I 0 , respectively.

【0043】入力端子I3ないしI0から直接又はインバ
ータINV3ないしINV0を介して得られる信号は、最
初に前段の9個のゲートNANDf8ないしNANDf0
入力される。前段のゲートNANDf8ないしNANDf0
の出力信号は、出力端子O6ないしO1に対応して設けら
れた後段の6個のゲートNANDs6ないしNANDs1
入力される。なお、出力端子O7、O0は、それぞれグラ
ンド(G)に接地されている。
The signals obtained directly from the input terminals I 3 to I 0 or via the inverters INV 3 to INV 0 are first input to the preceding nine gates NAND f8 to NAND f0 . Previous gate NAND f8 to NAND f0
Output signal is input to the subsequent six gates NAND s6 to NAND s1 provided corresponding to the output terminals O 6 to O 1 . The output terminals O 7 and O 0 are each grounded to the ground (G).

【0044】前段のゲートNANDf8ないしNANDf0
は全て4入力1出力であり、入力端子I3ないしI0から
の直接の信号又はインバータINV3ないしINV0を介
した信号のいずれかが1つずつ入力される。
Previous stage gates NAND f8 to NAND f0
All have four inputs and one output, and either a direct signal from the input terminals I 3 to I 0 or a signal via the inverters INV 3 to INV 0 is input one by one.

【0045】具体的には、入力された信号が全てアクテ
ィブの場合に出力信号がインアクティブになり、入力さ
れた信号の1つでもインアクティブであれば出力信号が
アクティブになるというNANDゲートの特性を利用
し、図2に示した変換対応表のそれぞれの変換に対して
前段のゲートNANDf8ないしNANDf0のうちの1個
のNANDゲートをそれぞれ対応させていく。
Specifically, the characteristic of the NAND gate is that the output signal becomes inactive when all the input signals are active, and the output signal becomes active when even one of the input signals is inactive. Using one of the above, one of the gates NAND f8 to NAND f0 in the preceding stage is made to correspond to each conversion in the conversion correspondence table shown in FIG.

【0046】すなわち、例えば“0001”に対応する
信号がゲートNANDf8に入力された場合に、その出力
信号がインアクティブとなるようにゲートNANDf8
入力端子I3ないしI0(又はインバータINV3ないし
INV0)とを接続し、また“1001”に対応する信
号がゲートNANDf0に入力された場合に、その出力信
号がインアクティブとなるように入力端子I3ないしI0
(又はインバータINV3ないしINV0)とを接続す
る。
That is, for example, when a signal corresponding to "0001" is input to the gate NAND f8 , the output signal of the gate NAND f8 becomes inactive and the gate NAND f8 and the input terminals I 3 to I 0 (or the inverter INV 3 Through INV 0 ), and when a signal corresponding to “1001” is input to the gate NAND f0 , its output signal becomes inactive so that the input terminals I 3 to I 0 are input.
(Or inverters INV 3 to INV 0 ) are connected.

【0047】また、後段のゲートNANDs6ないしNA
NDs1は多入力1出力であり、前段のゲートNANDf8
ないしNANDf0のそれぞれの出力信号をインアクティ
ブにする入力データに対応する変換後の出力データに基
づき、該当する前段のゲートNANDf8ないしNAND
f0と後段のゲートNANDs6ないしNANDs1とを接続
する。
Further, the gate NANDs s6 to NA in the subsequent stage
ND s1 is a multi-input 1-output, and the gate NAND f8 of the previous stage
To based on the output data after conversion corresponding to the input data to the respective output signals of the NAND f0 inactive, to not gate NAND f8 of the corresponding preceding stage NAND
f0 is connected to the subsequent gates NAND s6 to NAND s1 .

【0048】すなわち、例えばゲートNANDf8の出力
信号は、入力データ“0001”の変換後の出力データ
“00001010”のアクティブビット(1)に対応
させて、ゲートNANDs3、NANDs1に入力するよう
にする。同様にして、ゲートNANDf0の出力信号は、
入力データ“1001”の変換後の出力データ“010
11010”のアクティブビット(1)に対応させて、
ゲートNANDs6、NANDs4、NANDs3及びNAN
s1に入力するようにする。
That is, for example, the output signal of the gate NAND f8 is input to the gates NAND s3 and NAND s1 in correspondence with the active bit (1) of the output data “00001010” after the conversion of the input data “0001”. To do. Similarly, the output signal of the gate NAND f0 is
Output data “010” after conversion of input data “1001”
Corresponding to the active bit (1) of 11010 ",
Gate NAND s6 , NAND s4 , NAND s3 and NAN
Make sure you enter it in D s1 .

【0049】入力端子I3ないしI0に入力される入力デ
ータに対して前段のゲートNANDf8ないしNANDf0
のうちの対応する1個のNANDゲートの出力信号のみ
がインアクティブとなり、他の全ての出力信号はアクテ
ィブとなるため、以上のように論理ゲート回路を構成す
ることにより、対応する出力端子O7ないしO0から変換
後の所望の出力データを出力させることができる。
The gates NAND f8 to NAND f0 of the preceding stage are provided for the input data input to the input terminals I 3 to I 0.
Only the output signal of the corresponding one of the NAND gates becomes inactive and all the other output signals become active. Therefore, by configuring the logic gate circuit as described above, the corresponding output terminal O 7 It is possible to output desired output data after conversion from O to O 0 .

【0050】以上説明したように、変換回路4は非常に
単純な論理ゲート回路によって構成することができ、ま
た高速な変換を実現することができる。
As described above, the conversion circuit 4 can be constituted by a very simple logic gate circuit, and high-speed conversion can be realized.

【0051】なお、変換回路4を論理ゲート回路で構成
する他、PLA(programmable logic array)によって
も構成することができる。
The conversion circuit 4 may be composed of a logic gate circuit or a PLA (programmable logic array).

【0052】このように変換回路4をビット数の少ない
PLAで実現することによっても、前述した論理ゲート
回路の場合と同様に簡易な構成でかつ高速な変換を実現
することができる。
Even if the conversion circuit 4 is realized by the PLA having a small number of bits in this way, it is possible to realize a high-speed conversion with a simple structure as in the case of the logic gate circuit described above.

【0053】[0053]

【実施形態2】次に、本発明の第2の実施形態に係る純
2進数の2進化10進数変換回路について説明する。
Second Embodiment Next, a pure binary number binary-coded decimal number conversion circuit according to a second embodiment of the present invention will be described.

【0054】はじめに、本実施形態に係る純2進数の2
進化10進数変換回路の原理を説明する。
First, the pure binary number 2 according to the present embodiment.
The principle of the evolved decimal number conversion circuit will be described.

【0055】8ビットからなる純2進数データ(BIN
データ)が入力される場合には、入力されたBINデー
タの下位4ビットデータは最大でFhexの値をとるた
め、BINデータの下位4ビットデータをBCDデータ
に変換するには、次のようにすればよい。すなわち、
(1)入力された下位4ビットデータが9hexより大き
い場合には、上位4ビット出力を1とすると共に9hex
を引いた余りを下位4ビット出力とし、(2)入力され
た下位4ビットデータが9hex以下の場合には、上位4
ビット出力を0とすると共にその入力された下位4ビッ
トデータをそのまま下位4ビット出力とする。
Pure binary data consisting of 8 bits (BIN
Data) is input, the lower 4-bit data of the input BIN data takes a value of Fhex at the maximum. Therefore, in order to convert the lower 4-bit data of the BIN data into BCD data, do it. That is,
(1) If the input lower 4-bit data is larger than 9 hex, the upper 4-bit output is set to 1 and 9 hex
Is output as the lower 4 bits, and (2) when the input lower 4 bits data is 9hex or less, the upper 4 bits are output.
The bit output is set to 0, and the input lower 4 bit data is directly output to the lower 4 bit.

【0056】一方、入力されたBINデータの上位4ビ
ットデータは2進数で10hex以上の値であるため、最
初に16倍した後で10で割り、商を上位4ビット出力
とし、余りを下位4ビット出力とすればよい。
On the other hand, since the upper 4-bit data of the input BIN data has a binary value of 10 hex or more, it is first multiplied by 16 and then divided by 10 to obtain the quotient as the upper 4-bit output and the remainder as the lower 4 bits. It may be a bit output.

【0057】すなわち、入力されたBINデータの上位
4ビットデータ及び下位4ビットデータのいずれの変換
についても前記第1の実施形態に係る2進化10進数の
純2進数変換回路の場合と同様に、単純な論理ゲート回
路の組み合わせ又はビット数の少ないPLAで簡易に実
現することができる。
That is, for both conversion of the upper 4-bit data and the lower 4-bit data of the input BIN data, as in the case of the binary-coded decimal pure binary conversion circuit according to the first embodiment, It can be easily realized by a combination of simple logic gate circuits or a PLA having a small number of bits.

【0058】なお、入力されたBINデータの上位4ビ
ットデータ及び下位4ビットデータをそれぞれ変換した
結果得られた上位4ビット出力同士、下位4ビット出力
同士を10進数加算することにより、BINデータから
2進化10進数データ(BCDデータ)への変換を完了
することができる。
The upper 4-bit outputs and the lower 4-bit outputs obtained as a result of converting the upper 4-bit data and the lower 4-bit data of the input BIN data are decimally added to obtain the binary data from the BIN data. The conversion to binary coded decimal data (BCD data) can be completed.

【0059】図4は、本発明の第2の実施形態に係る純
2進数の2進化10進数変換回路の構成を説明するため
の図である。
FIG. 4 is a diagram for explaining the configuration of a pure binary number binary coded decimal number conversion circuit according to the second embodiment of the present invention.

【0060】図4を参照すると、本実施形態に係る純2
進数の2進化10進数変換回路は、8ビットの入力デー
タバス11と、入力データの上位4ビット側のデータバ
ス12と、入力データの下位4ビット側のデータバス1
3と、上位4ビットデータを図5に示した変換対応表に
従って8ビットデータに変換する第1の変換回路14
と、下位4ビットデータを図6に示した変換対応表に従
って8ビットデータに変換する第2の変換回路15と、
第1の変換回路14と第2の変換回路15とからそれぞ
れ出力される8ビットデータのうちの下位4ビットデー
タ同士を10進数加算する第1の10進加算器20と、
第1の変換回路14と第2の変換回路15とからそれぞ
れ出力される8ビットデータのうちの上位4ビットデー
タ同士と第1の10進加算器20のキャリー信号23と
を10進数加算する第2の10進加算器21と、第1の
10進加算器20の4ビットのデータバス22と第2の
10進加算器21の4ビットのデータバス24からの出
力を合わせて8ビットのBCDデータとして出力する出
力データバス25と、から構成される。
Referring to FIG. 4, the pure 2 according to the present embodiment.
The binary-coded decimal number conversion circuit includes an 8-bit input data bus 11, a data bus 12 on the upper 4-bit side of the input data, and a data bus 1 on the lower 4-bit side of the input data.
3 and the first conversion circuit 14 for converting the upper 4-bit data into 8-bit data according to the conversion correspondence table shown in FIG.
And a second conversion circuit 15 for converting the lower 4-bit data into 8-bit data according to the conversion correspondence table shown in FIG.
A first decimal adder 20 for adding a decimal number to lower 4-bit data of 8-bit data respectively output from the first conversion circuit 14 and the second conversion circuit 15,
A decimal addition of the upper 4-bit data of the 8-bit data respectively output from the first conversion circuit 14 and the second conversion circuit 15 and the carry signal 23 of the first decimal adder 20 The output from the 4-bit data bus 22 of the first decimal adder 21 and the 4-bit data bus 24 of the second decimal adder 21 is combined to obtain the 8-bit BCD. And an output data bus 25 for outputting as data.

【0061】次に、本実施形態に係る純2進数の2進化
10進数変換回路の動作を説明する。
Next, the operation of the pure binary number binary coded decimal number conversion circuit according to the present embodiment will be described.

【0062】入力データバス11から入力された8ビッ
トのBINデータは、その上位4ビットデータがデータ
バス12を介して第1の変換回路14に入力され、下位
4ビットデータがデータバス13を介して第2の変換回
路15に入力される。
Of the 8-bit BIN data input from the input data bus 11, the upper 4-bit data is input to the first conversion circuit 14 via the data bus 12, and the lower 4-bit data is input via the data bus 13. Is input to the second conversion circuit 15.

【0063】データバス12から入力された入力データ
の上位4ビットデータは、第1の変換回路14によって
8ビットデータに変換される。
The upper 4-bit data of the input data input from the data bus 12 is converted into 8-bit data by the first conversion circuit 14.

【0064】図5は、図4に示した本実施形態に係る純
2進数の2進化10進数変換回路の第1の変換回路14
の変換対応表である。
FIG. 5 shows a first conversion circuit 14 of the pure binary binary-coded decimal conversion circuit according to the present embodiment shown in FIG.
It is a conversion correspondence table of.

【0065】図5に示すように、第1の変換回路14
は、BINデータである入力データのうちの上位4ビッ
トデータを16倍した値(BCDデータ)に変換する。
例えば、入力された4ビットデータが“0100”であ
る場合には、これを16倍した値(すなわち64)の2
進化10進数表示である“01100100”を出力す
る。第1の変換回路14における変換後の8ビットデー
タは、その上位4ビットデータがデータバス16を介し
て第2の10進加算器21に入力され、その下位4ビッ
トデータがデータバス17を介して第1の10進加算器
20に入力される。
As shown in FIG. 5, the first conversion circuit 14
Converts the upper 4-bit data of the input data, which is BIN data, into a value (BCD data) which is 16 times higher.
For example, when the input 4-bit data is “0100”, the value obtained by multiplying this by 16 (ie 64) is 2
"01100100" which is an evolutionary decimal number display is output. The 8-bit data after conversion in the first conversion circuit 14 has its upper 4-bit data input to the second decimal adder 21 via the data bus 16 and its lower 4-bit data via the data bus 17. And is input to the first decimal adder 20.

【0066】なお、入力データはBINデータの上位4
ビットデータであるため、第1の変換回路14に入力さ
れる4ビットデータの範囲は0ないし6に限定され、そ
れ以外については考慮する必要がない。
The input data is the upper 4 of the BIN data.
Since it is bit data, the range of 4-bit data input to the first conversion circuit 14 is limited to 0 to 6, and it is not necessary to consider other than that.

【0067】一方、データバス13から入力された入力
データの下位4ビットデータは、第2の変換回路15に
よって8ビットデータに変換される。
On the other hand, the lower 4-bit data of the input data input from the data bus 13 is converted into 8-bit data by the second conversion circuit 15.

【0068】図6は、図4に示した本実施形態に係る純
2進数の2進化10進数変換回路の第2の変換回路15
の変換対応表である。
FIG. 6 shows the second conversion circuit 15 of the pure binary binary coded decimal conversion circuit according to the present embodiment shown in FIG.
It is a conversion correspondence table of.

【0069】図6に示すように、第2の変換回路15
は、BINデータである入力データのうちの下位4ビッ
トデータをBCDデータに変換する。例えば、入力され
た4ビットデータが“1110”である場合には、この
値(すなわち14)の2進化10進数表示である“00
010100”を出力する。第2の変換回路15におけ
る変換後の8ビットデータは、その上位4ビットデータ
がデータバス18を介して第2の10進加算器21に入
力され、その下位4ビットデータがデータバス19を介
して第1の10進加算器20に入力される。
As shown in FIG. 6, the second conversion circuit 15
Converts the lower 4-bit data of the input data which is BIN data into BCD data. For example, when the input 4-bit data is “1110”, this value (that is, 14) is “00” which is a binary coded decimal representation.
810100 ″ is output. The 8-bit data after conversion in the second conversion circuit 15 has its upper 4-bit data input to the second decimal adder 21 via the data bus 18, and its lower 4-bit data. Is input to the first decimal adder 20 via the data bus 19.

【0070】第1の変換回路14と第2の変換回路15
とからそれぞれ出力されるデータの下位4ビットデータ
同士を、第1の10進加算器20において10進数加算
する。第1の10進加算器20は、桁上げがある場合に
はキャリー信号23をアクティブにする。
First conversion circuit 14 and second conversion circuit 15
The lower 4-bit data of the data respectively output from and are added in decimal numbers in the first decimal adder 20. The first decimal adder 20 activates the carry signal 23 when there is a carry.

【0071】また、第1の変換回路14と第2の変換回
路15とからそれぞれ出力されるデータの上位4ビット
データ同士と、第1の10進加算器20からのキャリー
信号23と、を第2の10進加算器21において10進
数加算する。
The upper 4-bit data of the data respectively output from the first conversion circuit 14 and the second conversion circuit 15 and the carry signal 23 from the first decimal adder 20 are compared to each other. The decimal adder 21 of 2 adds decimal numbers.

【0072】このようにして得られた第1の10進加算
器20と第2の10進加算器21からの出力データをデ
ータバス22、24からそれぞれ取り出すことにより、
求めるBCDデータの下位4ビットと上位4ビットとを
それぞれ得ることができる。
By taking out the output data from the first decimal adder 20 and the second decimal adder 21 thus obtained from the data buses 22 and 24, respectively,
The lower 4 bits and the upper 4 bits of the desired BCD data can be obtained respectively.

【0073】図7は、図5に示した変換対応表に従った
変換を実現するための第1の変換回路14の具体的な構
成を説明するための図である。
FIG. 7 is a diagram for explaining a specific configuration of the first conversion circuit 14 for realizing conversion according to the conversion correspondence table shown in FIG.

【0074】図7に示すように、第1の変換回路14を
論理ゲート回路で構成する場合には、図3に示した前記
第1の実施形態の変換回路4と同様の手法を用いること
ができる。
As shown in FIG. 7, when the first conversion circuit 14 is composed of a logic gate circuit, the same method as that of the conversion circuit 4 of the first embodiment shown in FIG. 3 can be used. it can.

【0075】すなわち、4ビット分の入力端子30から
信号を入力し、所定個のインバータとNANDゲートと
を通過させた後、8ビット分の出力端子31から変換後
の信号を出力させるようにし、入力端子I3ないしI0
インバータINV3ないしINV0、前段の6個のNAN
Dゲート及び後段の7個のNANDゲートを図5に示し
た変換対応表に従って接続する。
That is, a signal is input from the 4-bit input terminal 30 and passed through a predetermined number of inverters and NAND gates, and then the 8-bit output terminal 31 outputs the converted signal. Input terminals I 3 to I 0 ,
Inverters INV 3 to INV 0 , 6 NANs in the previous stage
The D gate and the seven NAND gates in the subsequent stage are connected according to the conversion correspondence table shown in FIG.

【0076】図8は、図6に示した変換対応表に従った
変換を実現するための第2の変換回路15の具体的な構
成を説明するための図である。
FIG. 8 is a diagram for explaining a specific structure of the second conversion circuit 15 for realizing the conversion according to the conversion correspondence table shown in FIG.

【0077】図8に示すように、第2の変換回路15を
論理ゲート回路で構成する場合も、図7に示した第1の
変換回路14と同様に、図3に示した前記第1の実施形
態の変換回路4と同様の手法を用いることができる。
As shown in FIG. 8, also when the second conversion circuit 15 is formed of a logic gate circuit, as in the case of the first conversion circuit 14 shown in FIG. 7, the first conversion circuit shown in FIG. A method similar to that of the conversion circuit 4 of the embodiment can be used.

【0078】すなわち、4ビット分の入力端子32から
信号を入力し、所定個のインバータとNANDゲートと
を通過させた後、8ビット分の出力端子33から変換後
の信号を出力させるようにし、入力端子I3ないしI0
インバータINV3ないしINV0、前段の15個のNA
NDゲート及び後段の5個のNANDゲートを図6に示
した変換対応表に従って接続する。
That is, a signal is input from the 4-bit input terminal 32, passed through a predetermined number of inverters and a NAND gate, and then the 8-bit output terminal 33 outputs the converted signal. Input terminals I 3 to I 0 ,
Inverters INV 3 to INV 0 , 15 NAs in the previous stage
The ND gate and the five NAND gates in the subsequent stage are connected according to the conversion correspondence table shown in FIG.

【0079】図7及び図8から明らかなように、第1の
変換回路14及び第2の変換回路15は非常に単純な論
理ゲート回路によって構成することができ、また高速な
変換を実現することができる。
As is apparent from FIGS. 7 and 8, the first conversion circuit 14 and the second conversion circuit 15 can be configured by a very simple logic gate circuit, and high-speed conversion can be realized. You can

【0080】なお、前記第1の実施形態の場合と同様
に、第1の変換回路14及び第2の変換回路15を論理
ゲート回路で構成する他、PLAによっても構成するこ
とができる。
As in the case of the first embodiment, the first conversion circuit 14 and the second conversion circuit 15 can be configured by logic gate circuits or PLA.

【0081】このように第1の変換回路14及び第2の
変換回路15をビット数の少ないPLAで実現すること
によっても、前述した論理ゲート回路の場合と同様に簡
易な構成でかつ高速な変換を実現することができる。
Even if the first conversion circuit 14 and the second conversion circuit 15 are realized by the PLA having a small number of bits as described above, the conversion can be performed with a simple structure and at a high speed as in the case of the logic gate circuit described above. Can be realized.

【0082】[0082]

【発明の効果】以上説明したように、本発明によれば、
純2進数データから2進化10進数データへの変換及び
2進化10進数データから純2進数データへの変化を高
速に行うことができる。
As described above, according to the present invention,
The conversion from pure binary data to binary decimal data and the change from binary decimal data to pure binary data can be performed at high speed.

【0083】また、本発明によれば、ROMを用いる方
式で必要なプリチャージ等のタイミング設計や、シフト
レジスタを用いる方式で必要な制御回路を組み込む必要
がなく、回路構成を簡易化することができる。
Further, according to the present invention, it is not necessary to incorporate the timing design such as precharge required in the method using the ROM or the control circuit required in the method using the shift register, and the circuit configuration can be simplified. it can.

【0084】さらに、本発明によれば、ROMを用いる
方式に比べて低電圧下における動作速度の低下が少ない
ため、携帯端末のような低電圧動作が要求される分野に
おいて特に有用である。
Further, according to the present invention, the decrease in the operating speed under a low voltage is less than that in the system using a ROM, so that the present invention is particularly useful in a field requiring a low voltage operation such as a portable terminal.

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

【図1】本発明の第1の実施形態に係る2進化10進数
の純2進数変換回路の構成を説明するための図である。
FIG. 1 is a diagram illustrating a configuration of a binary coded decimal pure binary number conversion circuit according to a first embodiment of the present invention.

【図2】本発明の第1の実施形態に係る2進化10進数
の純2進数変換回路の変換回路4の変換対応表である。
FIG. 2 is a conversion correspondence table of the conversion circuit 4 of the binary coded decimal pure binary number conversion circuit according to the first embodiment of the present invention.

【図3】本発明の第1の実施形態に係る2進化10進数
の純2進数変換回路の変換回路4の構成を説明するため
の図である。
FIG. 3 is a diagram for explaining a configuration of a conversion circuit 4 of a binary coded decimal pure binary number conversion circuit according to the first embodiment of the present invention.

【図4】本発明の第2の実施形態に係る純2進数の2進
化10進数変換回路の構成を説明するための図である。
FIG. 4 is a diagram for explaining a configuration of a pure binary number binary-coded decimal number conversion circuit according to a second embodiment of the present invention.

【図5】本発明の第2の実施形態に係る純2進数の2進
化10進数変換回路の第1の変換回路14の変換対応表
である。
FIG. 5 is a conversion correspondence table of the first conversion circuit 14 of the pure binary number binary coded decimal number conversion circuit according to the second embodiment of the present invention.

【図6】本発明の第2の実施形態に係る純2進数の2進
化10進数変換回路の第2の変換回路15の変換対応表
である。
FIG. 6 is a conversion correspondence table of the second conversion circuit 15 of the pure binary binary coded decimal conversion circuit according to the second embodiment of the present invention.

【図7】本発明の第2の実施形態に係る純2進数の2進
化10進数変換回路の第1の変換回路14の構成を説明
するための図である。
FIG. 7 is a diagram for explaining a configuration of a first conversion circuit 14 of a pure binary number binary coded decimal number conversion circuit according to a second embodiment of the present invention.

【図8】本発明の第2の実施形態に係る純2進数の2進
化10進数変換回路の第2の変換回路15の構成を説明
するための図である。
FIG. 8 is a diagram for explaining a configuration of a second conversion circuit 15 of a pure binary number binary-coded decimal number conversion circuit according to the second embodiment of the present invention.

【図9】従来の変換テーブルROMを用いる方式(BC
D→BIN)を説明するための図である。
FIG. 9 is a system using a conventional conversion table ROM (BC
It is a figure for demonstrating (D-> BIN).

【図10】従来のシフトレジスタを用いる方式(BCD
→BIN)を説明するための図である。
FIG. 10 is a method using a conventional shift register (BCD
Is a diagram for explaining (→ BIN).

【図11】従来の変換テーブルROMを用いる方式(B
IN→BCD)を説明するための図である。
FIG. 11 is a diagram illustrating a method using a conventional conversion table ROM (B
It is a figure for explaining (IN-> BCD).

【図12】従来のシフトレジスタを用いる方式(BIN
→BCD)を説明するための図である。
FIG. 12 is a method using a conventional shift register (BIN
(BCD) is a figure for demonstrating.

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

1 入力データバス 2 データバス(上位4ビット側) 3 データバス(下位4ビット側) 4 変換回路 5 加算器 6 出力データバス 7 入力端子(I3、…、I0) 8 出力端子(O7、…、O0) INV3、…、INV0 インバータ NANDf8、…、NANDf0 前段のNANDゲート NANDs6、…、NANDs1 後段のNANDゲート 11 入力データバス 12 データバス(上位4ビット側) 13 データバス(下位4ビット側) 14 第1の変換回路 15 第2の変換回路 16、17、18、19、22、24 データバス 20 第1の10進加算器 21 第2の10進加算器 23 キャリー信号 25 出力データバス 30、32 入力端子 31、33 出力端子 38 シフト機能付き入力データレジスタ 39 出力データレジスタ 40 シフトレジスタ 41 一時記憶レジスタ 42 10進加算器 43 制御器1 Input Data Bus 2 Data Bus (Upper 4 Bits Side) 3 Data Bus (Lower 4 Bits Side) 4 Conversion Circuit 5 Adder 6 Output Data Bus 7 Input Terminals (I 3 , ..., I 0 ) 8 Output Terminals (O 7 , ..., O 0 ) INV 3 , ..., INV 0 inverter NAND f8 , ..., NAND f0 NAND gate in the previous stage NAND s6 , ..., NAND s1 NAND gate in the latter stage 11 Input data bus 12 Data bus (upper 4 bit side) 13 Data bus (lower 4 bits side) 14 First conversion circuit 15 Second conversion circuit 16, 17, 18, 19, 22, 24 Data bus 20 First decimal adder 21 Second decimal adder 23 Carry signal 25 Output data bus 30, 32 Input terminal 31, 33 Output terminal 38 Input data register with shift function 39 Output data register 40 Shift Register 41 Temporary storage register 42 Decimal adder 43 Controller

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】8ビットの2進化10進数データを入力と
し、8ビットの純2進数データを出力する2進化10進
数の純2進数変換回路において、 前記入力された8ビットの2進化10進数データの上位
4ビットデータを10倍した8ビットの純2進数データ
に変換する変換回路と、 該変換回路によって変換された前記8ビットの純2進数
データと、前記入力された8ビットの2進化10進数デ
ータの下位4ビットデータと、を加算する加算器と、 を含むことを特徴とする2進化10進数の純2進数変換
回路。
1. A binarized decimal pure binary number conversion circuit for inputting 8-bit binary coded decimal number data and outputting 8-bit pure binary number data, wherein said input 8-bit binary coded decimal number A conversion circuit for converting the upper 4-bit data of the data into 8-bit pure binary number data multiplied by 10, the 8-bit pure binary number data converted by the conversion circuit, and the input 8-bit binary evolution A binary-coded pure binary number conversion circuit comprising: an adder for adding lower 4-bit data of decimal number data, and an adder.
【請求項2】前記変換回路が、入力された4ビットデー
タを10倍する論理ゲート回路であることを特徴とする
請求項1記載の2進化10進数の純2進数変換回路。
2. The binary-coded decimal binary conversion circuit according to claim 1, wherein the conversion circuit is a logic gate circuit for multiplying input 4-bit data by 10.
【請求項3】前記変換回路が、入力された4ビットデー
タを10倍するPLAであることを特徴とする請求項1
記載の2進化10進数の純2進数変換回路。
3. The conversion circuit is a PLA that multiplies input 4-bit data by 10 times.
The binary coded binary number conversion circuit described.
【請求項4】8ビットの純2進数データを入力とし、8
ビットの2進化10進数データを出力する純2進数の2
進化10進数変換回路において、 前記入力された8ビットの純2進数データの上位4ビッ
トデータを16倍した8ビットの2進化10進数データ
に変換する第1の変換回路と、 前記入力された8ビットの純2進数データの下位4ビッ
トデータを8ビットの2進化10進数データに変換する
第2の変換回路と、 前記第1の変換回路の出力データの下位4ビットデータ
と、前記第2の変換回路の出力データの下位4ビットデ
ータと、を加算し、4ビットの2進化10進数データと
キャリー信号とを出力する第1の10進加算器と、 前記第1の10進加算器から出力される前記キャリー信
号と、前記第1の変換回路の出力データの上位4ビット
データと、前記第2の変換回路の出力データの上位4ビ
ットデータと、を加算する第2の10進加算器と、 を含むことを特徴とする純2進数の2進化10進数変換
回路。
4. Inputting 8-bit pure binary number data,
Pure binary number 2 that outputs bitwise binary coded decimal number data
In the evolved decimal number conversion circuit, a first conversion circuit that converts the upper 4-bit data of the input 8-bit pure binary number data into 8-bit binary coded decimal number data by multiplying by 16 is provided; A second conversion circuit for converting lower 4-bit data of pure binary number data into 8-bit binary-coded decimal number data; lower 4-bit data of output data of the first conversion circuit; A first decimal adder that adds lower 4-bit data of the output data of the conversion circuit and outputs 4-bit binary coded decimal data and a carry signal; and output from the first decimal adder Second decimal adder for adding the carry signal, the upper 4-bit data of the output data of the first conversion circuit, and the upper 4-bit data of the output data of the second conversion circuit And a binary-coded decimal conversion circuit for pure binary numbers.
【請求項5】前記第1の変換回路が、入力された4ビッ
トデータを16倍する論理ゲート回路であることを特徴
とする請求項4記載の純2進数の2進化10進数変換回
路。
5. The pure binary number binary coded decimal number conversion circuit according to claim 4, wherein said first conversion circuit is a logic gate circuit which multiplies input 4-bit data by 16.
【請求項6】前記第2の変換回路が、入力された4ビッ
トデータを2進化10進数とする論理ゲート回路である
ことを特徴とする請求項4記載の純2進数の2進化10
進数変換回路。
6. The binary-coded binary-coded 10 according to claim 4, wherein the second conversion circuit is a logic gate circuit using the input 4-bit data as a binary-coded decimal number.
Base conversion circuit.
【請求項7】前記第1の変換回路が、入力された4ビッ
トデータを16倍するPLAであることを特徴とする請
求項4記載の純2進数の2進化10進数変換回路。
7. The pure binary binary coded decimal number conversion circuit according to claim 4, wherein the first conversion circuit is a PLA for multiplying input 4-bit data by 16.
【請求項8】前記第2の変換回路が、入力された4ビッ
トデータを2進化10進数とするPLAであることを特
徴とする請求項4記載の純2進数の2進化10進数変換
回路。
8. The binary-coded binary-coded decimal conversion circuit according to claim 4, wherein the second conversion circuit is a PLA that uses the input 4-bit data as a binary-coded decimal number.
JP7276469A 1995-09-30 1995-09-30 Pure binary conversion circuit for binary-coded decimal and binary-coded decimal conversion circuit for pure binary Pending JPH0997165A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7276469A JPH0997165A (en) 1995-09-30 1995-09-30 Pure binary conversion circuit for binary-coded decimal and binary-coded decimal conversion circuit for pure binary

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7276469A JPH0997165A (en) 1995-09-30 1995-09-30 Pure binary conversion circuit for binary-coded decimal and binary-coded decimal conversion circuit for pure binary

Publications (1)

Publication Number Publication Date
JPH0997165A true JPH0997165A (en) 1997-04-08

Family

ID=17569891

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7276469A Pending JPH0997165A (en) 1995-09-30 1995-09-30 Pure binary conversion circuit for binary-coded decimal and binary-coded decimal conversion circuit for pure binary

Country Status (1)

Country Link
JP (1) JPH0997165A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011151532A (en) * 2010-01-20 2011-08-04 Nippon Dempa Kogyo Co Ltd Frequency generator
US8566385B2 (en) 2009-12-02 2013-10-22 International Business Machines Corporation Decimal floating point multiplier and design structure

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS51230A (en) * 1974-06-19 1976-01-05 Hitachi Ltd KOODOHENKANKI
JPS5640931A (en) * 1979-09-13 1981-04-17 Nec Corp Function value generator
JPS628213A (en) * 1985-07-04 1987-01-16 Yokogawa Electric Corp Function generation circuit
JPH01314020A (en) * 1988-06-13 1989-12-19 Fujitsu Ltd Decimal/binary conversion system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS51230A (en) * 1974-06-19 1976-01-05 Hitachi Ltd KOODOHENKANKI
JPS5640931A (en) * 1979-09-13 1981-04-17 Nec Corp Function value generator
JPS628213A (en) * 1985-07-04 1987-01-16 Yokogawa Electric Corp Function generation circuit
JPH01314020A (en) * 1988-06-13 1989-12-19 Fujitsu Ltd Decimal/binary conversion system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8566385B2 (en) 2009-12-02 2013-10-22 International Business Machines Corporation Decimal floating point multiplier and design structure
JP2011151532A (en) * 2010-01-20 2011-08-04 Nippon Dempa Kogyo Co Ltd Frequency generator

Similar Documents

Publication Publication Date Title
US4953115A (en) Absolute value calculating circuit having a single adder
JPH0428180B2 (en)
JPS5932817B2 (en) Device for performing binary-modulo M conversion of binary numbers
US4475173A (en) Multibit unidirectional shifter unit
JPS588009B2 (en) digital multiplier
JPS6389929A (en) Binary adder with stationary operand and series-parallel binary multiplier containing adder of this type
US3882483A (en) Code converter system and method
JPH0997165A (en) Pure binary conversion circuit for binary-coded decimal and binary-coded decimal conversion circuit for pure binary
US4954978A (en) Priority order decomposing apparatus
JPS6221293B2 (en)
US3716843A (en) Modular signal processor
US4958313A (en) CMOS parallel-serial multiplication circuit and multiplying and adding stages thereof
US4241414A (en) Binary adder employing a plurality of levels of individually programmed PROMS
JPH10224220A (en) Pulse width modulation arithmetic circuit
US4376275A (en) Very fast BCD-to-binary converter
US3824589A (en) Complementary offset binary converter
US5034912A (en) Signal processing circuit for multiplication
SU726527A1 (en) Number comparing arrangement
JPS6336017B2 (en)
JPH05282362A (en) Data retrieving circuit
SU840886A1 (en) Device for comparing two n-digit numbers
KR880001011B1 (en) Digital signal process method
JPH0381175B2 (en)
US4334213A (en) Circuit for addressing binarily addressable memories with BCD addresses
JPS61105640A (en) Parallel complement circuit

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19980210