JP2633161B2 - Min-max arithmetic circuit for fuzzy inference - Google Patents

Min-max arithmetic circuit for fuzzy inference

Info

Publication number
JP2633161B2
JP2633161B2 JP33240192A JP33240192A JP2633161B2 JP 2633161 B2 JP2633161 B2 JP 2633161B2 JP 33240192 A JP33240192 A JP 33240192A JP 33240192 A JP33240192 A JP 33240192A JP 2633161 B2 JP2633161 B2 JP 2633161B2
Authority
JP
Japan
Prior art keywords
grade
label
input
rule
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP33240192A
Other languages
Japanese (ja)
Other versions
JPH06161762A (en
Inventor
謙 太田
ウィリアム・シー・アーチボルト
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Motorola Solutions Japan Ltd
Original Assignee
Nippon Motorola 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 Nippon Motorola Ltd filed Critical Nippon Motorola Ltd
Priority to JP33240192A priority Critical patent/JP2633161B2/en
Priority to US08/126,868 priority patent/US5398299A/en
Publication of JPH06161762A publication Critical patent/JPH06161762A/en
Application granted granted Critical
Publication of JP2633161B2 publication Critical patent/JP2633161B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、各種の家電製品や車両
の制御などに利用されるファジイ推論マシン内で生成さ
れた入力ラベルのグレードにmin-max 演算を行って出力
ラベルのグレードを生成するファジイ推論のmin-max 演
算回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention generates an output label grade by performing a min-max operation on an input label grade generated in a fuzzy inference machine used for controlling various home appliances and vehicles. And a min-max operation circuit for fuzzy inference.

【0002】[0002]

【従来の技術】ファジイ推論を利用したファジイ制御
は、各種の家電製品や車両の制御など既存の広汎な制御
に応用されつつある。このファジイ推論の核心をなす多
重ファジイ推論では、まず、ファジイ規則(ルール)の
前件部に含まれる入力側の複数のファジイ概念と、実際
の入力データによって示される事実との適合度(グレー
ド)が演算される。入力側の複数のファジイ概念には相
互を識別するためにラベルが付加されており、このた
め、各ファジイ概念は入力ラベルとも称される。演算さ
れた各入力ラベルのグレードについてルールに対応した
min-max 演算を行うことにより、各ルールの後件部に含
まれる出力側のファジイ概念(出力ラベル)のメンバー
シップ関数を頭切りするための出力ラベルのグレードが
演算される。最後に、対応のグレードによって頭切りさ
れた各出力ラベルのメンバーシップ関数の重心から確定
的な出力を得るという非ファジイ化が行われる。
2. Description of the Related Art Fuzzy control using fuzzy inference is being applied to a wide variety of existing controls such as control of various home appliances and vehicles. In the multi-fuzzy inference which is the core of the fuzzy inference, first, the degree of conformity (grade) between a plurality of fuzzy concepts on the input side included in the antecedent part of the fuzzy rule (rule) and the fact indicated by actual input data. Is calculated. Labels are added to the plurality of fuzzy concepts on the input side to identify each other, and thus each fuzzy concept is also referred to as an input label. Supported the rules for the grade of each input label calculated.
By performing the min-max operation, the grade of the output label for truncating the membership function of the output fuzzy concept (output label) included in the consequent part of each rule is calculated. Finally, defuzzification is performed to obtain a deterministic output from the centroid of the membership function of each output label truncated by the corresponding grade.

【0003】上記min-max 演算の内容を具体例を挙げて
説明する。まず、以下のような7個のルールが定義され
ているものとする。 ルール(1) if A and B then X ルール(2) if B and C then X ルール(3) if E and F then X ルール(4) if G and M and N then X ルール(5) if C and D then Y ルール(6) if H and I then Z ルール(7) if J and K and L then Z ただし、各ルールの前件部に含まれるA〜Lは入力ラベ
ル、後件部に含まれるX〜Zは出力ラベルである。ま
た、演算された入力ラベル A〜L のグレード Ag〜Lg
がそれぞれ Ag =0, Bg =0.06, Cg=0.7, Dg = 0.55, Eg = 0.6
5, Fg = 0, Gg=0.45,Hg =0.9, Ig =0, Jg = 0, K
g =0, Lg =0.62, Mg=0.2, Ng =0 であったとする。
[0003] The contents of the above min-max operation will be described with a specific example. First, it is assumed that the following seven rules are defined. Rule (1) if A and B then X Rule (2) if B and C then X Rule (3) if E and F then X Rule (4) if G and M and N then X Rule (5) if C and D then Y rule (6) if H and I then Z rule (7) if J and K and L then Z where A to L included in the antecedent of each rule are input labels and X to X included in the consequent Z is an output label. In addition, the grades Ag to Lg of the calculated input labels A to L
Are Ag = 0, Bg = 0.06, Cg = 0.7, Dg = 0.55, Eg = 0.6, respectively.
5, Fg = 0, Gg = 0.45, Hg = 0.9, Ig = 0, Jg = 0, K
It is assumed that g = 0, Lg = 0.62, Mg = 0.2, and Ng = 0.

【0004】まず、各ルールについて、その前件部に含
まれる入力ラベルのグレードのうち最小のものを選択す
るmin 演算が行われる。例えば、ルール(1) について
は、その前件部に入力ラベルAとBとが含まれている
が、それぞれのグレード Ag とBgとがそれぞれ0と 0.6
6 であるから、小さい方のグレード Ag が選択される。
同様に、ルール(2) については入力ラベルBのグレード
Bgが選択され、ルール(3)ついは入力ラベルFのグレー
ド Fg が選択され、ルール(4) についてはグレードNgが
選択される。
First, for each rule, a min operation is performed to select the smallest one of the grades of the input labels included in the antecedent part. For example, for rule (1), the input labels A and B are included in the antecedent, but the grades Ag and Bg are 0 and 0.6, respectively.
Since 6, the smaller grade Ag is selected.
Similarly, for rule (2), grade of input label B
Bg is selected, the grade Fg of the input label F is selected for the rule (3), and the grade Ng is selected for the rule (4).

【0005】次に、出力ラベルが共通な複数のルールに
ついて、min 演算結果の最小のグレードのうち最大のも
のを選択するmax 演算が行われる。すなわち、出力ラベ
ルが共通な4個のルール(1) ,(2),(3),(4) のそれぞれ
についてmin 演算によって得られた最小のグレード Ag
, Bg , Fg , Ng のうち最大のもの、すなわちグレ
ード Bg が選択される。同様のmax 演算が出力ラベルY
とZについても行われ、出力ラベルYについてはグレー
ド Dg が演算結果となり、出力ラベルZについてはグレ
ード Ig = Jg = Kg =0 が演算結果となる。
Next, for a plurality of rules having a common output label, a max operation for selecting the largest one of the minimum grades of the min operation result is performed. That is, for each of the four rules (1), (2), (3), and (4) with a common output label, the minimum grade Ag obtained by the min operation
, Bg, Fg, and Ng, that is, the grade Bg is selected. A similar max operation yields the output label Y
And Z are also performed. For the output label Y, the grade Dg is the calculation result, and for the output label Z, the grade Ig = Jg = Kg = 0 is the calculation result.

【0006】上記制御用のファジイ推論マシンでは、速
度、圧力、温度など複数の入力データを受けるために、
複数の入力チャネルが設けられており、各入力チャネル
には複数の入力ラベルが定義されている。また、スイッ
チの開閉やバルブの開度などに関する複数の出力データ
を出力するために複数の出力チャネルが設けられてお
り、各出力チャネルには複数の出力ラベルが定義されて
いる。従って、演算される入力ラベルのグレードの総数
は、入力チャネル×1入力チャネル当たりの入力ラベル
数となり、後段のmin-max 演算の対象となるデータの量
はかなり大きくなる。
In the fuzzy inference machine for control, in order to receive a plurality of input data such as speed, pressure, and temperature,
A plurality of input channels are provided, and a plurality of input labels are defined for each input channel. In addition, a plurality of output channels are provided for outputting a plurality of output data relating to opening / closing of a switch, opening of a valve, and the like, and a plurality of output labels are defined for each output channel. Accordingly, the total number of input label grades to be calculated is the number of input labels per input channel × 1 input channel, and the amount of data to be subjected to min-max calculation in the subsequent stage is considerably large.

【0007】従来、上述したようなファジイ推論による
制御は、主として家電製品などの低速制御用に応用され
てきたが、これを自動車の走行制御や、サスペンション
制御など比較的複雑でかつ高速性が要求される技術分野
に応用しようとすれば、従来の処理時間を飛躍的に、典
型的には3桁程度、短縮することが必要になる。この演
算時間の短縮は、入力ラベルについてのグレード演算
と、この演算されたグレード群についてのmin-max 演算
による出力ラベルのグレードの演算と、演算されたグレ
ードにより頭切りされた出力ラベルのメンバーシップ関
数の重心演算による非ファジイ化のそれぞれの段階につ
いて調和を保ちながら実現することが必要になる。
Conventionally, the above-described control based on fuzzy inference has been mainly applied to low-speed control of home electric appliances and the like. However, such control is required to be relatively complicated and high-speed, such as vehicle drive control and suspension control. In order to apply to the technical field, it is necessary to drastically reduce the conventional processing time, typically by about three digits. The reduction of the calculation time is achieved by the grade calculation for the input label, the calculation of the output label grade by the min-max calculation for the calculated grade group, and the membership of the output label truncated by the calculated grade. It is necessary to realize each stage of defuzzification by calculating the center of gravity of the function while maintaining harmony.

【0008】[0008]

【発明が解決しようとする課題】従来、入力ラベルのグ
レードについてのmin-max 演算は、各ルールについてそ
れぞれの前件部に含まれる入力ラベルのグレードの大小
比較を行うことにより実現されている。この大小比較を
ソフトウェア処理で実現するシステムの典型例は、特願
平4ー10133号などに開示されたものがあるが、こ
のようなソフトウェア処理では、多数回の大小比較を反
復する必要上、演算速度の向上が困難になるという問題
がある。上記大小比較をハードウエア回路で実現するシ
ステムの典型例は、特願平2ー159628号などに開
示されたものがあるが、各ルールに含まれる入力ラベル
について多数回の比較演算を実行する必要があり、高速
化が困難であると共に、このハードウエア回路の規模が
大きくなり製造費用の低減が困難になるという問題があ
る。
Conventionally, the min-max operation for the grade of an input label is realized by comparing the magnitude of the grade of an input label included in each antecedent for each rule. A typical example of a system for realizing the magnitude comparison by software processing is disclosed in Japanese Patent Application No. Hei 4-10133. However, such software processing requires a large number of magnitude comparisons to be repeated. There is a problem that it is difficult to improve the calculation speed. A typical example of a system for realizing the above-mentioned magnitude comparison by a hardware circuit is disclosed in Japanese Patent Application No. 2-159628 or the like. However, it is necessary to perform many comparison operations on input labels included in each rule. However, there is a problem that it is difficult to increase the speed, and it is difficult to reduce the manufacturing cost because the scale of the hardware circuit becomes large.

【0009】また、典型的なファジイ推論においては、
min-max 演算対象の入力ラベルのグレードの大部分はゼ
ロとなる。例えば、各入力チャネルについて、8個の入
力ラベルのメンバーシップ関数のそれぞれを最隣接のも
のだけが交差するように定義すれば、各入力チャネルか
らはゼロでないグレードを持つ入力ラベルが2個づつ出
力される。すなわち、min-max 演算対象の入力ラベルの
グレードのうち70〜80%はゼロのグレードとなる。
この大部分を占めるゼロのグレード(以下「ゼログレー
ド」と称する)は、min-max 演算結果に実質的な影響を
与えないという点で、他の入力ラベルのグレード(以下
「非ゼログレード」と称する)とは異なる特異性を有し
ている。しかしながら、従来のmin-max 演算では、ゼロ
グレードを非ゼログレードと同様に処理しているので、
無駄な処理が多量に含まれることになり、演算速度の向
上とハードウエア量の低減を一層困難にしている。
In a typical fuzzy inference,
Most of the input label grades subject to min-max operation are zero. For example, for each input channel, if each of the eight input label membership functions is defined such that only the nearest neighbors intersect, then each input channel will output two input labels with a non-zero grade. Is done. That is, 70 to 80% of the grades of the input label to be subjected to min-max calculation are grades of zero.
The majority of the zero grades (hereinafter referred to as “zero grades”) do not substantially affect the result of the min-max operation, and therefore, the grades of other input labels (hereinafter “non-zero grades”). Has a different specificity. However, in the conventional min-max operation, zero grade is processed in the same way as non-zero grade,
A large amount of useless processing is included, making it more difficult to improve the operation speed and reduce the amount of hardware.

【0010】従って、本発明の目的は、演算速度の向上
とハードウエア量の低減化を実現したファジイ推論のmi
n-max 演算回路を提供することにある。
Accordingly, it is an object of the present invention to provide a fuzzy inference system which achieves an increase in the operation speed and a reduction in the amount of hardware.
An object of the present invention is to provide an n-max operation circuit.

【0011】[0011]

【課題を解決するための手段】上記従来技術の課題を解
決する本発明に係わるファジイ推論のmin-max 演算回路
は、ファジイ推論に関する入力ラベルのグレードの大小
関係を予め判定する判定手段と、この判定手段によって
判定された大小の順番に従ってmin-max 演算を実行する
演算手段とを備えている。より具体的には、ファジイ推
論の各ルールの前件部に含まれる各入力ラベルについて
定義された所定の配列に従って各ルールがそれぞれの前
件部に各入力ラベルを含むか否かを有効/無効ビットで
表示する符号化ルールを各ルールについて定義し、この
ように定義された各符号化ルールに含まれる各入力ラベ
ルの有効/無効ビット群(以下、「ルール対応ビット
群」という)をその入力ラベルの識別コード(以下,
「ラベルコード」という)によって指定されるアドレス
に保持することにより各符号化ルールを複数のアドレス
にわたってかつ各ルール対応ビット群の各ビットの配列
方向に所定の順序で配列しながら保持するルールメモリ
を備えている。
A fuzzy inference min-max operation circuit according to the present invention for solving the above-mentioned problems of the prior art comprises: a judgment means for preliminarily judging a magnitude relation between grades of input labels related to fuzzy inference; Calculating means for executing a min-max calculation in accordance with the order of magnitude determined by the determining means. More specifically, validity / invalidity of whether each rule includes each input label in each antecedent part according to a predetermined arrangement defined for each input label included in the antecedent part of each rule of fuzzy inference is set. An encoding rule to be displayed in bits is defined for each rule, and a valid / invalid bit group of each input label (hereinafter, referred to as “rule corresponding bit group”) included in each of the encoding rules defined in this manner is input. Label identification code (hereinafter referred to as
A rule memory that holds each encoding rule over a plurality of addresses and in a predetermined order in the arrangement direction of each bit of each rule-corresponding bit group by retaining the encoding rule at an address designated by “label code”). Have.

【0012】更に、本発明に係わるファジイ推論のmin-
max 演算回路は、各入力ラベルについて演算された入力
ラベルのグレードを対応のラベルコードと共に大小の順
序に従って再配列したのち、再配列後の入力ラベルのグ
レード又は入力ラベルの再配列の順位を大きい順もしく
は小さい順に出力すると共に対応のラベルコードをルー
ルメモリの読出しアドレスとして供給することにより対
応のルール対応ビット群を出力させる入力ラベル再配列
手段を備えている。
Further, the fuzzy inference according to the present invention has a min-
The max operation circuit rearranges the grades of the input labels calculated for each input label together with the corresponding label codes in the descending order, and then rearranges the grades of the input labels or the rearrangement order of the input labels in descending order. Alternatively, there is provided an input label rearranging means for outputting a corresponding rule code as a read address of a rule memory and outputting a corresponding rule corresponding bit group by outputting the corresponding label code as a read address of the rule memory.

【0013】更に、本発明に係わるファジイ推論のmin-
max 演算回路は、上記ルールメモリから順次出力される
各符号化ルールに対応して設置され、上記再配列手段か
ら出力される入力ラベルのグレード又は再配列の順位
と、前記ルールメモリから出力される各符号化ルール中
に最初に又は最後に出現する有効ビットとに基づき最小
グレードに関する検出結果を得る最小グレード検出手段
と、各出力ラベルに対応して設置され対応の出力ラベル
を後件部として含む各ルールに対応して設置されている
上記各最小グレード検出手段が得た検出結果に基づき各
最小グレードのうち最大のものに関する検出結果を得る
最大グレード検出手段とを備えている。
Furthermore, the fuzzy inference according to the present invention has a min-
A max operation circuit is provided corresponding to each encoding rule sequentially output from the rule memory, and the grade or rearrangement order of the input label output from the rearrangement means and the output from the rule memory. A minimum grade detecting means for obtaining a detection result regarding the minimum grade based on the first or last valid bit appearing in each encoding rule, and a corresponding output label installed corresponding to each output label as a consequent part A maximum grade detecting means for obtaining a detection result regarding the largest one of the minimum grades based on the detection result obtained by each of the minimum grade detecting means installed in correspondence with each rule.

【0014】[0014]

【作用】本発明によれば、全てのルールの前件部に含ま
れる入力ラベルがそのグレードの大小の順に入力ラベル
再配列回路によって再配列される。一例として、従来技
術の説明に関連して前述した7個のルールが定義されか
つ、各ルールに含まれる各入力ラベルA〜Nのグレード
が前述のような値である場合を想定すれば、前件部に含
まれる入力ラベルをそのグレードの大小の順に配列し直
すことにより、図6に示すような結果が得られる。
According to the present invention, the input labels included in the antecedent part of all rules are rearranged by the input label rearranging circuit in the order of the grade. As an example, assuming that the seven rules described above in relation to the description of the related art are defined and the grades of the input labels A to N included in each rule are the values described above, By rearranging the input labels included in the subject part in the order of the magnitude of the grade, a result as shown in FIG. 6 is obtained.

【0015】このように、各ルールの前件部に含まれる
入力ラベルをそのグレードの大小の順に空間的に配列し
直すことにより、最小のグレードを有する入力ラベルは
一番右側に配列された入力ラベル(丸で囲んで示す)で
あり、かつ共通な出力ラベルを有する複数のルールにつ
いて、min 演算結果の最小のグレードのうち最大値を有
する入力ラベルは一番左側に配列されたもの(二重丸で
囲んで示す)であることが容易に判明する。このよう
に、各ルールの前件部に含まれる入力ラベルをそのグレ
ードの大小の順に空間的に配列し直すことにより、その
配列順位からmin-max 演算の結果を容易に知ることがで
きる。
As described above, the input labels included in the antecedent part of each rule are spatially rearranged in descending order of the grade, so that the input label having the smallest grade can be arranged in the rightmost input label. For a plurality of rules that are labels (indicated by circles) and have a common output label, the input label that has the maximum value among the minimum grades of the min operation result is the label arranged on the leftmost side (double (Circled). In this way, by rearranging the input labels included in the antecedent part of each rule spatially in the order of the grade, the result of the min-max operation can be easily known from the arrangement order.

【0016】図6の再配列結果は人間による判別には向
いているが、機械的な判別には不向きである。そこで、
本発明によれば、最小限のデータ量のもとに自動的な判
別を容易にするという観点から、まず、上記入力ラベル
の再配列に先立ってシステム内で定義されている各ルー
ルの符号化が行われる。このルールの符号化は、システ
ム内の全ての入力チャネルで定義されている全ての入力
ラベルの配列順序を予め定義しておき、各ルールについ
て各入力ラベルを含むか否かを、含む場合には有効ビッ
ト(例えば“1”)で、含まない場合には無効ビット
(例えば“0”)で表示した情報を上記入力ラベルにつ
いて定義された配列順序と同一の順序で配列することに
よって実現される。
The rearrangement result shown in FIG. 6 is suitable for discrimination by humans, but is not suitable for mechanical discrimination. Therefore,
According to the present invention, from the viewpoint of facilitating automatic discrimination with a minimum amount of data, first, encoding of each rule defined in the system prior to the rearrangement of the input labels is performed. Is performed. The encoding of this rule predefines the arrangement order of all input labels defined in all input channels in the system, and for each rule, whether or not each input label is included, if This is realized by arranging information represented by valid bits (for example, “1”) and, when not included, by invalid bits (for example, “0”), in the same order as the arrangement order defined for the input labels.

【0017】図6の例では、AからNまでの各入力ラベ
ルについて、アルファベット順の配列順序を定義してお
くものとすれば、ルール(1) は入力ラベルAとBのみを
前件部に含むため、これを符号化した符号化ルール(1)
は、図7に示すように、「1100000000000
0」となる。同様に、ルール(5) は入力ラベルCとDの
みを前件部に含むため、これを符号化した符号化ルール
(5) は、図8に示すように、「00110000000
000」となる。
In the example of FIG. 6, if the arrangement order in alphabetical order is defined for each input label from A to N, rule (1) is that only input labels A and B are included in the antecedent part. To include, the encoding rule that encoded this (1)
Is "110000000000000000" as shown in FIG.
0 ". Similarly, since rule (5) includes only the input labels C and D in the antecedent part, the encoding rule
(5) is "00110000000" as shown in FIG.
000 ".

【0018】次に、上記各符号化ルールを所定の順序、
好適には、共通の出力ラベルを有するものどうしが隣接
し合うように配列することにより、図9に例示するよう
な有効/無効ビットの二次元配列を得る。この有効/無
効ビットの二次元配列は、図9図中を下から上に縦方向
にたどると、すなわち、任意の入力ラベルについて全て
の符号化ルールを走査すると、その入力ラベルが所定の
順序で配列された各ルールの前件部に含まれるか否か
を、含まれる場合には有効ビット(“1”)で、含まれ
ない場合には有効ビット(“0”)で表示したビット配
列となる。
Next, each of the above encoding rules is set in a predetermined order,
Preferably, two-dimensional arrays of valid / invalid bits as illustrated in FIG. 9 are obtained by arranging those having a common output label so as to be adjacent to each other. When the two-dimensional array of valid / invalid bits is vertically traced from bottom to top in FIG. 9, that is, when all encoding rules are scanned for an arbitrary input label, the input labels are arranged in a predetermined order. Whether or not the rule is included in the antecedent part of each of the arranged rules is represented by a bit array represented by a valid bit (“1”) when the rule is included and by a valid bit (“0”) when not included. Become.

【0019】このような1列分の有効/無効ビットの配
列を、以下では「各入力ラベルのルール対応ビット群」
と称する。例えば、図9の場合、入力ラベルAのルール
対応ビット群は「1000000」であり、入力ラベル
Nのルール対応ビット群は「0001000」である。
このような各入力ラベルのルール対応ビット群を各入力
ラベルの識別コード(a〜n)によってアクセスされる
ROMなどのメモリ上に予め保持させておく。このよう
なメモリを、以下「ルールメモリ」、あるいは「ルール
ROM」と称するものとし、このルールメモリの読出し
アドレスを指定する入力ラベルの識別コードを「ラベル
コード」と称する。このように、本発明によれば、ルー
ルの符号化を行いこの符号化ルールをラベルコードによ
って指定されるアドレスを有するルールROM内にルー
ル対応ビット列として保持させておく。
Such an array of valid / invalid bits for one column is hereinafter referred to as a "bit group corresponding to the rule of each input label".
Called. For example, in the case of FIG. 9, the rule corresponding bit group of the input label A is “100000”, and the rule corresponding bit group of the input label N is “0001000”.
Such a rule corresponding bit group of each input label is previously stored in a memory such as a ROM accessed by the identification code (a to n) of each input label. Such a memory is hereinafter referred to as a “rule memory” or “rule ROM”, and an identification code of an input label for specifying a read address of the rule memory is referred to as a “label code”. As described above, according to the present invention, a rule is encoded, and this encoding rule is stored as a rule-corresponding bit string in a rule ROM having an address designated by a label code.

【0020】更に、図9に示した各入力ラベルのルール
対応ビット群を各入力ラベルのグレードの大小の順に従
って空間的に配列し直すと、図10示すような結果が得
られる。図10の空間的な配列は、前述の図6の空間的
な配列に対応している。なお、図6から図10への再配
列に際し、あるルールやその符号化ルールについてそれ
ぞれの前件部に含まれる入力ラベルの配列順序を変更な
いしは入替えても、そのルールやその符号化ルールの内
容は何ら変更されないことが前提となっている。これは
if A and B then X というルールは、前件部
の入力ラベルの順序を入替えることによりif B and
A then X と変形しても、ルールの内容は変更されな
いからである。
Further, when the rule-corresponding bit group of each input label shown in FIG. 9 is spatially rearranged according to the order of the grade of each input label, the result shown in FIG. 10 is obtained. The spatial arrangement in FIG. 10 corresponds to the spatial arrangement in FIG. 6 described above. In the rearrangement from FIG. 6 to FIG. 10, even if the arrangement order of the input labels included in the respective antecedents of a certain rule or its encoding rule is changed or replaced, the contents of the rule or its encoding rule are changed. Is assumed to be unchanged at all. this is
The rule if A and B then X is obtained by changing the order of the input labels in the antecedent part.
This is because even if it is transformed into A then X, the contents of the rule are not changed.

【0021】このように、入力ラベルのグレードの大小
順に各入力ラベルのルール対応ビット群を空間的に再配
列することにより、機械的に判定容易な図10の配列を
得ることができる。すなわち、図10に含まれる各符号
化ルールについて最も右側に位置する有効ビット
(“1”)を検出し、次に任意の出力ラベルを共通に含
む1又は複数の符号化ルールのそれぞれについて検出済
みの最も右側の有効ビットのうち最も左側に位置する有
効ビットを検出し、この最も左側に位置する有効ビット
に対応する入力ラベルを検出し、最後に、その検出した
入力ラベルのグレードを選択すれば、これがその出力ラ
ベルについてのmin-max 演算結果となる。
As described above, by spatially rearranging the bit groups corresponding to the rules of each input label in the descending order of the grade of the input label, it is possible to obtain the arrangement of FIG. 10 which is easily mechanically determined. That is, the most significant bit ("1") located at the rightmost position is detected for each of the encoding rules included in FIG. 10, and then, for each of one or a plurality of encoding rules commonly including an arbitrary output label has been detected. Of the rightmost valid bits of the input bit, the input label corresponding to the leftmost valid bit is detected, and finally, the grade of the detected input label is selected. , Which is the result of the min-max operation for the output label.

【0022】上述のように、空間的に配列されたルール
対応ビット群に基づきmin-max 演算を行うことが可能で
あり、このような空間的なmin-max 演算の構成について
は本出願と相前後して行う他の特許出願に開示されてい
る。本発明のmin-max 演算回路では、ルール対応ビット
の出現順序を利用する時系列的なmin-max 演算が行われ
る。空間的なあるいは時系列的ないずれの手法を採用す
る場合にも、入力ラベルをグレードの順に一旦再配列し
ておくという構成により、処理時間が大幅に短縮され
る。すなわち、従来のmin-max 演算回路によれば、各ル
ールごとに前件部に含まれる入力ラベルのグレードの大
小比較が行われるため、例えば、入力ラベルAとBとを
前件部に含むルールが10個存在するものとすれば、そ
れぞれのグレードの大小比較が10個のルールについ
て、すなわち10回にわたって繰り返される。これに対
して、本発明のmin-max 演算回路では、入力ラベルAと
Bとを前件部に含むルールが何個存在する場合でも、そ
れぞれのグレードの大小比較は1回で済み、この結果、
演算時間が大幅に短縮される。
As described above, a min-max operation can be performed based on a spatially arranged rule-corresponding bit group. The configuration of such a spatial min-max operation is the same as that of the present application. It is disclosed in other patent applications filed before and after. The min-max operation circuit of the present invention performs a time-series min-max operation using the order of appearance of the rule corresponding bits. Regardless of whether a spatial or time-series method is adopted, the processing time is greatly reduced by a configuration in which input labels are once rearranged in order of grade. That is, according to the conventional min-max operation circuit, since the magnitude of the grade of the input label included in the antecedent part is compared for each rule, for example, the rule including the input labels A and B in the antecedent part is used. If there are ten, the magnitude comparison of each grade is repeated for ten rules, that is, ten times. On the other hand, in the min-max operation circuit of the present invention, even if there are any number of rules including the input labels A and B in the antecedent part, the magnitude comparison of each grade only needs to be performed once. ,
The operation time is greatly reduced.

【0023】上記時系列的なmin-max 演算に必要な入力
ラベル再配列回路は、各入力ラベルについて演算された
入力ラベルのグレードを対応のラベルコードと共に大小
の順序に従って一旦再配列したのち、この再配列済みの
入力ラベルのグレードの大小の順に従って対応のラベル
コードをルールメモリの読出しアドレスとして供給する
ことにより対応のルール対応ビット群を順次出力させ
る。このルールメモリから順次出力されるルール対応ビ
ット群の各ビット位置に着目すれば、ルールメモリに保
持中の各符号化ルールが入力ラベルの入替えによる変形
を受けながら時系列的に出現する。
The input label rearrangement circuit necessary for the time-series min-max operation temporarily rearranges the grades of the input labels calculated for each input label together with the corresponding label codes in the order of magnitude, and then re-arranges them. By supplying corresponding label codes as read addresses of the rule memory in accordance with the order of the grade of the rearranged input labels, the corresponding rule corresponding bit groups are sequentially output. Focusing on each bit position of the rule-corresponding bit group sequentially output from the rule memory, each encoding rule held in the rule memory appears in a time-series manner while being deformed by the replacement of the input label.

【0024】そこで、本発明のmin-max 演算回路では、
各符号化ルールに含まれる最小グレードを検出するため
の最小グレード検出回路がルールメモリから順次出力さ
れるルール対応ビット群の各ビット位置に設置される。
各最小グレード検出回路は、入力ラベル再配列回路から
出力される入力ラベルのグレードや再配列の順位と、ル
ールメモリから出力される各符号化ルール中に最初に、
あるいは最後に出現する有効ビットとに基づき最小グレ
ードに関する検出結果を得る。すなわち、入力ラベルの
グレードの小さな順にルールメモリをアクセスすれば、
各符号化ルールの最初に出現する有効ビットと共に再配
列回路から出力されるグレードを最小グレードとして検
出できる。逆に、入力ラベルのグレードの大きな順にル
ールメモリをアクセスすれば、各符号化ルールの最後に
出現する有効ビットと共に再配列回路から出力されるグ
レードを最小グレードとして検出できる。
Then, in the min-max operation circuit of the present invention,
A minimum grade detection circuit for detecting the minimum grade included in each encoding rule is provided at each bit position of the rule corresponding bit group sequentially output from the rule memory.
Each minimum grade detection circuit firstly sets the order of the grade and rearrangement of the input label output from the input label rearrangement circuit, and in each encoding rule output from the rule memory,
Alternatively, a detection result regarding the minimum grade is obtained based on the last valid bit. That is, if the rule memory is accessed in ascending order of the input label grade,
The grade output from the rearrangement circuit together with the first valid bit of each encoding rule can be detected as the minimum grade. Conversely, if the rule memory is accessed in the descending order of the grade of the input label, the grade output from the rearrangement circuit together with the last valid bit of each encoding rule can be detected as the minimum grade.

【0025】更に、本発明のmin-max 演算回路では、各
出力ラベルに対応して最大グレード検出回路が設置され
る。各最大グレード検出回路は、各出力ラベルを後件部
として含む各ルールに対応して設置されている各最小グ
レード検出回路が得た最小グレードに関する検出結果に
基づきこれらのうち最大のものに関する検出結果を得
る。
Further, in the min-max operation circuit of the present invention, a maximum grade detection circuit is provided corresponding to each output label. Each maximum grade detection circuit is based on the detection result of the minimum grade obtained by each minimum grade detection circuit installed corresponding to each rule that includes each output label as a consequent part. Get.

【0026】上述した各入力ラベルのルール対応ビット
群の再配列を含むmin-max 演算は、ソフトウェア的に実
現してもよいし、ハードウエア的に実現してもよい。ま
た、ソフトウェアで実現する場合もハードウエア回路で
実現する場合も、その具体的な実現方法としては、多種
多様なものが考えられる。以下、これらの具体的実現方
法の典型的なものを実施例によって説明する。
The above-described min-max operation including rearrangement of the rule-corresponding bit group of each input label may be implemented by software or hardware. In addition, in the case of realizing by software and the case of realizing by a hardware circuit, a variety of concrete realizing methods can be considered. Hereinafter, typical examples of these specific realization methods will be described with reference to examples.

【0027】[0027]

【実施例】図1は、本発明の一実施例に係わるファジイ
推論のmin-max 演算回路の構成を示すブロック図であ
り、10は入力ラベルのグレードとラベルコードとをそ
のグレードの大小順に再配列する入力ラベル再配列回
路、20はルールROM、30はグレード保持レジスタ
群、40は論理回路群、51はグレードバス、52はラ
ベルコードバス、53は有効フラグ信号線である。図示
の便宜上、ルールROM20と、グレード保持レジスタ
群30と、論理回路群40から成る後段部分は、1個の
出力チャネルのみについて図示されている。すなわち、
上記後段部分は、出力チャネルの総数に等しい数、例え
ば出力チャネルの総数が10であれば、これと同数の1
0組だけ設置される。
FIG. 1 is a block diagram showing a configuration of a min-max operation circuit for fuzzy inference according to an embodiment of the present invention. In FIG. 1, reference numeral 10 denotes a grade of an input label and a label code in order of magnitude of the grade. An input label rearrangement circuit to be arranged, 20 is a rule ROM, 30 is a grade holding register group, 40 is a logic circuit group, 51 is a grade bus, 52 is a label code bus, and 53 is a valid flag signal line. For the sake of illustration, the latter part including the rule ROM 20, the grade holding register group 30, and the logic circuit group 40 is illustrated for only one output channel. That is,
The latter part has a number equal to the total number of output channels, for example, if the total number of output channels is 10, the same number of 1
Only 0 sets are installed.

【0028】グレードバス51上には、図示しない前段
のグレード演算回路において複数の入力チャネルの配列
順にかつ各入力チャネルについてはこの入力チャネルに
ついて定義されている複数の入力ラベルの配列順に入力
ラベルのグレード演算が実行され、この演算の実行順に
各入力チャネルの各入力ラベルのグレードが出現する。
入力チャネルの総数が8で、各入力チャネル内の入力ラ
ベルの総数が9であるような典型なシステムを想定すれ
ば、合計72個の入力ラベルのグレードがグレードバス
51上に出現する。
On the grade bus 51, the grades of the input labels are arranged in the order of arrangement of the plurality of input channels in the preceding grade arithmetic circuit (not shown), and for each input channel in the order of arrangement of the plurality of input labels defined for the input channels. The operation is executed, and the grade of each input label of each input channel appears in the order of execution of the operation.
Assuming a typical system where the total number of input channels is 8 and the total number of input labels in each input channel is 9, a total of 72 input label grades will appear on grade bus 51.

【0029】グレードバス51上に出現する入力ラベル
のグレードに対応する入力チャネル・入力ラベルのラベ
ルコードが、この入力ラベルのグレードと同時にラベル
コードバス52上に出現する。各入力チャネル・入力ラ
ベルのラベルコードは、2番目の入力チャネルの3番目
の入力ラベルという具合に入力チャネルの通し番号とこ
の入力チャネルに含まれる入力ラベルの通し番号の組合
せで表現してもよいし、あるいは、入力チャネルの配列
順にかつ各チャネルについて定義されている入力ラベル
の配列順に配列される全ての入力ラベルについて割り振
られた通し番号で表現してもよい。
The label code of the input channel / input label corresponding to the grade of the input label appearing on the grade bus 51 appears on the label code bus 52 simultaneously with the grade of the input label. The label code of each input channel / input label may be represented by a combination of the serial number of the input channel and the serial number of the input label included in this input channel, such as the third input label of the second input channel, Alternatively, all input labels arranged in the order of arrangement of input channels and in the order of arrangement of input labels defined for each channel may be represented by serial numbers assigned.

【0030】典型的なファジイ推論においては、グレー
ドバス51上に出現する入力ラベルのグレードの大部分
はゼロとなる。例えば、各入力チャネルについて、9個
の入力ラベルのメンバーシップ関数のそれぞれを最隣接
のものだけが交差するように定義すれば、各入力チャネ
ルからはゼロでない入力ラベルのグレードが2個づつ出
力される。すなわち、全部で8入力チャネル分の総数7
2個の入力ラベルのグレードのうち16個だけがゼロで
なく、残りの56個はゼロのグレード(以下、「ゼログ
レード」と称する)となる。このmin-max 演算回路で
は、入力ラベルのグレードの大部分を占めるゼログレー
ドについては例外的な処理を実行することにより、処理
時間の短縮と回路規模の低減とを図っている。その一環
として、図示しない前段の入力ラベルのグレード演算回
路からは、演算結果がゼログレードでなければその旨を
示す有効フラグが、ゼログレードであれば無効フラグが
有効フラグ信号線53上に出力される。
In a typical fuzzy inference, most of the input label grades appearing on the grade bus 51 are zero. For example, for each input channel, if each of the nine input label membership functions is defined such that only the nearest neighbors intersect, then each input channel will output two non-zero input label grades. You. That is, a total number of 7 for 8 input channels in total
Only 16 of the two input label grades are not zero, and the remaining 56 grades are zero grades (hereinafter referred to as "zero grades"). In this min-max operation circuit, the processing time is reduced and the circuit scale is reduced by executing an exceptional process for the zero grade which occupies most of the grade of the input label. As a part of this, from the grade arithmetic circuit of the preceding input label (not shown), a valid flag indicating that the operation result is not zero grade is output on the valid flag signal line 53 if the operation result is zero grade. You.

【0031】グレードバス51上に順次出現する多数の
ゼログレードを含む入力ラベルのグレードは、まず、入
力ラベル再配列回路10において、ゼログレードの廃棄
と、非ゼログレードの大きさの順に応じた再配列とが実
行される。この入力ラベル再配列回路10は、基本的に
は縦列配置された2系統のデータレジスタ群から構成さ
れ、一方の系統のデータレジスタ群には入力ラベルのグ
レードが保持され、他方の系統のデータレジスタ群には
対応のラベルコードが保持されるようになっている。
First, in the input label reordering circuit 10, the input label grades including a large number of zero grades appearing sequentially on the grade bus 51 are discarded by the input label and rearranged according to the size order of the non-zero grades. The array is executed. This input label rearrangement circuit 10 is basically composed of two groups of data registers arranged in tandem, and one of the groups of data registers holds the grade of the input label and the other group of data registers. The group holds a corresponding label code.

【0032】このゼログレードの廃棄と、非ゼログレー
ドの大きさの順序に応じた入力ラベルのグレードの再配
列は、有効フラグ信号線53上に有効フラグが出現した
時だけ、グレードバス51上に出現中のグレードをその
大小関係に応じた保持先を選択しながら対応の識別子と
共に各系統のデータレジスタ群の一つに保持することに
よって実現される。このような入力ラベル再配列回路1
0は適宜な手法に基づき実現できるが、好適には、本出
願人がこの出願と前後して出願する「データのソート回
路」に開示されているようなものを利用すれば、処理時
間の短縮という点において特に好適である。この入力ラ
ベル再配列回路の詳細については後述する。
The discarding of the zero grade and the rearrangement of the grades of the input labels in accordance with the order of the magnitude of the non-zero grade are performed on the grade bus 51 only when a valid flag appears on the valid flag signal line 53. This is realized by holding the appearing grade in one of the data register groups of each system together with the corresponding identifier while selecting the holding destination according to the magnitude relation. Such an input label rearrangement circuit 1
0 can be realized based on an appropriate technique, but preferably, the processing time can be reduced by using a circuit disclosed in “Data Sorting Circuit” filed by the present applicant before and after this application. It is particularly suitable in this respect. The details of the input label rearrangement circuit will be described later.

【0033】入力ラベル再配列回路10によるグレード
とラベルコードの再配列が終了すると、グレードレジス
タ群30の全てについて初期値ゼロが設定されたのち、
アドレスカウンタ54から供給される連続的なアドレス
に従って、再配列済みの入力ラベルのグレードが小さな
順に入力ラベル再配列回路10からグレードバス上51
に出力される。これと同時に対応のラベルコードが入力
ラベル再配列回路10からラベルコードバス52上に出
力される。このラベルコードバス52上に出力されたラ
ベルコードは、ルールROM20のアドレス入力端子に
供給されることにより、ルールROM20からはこのア
ドレスに保持中のルール対応ビット群がが論理回路40
に出力される。
When the rearrangement of the grade and the label code by the input label rearrangement circuit 10 is completed, the initial value zero is set for all of the grade register groups 30.
In accordance with the consecutive addresses supplied from the address counter 54, the grades of the rearranged input labels are changed from the input label rearrangement circuit 10 to the grade bus 51 in ascending order.
Is output to At the same time, the corresponding label code is output from the input label rearranging circuit 10 onto the label code bus 52. The label code output on the label code bus 52 is supplied to an address input terminal of the rule ROM 20 so that a rule-corresponding bit group held at this address is output from the rule ROM 20 to the logic circuit 40.
Is output to

【0034】ルールROM20から出力されるルール対
応ビット群を受ける論理回路40は、9個の出力ラベル
のそれぞれに対応して設置されている9個の部分論理回
路41,42・・・・49から構成されている。各部分
論理回路は、対応の出力ラベルについて定義可能なルー
ルの最大数と同数の最小グレード検出回路410,42
0・・・490と、これら最小グレード検出回路の各出
力の論理和を作成し出力するオアゲート411,421
・・・・491から成る最大グレード検出回路とから構
成されている。
The logic circuit 40 that receives the rule-corresponding bit group output from the rule ROM 20 includes nine partial logic circuits 41, 42,..., 49 provided corresponding to the nine output labels. It is configured. Each partial logic circuit has the same number of minimum grade detection circuits 410 and 42 as the maximum number of rules that can be defined for the corresponding output label.
OR gates 411 and 421 which create and output a logical sum of 0... 490 and each output of these minimum grade detection circuits.
... And a maximum grade detection circuit composed of 491.

【0035】最小グレード検出回路410は、入力ラベ
ル再配列回路10からの入力ラベルのグレードの出力時
にルールROM20から順次読出されるルール対応ビッ
トのうち対応のルールビット位置に出現する対応の符号
化ルール中に最初に出現する有効ビット“1”を検出
し、オアゲート411の入力端子に“1”を出力するよ
うに構成されている。すなわち、対応の符号化ルール中
に2番目、3番目の有効ビット“1”が出現しても、対
応の最小グレード検出回路410からは“1”が出力さ
れない。このような最小グレード検出回路410の構成
については後に詳述する。
The minimum grade detecting circuit 410 outputs a corresponding encoding rule appearing at a corresponding rule bit position among the rule corresponding bits sequentially read from the rule ROM 20 when the input label rearrangement circuit 10 outputs the grade of the input label. It is configured to detect the first valid bit "1" that appears therein and output "1" to the input terminal of the OR gate 411. That is, even if the second and third valid bits “1” appear in the corresponding encoding rule, “1” is not output from the corresponding minimum grade detection circuit 410. The configuration of the minimum grade detection circuit 410 will be described later in detail.

【0036】さて、入力ラベル再配列回路10による入
力ラベルの再配列が終了すると、グレードレジスタ31
〜39の内容がゼロに初期設定される。この後、入力ラ
ベル再配列回路10から、再配列済みの入力ラベルとラ
ベルコードがそのグレードの小さな順に順次出力され
る。入力ラベル再配列回路10からバス52上に出力さ
れたラベルコードは、ルールROM20のアドレス入力
端子に供給され、このルールROM20に保持中のルー
ル対応ビット群が入力ラベルのグレードの大小順に出力
され、各ルール対応ビット群を構成する各ビット、すな
わち各符号化ルールが各最小グレード検出回路410〜
490に供給される。
When the rearrangement of the input labels by the input label rearranging circuit 10 is completed, the grade register 31
To 39 are initialized to zero. Thereafter, the input label rearranging circuit 10 sequentially outputs rearranged input labels and label codes in ascending order of the grade. The label code output from the input label rearranging circuit 10 onto the bus 52 is supplied to an address input terminal of the rule ROM 20, and the rule-corresponding bit groups held in the rule ROM 20 are output in the descending order of the input label grade. Each bit constituting each rule-corresponding bit group, that is, each encoding rule is included in each minimum grade detection circuit 410-410.
490.

【0037】各最小グレード検出回路410は、ルール
ROM20から逐次読出された対応の符号化ルール中に
最初に出現する有効ビット“1”を検出し、オアゲート
411に“1”を出力する。これに伴いオアゲート41
1から対応のグレードレジスタ31にデータの保持を指
令する“1”が出力される。この保持指令を受けたグレ
ードレジスタ31は、グレードバス51上に出現中の入
力ラベルのグレードを保持する。すなわち、各最小グレ
ード検出回路410は、対応のルールの前件部に含まれ
る1又は複数の入力ラベルのうち、入力ラベル再配列回
路10から最初に出力されたもののグレードをデータレ
ジスタ31に保持させる機能を果たす。
Each minimum grade detection circuit 410 detects the first valid bit “1” appearing in the corresponding coding rule sequentially read from the rule ROM 20 and outputs “1” to the OR gate 411. With this, OR gate 41
From “1”, “1” for instructing data holding to the corresponding grade register 31 is output. The grade register 31 that has received the holding instruction holds the grade of the input label appearing on the grade bus 51. That is, each minimum grade detection circuit 410 causes the data register 31 to hold the grade of the one or a plurality of input labels included in the antecedent part of the corresponding rule that is first output from the input label rearrangement circuit 10. Perform the function.

【0038】ここで、グレードバス51上には入力ラベ
ルのグレードが小さな順に出現するという点を考慮すれ
ば、対応の符号化ルール中に出現する最初の有効ビット
に基づきレジスタ31に保持される入力ラベルのグレー
ドは、対応の符号化ルールの前件部に含まれる最小のも
のに他ならない。すなわち、単位論理回路410のそれ
ぞれは、対応のルールの前件部に含まれる各入力グレー
ドに対する min演算を実現するための機能の一部を果
す。
Here, considering that the grades of input labels appear on the grade bus 51 in ascending order, the input held in the register 31 based on the first valid bit appearing in the corresponding coding rule. The label grade is the smallest one contained in the antecedent part of the corresponding encoding rule. That is, each of the unit logic circuits 410 performs a part of the function for implementing the min operation for each input grade included in the antecedent part of the corresponding rule.

【0039】また、最初の出力ラベルに対応して設置さ
れているグレードレジスタ31については、この出力ラ
ベルを共通とする各ルールに対応して設置されている各
最小グレード検出回路410から“1”が出力されるた
びに、グレードバス51上に出現中の入力ラベルのグレ
ードの保持が行われる。この際、既に保持済みの入力ラ
ベルのグレードが新たに保持される入力ラベルのグレー
ドによって置き換えられる。従って、入力ラベル再配列
回路10からの入力ラベルのグレードの出力が終了した
時点でグレードレジスタ31に保持中の入力ラベルのグ
レードは、各最小グレード検出回路410のうち最後に
“1”を出力したものに対応するルールに含まれている
最小の入力ラベルのグレードに他ならない。ここで、グ
レードバス51上に出力される入力ラベルのグレードは
大きなものほど遅く出現するという点を考慮すれば、各
符号化ルール中に最後に出現した有効ビットによってデ
ータレジスタ31に保持された入力ラベルのグレード
は、対応の出力ラベルに含まれる各符号化ルールについ
て検出された入力ラベルのグレードの最小値(min)のう
ちの最大値 (max)に他ならない。
As for the grade register 31 installed corresponding to the first output label, the minimum grade detection circuit 410 installed corresponding to each rule sharing this output label outputs "1". Is output, the grade of the input label appearing on the grade bus 51 is held. At this time, the grade of the input label already held is replaced with the grade of the newly held input label. Therefore, when the output of the grade of the input label from the input label rearranging circuit 10 is completed, the grade of the input label held in the grade register 31 is "1" lastly output from each of the minimum grade detection circuits 410. It is nothing but the grade of the smallest input label contained in the corresponding rule. Here, considering that the grade of the input label outputted on the grade bus 51 appears later as the grade becomes larger, the input label held in the data register 31 by the last valid bit appearing in each encoding rule is considered. The label grade is equal to the maximum value (max) of the minimum values (min) of the input label grades detected for each encoding rule included in the corresponding output label.

【0040】すなわち、最小グレード検出回路410の
それぞれは、単体では各ルールに前件部として含まれる
各入力グレードについての min 演算の機能の一部を果
たすと共に、互いに並列に設置され各出力端子がオアゲ
ート411で論理的に加算されるという全体構成により
min-max 演算の機能の一部を果たすことになる。このmi
n-max 演算機能の残りの部分は、グレードバス51上に
小さなものほど先行して入力ラベルのグレードを出力す
るという入力ラベルのグレード再配列回路10の機能に
負っている。このmin-max 演算機能は、この出力チャネ
ルの他の出力ラベルに対応して設置されている部分論理
回路42〜49についても、また、図示しない他の全て
の出力チャネルについて各出力ラベルに対応して設置さ
れている他の全ての部分論理回路についても同様であ
る。
That is, each of the minimum grade detection circuits 410 alone performs a part of the function of the min operation for each input grade included as a prerequisite part in each rule, and is installed in parallel with each other and each output terminal is provided. With the overall configuration of logical addition by the OR gate 411,
Part of the function of the min-max operation. This mi
The remaining part of the n-max operation function depends on the function of the input label grade rearrangement circuit 10 in which the smaller the grade on the grade bus 51, the earlier the output of the input label grade. This min-max operation function is also applicable to the partial logic circuits 42 to 49 installed corresponding to the other output labels of this output channel, and also to each output label for all other output channels not shown. The same applies to all other partial logic circuits installed.

【0041】このようにして、グレード再配列回路10
から総数16個のゼロでないグレードが出力された時点
で、各入力チャネルの各入力ラベルのグレードどうしの
min-max 演算に基づき演算された各出力チャネルの各出
力ラベルのグレードがグレードレジスタに保持される。
このグレードレジスタに保持された各出力チャネルの各
出力ラベルのグレードは、グレードバス51を介して後
段の非ファジイ化回路に転送され、ここで重心法などに
よる非ファジイ化処理を受け、確定的な出力データとし
て、各出力チャネルに出力される。
In this way, the grade rearrangement circuit 10
, When a total of 16 non-zero grades are output, the grades of each input label of each input channel are compared.
The grade of each output label of each output channel calculated based on the min-max calculation is held in the grade register.
The grade of each output label of each output channel held in the grade register is transferred to the subsequent defuzzification circuit via the grade bus 51, where it is subjected to defuzzification processing by the center of gravity method or the like. The output data is output to each output channel.

【0042】さて、各最小グレード検出回路は、最小グ
レード検出回路410で代表して図2に示すように、D
フリップフロップ411aと2入力アンドゲート411
bとから成る後段部分と、JKフリップフロップ411
c,411gとスイッチ411dと論理ゲート411
e,411fとから成る前段部分とから構成されてい
る。この最小グレード検出回路の主要な動作は、前述し
たように、再配列済みの入力ラベルのグレードの出力中
にmin-max 演算の機能の一部を分担することにある。ま
ず、Dフリップフロップ411aと2入力アンドゲート
411bとから成る後段部分によって、前段部分のオア
ゲート411fの出力が“0”から“1”に変化した時
に半クロック期間だけ“1”を出力する微分機能が実現
されている。これに対して上記前段部分のうちJKフリ
ップフロップ411gとオアゲート411fから成る部
分は、不使用ルールについて上記後段部分の機能を禁止
するためのものである。また、前段部分のうちJKフリ
ップフロップ411cとオアゲート411fから成る部
分は、入力ラベル再配列回路10による入力ラベルのグ
レードの再配列中に対応のルールに含まれない無効な入
力ラベルが出現したり、ルールに含まれる有効な入力ラ
ベルがゼログレードであった場合、あるいは、min-max
演算過程で各ルールの前件部で指定された最初の有効ビ
ットが出現した後、すなわちルールの最小グレードが出
現した後は、上記後段の機能を停止させるためのもので
ある。
Each minimum grade detection circuit is represented by a minimum grade detection circuit 410 as shown in FIG.
Flip-flop 411a and 2-input AND gate 411
b) and a JK flip-flop 411
c, 411g, switch 411d, and logic gate 411
e, 411f. The main operation of the minimum grade detection circuit is to share a part of the function of the min-max operation during the output of the grade of the rearranged input label, as described above. First, a differentiating function of outputting "1" for only a half clock period when the output of the OR gate 411f of the preceding stage changes from "0" to "1" by the subsequent stage including the D flip-flop 411a and the two-input AND gate 411b. Has been realized. On the other hand, the part consisting of the JK flip-flop 411g and the OR gate 411f in the preceding stage is for inhibiting the function of the latter stage with respect to the non-use rule. In addition, in the part consisting of the JK flip-flop 411c and the OR gate 411f in the former stage, an invalid input label not included in the corresponding rule appears during the rearrangement of the input label grade by the input label rearrangement circuit 10, If the valid input label included in the rule is zero grade, or min-max
After the first valid bit specified in the antecedent part of each rule appears in the calculation process, that is, after the minimum grade of the rule appears, the function of the latter stage is stopped.

【0043】前段部分のノアゲート411eの一方の入
力端子には、入力ラベル再配列回路10が再配列を実行
中であるか又は配列済みの入力ラベルのグレードの出力
を実行中であるかを、前者の場合には“0”で、後者の
場合には“1”で示す信号が入力する。このノアゲート
411eの他方の入力端子には、図1の有効フラグ信号
線53から再配列対象の入力ラベルのグレードがゼロで
あれば“1”、ゼロでなければ“0”が入力する。
One input terminal of the NOR gate 411e in the preceding stage is connected to the input label rearranging circuit 10 to determine whether the input label rearranging circuit 10 is executing rearrangement or outputting the grade of the arranged input label. In this case, a signal indicated by "0" is input, and in the latter case, a signal indicated by "1" is input. To the other input terminal of the NOR gate 411e, "1" is input from the valid flag signal line 53 of FIG. 1 if the grade of the input label to be rearranged is zero, and "0" is input if it is not zero.

【0044】まず、前述した入力ラベル再配列回路10
による再配列の開始に先立って、プリセット信号に基づ
きJKフリップフロップ411gに初期値“1”がセッ
トされる共に、JKフリップフロップ411cに初期値
“0”がセットされる。こののち、入力ラベル再配列回
路10によって再配列が開始されると、ルールROM2
0はラベルバス52上に出現するラベルコードをアドレ
ス端子に受けながらアクセスされる。入力ラベルの再配
列中は上述のようにノアゲート411eの一方の入力端
子には“0”が入力され続ける。
First, the above-described input label rearrangement circuit 10
Prior to the start of the rearrangement, the initial value "1" is set in the JK flip-flop 411g and the initial value "0" is set in the JK flip-flop 411c based on the preset signal. Thereafter, when rearrangement is started by the input label rearrangement circuit 10, the rule ROM 2
0 is accessed while receiving the label code appearing on the label bus 52 at the address terminal. During the rearrangement of the input labels, "0" is continuously input to one input terminal of the NOR gate 411e as described above.

【0045】ノアゲート411eの他方の入力端子にグ
レードバス51上の入力ラベルのグレードがゼロでない
ことを示す“0”が出現すると、ノアゲート411eの
出力が“1”になり、スイッチ411dが図中に点線で
示す状態に切り替えられる。この状態で、入力端子IN
に符号化ルール中の有効ビット“1”が出現すると、J
Kフリップフロップ411gの状態が初期値“1”から
“0”に反転する。これに対して、入力端子INへの有
効ビット“1”の出現時にノアゲート411eの他方の
入力端子に入力ラベルのグレードがゼロであることを示
す“1”が出現すると、ノアゲート411eの出力が
“0”となり、スイッチ411dが図中に実線で示す状
態に切り替えられ、JKフリップフロップ411cの状
態は初期値“0”から“1”に反転する。従って、入力
ラベルの再配列が終了した時点のオアゲート411fの
出力は、符号化ルール中の全ての有効ビット“1”につ
いて対応の入力ラベルのグレードがゼログレードでない
ことが指定された場合には“0”となっており、その他
の場合、すなわち符号化ルール中の有効ビット“1”に
ついて一つでもゼログレードの入力ラベルが指定されて
いた場合や、符号化ルール中に有効ビット“1”が一つ
も出現しなかった場合には、初期値“1”に保たれてい
る。
When "0" indicating that the grade of the input label on the grade bus 51 is not zero appears at the other input terminal of the NOR gate 411e, the output of the NOR gate 411e becomes "1", and the switch 411d is turned on in the figure. The state is switched to the state shown by the dotted line. In this state, the input terminal IN
When the effective bit “1” in the encoding rule appears in
The state of the K flip-flop 411g is inverted from the initial value “1” to “0”. On the other hand, when "1" indicating that the grade of the input label is zero appears at the other input terminal of the NOR gate 411e when the valid bit "1" appears at the input terminal IN, the output of the NOR gate 411e becomes " It becomes 0, and the switch 411d is switched to the state shown by the solid line in the figure, and the state of the JK flip-flop 411c is inverted from the initial value "0" to "1". Therefore, the output of the OR gate 411f at the time when the rearrangement of the input labels is completed is determined by the case where it is specified that the grade of the corresponding input label is not zero grade for all the valid bits “1” in the encoding rule. 0, and in other cases, that is, when at least one zero-grade input label is specified for the valid bit “1” in the encoding rule, or when the valid bit “1” is included in the encoding rule. If no one appears, it is kept at the initial value "1".

【0046】こののち、入力ラベル再配列回路10から
再配列済みの入力ラベルのグレードと対応のラベルコー
ドの出力が開始されると、スイッチ411dが図中に実
線で示す状態に切り替えられ、ルールROM20から読
出される符号化ルールの有効/無効ビットがこのスイッ
チ411dを通してJKフリップフロップ411cのJ
入力端子に供給される。この出力の開始時点においてJ
Kフリップフロップ411cと411gの状態が共に
“0”であれば、2入力アンドゲート411bの反転入
力端子に“0”が供給されるため、符号化ルールの有効
/無効ビットが最初に“1”になった時に出力端子OU
Tから“1”が半クロックの期間にわたって出力され、
グレードバス51上に出現中の入力ラベルのグレードが
グレードレジスタ31に保持される。
Thereafter, when the output of the label code corresponding to the grade of the rearranged input labels from the input label rearranging circuit 10 is started, the switch 411d is switched to the state shown by the solid line in FIG. The valid / invalid bit of the coding rule read from the JK flip-flop 411c through this switch 411d.
It is supplied to the input terminal. At the start of this output, J
If the states of the K flip-flops 411c and 411g are both "0", "0" is supplied to the inverting input terminal of the two-input AND gate 411b, so that the valid / invalid bit of the encoding rule is initially "1". Output terminal OU when
"1" is output from T over a half clock period,
The grade of the input label appearing on the grade bus 51 is held in the grade register 31.

【0047】これに対して、JKフリップフロップ41
1c又は411gが再配列済みの入力ラベルのグレード
の出力の開始時点において“1”に保持されていれば、
2入力アンドゲート411bの反転入力端子に“1”信
号が供給され続けるため、ルール対応ビットが“1”に
なっても出力端子OUTからは“1”が出力されない。
すなわち、この最小グレード検出回路410による入力
ラベルのグレードの出力時の動作が禁止される。このよ
うに、図2の最小グレード検出回路410内の前段部分
は、対応の符号化ルールの前件部に含まれるいずれかの
入力ラベルのグレードがゼロの場合、あるいはこの符号
化ルールがその前件部に入力ラベルを一つも含まない不
使用ルールであった場合には、この最小グレード検出回
路が入力ラベルのグレードの再出力時においてmin 演算
に関与することを禁止する有効ルール判定のための機能
を果たす。このような機能の必要性は以下の三つの理由
による。
On the other hand, JK flip-flop 41
If 1c or 411g is held at “1” at the start of the output of the grade of the rearranged input label,
Since the "1" signal is continuously supplied to the inverting input terminal of the two-input AND gate 411b, "1" is not output from the output terminal OUT even if the rule corresponding bit becomes "1".
That is, the operation at the time of outputting the grade of the input label by the minimum grade detection circuit 410 is prohibited. As described above, the preceding part in the minimum grade detection circuit 410 in FIG. 2 is configured such that the grade of any of the input labels included in the antecedent part of the corresponding encoding rule is zero, or that the encoding rule is If the rule is an unused rule that does not include any input label, the minimum grade detection circuit is prohibited from participating in the min operation when re-outputting the grade of the input label. Perform the function. The necessity of such a function is based on the following three reasons.

【0048】第1の理由は、本実施例における前段の入
力ラベル再配列回路10では、非ゼログレードの入力ラ
ベルの再配列と並行して対応のルールに含まれる入力ラ
ベルのゼログレードの廃棄が行われるが、本来のmin-ma
x 演算原理に従えばこのようなルールに含まれるゼログ
レードを単純に廃棄したり無視したりすることはできな
いからである。すなわち、本来のmin-max 演算によれば
ルールに含まれる入力ラベルのゼログレードについても
他の非ゼログレードと同様にmin 演算の対象とされ、こ
のゼログレードの入力ラベルを前件部に含むルールにつ
いてはゼロのmin 演算結果が得られなければならない。
The first reason is that, in the input label rearranging circuit 10 in the preceding stage in this embodiment, the zero-grade discarding of the input label included in the corresponding rule is performed in parallel with the rearrangement of the non-zero-grade input label. Performed, but the original min-ma
According to the principle of x operation, the zero grade included in such a rule cannot be simply discarded or ignored. That is, according to the original min-max operation, the zero-grade of the input label included in the rule is also subject to the min operation, like other non-zero grades, and the rule that includes this zero-grade input label in the antecedent part Must yield a min operation result of zero.

【0049】従って、入力ラベル再配列回路10の簡易
化のためにこのようなゼログレードを単純に廃棄する
と、これ以外の非ゼログレードのうち最小のものがその
ルールについてのmin 演算結果となり、誤りが生ずる。
そこで、このような誤りを防ぐために、対応のルールに
含まれるゼログレードを廃棄した場合には、以後のmin-
max 演算時にこのゼログレードを含むルールについての
min 演算を禁止を指令するための1 ビットの情報が保存
される。各グレードレジスタの内容はゼロに初期設定さ
れるため、上記1ビットの情報によるmin 演算の禁止は
ゼログレードの保持と同一の結果を生ずるからである。
Therefore, if such a zero grade is simply discarded in order to simplify the input label rearrangement circuit 10, the smallest one among the other non-zero grades becomes the min operation result for the rule, and Occurs.
Therefore, in order to prevent such an error, if the zero grade included in the corresponding rule is discarded,
When calculating the max
1-bit information for commanding to inhibit min operation is stored. This is because the contents of each grade register are initially set to zero, and the inhibition of the min operation based on the 1-bit information produces the same result as holding the zero grade.

【0050】第2の理由は、本出願人がこの特許出願と
前後して別途行う「ファジイ推論のグレード演算回路」
と題する特許出願に開示されているグレード演算回路を
使用する場合、入力ラベル再配列回路10による入力ラ
ベルの再配列時に、Π型メンバーシップ関数によって定
義される入力ラベルのグレードの演算途中で、無効デー
タが出力される場合があり、このような場合、min-max
演算を禁止する必要があり、このような理由から1ビッ
トの情報によるmin 演算の禁止が行われる。
The second reason is that "the fuzzy inference grade arithmetic circuit" which is separately performed by the present applicant before and after this patent application.
In the case of using the grade arithmetic circuit disclosed in the patent application entitled “Unassigned”, when the input label is rearranged by the input label rearrangement circuit 10, the input label grade defined by the Π-type membership function becomes invalid during the operation. Data may be output. In such a case, min-max
It is necessary to prohibit the operation, and for such a reason, the min operation is prohibited by the information of one bit.

【0051】第3の理由は、任意の出力ラベルに含まれ
るルールのうち全く使用していないルールについてはmi
n-max 演算から除外する必要があるためである。これ
は、ルールメモリ内に保持させた特定のルールを後発的
に無効にしたり、適当な重み付けにより演算結果に及ぼ
す影響を軽減する場合などに必要となる。この有効ルー
ルの判別子として、図3中のJKフリップフロップ41
1gが付加されている。
The third reason is that among the rules contained in an arbitrary output label, the rule that is not used at all is mi
This is because it needs to be excluded from the n-max calculation. This is necessary, for example, when a specific rule held in the rule memory is invalidated later or when the effect on the calculation result is reduced by appropriate weighting. As a discriminator of this valid rule, the JK flip-flop 41 in FIG.
1 g is added.

【0052】さて、再出力時のmin-max 演算の終了時点
では、各出力チャネルの対応のグレードレジスタ、例え
ば1出力チャネル当たり9個のグレードレジスタのそれ
ぞれには非ゼロの出力ラベルのグレードが保持される。
この1出力チャネル当たり最大9個の出力ラベルのグレ
ードは、後段の非ファジイ化回路に読出され、対応の出
力ラベルのメンバーシップ関数を頭切りするのに使用さ
れる。この非ファジイ化のための演算時間を短縮するた
めに、出力ラベルに関しては、入力ラベルの場合とは異
なり、対応のメンバーシップ関数をその重心の位置に立
てた単位高さの線分によって置き換えたシングルトンデ
ータが利用され、このシングルトンデータが各出力ラベ
ルのグレードによって頭切りされることにより、出力ラ
ベルのグレードに等しい高さのシングルトンデータとな
る。
By the way, at the end of the min-max operation at the time of re-output, the grade of the non-zero output label is held in the corresponding grade register of each output channel, for example, each of nine grade registers per output channel. Is done.
Up to nine output label grades per output channel are read out to a subsequent defuzzification circuit and used to truncate the membership function of the corresponding output label. In order to shorten the operation time for this defuzzification, for the output label, unlike the case of the input label, the corresponding membership function was replaced by a line of unit height set at the position of the center of gravity. The singleton data is used, and the singleton data is truncated according to the grade of each output label, thereby obtaining singleton data having a height equal to the grade of the output label.

【0053】本出願人が別途出願する「ファジイ推論の
非ファジイ化方法」と称する特許出願によれば、非ファ
ジイ化の演算時間を更に短縮するために、頭切りされた
全てのシングルトンデータを用いて重心演算を行う代わ
りに、高さの大きな順に2個のシングルトンデータのみ
を選択しこれらを用いて重心演算を行う近似方法が開示
されている。このような近似方法を行うには、9個のグ
レードレジスタ31〜39に保持されている最大9個の
出力ラベルのグレードから大きい順に2個だけを選択す
る処理が必要になる。後段の非ファジイ化回路において
この選択を行おうとすれば、多数回の比較動作が必要に
なって処理時間が長引いたり、あるいは処理時間を短縮
しようとすれば多数の比較回路を並列配置した複雑なハ
ードウエアが必要になる。
According to a patent application entitled "Fuzzy Inference Defuzzification Method" filed separately by the present applicant, in order to further reduce the defuzzification operation time, all the truncated singleton data is used. There is disclosed an approximation method in which only two singleton data are selected in ascending order of height and the center of gravity is calculated using these data instead of performing the center of gravity calculation. In order to perform such an approximation method, it is necessary to select only two output labels from the nine output labels held in the nine grade registers 31 to 39 in descending order. If this selection is to be made in the subsequent defuzzification circuit, a large number of comparison operations will be required, and the processing time will be prolonged. Hardware is required.

【0054】このような問題点は、上述したmin-max 演
算と並行して演算結果の出力ラベルのグレードのうち最
大のものと次に大きなものだけを選択的に保持すること
によって解決される。このような出力ラベルのグレード
の選択的保持を可能とした本発明の他の実施例に係わる
選択保持回路の構成を図3に示す。
Such a problem can be solved by selectively holding only the largest one and the next largest among the output label grades of the operation result in parallel with the above-described min-max operation. FIG. 3 shows a configuration of a selection and holding circuit according to another embodiment of the present invention, which can selectively hold the grade of the output label.

【0055】図3に示す選択的保持回路は、図1の9個
のグレードレジスタ31〜39を、図示の各要素で置き
換えたものであり、図1との対応を明確にするために、
図1と共通の9個のオアゲート411〜491と、グレ
ードバス51とが図1と重複して図示されている。この
選択的保持回路は、縦列接続されたグレードレジスタ1
11〜113、同じく縦列接続されたラベルレジスタ1
21〜123、各レジスタに保持されたグレードの一致
を判定する一致判定回路114、各レジスタに保持され
たラベルの一致を判定する一致判定回路124などを備
えている。
The selective holding circuit shown in FIG. 3 is obtained by replacing the nine grade registers 31 to 39 of FIG. 1 with the elements shown in FIG. 1. In order to clarify the correspondence with FIG.
The nine OR gates 411 to 491 and the grade bus 51 which are common to FIG. 1 are illustrated so as to overlap with FIG. The selective holding circuit includes a grade register 1 connected in cascade.
11 to 113, label registers 1 also connected in cascade
21 to 123, a match determination circuit 114 for determining the match between the grades held in the registers, a match determination circuit 124 for determining the match between the labels held in the registers, and the like.

【0056】オアゲート411〜491の出力は、その
ままラベルレジスタ121に入力すると共に、これらの
論理和がオアゲート131を介してD型フリップフロッ
プ132に入力する。従って、オアゲート411〜49
1のいずれかの出力が“1”になるとD型フリップフロ
ップ132が“1”にセットされ、グレードバス51に
出現中のグレードがグレードレジスタ111に保持され
ると共に、オアゲート411〜491の出力がラベルレ
ジスタ121に保持される。ただし、ここにいうラベル
は、図1のルールROM20をアクセスするための入力
ラベルの識別コードとは異なり、各出力チャネル内の9
個の入力ラベルを“1”が立っているビット位置によっ
て表示するものである。グレードレジスタ111に保持
されたグレードは、比較回路114においてグレードレ
ジスタ112の内容と比較され、ラベルレジスタ121
に保持されたラベルはラベルレジスタ122の内容と比
較される。
The outputs of the OR gates 411 to 491 are input to the label register 121 as they are, and their logical sum is input to the D-type flip-flop 132 via the OR gate 131. Therefore, the OR gates 411 to 49
When the output of any one of "1" becomes "1", the D-type flip-flop 132 is set to "1", the grade appearing on the grade bus 51 is held in the grade register 111, and the outputs of the OR gates 411 to 491 are output. It is held in the label register 121. However, the label here is different from the identification code of the input label for accessing the rule ROM 20 in FIG.
The input labels are indicated by bit positions where “1” is set. The grade held in the grade register 111 is compared with the content of the grade register 112 in the comparing circuit 114, and the label register 121
Is compared with the contents of the label register 122.

【0057】A.ラベルレジスタ121と122の内容
も一致せず、グレードレジスタ111と112の内容も
一致しない場合 グレードレジスタ112の内容がグレードレジスタ11
3に転送され、このグレードレジスタ112にはグレー
ドレジスタ111の内容が転送される。これと同時に、
ラベルレジスタ122の内容とラベルレジスタ121の
内容を反転させたものとの論理積が、スイッチ127と
アンドゲート128とを通してラベルレジスタ123に
転送され、ラベルレジスタ122にはオアゲート126
を通してラベルレジスタ121の内容が転送される。
A. When the contents of the label registers 121 and 122 do not match, and the contents of the grade registers 111 and 112 do not match, the contents of the grade register 112 are
3 and the contents of the grade register 111 are transferred to the grade register 112. At the same time,
The logical product of the contents of the label register 122 and the inverse of the contents of the label register 121 is transferred to the label register 123 through the switch 127 and the AND gate 128, and the OR gate 126 is added to the label register 122.
The contents of the label register 121 are transferred through.

【0058】B.ラベルレジスタ121と122の内容
は一致しないが、グレードレジスタ111と112の内
容が一致した場合 ラベルレジスタ123の内容とラベルレジスタ121の
内容を反転させたものとの論理積がスイッチ127とア
ンドゲート128を通してラベルレジスタ123に転送
されたのち、ラベルレジスタ121の内容とラベルレジ
スタ122の内容との論理和がオアゲート126を通し
てラベルレジスタ122に転送される。
B. When the contents of the label registers 121 and 122 do not match, but the contents of the grade registers 111 and 112 match, the logical product of the contents of the label register 123 and the inverted contents of the label register 121 is determined by the switch 127 and the AND gate 128. Then, the logical OR of the contents of the label register 121 and the contents of the label register 122 is transferred to the label register 122 through the OR gate 126.

【0059】C.ラベルレジスタ121と122の内容
は一致するがグレードレジスタ111とグレードレジス
タ112の内容は一致しない場合 グレードレジスタ111の内容がグレードレジスタ11
2に転送される。
C. When the contents of the label registers 121 and 122 match but the contents of the grade registers 111 and 112 do not match, the contents of the grade registers 111 are the grade registers 11
2

【0060】D.ラベルレジスタ121と122の内容
が一致し、かつグレードレジスタ111と112の内容
も一致する場合には、何らの動作も行われない。
D. If the contents of the label registers 121 and 122 match and the contents of the grade registers 111 and 112 also match, no operation is performed.

【0061】上記Aは、これまでグレードバス51上に
出現したグレードのうちの最大値がグレードレジスタ1
11に保持された場合であり、これまで最大値であった
グレードが2番目に大きな値のグレードとしてグレード
レジスタ112からグレードレジスタ113に転送さ
れ、グレードレジスタ111の内容がグレードの新たな
最大値としてグレードレジスタ112に転送される。こ
のようにして、グレードレジスタ112にはグレードバ
ス51上にこれまで出現したグレードの最大値が保持さ
れると共に、グレードレジスタ113にはグレードバス
51上にこれまで出現した2番目に大きな値のグレード
が保持される。ラベルレジスタ122と123には、グ
レードの最大値と2番目に大きな値のグレードに対応す
るラベルが保持される。ラベルレジスタ122に保持し
たラベルをラベルレジスタ121の反転内容との論理積
をとりながらラベルレジスタ123に転送することによ
り、ラベルレジスタ122に新たに保持するラベルと同
一のラベルがラベルレジスタ123に保持されることを
禁止している。
In the above A, the maximum value of the grades that have appeared on the grade bus 51 so far is the grade register 1
In this case, the grade that has been the maximum value is transferred from the grade register 112 to the grade register 113 as the grade having the second largest value, and the content of the grade register 111 is set as the new maximum value of the grade. The data is transferred to the grade register 112. In this way, the grade register 112 holds the maximum value of the grade that has appeared so far on the grade bus 51, and the grade register 113 has the grade of the second largest value that has appeared so far on the grade bus 51. Is held. The label registers 122 and 123 hold the labels corresponding to the maximum value of the grade and the grade having the second largest value. By transferring the label held in the label register 122 to the label register 123 while calculating the logical product of the inverted contents of the label register 121, the same label as the label newly held in the label register 122 is held in the label register 123. Is prohibited.

【0062】グレードバス51上に最後のグレードが出
現し終わった時点では、グレードレジスタ112と11
3のそれぞれには各出力チャネルの最大グレードと2番
目に大きなグレードが保持されると共に、ラベルレジス
タ122と123には対応の出力ラベルが保持される。
この各レジスタの保持内容は、後段の非ファジイ化回路
によって読出され処理されることにより確定的な出力デ
ータが作成される。
When the last grade has appeared on the grade bus 51, the grade registers 112 and 11
3 holds the maximum grade and the second largest grade of each output channel, and the label registers 122 and 123 hold the corresponding output labels.
The contents held in each register are read out and processed by the defuzzification circuit at the subsequent stage, so that definite output data is created.

【0063】図4は、本発明の他の実施例に係わるファ
ジイ推論のmin-max 演算回路の構成の一部を示すブロッ
ク図であり、本図中、図1と同一の参照番号を付した構
成要素は図1に関して既に説明したものと同一の構成要
素であり、これらについては重複する説明を省略する。
FIG. 4 is a block diagram showing a part of the configuration of a min-max operation circuit for fuzzy inference according to another embodiment of the present invention, in which the same reference numerals as in FIG. 1 are used. The components are the same as those already described with reference to FIG. 1, and a duplicate description thereof will be omitted.

【0064】本実施例では、入力ラベル再配列回路10
による入力ラベルの再配列が終了すると、各グレードを
保持している再配列回路10内のエントリーアドレスが
再配列の順位としてグレードの大きな順にバス55上に
出力される。ルールROM20から読出される各符号化
ルールに対応して設置されている各最小グレード検出回
路510,520・・・は、ルールメモリ20から出力
される対応の符号化ルール中に出現する有効ビットに同
期して入力ラベル再配列回路10からバス55に出力中
の入力ラベルの再配列順位を保持してゆくことにより対
応の符号化ルール中に最後に出現する、すなわち最小の
グレードを有する入力ラベルの再配列順位を検出結果と
して保持するレジスタから構成されている。また、各出
力ラベルに対応して設置されている最大グレード検出回
路51,52・・・は、対応の各最小グレード検出回路
510,520・・・に保持された再配列順位のうち最
大のものを選択して保持するレジスタから構成されてい
る。
In this embodiment, the input label rearrangement circuit 10
When the rearrangement of the input labels is completed, the entry addresses in the rearrangement circuit 10 holding the respective grades are output on the bus 55 in the descending order of the grade as the rearrangement order. Each of the minimum grade detection circuits 510, 520,... Installed corresponding to each encoding rule read from the rule ROM 20 stores valid bits appearing in the corresponding encoding rule output from the rule memory 20. By keeping the rearrangement order of the input labels being output from the input label rearrangement circuit 10 to the bus 55 in synchronization, the last occurrence of the input label having the lowest grade in the corresponding coding rule, that is, the input label having the lowest grade It is composed of a register that holds the rearrangement order as a detection result. The maximum grade detection circuits 51, 52,... Provided corresponding to the respective output labels are the largest ones among the rearrangement orders held in the corresponding minimum grade detection circuits 510, 520,. Is selected and held.

【0065】入力ラベル再配列回路10からの出力が終
了したのちに、最大グレード検出回路51,52・・・
に保持された再配列順位が読出しのためのエントリーア
ドレスとしてバス55を介して入力ラベル再配列回路1
0に順次供給され、各出力ラベルについてmin-max 演算
結果として選択すべき入力ラベルのグレードがグレード
バス51上に出力される。
After the output from the input label rearranging circuit 10 is completed, the maximum grade detecting circuits 51, 52,...
The rearrangement order stored in the input label rearrangement circuit 1 via the bus 55 is used as an entry address for reading.
0, and the grade of the input label to be selected as the result of the min-max operation for each output label is output on the grade bus 51.

【0066】なお、各最小グレード検出回路510,5
20・・・に付加された2入力アンドゲートとフリップ
フロップは、ゼログレードについての例外処理のための
付加回路である。すなわち、入力ラベル再配列回路10
による再配列中に、有効なゼログレードが出現中する
と、対応の2入力アンドゲートの出力がハイになり後段
のフリップフロップがセットされる。このフリップフロ
ップがセットされた各最小グレード検出回路は、入力ラ
ベル再配列回路10からの出力時に上述した再配列順位
のレジスタ部分への保持動作が禁止される。更に、この
フリップフロップがセットされたルールに対応する再配
列順位レジスタは、後のmax 比較動作において比較対象
から除外される。
Each of the minimum grade detection circuits 510 and 5
The two-input AND gate and flip-flop added to 20... Are additional circuits for exceptional processing for zero grade. That is, the input label rearrangement circuit 10
When a valid zero grade is appearing during the rearrangement, the output of the corresponding two-input AND gate goes high, and the subsequent flip-flop is set. Each of the minimum grade detection circuits to which the flip-flop is set is prohibited from holding the above-described rearrangement order in the register portion at the time of output from the input label rearrangement circuit 10. Further, the rearrangement order register corresponding to the rule in which the flip-flop is set is excluded from comparison targets in a subsequent max comparison operation.

【0067】図5は、図1と図4の入力ラベル再配列回
路10の構成を示すブロック図であり、51は図示しな
い前段のグレード演算回路から出力される入力ラベルの
グレードが出現するグレードバス、52はラベルコード
バス、53は有効フラグがライトイネーブル(WE)信
号として出現する信号線である。ただし、この例では有
効/無効フラグは図1,2,4に関して説明した場合と
は反転しており、ゼログレードのときには“0”とな
り、非ゼログレードのときには“1”となる。211,
212,213・・・と、221,222,223・・
・はそれぞれセレクタを内蔵しかつ縦列接続されるセレ
クタ付きデータレジスタ群であり、231,232,2
33・・・は上記各セレクタ付きデータレジスタ内の2
入力セレクタの選択動作を制御するために各セレクタ付
きデータレジスタ群に対応して縦列配置される選択制御
回路群である。
FIG. 5 is a block diagram showing the configuration of the input label rearranging circuit 10 shown in FIGS. 1 and 4. Reference numeral 51 denotes a grade bus in which the grade of an input label output from a preceding grade arithmetic circuit (not shown) appears. , 52 are label code buses, and 53 is a signal line on which a valid flag appears as a write enable (WE) signal. However, in this example, the valid / invalid flag is inverted from the case described with reference to FIGS. 1, 2 and 4, and is "0" for zero grade and "1" for non-zero grade. 211,
212, 213 ..., 221, 222, 223 ...
Are data registers with selectors, each having a built-in selector and connected in cascade, and 231, 232, 2
33 ... are 2 in the data register with selector.
This is a group of selection control circuits arranged in cascade corresponding to each data register group with a selector for controlling the selection operation of the input selector.

【0068】セレクタ付きデータレジスタ群211,2
12,213・・・のそれぞれは、グレードレジスタG
Rと、このグレードレジスタGRの前段に配置される2
入力のグレードセレクタGSとを備えている。このグレ
ードセレクタGSの一方の入力端子Aはグレードバス5
1に接続され、他方の入力端子Bは前段のセレクタ付き
データレジスタ内のグレードレジスタGRの出力端子に
接続され、かつ出力端子は後段のグレードレジスタGR
の入力端子に接続されている。セレクタ付きデータレジ
スタ群221,222,223・・・のそれぞれは、ラ
ベルコード・レジスタLRと、このラベルレコード・ジ
スタLRの前段に配置される2入力のラベルコード・セ
レクタLSとを備えている。このラベルコード・セレク
タLSの一方の入力端子Aはラベルコード・バス52に
接続され、他方の入力端子Bは前段のセレクタ付きデー
タレジスタ内のラベルコード・レジスタLSの出力端子
に接続され、かつ出力端子は後段のラベルコード・レジ
スタLSの入力端子に接続されている。
Data register groups 211 and 211 with selector
12, 213... Are grade registers G
R and 2 arranged before the grade register GR.
And an input grade selector GS. One input terminal A of the grade selector GS is a grade bus 5
1, the other input terminal B is connected to the output terminal of the grade register GR in the data register with selector at the preceding stage, and the output terminal is connected to the grade register GR at the subsequent stage.
Is connected to the input terminal of Each of the data register groups with selectors 221, 222, 223,... Includes a label code register LR and a two-input label code selector LS arranged at a stage preceding the label record register LR. One input terminal A of the label code selector LS is connected to the label code bus 52, and the other input terminal B is connected to the output terminal of the label code register LS in the data register with selector at the preceding stage and output. The terminal is connected to the input terminal of the subsequent label code register LS.

【0069】グレードセレクタGSとラベルセレクタL
Sは共に選択指令SAがハイの時には入力端子Aと出力
端子間を導通させ、選択指令SBがハイの時には入力端
子Bと出力端子間を導通させ、かつ選択指令SA,SB
が共にローの時には入力端子AとBのいずれも出力端子
に導通させない。なお、選択指令SA,SBが共にハイ
となる組合せは禁止されている。縦列配置される選択制
御回路231,232,233・・・は、対応のグレー
ドレジスタに保持されているグレードとグレードバス5
1上に出現する新たなグレードとの大小比較を行う比較
回路CMPと、この比較回路による大小比較結果を保持
するD型フリップフロップFFと、2個のアンドゲート
A1,A2から成る論理回路とを備えている。比較回路
CMPは、自段のグレードレジスタの保持データDi
と、グレードバス上に出現中のグレードDDnとを比較
し、DDn≦Diの時には出力をハイレベルに立上げ
る。
Grade selector GS and label selector L
In both cases, S makes the input terminal A and the output terminal conductive when the selection command SA is high, makes the input terminal B and the output terminal conductive when the selection command SB is high, and selects the selection commands SA and SB.
Are low, neither input terminal A nor input terminal B is conducted to the output terminal. Note that a combination in which both the selection commands SA and SB are high is prohibited. .. Arranged in cascade correspond to the grade and the grade bus 5 held in the corresponding grade register.
1, a comparison circuit CMP for performing a magnitude comparison with a new grade appearing on the first circuit, a D-type flip-flop FF for retaining a magnitude comparison result by the comparison circuit, and a logic circuit including two AND gates A1 and A2. Have. The comparison circuit CMP stores the data Di stored in the grade register of its own stage.
Is compared with the grade DDn appearing on the grade bus, and when DDn ≦ Di, the output is raised to a high level.

【0070】まず、グレードバス51上に入力ラベルの
グレードが出現し始める前に、各段のセレクタ付きデー
タレジスタ211,212,213・・・のグレードレ
ジスタGRがプリセット信号線RSTを介してプリセッ
トされる。プリセットされた各段のグレードレジスタG
Rには、グレードバス51上に出現するグレードの上限
値、例えば、グレードが8ビット幅の符号無しデータで
あれば、その上限値〔FF〕H が保持される。以下で
は、説明の便宜上、入力ラベルのグレードを8ビット幅
のデータとし、初期値として設定されるその上限値を
〔FF〕H とする。
First, before the grade of the input label begins to appear on the grade bus 51, the grade registers GR of the data registers 211, 212, 213,... With selectors of each stage are preset via the preset signal line RST. You. Preset grade registers G for each stage
R holds the upper limit value of the grade appearing on the grade bus 51, for example, the upper limit value [FF] H if the grade is 8-bit unsigned data. Hereinafter, for convenience of explanation, the grade of the input label is 8-bit data, and the upper limit value set as the initial value is [FF] H.

【0071】このプリセットの終了後に、図示しない前
段のグレード演算回路で演算された入力ラベルのグレー
ドがグレードバス51上に出力され、このグレードに対
応するラベルコードがラベルコード・バス52上に出力
される。また、グレードバス51上に出力されるグレー
ドの値がゼロでない有効データの場合にだけ、前段のグ
レード演算回路から、グレードの保持を指令するライト
イネーブル信号(WE)が有効フラグ信号線53上に出
力される。
After completion of the preset, the grade of the input label calculated by the preceding grade calculation circuit (not shown) is output to the grade bus 51, and the label code corresponding to this grade is output to the label code bus 52. You. Only when the value of the grade output on the grade bus 51 is valid data other than zero, a write enable signal (WE) for instructing to retain the grade is supplied from the preceding stage grade arithmetic circuit to the valid flag signal line 53. Is output.

【0072】最初のゼロでないグレードDD1がクロッ
ク信号(図示せず)の立上りエッジに同期してグレード
バス51上に出現すると、各段の選択制御回路231,
232,233・・・内の比較回路CMPにおいて、こ
のグレードバス51上に出現したグレードDD1と、グ
レードレジスタGRに保持中のグレードDiとの大小比
較が行われる。グレードバス51上に出現するグレード
DD1はグレードの最大値〔FF〕H 以下であるため、
各段の選択制御回路内の比較回路CMPの出力はいずれ
もハイとなり、このハイ信号がクロック信号の立下がり
エッジに同期して各段の選択制御回路内のD型フリップ
フロップFFに保持され、自段の判定結果がDD1≦D
iである旨を後段の選択制御回路に通知するためのハイ
信号が信号線S2上に出力される。
When the first non-zero grade DD1 appears on the grade bus 51 in synchronization with the rising edge of the clock signal (not shown), the selection control circuit 231 of each stage
In the comparison circuit CMP in 232, 233,..., The magnitude of the grade DD1 appearing on the grade bus 51 is compared with the grade Di held in the grade register GR. Since the grade DD1 appearing on the grade bus 51 is equal to or less than the maximum value [FF] H of the grade,
The output of the comparison circuit CMP in the selection control circuit of each stage becomes high, and this high signal is held in the D-type flip-flop FF in the selection control circuit of each stage in synchronization with the falling edge of the clock signal. The judgment result of the own stage is DD1 ≦ D
A high signal for notifying the selection control circuit at the subsequent stage of i is output on the signal line S2.

【0073】各段の選択制御回路内では、上記前段の選
択制御回路からの信号線S2は、自段内の信号線S1と
してアンドゲートA1,A2から成る論理回路に供給さ
れる。ただし、初段の選択制御回路231だけは、前段
の選択制御回路が存在せず、信号線S1上には常時ロー
信号が供給され続ける。従って、初段の選択制御回路2
31では、上記大小比較結果DD1≦Diのもとでアン
ドゲートA1,A2の出力がそれぞれハイ(H),ロー
(L)になり、対応のグレードセレクタGSには、この
(H,L)の組合せによる選択指令信号が供給される。
この選択指令信号を受けた対応のグレードセレクタGS
は、グレードバス51に連なる一方の入力端子Aと対応
のグレードレジスタGRの入力端子との間を、図示しな
いクロック信号の立下がりエッジに同期して導通させる
ことにより、グレードバス51上に出現中の最初のグレ
ードDD1を対応のグレードレジスタGRに転送し保持
させる。
In each stage of the selection control circuit, the signal line S2 from the preceding stage selection control circuit is supplied as a signal line S1 in its own stage to a logic circuit composed of AND gates A1 and A2. However, only the first-stage selection control circuit 231 does not have the previous-stage selection control circuit, and the low signal is constantly supplied on the signal line S1. Therefore, the first stage selection control circuit 2
At 31, the outputs of the AND gates A 1 and A 2 become high (H) and low (L), respectively, under the magnitude comparison result DD 1 ≦ Di, and the corresponding grade selector GS supplies the (H, L) A selection command signal according to the combination is supplied.
The corresponding grade selector GS receiving this selection command signal
Is appearing on the grade bus 51 by conducting between the one input terminal A connected to the grade bus 51 and the input terminal of the corresponding grade register GR in synchronization with the falling edge of a clock signal (not shown). Is transferred to and held in the corresponding grade register GR.

【0074】これに対して、2段目以降の選択制御回路
232,233,234・・・・では、前段の選択制御
回路231,232,233・・・に連なる信号線S1
上に上記前段における大小比較結果DD1≦Diに基づ
くハイ信号が出現するため、アンドゲートA1,A2の
出力はそれぞれロー,ハイとなる。この(L,H)の組
合せによる選択指令信号を受ける対応のグレードセレク
タGSは、入力端子Bと対応のグレードレジスタGRの
入力端子との間をクロック信号の立下がりエッジに同期
して導通させる。このため、2段目以降のセレクタ付き
データレジスタ212,213,214・・・では、前
段のセレクタ付きデータレジスタ211,212,21
3・・・内のグレードレジスタGRに初期値として保持
されていたグレードの最大値〔FF〕H がシフトされ対
応のグレードレジスタGRに保持される。
On the other hand, in the second and subsequent selection control circuits 232, 233, 234,..., The signal lines S1 connected to the previous selection control circuits 231, 232, 233,.
Since a high signal based on the magnitude comparison result DD1 ≦ Di in the preceding stage appears above, the outputs of the AND gates A1 and A2 are low and high, respectively. The corresponding grade selector GS receiving the selection command signal based on the combination of (L, H) conducts between the input terminal B and the input terminal of the corresponding grade register GR in synchronization with the falling edge of the clock signal. Therefore, in the data registers with selectors 212, 213, 214... In the second and subsequent stages, the data registers 211, 212, 21
The maximum value [FF] H of the grade held as an initial value in the grade register GR in 3... Is shifted and held in the corresponding grade register GR.

【0075】この結果、最初にグレードバス51上に出
現したグレードDD1が初段のセレクタ付きデータレジ
スタ211内のグレードレジスタGRに保持されると共
に、その後段のセレクタ付きデータレジスタ212,2
13,214・・・では、前段のセレクタ付きデータレ
ジスタ211,212,213・・・のグレードレジス
タGRからシフトされてきた初期値〔FF〕H が保持さ
れる。次に、2番目のゼロでないグレードDD2がグレ
ードバス51上に出現すると、これと最初に出現したグ
レードDD1との大小関係に応じて2通りの異なるデー
タ転送動作が行われる。まず、DD2≦DD1の場合の
動作について説明する。
As a result, the grade DD1 which first appears on the grade bus 51 is held in the grade register GR in the first stage data register with selector 211, and the data registers with selectors 212 and 2 in the subsequent stage.
13, 214... Hold the initial value [FF] H shifted from the grade register GR of the data registers 211, 212, 213. Next, when the second non-zero grade DD2 appears on the grade bus 51, two different data transfer operations are performed in accordance with the magnitude relationship between this and the grade DD1 that first appeared. First, the operation when DD2 ≦ DD1 will be described.

【0076】初段の選択制御回路231では、この新た
に出現したグレードDD2とグレードレジスタGRに保
持されているグレードDD1との大小比較が行われる。
この場合には、DD2≦DD1であるから、最初のグレ
ードDD1の出現時と同様の選択動作が行われ、クロッ
ク信号の立下がりエッジに同期して新たなグレードDD
2が初段のセレクタ付きデータレジスタ211内のグレ
ードレジスタGRに保持される。
The first stage selection control circuit 231 compares the newly appearing grade DD2 with the grade DD1 held in the grade register GR.
In this case, since DD2 ≦ DD1, the same selection operation as when the first grade DD1 appears appears, and the new grade DD is synchronized with the falling edge of the clock signal.
2 is held in the grade register GR in the data register 211 with selector at the first stage.

【0077】一方、2段目以降のセレクタ付きデータレ
ジスタ212,213,214・・・については、対応
の選択制御回路232,233,234・・・内のアン
ドゲートA1,A2の信号の組合せが前回と同様いずれ
も(L,H)となるため、前段のセレクタ付きデータレ
ジスタ211,212,213・・・内のグレードレジ
スタGRに保持中のDD1とグレードの上限値〔FF〕
H がシフトされ保持される。このグレードレジスタGR
間のシフト動作も、グレードバス1上からのグレードの
保持動作と同時にクロック信号の立下がりエッジに同期
して行われる。
On the other hand, for the data registers with selectors 212, 213, 214... Of the second and subsequent stages, the combination of the signals of the AND gates A1 and A2 in the corresponding selection control circuits 232, 233, 234. As in the previous case, all become (L, H), so DD1 held in the grade register GR in the data registers 211, 212, 213,... Of the preceding stage and the upper limit value of the grade [FF]
H is shifted and held. This grade register GR
The shift operation between the two is also performed in synchronization with the falling edge of the clock signal simultaneously with the operation of holding the grade from the grade bus 1.

【0078】この結果、初段のセレクタ付きデータレジ
スタ211内のグレードレジスタGRにはグレードバス
51上に2番目に出現したグレードDD2が保持され、
2段目のセレクタ付きデータレジスタ212内のグレー
ドレジスタGRには前段のセレクタ付きデータレジスタ
211からシフトされてきたグレードDD1が保持さ
れ、3段目以降のセレクタ付きデータレジスタ213,
214・・・内のグレードレジスタGRには前段のセレ
クタ付きデータレジスタ212,213・・・からシフ
トされてきた初期値〔FF〕H が保持される。
As a result, the grade DD2 which appears second on the grade bus 51 is held in the grade register GR in the data register 211 with selector at the first stage,
The grade register GR in the data register with selector 212 in the second stage holds the grade DD1 shifted from the data register with selector 211 in the previous stage, and the data registers with selector 213 in the third and subsequent stages.
.. Holds the initial value [FF] H shifted from the data registers with selectors 212, 213,.

【0079】次に、グレードバス51上に2番目に出現
したグレードDD2が最初に出現したグレードDD1よ
りも大きい(DD2>DD1)場合の動作について説明
する。この場合、初段の選択制御回路231内の比較回
路CMPの出力がローになり、アンドゲートA1,A2
の出力の組合せが(L,L)になる。この組合せの選択
指令を受ける初段のセレクタ付きデータレジスタ211
内のグレードセレクタGSは、入力端子AについてもB
についても対応のグレードレジスタGRの入力端子への
導通を行わない。このため、初段のセレクタ付きデータ
レジスタ211内のグレードレジスタGRには前回保持
済みのグレードDD1がそのまま保持され続ける。
Next, the operation in the case where the grade DD2 which appears second on the grade bus 51 is larger than the grade DD1 which appears first (DD2> DD1) will be described. In this case, the output of the comparison circuit CMP in the first stage selection control circuit 231 becomes low, and the AND gates A1, A2
Is (L, L). First stage data register with selector 211 receiving selection command of this combination
Of the input terminal A
Also does not conduct to the input terminal of the corresponding grade register GR. Therefore, the previously held grade DD1 continues to be held in the grade register GR in the data register with selector 211 of the first stage.

【0080】これに対して、2段目の選択制御回路23
2内の比較回路CMPの出力は、対応のグレードレジス
タGRが前回前段のグレードレジスタGRからシフトさ
れてきた初期値〔FF〕H を保持しているためハイにな
る。また、信号線S2上に出現する前段選択制御回路2
31の大小比較結果がローになるため、アンドゲートA
1,A2の出力の組合せが(H,L)になる。この組合
せの選択指令を受ける対応のセレクタ付きデータレジス
タ212内のグレードセレクタGSは、入力端子Aと対
応のグレードレジスタGRの入力端子とを導通させる。
この結果、2段目のセレクタ付きデータレジスタ212
内のグレードレジスタGRにはグレードバス1上に出現
中のグレードDD2(>DD1)が保持される。
On the other hand, the second-stage selection control circuit 23
The output of the comparison circuit CMP in 2 becomes high because the corresponding grade register GR holds the initial value [FF] H shifted from the previous-stage grade register GR last time. Further, the pre-stage selection control circuit 2 that appears on the signal line S2
Since the comparison result of 31 is low, AND gate A
The combination of the outputs of A1, A2 is (H, L). The grade selector GS in the corresponding selector-equipped data register 212 that receives the selection command for this combination turns on the input terminal A and the input terminal of the corresponding grade register GR.
As a result, the second-stage data register with selector 212
In the grade register GR, the grade DD2 (> DD1) appearing on the grade bus 1 is held.

【0081】3段目以降の選択制御回路233,234
・・・では、自段における大小比較結果も前段の選択制
御回路232,233・・・における大小比較結果もハ
イであるためアンドゲートA1,A2の出力の組合せは
(L,H)になる。この結果、対応のセレクタ付きデー
タレジスタ213,214・・・においては、前段のセ
レクタ付きデータレジスタ212,213・・・からシ
フトされてきた初期値〔FF〕H が保持される。
Third and subsequent selection control circuits 233 and 234
.., The result of the magnitude comparison in the own stage and the result of the magnitude comparison in the selection control circuits 232, 233,... Of the preceding stage are high, and the combination of the outputs of the AND gates A1 and A2 is (L, H). As a result, the corresponding data registers with selectors 213, 214... Hold the initial value [FF] H shifted from the data registers with selectors 212, 213.

【0082】このように、最初に出現したグレードDD
1が初段のセレクタ付きデータレジスタ211内のグレ
ードレジスタGRにまず保持され、2番目に出現したグ
レードDD2がグレードDD1以下であれば、これが初
段のグレードレジスタに保持されると共に、これに保持
されていたグレードDD1が2段目のグレードレジスタ
GRにシフトされ、保持される。逆に、グレードDD2
がグレードDD1よりも大きければ、これは2段目のグ
レードレジスタGRに保持されると共に、初段のグレー
ドレジスタGRには最初のグレードDD1が保持され続
ける。
Thus, the grade DD which first appeared
1 is first held in the grade register GR in the data register with selector 211 in the first stage, and if the second appearance grade DD2 is equal to or less than the grade DD1, this is held in the first stage grade register and held in this. The grade DD1 is shifted to and held by the second-stage grade register GR. Conversely, grade DD2
Is larger than the grade DD1, this is held in the second-stage grade register GR, and the first-stage grade register GR keeps holding the first grade DD1.

【0083】以上のデータ転送動作を要約すれば、 A.初段の選択制御回路を除く各段の選択制御回路は、 A1. グレードバス51上に出現したグレードが前段と自
段のグレードレジスタに保持中の各グレードのいずれよ
りも小さいか等しい場合には、前段のグレードレジスタ
に保持中のグレードを自段のグレードレジスタに転送す
る。 A2. グレードバス51上に出現したグレードが前段のグ
レードレジスタに保持中のグレードよりも大きいが自段
のグレードレジスタに保持中のグレードよりも小さいか
等しい場合には、この出現したグレードを自段のグレー
ドレジスタに転送する。 A3. グレードバス51上に出現したグレードが自段のグ
レードレジスタに保持中のグレードよりも大きい場合に
は、自段のグレードレジスタへの転送を行わず、現在の
値を保持し続ける。
The above data transfer operation can be summarized as follows. A1. When the grade appearing on the grade bus 51 is smaller than or equal to any of the grades held in the grade register of the previous stage and the own stage, except for the selection control circuit of the first stage, The grade held in the preceding grade register is transferred to the own grade register. A2. If the grade appearing on the grade bus 51 is larger than the grade held in the preceding grade register but smaller than or equal to the grade held in the own grade register, the appearing grade is assigned to the own grade register. To the grade register. A3. If the grade appearing on the grade bus 51 is larger than the grade held in the grade register of the own stage, the transfer to the grade register of the own stage is not performed, and the current value is kept retained.

【0084】B.初段の選択制御回路は、 B1. グレードバス51上に出現したグレードが自段のグ
レードレジスタに保持中のグレードよりも小さいか等し
い場合には、出現したグレードを自段のグレードレジス
タに転送する。 B2. グレードバス51上に出現したグレードが自段のグ
レードレジスタに保持中のグレードよりも大きい場合に
は、自段のグレードレジスタへの転送を行わない。
B. If the grade appearing on the B1. Grade bus 51 is smaller than or equal to the grade held in its own grade register, the first-stage selection control circuit transfers the appearing grade to its own grade register. B2. When the grade appearing on the grade bus 51 is larger than the grade held in the grade register of the own stage, the transfer to the grade register of the own stage is not performed.

【0085】図5を参照すれば、各段のセレクタ付きデ
ータレジスタ211,212,213・・・に対応して
配置されているセレクタ付きデータレジスタ221,2
22,223・・・は、対応の選択制御回路231,2
32,233・・・からの選択指令に従って、各段のセ
レクタ付きデータレジスタ211,212,213・・
・と同一の動作を行う。従って、グレードバス51上に
出力されるグレードに対応してラベルコード・バス52
上に出現するラベルコードが各段のグレードレジスタに
GRに保持されたグレードに対応して各段のラベルコー
ド・レジスタLRに保持される。
Referring to FIG. 5, selector-equipped data registers 221 and 212 arranged corresponding to selector-equipped data registers 211, 212, 213,.
, 22... Correspond to the corresponding selection control circuits 231,
32, 233,... In accordance with the selection command from each of the data registers 211, 212, 213,.
Performs the same operation as. Accordingly, the label code bus 52 corresponding to the grade output on the grade bus 51
The label code appearing above is held in the label code register LR of each stage corresponding to the grade held in GR in the grade register of each stage.

【0086】ファジイ推論の各入力データチャネルの入
力ラベルを定義するメンバーシップ関数として、隣接の
2個のメンバーシップ関数のみが交点を有するような形
状を設定すれば、一つの入力チャネルついて最大2個の
ゼロでないグレードが演算される。従って、セレクタ付
きデータレジスタの段数を入力データチャネル数の2倍
の値に設定しておくことにより、グレードバス上に出現
する全てのゼロでないグレードを昇順にソートすること
ができる。
By setting a shape such that only two adjacent membership functions have an intersection as a membership function for defining an input label of each input data channel of fuzzy inference, a maximum of two input functions per input channel can be obtained. Is calculated. Therefore, by setting the number of stages of the data register with selector to twice the number of input data channels, all non-zero grades appearing on the grade bus can be sorted in ascending order.

【0087】大きさの順にソートされた入力ラベルのグ
レードは、各段の配列順序に従って各段に供給されるリ
ードイネーブル信号REにより、対応のグレードレジス
タGRからゲート回路GGを経てグレードバス51上に
出力される。この入力ラベルのグレードの出力と同期し
て、リードイネーブル信号REにより、対応のラベルコ
ードがラベルコード・レジスタLRからゲート回路LG
を経てラベルコード・バス52上に出力される。
The grades of the input labels sorted in the order of the sizes are placed on the grade bus 51 from the corresponding grade register GR via the gate circuit GG by the read enable signal RE supplied to each stage in accordance with the arrangement order of each stage. Is output. In synchronization with the output of the grade of the input label, the corresponding label code is read from the label code register LR to the gate circuit LG by the read enable signal RE.
And is output on the label code bus 52 via.

【0088】以上、ハードウエア量の低減と処理速度の
短縮のためにゼログレードについては例外処理を行う構
成とした。しかしながら、ハードウエア量と処理速度に
余裕がある場合などには、そのような例外処理を含まな
い構成とすることもできる。
As described above, in order to reduce the amount of hardware and the processing speed, exception processing is performed for zero grade. However, when there is a margin in the amount of hardware and the processing speed, a configuration that does not include such exception processing may be adopted.

【0089】また、ゼロよりも大きな所定の閾値を設定
し、この閾値未満のグレードを例外処理の対象とする構
成とすることができる。
Further, a configuration may be adopted in which a predetermined threshold value larger than zero is set, and a grade lower than this threshold value is subjected to exception processing.

【0090】また、再配列回路10から入力ラベルのグ
レードの大きな順に再配列順位(エントリーアドレス)
を出力させて各最小グレード検出回路510,520・
・・内のレジスタに保持させる構成を例示した。しかし
ながら、再配列順位の代わりに入力ラベルのグレードを
その大きい順に再配列回路10から直接出力させて各最
小グレード検出回路510,520・・・内のレジスタ
に保持させてゆき、各ルールについて最後に保持された
最小のグレードのうち最大のものを最大グレード検出回
路51,52・・・で検出する構成とすることもでき
る。
The rearrangement order (entry address) from the rearrangement circuit 10 in the descending order of the grade of the input label.
To output the minimum grade detection circuits 510 and 520.
··· The configuration in which the register is held in the above is exemplified. However, instead of the rearrangement order, the grades of the input labels are directly output from the rearrangement circuit 10 in the descending order, and are held in the registers in the minimum grade detection circuits 510, 520... It is also possible to adopt a configuration in which the largest one of the held minimum grades is detected by the maximum grade detection circuits 51, 52,.

【0091】さらに、入力ラベルのグレードをその大小
順に対応のラベルコードと共に縦列接続されたレジスタ
群内に再配列する構成を例示した。しかしながら、上記
再配列をソフトウェアによって実現する場合などには、
上記入力グレードの対応のラベルコードの保持位置をメ
モリ上に固定しておき、入力ラベルのグレードと対応の
ラベルコードの大小順の再配列と再配列後の出力とをポ
インタを利用して行う構成とすることもできる。
Further, the configuration in which the grades of the input labels are rearranged in the register group connected in cascade together with the corresponding label codes in the order of magnitude is illustrated. However, when the above rearrangement is realized by software,
A configuration in which the holding position of the label code corresponding to the above input grade is fixed in the memory, and the grade of the input label and the corresponding label code are rearranged in descending order of magnitude and output after rearrangement using a pointer. It can also be.

【0092】また、図1の論理回路群40を含む後段部
分を各出力チャネルに対応して設置する構成を例示し
た。しかしながら、演算時間の増加が許容できるなら
ば、複数の出力チャネルに対し単一の論理回路40を設
置し、これを各出力チャネルごとに時間をずらして共用
することにより後段部分のハードウエア量の低減を図る
ことも可能である。演算時間の増加を更に許容できる場
合には、単一の論理回路内の最小グレード検出回路を各
出力ラベルの間で時間をずらして共通使用することによ
り、更なるハードウエア量の低減を図ることも可能であ
る。
Further, a configuration in which the subsequent stage including the logic circuit group 40 of FIG. 1 is provided corresponding to each output channel has been exemplified. However, if the increase in the operation time can be tolerated, a single logic circuit 40 is provided for a plurality of output channels, and this is shared by shifting the time for each output channel, thereby reducing the amount of hardware in the subsequent stage. It is also possible to achieve reduction. If the increase in operation time can be further tolerated, further reduce the amount of hardware by using the minimum grade detection circuit in a single logic circuit with the time shifted between each output label. Is also possible.

【0093】さらに、ファジイ推論全体の処理の高速化
を実現するために、再配列回路と前段のグレード演算回
路とを縦列に接続し、グレード演算と演算済みのグレー
ドの再配列とをパイプライン式に実行する構成を例示し
た。しかしながら、そのような高速性が要求されない場
合などには、再配列回路とグレード演算回路との間にバ
ッファメモリを設置し、グレード演算が全て終了したの
ちに再配列を開始する構成とすることもできる。
Further, in order to realize a high-speed processing of the whole fuzzy inference, a rearrangement circuit and a preceding grade operation circuit are connected in cascade, and the grade operation and the rearrangement of the operated grade are performed in a pipeline system. The configuration to be executed is exemplified. However, when such high speed is not required, a buffer memory may be provided between the rearrangement circuit and the grade operation circuit, and the rearrangement may be started after all the grade operations are completed. it can.

【0094】[0094]

【発明の効果】以上詳細に説明したように、本発明に係
わるファジイ推論のmin-max 演算回路は、全てのルール
についてそれぞれの前件部に含まれる入力ラベルをその
グレードの大小順に一括して再配列しておく構成である
から、各ルールごとに同一のグレードの大小比較を反復
する無駄が省かれ、処理時間が大幅に短縮されるという
利点がある。
As described above in detail, the min-max operation circuit of fuzzy inference according to the present invention collectively sorts the input labels included in the antecedents of all rules in the descending order of the grade. Since the arrangement is rearranged, there is an advantage that the waste of repeating the magnitude comparison of the same grade for each rule is eliminated, and the processing time is greatly reduced.

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

【図1】本発明の一実施例のmin-max 演算回路の構成を
示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a min-max operation circuit according to an embodiment of the present invention.

【図2】図1の最小グレード検出回路410の構成を例
示する回路図である。
FIG. 2 is a circuit diagram illustrating a configuration of a minimum grade detection circuit 410 of FIG. 1;

【図3】図1のグレードレジスタの構成の他の一例を示
すブロック図である。
FIG. 3 is a block diagram showing another example of the configuration of the grade register of FIG. 1;

【図4】本発明の他の実施例のmin-max 演算回路の構成
を示すブロック図である。
FIG. 4 is a block diagram showing a configuration of a min-max operation circuit according to another embodiment of the present invention.

【図5】図1と図4中の入力ラベル再配列回路10の好
適な構成の一例を示す回路図である。
FIG. 5 is a circuit diagram showing an example of a preferred configuration of the input label rearranging circuit 10 in FIGS. 1 and 4;

【図6】各ルールの前件部に含まれる入力ラベルをその
グレードの大小順に入替えるという本発明の概念を説明
するための概念図である。
FIG. 6 is a conceptual diagram for explaining the concept of the present invention in which input labels included in the antecedent part of each rule are replaced in descending order of grade.

【図7】本発明における符号化ルールの概念を説明する
ための概念図である。
FIG. 7 is a conceptual diagram for explaining the concept of an encoding rule according to the present invention.

【図8】本発明における符号化ルールの概念を説明する
ための概念図である。
FIG. 8 is a conceptual diagram for explaining the concept of an encoding rule according to the present invention.

【図9】本発明においてルールメモリ内に保持されるル
ール対応ビット群の概念を説明するための概念図であ
る。
FIG. 9 is a conceptual diagram for explaining the concept of a rule corresponding bit group held in a rule memory in the present invention.

【図10】入力ラベルのグレードの大小順に再配列され
たルール対応ビット群と、入力ラベルの入替えによって
変形された符号化ルールの概念を説明するための概念図
である。
FIG. 10 is a conceptual diagram for explaining the concept of a rule-corresponding bit group rearranged in descending order of input label grade and an encoding rule modified by replacement of input labels.

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

10 グレード再配列回路 20 ルールROM(ルールメモリ) 40 論理回路 410,510 最小グレード検出回路 411,31,51 最大グレード検出回路 51 グレードバス 52 ラベルバス 10 Grade rearrangement circuit 20 Rule ROM (rule memory) 40 Logic circuit 410,510 Minimum grade detection circuit 411,31,51 Maximum grade detection circuit 51 Grade bus 52 Label bus

Claims (12)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ファジイ推論に関する入力ラベルのグレー
ドの大小関係を予め判定する判定手段と、 この判定手段によって判定された大小の順番に従い前記
入力ラベルのグレードについてmin-max 演算を実行する
演算手段とを備えたことを特徴とするファジイ推論のmi
n-max 演算回路。
A determining means for determining in advance the magnitude relationship of the grades of the input labels relating to fuzzy inference; and computing means for executing a min-max operation on the grades of the input labels in accordance with the order of magnitude determined by the determining means. Mi of fuzzy inference characterized by having
n-max operation circuit.
【請求項2】ファジイ推論の各ルールの前件部に含まれ
る各入力ラベルについて定義された所定の配列に従って
前記各ルールがそれぞれの前件部に前記各入力ラベルを
含むか否かを有効/無効ビットで表示する符号化ルール
が前記各ルールについて定義され、このように定義され
た各符号化ルールに含まれる各入力ラベルの有効/無効
ビット群(以下、「ルール対応ビット群」という)をそ
の入力ラベルの識別コード(以下,「ラベルコード」と
いう)によって指定されるアドレスに保持することによ
り前記各符号化ルールを複数のアドレスにわたってかつ
前記各ルール対応ビット群の各ビットの配列方向に所定
の順序で配列しながら保持するルールメモリと、 前記各入力ラベルについて演算された入力ラベルのグレ
ードを対応のラベルコードと共に大小の順序に従って再
配列したのち、再配列後の入力ラベルのグレード又は入
力ラベルの再配列の順位を大きい順もしくは小さい順に
出力すると共に対応のラベルコードを前記ルールメモリ
の読出しアドレスとして供給することにより対応のルー
ル対応ビット群を出力させる入力ラベル再配列手段と、 前記ルールメモリから順次出力される各符号化ルールに
対応して設置され、前記再配列回路から出力される入力
ラベルのグレード又は再配列の順位と、前記ルールメモ
リから出力される各符号化ルール中に最初に又は最後に
出現する有効ビットとに基づき最小グレードに関する検
出情報を得る最小グレード検出手段と、 各出力ラベルに対応して設置され対応の出力ラベルを後
件部として含む各ルールに対応して設置されている前記
各最小グレード検出手段が得た前記検出情報に基づき各
最小グレードのうち最大のものに関する検出情報を得る
最大グレード検出手段とを備えたことを特徴とするファ
ジイ推論のmin-max 演算回路。
2. A method according to claim 2, wherein each rule includes, in accordance with a predetermined arrangement defined for each input label included in the antecedent part of each rule of fuzzy inference, whether each rule includes said input label in each antecedent part. An encoding rule to be indicated by an invalid bit is defined for each rule, and a valid / invalid bit group of each input label (hereinafter, referred to as a “rule-corresponding bit group”) included in each of the encoding rules thus defined is defined. By holding the coding rule at an address specified by the identification code (hereinafter, referred to as “label code”) of the input label, the encoding rules are spread over a plurality of addresses and are arranged in a predetermined direction in the arrangement direction of each bit of the rule corresponding bit group. A rule memory that holds the data while arranging them in the order of After rearranging the input labels along with the order of the labels, the grades of the rearranged input labels or the rearrangement order of the input labels are output in descending order or in ascending order, and the corresponding label codes are supplied as read addresses of the rule memory. An input label rearranging means for outputting a corresponding rule corresponding bit group, and a grade or an input label output from the rearrangement circuit, which is provided corresponding to each encoding rule sequentially output from the rule memory. Minimum grade detection means for obtaining detection information on the minimum grade based on the order of rearrangement and the first or last valid bit appearing in each encoding rule output from the rule memory; Installed corresponding to each rule that includes a corresponding output label as a consequent part min-max operation circuit fuzzy inference, characterized in that a maximum grade detection means for obtaining detection information about the largest of the minimum grade on the basis of the detection information is a minimum grade detection means to obtain.
【請求項3】 請求項2において、 前記入力ラベル再配列手段は、再配列済みの入力ラベル
のグレードを小さな順に出力する手段を備え、 前記各最小グレード検出手段は前記入力ラベル再配列手
段からの出力時に前記ルールメモリから出力される各符
号化ルール中に最初に出現する有効ビットを前記最小グ
レードに関する検出情報として得る手段を備え、 前記各最大グレード検出手段は、対応の各最小グレード
検出手段で得られた検出情報のうち最後に得られたもの
を各最小グレードのうち最大のものに関する検出情報と
して得る手段を備えたことを特徴とするファジイ推論の
min-max 演算回路。
3. The input label rearranging unit according to claim 2, wherein the input label rearranging unit includes a unit that outputs a grade of the rearranged input labels in ascending order. Means for obtaining, as output, the first valid bit in each encoding rule output from the rule memory at the time of output as detection information relating to the minimum grade, wherein each maximum grade detection means is a corresponding minimum grade detection means. A fuzzy inference method comprising means for obtaining the last one of the obtained detection information as the detection information for the largest one of the minimum grades.
min-max operation circuit.
【請求項4】 請求項3において、 前記各最大グレード検出手段から出力される前記各最小
グレードのうち最大のものに関する検出情報を受けて前
記入力ラベル再配列手段が出力中の入力ラベルのグレー
ドを出力ラベルのグレードとして保持するグレード保持
手段を備えたことを特徴とするファジイ推論のmin-max
演算回路。
4. The input label rearranging unit according to claim 3, wherein the input label rearranging unit receives the detection information on the largest one of the minimum grades output from each of the maximum grade detecting units and determines the grade of the input label being output. Min-max of fuzzy inference characterized by having a grade holding means for holding as a grade of an output label
Arithmetic circuit.
【請求項5】 請求項4において、 前記グレード保持手段は、前記各出力ラベルの総数より
も少ない所定個数縦列に設置されると共に、それぞれに
は最大のものから順に前記所定個数の出力ラベルのグレ
ードが保持されることを特徴とするファジイ推論のmin-
max 演算回路。
5. The grade according to claim 4, wherein the grade holding means is arranged in a predetermined number of columns that is smaller than the total number of the output labels, and the grades of the predetermined number of output labels are arranged in order from the largest one. Min- of fuzzy inference characterized by the fact that
max arithmetic circuit.
【請求項6】 請求項5において、 前記所定個数は2であることを特徴とするファジイ推論
のmin-max 演算回路。
6. The fuzzy inference min-max operation circuit according to claim 5, wherein the predetermined number is two.
【請求項7】 請求項2において、 前記入力ラベル再配列手段は、再配列済みの入力ラベル
のグレードの大きな順に前記入力ラベルの再配列順位を
出力する手段を備え、 前記各最小グレード検出手段は、前記ルールメモリから
出力される各符号化ルール中に出現する各有効ビットに
基づき前記入力ラベル再配列手段から出力中の入力ラベ
ルの再配列順位を保持してゆくことにより各符号化ルー
ル中に最後に出現した最小の入力ラベルの再配列順位を
前記最小グレードに関する検出情報として得る手段を備
え、 前記各最大グレード検出手段は、対応の各最小グレード
検出手段に保持された最小の再配列順位のうち最大のも
のを前記各最小グレードのうち最大のものに関する検出
情報として得る手段と、この検出情報をアドレスとして
対応の入力ラベルのグレードを前記再配列回路から出力
させる手段を備えたことを特徴とするファジイ推論のmi
n-max 演算回路。
7. The input label rearranging unit according to claim 2, wherein the input label rearranging unit includes a unit that outputs a rearrangement order of the input labels in descending order of grade of the rearranged input labels. By retaining the rearrangement order of the input labels being output from the input label rearranging means based on each effective bit appearing in each encoding rule output from the rule memory, Means for obtaining the rearrangement order of the smallest input label that appeared last as detection information relating to the minimum grade, wherein each of the maximum grade detection means has the minimum rearrangement order held by the corresponding minimum grade detection means. Means for obtaining the largest one as detection information relating to the largest one of the minimum grades, and a corresponding input using the detection information as an address. Means for outputting a label grade from the rearrangement circuit.
n-max operation circuit.
【請求項8】 請求項2において、 前記入力ラベル再配列手段は、再配列済みの入力ラベル
のグレードを大きな順に出力する手段を備え、 前記各最小グレード検出手段は、前記ルールメモリから
出力される各符号化ルール中に出現する各有効ビットに
基づき前記入力ラベル再配列手段から出力中の入力ラベ
ルのグレードを保持してゆくことにより各符号化ルール
中に最後に出現した最小の入力ラベルのグレードを前記
最小グレードに関する検出結果として得る手段を備え、 前記各最大グレード検出手段は、対応の各最小グレード
検出手段に保持されたデータのうち最大のものを前記各
最小グレードのうち最大のものに関する検出結果として
得る手段を備えたことを特徴とするファジイ推論のmin-
max 演算回路。
8. The input label rearranging means according to claim 2, further comprising: means for outputting a grade of the rearranged input labels in descending order, wherein each of the minimum grade detecting means is outputted from the rule memory. By maintaining the grade of the input label being output from the input label rearranging means based on each valid bit appearing in each encoding rule, the grade of the smallest input label that appears last in each encoding rule is maintained. As a detection result regarding the minimum grade, wherein each of the maximum grade detection means detects the maximum one of the data held in the corresponding one of the minimum grade detection means with respect to the maximum one of the minimum ones. Min- of fuzzy inference characterized by having means to obtain the result
max arithmetic circuit.
【請求項9】 請求項2乃至8において、 前記入力ラベル再配列手段は、再配列対象の各入力ラベ
ルのグレードのうち所定の閾値以上のものについては前
記再配列と出力の対象とし、前記閾値未満の入力ラベル
のグレードについてはその旨を示す指示信号に従って前
記再配列と出力の対象外としかつ対応のラベルコードを
前記ルールメモリの読出しアドレスとして供給すること
により対応のルール対応ビット群を出力させる例外処理
手段を備え、 前記最小グレード検出手段は、前記入力ラベル再配列手
段による入力ラベルの再配列時に前記ルールメモリから
出力される各符号化ルール中に出現する有効ビットに対
応する再配列中の入力ラベルのグレードが前記閾値以上
の場合にのみ前記入力ラベル再配列手段による入力ラベ
ルの出力時の最小グレード検出機能を有効化する例外処
理手段を備えたことを特徴とするをファジイ推論のmin-
max 演算回路。
9. The input label rearrangement unit according to claim 2, wherein the input label rearrangement unit sets the grade of each input label to be rearranged that is equal to or more than a predetermined threshold as the target of the rearrangement and output, and An input label grade of less than is excluded from the rearrangement and output according to an instruction signal indicating that, and a corresponding label code is supplied as a read address of the rule memory to output a corresponding rule corresponding bit group. Exception handling means, wherein the minimum grade detection means, during rearrangement of input labels by the input label rearrangement means, in the rearrangement corresponding to valid bits appearing in each coding rule output from the rule memory Only when the grade of the input label is equal to or more than the threshold value, the minimum value at the time of output of the input label The characterized by comprising exception handling means for enabling delayed detection of fuzzy inference min-
max arithmetic circuit.
【請求項10】 請求項9において、 前記所定の閾値は、このmin-max 演算演算回路で処理可
能な最小の有限値であることを特徴とするファジイ推論
のmin-max 演算回路。
10. The fuzzy inference min-max operation circuit according to claim 9, wherein the predetermined threshold is a minimum finite value that can be processed by the min-max operation operation circuit.
【請求項11】 請求項2乃至10おいて、 前記演算された入力ラベルのグレードが前段のグレード
演算手段による演算順に前記入力ラベル再配列手段に供
給されることにより、この入力ラベル再配列手段と前記
前段のグレード演算手段とがパイプライン式に連携動作
することを特徴とするファジイ推論のmin-max 演算回
路。
11. The input label rearranging unit according to claim 2, wherein the calculated input label grade is supplied to the input label rearranging unit in the order of operation by the preceding grade arithmetic unit. A fuzzy inference min-max arithmetic circuit, wherein the preceding grade arithmetic means operates in a pipeline manner.
【請求項12】 請求項2乃至11において、 前記入力ラベル再配列回路は、 縦列配置され初期設定により所定の初期値を保持する複
数のグレードレジスタと、これらグレードレジスタに対
応して設置され入力ラベルのグレードが出現するグレー
ドバスから対応のグレードレジスタに至るデータ転送路
を形成する第1の動作、隣接段のグレードレジスタから
対応のグレードレジスタに至るデータ転送路を形成する
第2の動作及び前記いずれのデータ転送路も形成しない
非動作のうちいずれか一つを実行するように制御される
グレード転送路形成手段と、前記グレードレジスタに対
応して縦列配置されたラベルコード・レジスタと、これ
らラベルコード・レジスタに対応して設置されラベルコ
ードが出現するラベルコード・バスから対応のラベルコ
ード・レジスタに至るデータ転送路を形成する第1の動
作、隣接段のラベルコード・レジスタから対応のラベル
コード・レジスタに至るデータ転送路を形成する第2の
動作及び前記いずれのデータ転送路も形成しない非動作
のうちいずれか一つを実行するように制御されるラベル
コード転送路形成手段と、 前記グレード転送路形成手段及びラベルコード転送路形
成手段に前記各動作を指令するためにそれぞれに対応し
て設置される複数の転送制御回路とを備え、 前記各転送制御回路は、対応のグレードレジスタに保持
中のグレードと前記グレードバス上に出現中のグレード
との大小関係を判定する大小判定回路と、この大小判定
回路による自段の大小判定結果と前記隣接段の転送制御
回路内の大小判定回路で同様に行われる前記隣接段の大
小判定結果との組合せに基づき前記対応のグレード転送
路形成手段及びラベルコード転送路形成手段に前記動作
の選択指令を発する論理回路とを備え、 この論理回路は、 a.前記自段の大小判定結果が第1の結果であり、かつ
前記隣接段の大小判定結果がこれと逆の第2の結果であ
れば、対応の転送路形成手段に前記第1の動作を指令す
る信号を出力し、 b.前記自段の大小判定結果が第1の結果であり、かつ
前記隣接段の大小判定結果もこれと同一の第1の結果で
あれば、前記対応の転送路形成手段に前記第2の動作を
指令する信号を出力し、 c.前記自段の大小判定結果が第2の結果であれば、前
記隣接段の大小判定結果に係わりなく前記対応の転送路
形成手段に前記非動作を指令する信号を出力するように
構成されたことを特徴とするファジイ推論のmin-max 演
算回路。
12. The input label rearranging circuit according to claim 2, wherein the input label rearranging circuit includes a plurality of grade registers arranged in tandem and holding a predetermined initial value by initial setting, and an input label installed corresponding to the grade registers. A first operation for forming a data transfer path from the grade bus where the first grade appears to the corresponding grade register, a second operation for forming a data transfer path from the grade register of the adjacent stage to the corresponding grade register, and any of the above. Grade transfer path forming means controlled to execute any one of non-operations that do not form a data transfer path, label code registers arranged in tandem with the grade registers, and these label codes・ A label code that is installed corresponding to the register and a label code appears A first operation for forming a data transfer path leading to a data register, a second operation for forming a data transfer path from a label code register in an adjacent stage to a corresponding label code register, and any of the above data transfer paths. A label code transfer path forming unit that is controlled to execute any one of non-operations not to be formed; and a command for instructing each of the operations to the grade transfer path forming unit and the label code transfer path forming unit. A plurality of transfer control circuits provided correspondingly, wherein each of the transfer control circuits determines a magnitude relation between a grade held in a corresponding grade register and a grade appearing on the grade bus. Circuit, the size determination result of the own stage by the size determination circuit, and the size of the adjacent stage similarly performed by the size determination circuit in the transfer control circuit of the adjacent stage. And a logic circuit for issuing a selection command of the operation to the corresponding grade transfer path forming means and the label code transfer path forming means based on a combination of a constant result, the logic circuit, a. If the magnitude determination result of the own stage is the first result and the magnitude determination result of the adjacent stage is the second result opposite thereto, the first operation is instructed to the corresponding transfer path forming means. Output a signal to b. If the magnitude determination result of the own stage is the first result, and the magnitude determination result of the adjacent stage is the same first result, the second operation is performed by the corresponding transfer path forming means. Outputting a command signal; c. If the magnitude determination result of the own stage is a second result, the signal for instructing the non-operation to the corresponding transfer path forming means is output regardless of the magnitude determination result of the adjacent stage. A min-max operation circuit for fuzzy inference characterized by:
JP33240192A 1992-09-29 1992-11-18 Min-max arithmetic circuit for fuzzy inference Expired - Lifetime JP2633161B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP33240192A JP2633161B2 (en) 1992-11-18 1992-11-18 Min-max arithmetic circuit for fuzzy inference
US08/126,868 US5398299A (en) 1992-09-29 1993-09-27 Min-max computing circuit for fuzzy inference

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33240192A JP2633161B2 (en) 1992-11-18 1992-11-18 Min-max arithmetic circuit for fuzzy inference

Publications (2)

Publication Number Publication Date
JPH06161762A JPH06161762A (en) 1994-06-10
JP2633161B2 true JP2633161B2 (en) 1997-07-23

Family

ID=18254561

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33240192A Expired - Lifetime JP2633161B2 (en) 1992-09-29 1992-11-18 Min-max arithmetic circuit for fuzzy inference

Country Status (1)

Country Link
JP (1) JP2633161B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9465772B2 (en) 2011-09-20 2016-10-11 Fujitsu Limited Calculating device, calculating system, and computer product

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE112006003770T5 (en) * 2006-03-29 2009-04-23 Mitsubishi Electric Corporation A programming support apparatus, a program support method, a program for causing a computer to implement the method, and a recording medium containing the program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9465772B2 (en) 2011-09-20 2016-10-11 Fujitsu Limited Calculating device, calculating system, and computer product

Also Published As

Publication number Publication date
JPH06161762A (en) 1994-06-10

Similar Documents

Publication Publication Date Title
CA1173972A (en) Data processing system bus for multiple independent users
EP0332361B1 (en) Method and apparatus for logic simulation
US4799149A (en) Hybrid associative memory composed of a non-associative basic storage and an associative surface, as well as method for searching and sorting data stored in such a hybrid associative memory
US5721809A (en) Maximum value selector
US6523018B1 (en) Neural chip architecture and neural networks incorporated therein
US6150679A (en) FIFO architecture with built-in intelligence for use in a graphics memory system for reducing paging overhead
EP0316138A2 (en) Grouping device for interrupt controller
JP2850082B2 (en) Min-max arithmetic circuit for fuzzy inference
JP2633161B2 (en) Min-max arithmetic circuit for fuzzy inference
US6502083B1 (en) Neuron architecture having a dual structure and neural networks incorporating the same
US5511189A (en) Data sorting apparatus capable of detecting completion of data sorting early and sorting method therefor
US5764854A (en) Data processor for performing a fuzzy logic weighting function and method therefor
US5519649A (en) Micro-processor having rapid condition comparison function
US20050172102A1 (en) Array-type computer processor
EP0122739B1 (en) List vector control apparatus
JP3008710B2 (en) Min-max arithmetic circuit for fuzzy inference
EP0513829B1 (en) Fuzzy reasoning processor and method, and rule setting apparatus and method
JPH02162422A (en) Preference branch circuit
JP2633153B2 (en) Min-max arithmetic circuit for fuzzy inference
US5720005A (en) Circuit and method for processing lower limit value fuzzy inputs during a fuzzy logic operation
US4777622A (en) Associative data storage system
JPH07175659A (en) Min/max arithmetic circuit for fuzzy inference
JP2003099488A (en) Logical matching device
US5740459A (en) Method and circuit for sorting data in a fuzzy inference data processing system
JPH06110696A (en) Grade arithmetic circuit for fuzzy inference

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970121