JPH06187125A - Bcd data decision circuit - Google Patents

Bcd data decision circuit

Info

Publication number
JPH06187125A
JPH06187125A JP33687692A JP33687692A JPH06187125A JP H06187125 A JPH06187125 A JP H06187125A JP 33687692 A JP33687692 A JP 33687692A JP 33687692 A JP33687692 A JP 33687692A JP H06187125 A JPH06187125 A JP H06187125A
Authority
JP
Japan
Prior art keywords
circuit
bcd data
digit
output
limit value
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.)
Withdrawn
Application number
JP33687692A
Other languages
Japanese (ja)
Inventor
Keisuke Tonegawa
恵介 利根川
Izumi Hayashi
林泉
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 Engineering Ltd
Original Assignee
NEC Engineering 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 Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP33687692A priority Critical patent/JPH06187125A/en
Publication of JPH06187125A publication Critical patent/JPH06187125A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To set various numerical ranges and to reduce circuit scale when providing the BCD data decision circuit for judging whether a decimal numerical value shown by BCD data belongs to a previously decided numerical range or not. CONSTITUTION:A decoder 6 to convert each digit of BCD data into the decimal numerical value is provided for each digit. An OR circuit 21 generates level decision signals 211-226 by judging the decimal numerical value for each digit of this decoder output is larger than 1-8 or not. The level is compared and judged with a previously decided numerical value by using the outputs 201-210 of the decoder 6 and the level signals 211-226. The levels of the respective digits in the BCD data can be easily compared with various numerical values and the circuit scale is reduced as well.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はBCD(2進化10進符
号)データ回路に関し、特にこのBCDデータにより示
される10進数値が予め設定された数値範囲に属するか
否かを判定するBCDデータ判定回路に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a BCD (binary coded decimal code) data circuit, and more particularly to BCD data judgment for judging whether the decimal value indicated by this BCD data belongs to a preset numerical range. It is about circuits.

【0002】[0002]

【従来の技術】従来のこの種のBCDデータ判定回路の
ブロック図を図5に示している。図5においては、n
(nは自然数)桁のBCDデータを入力として、予め設
定された上限値を下限値との間の範囲に、このBCDデ
ータにより示される10進数値が属するか否かを判定す
るものである。そのために、n個の上限値判定用コンパ
レータ7〜10と、n個の下限値判定用コンパレータ1
1〜14と、これ等各コンパレータ出力結果から最終的
な判定信号314を導出するオア回路15,16及びア
ンド回路17とからなっている。
2. Description of the Related Art A block diagram of a conventional BCD data decision circuit of this type is shown in FIG. In FIG. 5, n
By inputting BCD data of (n is a natural number) digits, it is determined whether or not the decimal value indicated by this BCD data belongs to a range between a preset upper limit value and a lower limit value. Therefore, n upper limit value determination comparators 7 to 10 and n lower limit value determination comparators 1
1 to 14, and OR circuits 15 and 16 and an AND circuit 17 for deriving a final determination signal 314 from the output results of these comparators.

【0003】コンパレータ7,8,9,10は上限値判
定用、コンパレータ11,12,13,14は下限値判
定用であり、夫々カスケードに接続されている。
The comparators 7, 8, 9 and 10 are for upper limit value determination, and the comparators 11, 12, 13, and 14 are for lower limit value determination, which are respectively connected in a cascade.

【0004】信号100,101,102,103はB
CDで表現されたBCDデータ信号であり、信号100
は最下位桁、信号103は最下位桁である。信号30
0,301,302,303は上限値設定信号、信号3
04,305,306,307は下限設定信号である。
Signals 100, 101, 102 and 103 are B
It is a BCD data signal expressed by CD, and a signal 100
Is the least significant digit and signal 103 is the least significant digit. Signal 30
0, 301, 302, 303 are upper limit value setting signal, signal 3
Reference numerals 04, 305, 306 and 307 are lower limit setting signals.

【0005】ここで、コンパレータ7,8,9,10は
BCDデータ信号100,101,102,103と上
限値設定信号300,301,302,303との比較
を行う。この時、コンパレータは各桁毎に比較を行い、
BCDデータ信号100,101,102,103が、
上限値設定信号300,301,302,303より小
さければコンパレータ出力信号308が出力され、等し
ければコンパレータ出力信号309が出力される。
Here, the comparators 7, 8, 9 and 10 compare the BCD data signals 100, 101, 102 and 103 with the upper limit value setting signals 300, 301, 302 and 303. At this time, the comparator compares each digit,
BCD data signals 100, 101, 102, 103 are
If it is smaller than the upper limit value setting signals 300, 301, 302, 303, the comparator output signal 308 is output, and if they are equal, the comparator output signal 309 is output.

【0006】このことから、判定されるBCDデータ信
号が上限値以下ならば、コンパレータ出力信号308,
309とオア回路15とによって、上限値判定信号31
2が出力されて上限値以下と判定される。
From this, if the BCD data signal to be judged is less than or equal to the upper limit value, the comparator output signals 308,
309 and the OR circuit 15 cause the upper limit value determination signal 31
2 is output and it is determined that the value is less than or equal to the upper limit value.

【0007】次に、コンパレータ11,12,13,1
4は、BCDデータ信号100,101,102,10
3と下限値設定信号304,305,306,307と
の比較を行う。この時、コンパレータは各桁毎に比較を
行い、BCDデータ信号100,102,103,が、
下限値設定信号304,305,306,307より大
きければコンパレータ出力信号311が出力され、等し
ければコンパレータ出力信号310が出力される。
Next, the comparators 11, 12, 13, 1
4 is a BCD data signal 100, 101, 102, 10
3 is compared with the lower limit value setting signals 304, 305, 306, 307. At this time, the comparator compares each digit, and the BCD data signals 100, 102, 103,
If it is larger than the lower limit value setting signals 304, 305, 306, 307, the comparator output signal 311 is output, and if they are equal, the comparator output signal 310 is output.

【0008】このことから、判定されるBCDデータ信
号が下限値以上ならば、コンパレータ出力信号310,
311とオア回路16とによって、下限値判定信号31
3が出力されて下限値以上と判定される。
From this fact, if the BCD data signal to be judged is not less than the lower limit value, the comparator output signal 310,
311 and the OR circuit 16 allow the lower limit value determination signal 31
3 is output and it is determined that the value is equal to or more than the lower limit value.

【0009】ここで、上限値判定信号312と下限値判
定信号313とが共に出力された場合、アンド回路17
により範囲判定信号314が出力され、BCDデータ信
号100,101,102,103は希望する範囲内と
判定される。
Here, when both the upper limit value determination signal 312 and the lower limit value determination signal 313 are output, the AND circuit 17
Outputs a range determination signal 314, and the BCD data signals 100, 101, 102, 103 are determined to be within the desired range.

【0010】また、上限値判定信号312と下限値判定
信号313とのどちらか一方が出力されれない場合、及
び共に出力されない場合は範囲判定信号314も出力さ
れず、BCDデータ信号100,101,102,10
3,は希望する範囲外と判定される。
If either the upper limit value determination signal 312 or the lower limit value determination signal 313 is not output, or if both are not output, the range determination signal 314 is not output and the BCD data signals 100, 101, 102,10
3 is judged to be outside the desired range.

【0011】尚、図5に示した各コンパレータの具体的
回路例を図6に示す。
A concrete circuit example of each comparator shown in FIG. 5 is shown in FIG.

【0012】[0012]

【発明が解決しようとする課題】この従来のBCDデー
タ判定回路では、各桁毎に上限値判定用と下限値判定用
との各コンパレータが必要であり、また1つのBCDデ
ータ判定回路につき1つの数値範囲しか設定できないた
め、判定する数値範囲が複数設定しする場合に、その設
定数と同じ数の回路が必要となるため、回路規模が大き
くなるという問題点がある。
In this conventional BCD data judgment circuit, it is necessary to provide comparators for upper limit value judgment and lower limit value judgment for each digit, and one BCD data judgment circuit for each digit. Since only the numerical range can be set, when a plurality of numerical ranges to be determined are set, the same number of circuits as the set number is required, which causes a problem that the circuit scale becomes large.

【0013】本発明の目的は、回路規模の縮小を図った
BCDデータ判定回路を提供することである。
It is an object of the present invention to provide a BCD data judgment circuit with a reduced circuit scale.

【0014】[0014]

【課題を解決するための手段】本発明のBCDデータ判
定回路は、BCDデータの各桁を10進数値に変換する
デコード手段と、この変換された各桁の10進数値が多
くとも1〜8の各々に対して大か小かを判定して大小判
定信号を出力する手段と、前記デコード手段の出力と前
記大小判定信号とを用いて、前記BCDデータが示す1
0進数値が予め設定された数値範囲に属するか否かを判
定する手段とを含むことを特徴とする。
The BCD data decision circuit of the present invention comprises a decoding means for converting each digit of BCD data into a decimal value, and the converted decimal value of each digit is at most 1-8. 1 for the BCD data using a means for outputting a magnitude determination signal by determining whether each is larger or smaller, and an output from the decoding means and the magnitude determination signal.
And a means for determining whether or not the zero-digit value belongs to a preset numerical range.

【0015】[0015]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0016】図1は本発明の一実施例であり、n桁(n
は自然数)のBCDデータ判定回路のブロック構成図で
ある。本発明のBCDデータ判定回路は、n個の数値範
囲出力回路1〜4と、1つの判定回路5とにより構成さ
れる。
FIG. 1 shows an embodiment of the present invention, in which n digits (n
Is a block configuration diagram of a BCD data determination circuit for a natural number. The BCD data judgment circuit of the present invention is composed of n number range output circuits 1 to 4 and one judgment circuit 5.

【0017】信号100,101,102,103はB
CDデータ信号であり、信号100は最上位桁、信号1
03は最下位桁である。
Signals 100, 101, 102 and 103 are B
CD data signal, signal 100 is the most significant digit, signal 1
03 is the least significant digit.

【0018】まず、数値範囲出力回路1,2,3,4は
各桁のBCDデータ信号を受け、各桁の数値範囲を判定
し、数値範囲出力信号104,105,106,107
を判定回路5へ出力する。判定回路5はこれを受けてB
CDデータの数値範囲の判定を行い、希望する範囲内で
あれば、範囲判定信号108を出力する。
First, the numerical range output circuits 1, 2, 3 and 4 receive the BCD data signal of each digit, judge the numerical range of each digit, and output the numerical range output signals 104, 105, 106 and 107.
Is output to the determination circuit 5. The decision circuit 5 receives this and B
The numerical range of the CD data is determined, and if it is within the desired range, the range determination signal 108 is output.

【0019】次に、数値範囲出力回路1〜4及び判定回
路5の回路構成を図2,図3及び図4を用いて説明す
る。
Next, the circuit configurations of the numerical value range output circuits 1 to 4 and the determination circuit 5 will be described with reference to FIGS. 2, 3 and 4.

【0020】図2は数値範囲出力回路1の回路であり、
他の数値範囲出力回路2〜4も同一構成である。この数
値範囲出力回路は、デコーダ6とオア回路21とから構
成される。BCDデータ信号100が入力されると、デ
コーダ6とオア回路21とにより入力されたデータが1
0進数の0から9までのどの値に等しいか、またどの範
囲にあるかを判定し、数値範囲出力信号104を出力す
る。
FIG. 2 shows a circuit of the numerical range output circuit 1.
The other numerical value range output circuits 2 to 4 have the same configuration. This numerical range output circuit is composed of a decoder 6 and an OR circuit 21. When the BCD data signal 100 is input, the data input by the decoder 6 and the OR circuit 21 becomes 1
It is determined which value of 0 to 9 in the base 0 and which range it is in, and the numerical range output signal 104 is output.

【0021】この時、例えば、BCDデータ100の値
が10進数値で“5”であったとすれば、数値範囲出力
信号104のうち、信号206(=5),215(≦
5),216(≦6),217(≦7),218(≦
8)、219(≧1),220(≧2),221(≧
3),22(≧4),223(≧5)が出力される。ま
た、オア回路21は、設定する数値範囲によっては、不
要なオアゲートを削除して最適化することができる。
At this time, if, for example, the value of the BCD data 100 is a decimal value "5", the signals 206 (= 5), 215 (≤.ltoreq.
5), 216 (≦ 6), 217 (≦ 7), 218 (≦
8), 219 (≧ 1), 220 (≧ 2), 221 (≧)
3), 22 (≧ 4) and 223 (≧ 5) are output. Further, the OR circuit 21 can delete and optimize unnecessary OR gates depending on the set numerical range.

【0022】尚、デコーダ6の回路例を図3に示し、1
桁4ビットA〜DのBCDデータを10進数値の1つ
(0〜9の1つ)に変換するもので、周知の回路構成で
ある。図4は判定回路5の回路例である。この判定回路
はアンド回路とオア回路の組合せにより構成され、判定
する数値範囲により、必要な数値範囲出力信号を数値範
囲出力回路より入力する。ここでは、具体例として、1
7以上32以下の範囲を判定する場合について説明す
る。
A circuit example of the decoder 6 is shown in FIG.
This is a well-known circuit configuration for converting the BCD data of 4 digit digits A to D into one of decimal values (one of 0 to 9). FIG. 4 is a circuit example of the determination circuit 5. This judging circuit is composed of a combination of an AND circuit and an OR circuit, and the necessary numerical range output signal is inputted from the numerical range output circuit according to the numerical range to be judged. Here, as a specific example, 1
A case of determining the range of 7 or more and 32 or less will be described.

【0023】先ず、下限値に注目する。下限値は、“1
7”であるため、十の桁が“1”(=1)の時、一の桁
は“7”以上(≧7)であれば下限値以上となる。その
ため、数値範囲出力信号202(=1),225(≧
7)を入力し、“17”以上であれば、アンド回路18
により、下限値判定信号227が出力れさる。
First, pay attention to the lower limit value. The lower limit is "1"
Since it is 7 ", when the ten's digit is" 1 "(= 1), the one's digit is the lower limit or more if it is" 7 "or more (≥7). Therefore, the numerical range output signal 202 (= 1), 225 (≧
7) is input, and if it is "17" or more, the AND circuit 18
Accordingly, the lower limit value determination signal 227 is output.

【0024】次に、上限値に注目する。上限値“32”
であるため、十桁が“3”(=3)の時、一の桁は
“2”以下(≦2)であれば上限値以下となる。そのた
め、数値範囲出力信号204(=3),212(≦2)
を入力し、“32”以下であれば、アンド回路19によ
り、上限値判定信号228が出力される。
Next, pay attention to the upper limit value. Upper limit value "32"
Therefore, when the tenth digit is “3” (= 3), if the first digit is “2” or less (≦ 2), it is less than or equal to the upper limit value. Therefore, the numerical range output signals 204 (= 3), 212 (≦ 2)
Is input and is equal to or less than “32”, the AND circuit 19 outputs the upper limit value determination signal 228.

【0025】次に、範囲内の十の桁の数値に注目する。
判定する数値範囲が17以上32以下であることから、
十の桁が“2”(=2)であれば、一の桁の値に関係な
く範囲内となるため、数値範囲出力信号203(=2)
を入力する。そして、下限値判定信号227、上限値判
定信号228及び数値範囲出力信号203のどれか1つ
でも出力されれば、オア回路20により判定信号108
が出力され、希望する範囲内と判定される。
Next, pay attention to the ten-digit numerical value within the range.
Since the numerical range to be judged is from 17 to 32,
If the tens digit is "2" (= 2), it is within the range regardless of the value of the one digit, and therefore the numerical range output signal 203 (= 2).
Enter. If any one of the lower limit value determination signal 227, the upper limit value determination signal 228 and the numerical value range output signal 203 is output, the OR circuit 20 determines the determination signal 108.
Is output, and it is determined that it is within the desired range.

【0026】尚、本実施例のBCDデータ判定回路にお
いて、その判定回路5については、17以上32以下の
範囲を判定する場合を説明したが、これ以外の桁数や数
値についても、同様に実施できる。
In the BCD data judgment circuit of this embodiment, the judgment circuit 5 has been described as a case of judging a range of 17 or more and 32 or less, but the same is applied to other digit numbers and numerical values. it can.

【0027】[0027]

【発明の効果】以上説明したように、従来のBCDデー
タ判定回路では、各桁毎に上限値用と下限値用の2つの
コンパレータを必要とするのに対し、本発明では、各桁
1つの数値範囲出力回路と1つの判定とにより上限値、
下限値を判定でき、回路規模を小さくできる効果があ
る。
As described above, the conventional BCD data determination circuit requires two comparators for the upper limit value and the lower limit value for each digit, whereas the present invention requires one comparator for each digit. Upper limit value by the numerical range output circuit and one judgment,
There is an effect that the lower limit value can be determined and the circuit scale can be reduced.

【0028】さらに、従来のBCDデータ判定では、1
つの数値範囲しか判定できないため、複数の数値範囲を
設定したい場合は、その設定数と同じ数の回路が必要と
なるのに対し、本発明では、数値範囲出力回路がどのよ
うな数値範囲でも対応できる構成となっているため、判
定する数値範囲を複数設定しても、各桁の数値範囲出力
回路は共有でき、判定回路のみ設定数と同じ数だけ必要
となる。従って、判定する数値範囲の設定数が増大した
場合、回路構成が容易でかつ回路規模が小さくなるとい
う大きな効果がある。
Further, in the conventional BCD data determination, it is 1
Since only one numerical range can be determined, when it is desired to set a plurality of numerical ranges, the same number of circuits as the set number is required, whereas in the present invention, the numerical range output circuit supports any numerical range. Even if a plurality of numerical value ranges to be determined are set, the numerical value range output circuit for each digit can be shared and only the determination circuits are required in the same number as the set number. Therefore, when the set number of the numerical range to be determined increases, there is a great effect that the circuit configuration is easy and the circuit scale is small.

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

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

【図2】図1のブロックの数値範囲出力回路の具体例を
示す図てある。
FIG. 2 is a diagram showing a specific example of a numerical value range output circuit of the block of FIG.

【図3】図2のデコーダの具体例を示す図である。FIG. 3 is a diagram showing a specific example of the decoder of FIG.

【図4】図1のブロックの判定回路の具体例を示す図で
ある。
FIG. 4 is a diagram showing a specific example of a determination circuit of the block of FIG.

【図5】従来のBCDデータ判定回路のブロック図であ
る。
FIG. 5 is a block diagram of a conventional BCD data determination circuit.

【図6】図5のコンパレータの具体例を示す図である。FIG. 6 is a diagram showing a specific example of the comparator of FIG.

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

1〜4 数値範囲出力回路 5 判定回路 6 デコーダ 18,19 アンド回路 20 オア回路 21 オア回路群 1-4 numerical value range output circuit 5 determination circuit 6 decoder 18, 19 AND circuit 20 OR circuit 21 OR circuit group

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 BCDデータの各桁を10進数値に変換
するデコード手段と、この変換された各桁の10進数値
が多くとも1〜8の各々に対して大か小かを判定して大
小判定信号を出力する手段と、前記デコード手段の出力
と前記大小判定信号とを用いて、前記BCDデータが示
す10進数値が予め設定された数値範囲に属するか否か
を判定する手段とを含むことを特徴とするBCDデータ
判定回路。
1. Decoding means for converting each digit of BCD data into a decimal value and determining whether the converted decimal value of each digit is large or small for each of 1 to 8 at most. A means for outputting a magnitude determination signal; and means for determining whether the decimal value indicated by the BCD data belongs to a preset numerical range using the output of the decoding means and the magnitude determination signal. A BCD data determination circuit including:
JP33687692A 1992-12-17 1992-12-17 Bcd data decision circuit Withdrawn JPH06187125A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33687692A JPH06187125A (en) 1992-12-17 1992-12-17 Bcd data decision circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33687692A JPH06187125A (en) 1992-12-17 1992-12-17 Bcd data decision circuit

Publications (1)

Publication Number Publication Date
JPH06187125A true JPH06187125A (en) 1994-07-08

Family

ID=18303471

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33687692A Withdrawn JPH06187125A (en) 1992-12-17 1992-12-17 Bcd data decision circuit

Country Status (1)

Country Link
JP (1) JPH06187125A (en)

Similar Documents

Publication Publication Date Title
JP2819006B2 (en) Thermometer binary encoding method
EP0264921A2 (en) A digital to analog converter
CA1222826A (en) Analog to digital converter
US5091874A (en) Encoder apparatus
GB1597468A (en) Conversion between linear pcm representation and compressed pcm
JPH06187125A (en) Bcd data decision circuit
JPH1185467A (en) Selection method and selection circuit
SU1656574A1 (en) Data compressor
JP2538769B2 (en) Linear-nonlinear code conversion method and conversion circuit
JP2890412B2 (en) Code conversion circuit
JP2998532B2 (en) Address generation circuit for two-dimensional encoding table
JP2559780B2 (en) Logarithmic arithmetic circuit device
JP3083119B2 (en) Encoding / decoding circuit using adaptive delta modulation scheme
JPH0612024A (en) Digital display device
JPH0784755A (en) Digital signal processor
JPH05257642A (en) Logical arithmetic circuit
KR0182183B1 (en) Mode-changeable audio data output circuit
JPH1098375A (en) Majority decision circuit
JP3221131B2 (en) Analog / digital conversion circuit
JPS63269833A (en) Mh code decoder
JPS61274425A (en) Digital compressing curcuit
JPS61105640A (en) Parallel complement circuit
JPH02170285A (en) Arithmetic unit
JPH05268085A (en) A/d converter
JPH0527946A (en) Priority encode circuit

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000307