JPH07175659A - Min/max arithmetic circuit for fuzzy inference - Google Patents

Min/max arithmetic circuit for fuzzy inference

Info

Publication number
JPH07175659A
JPH07175659A JP5339671A JP33967193A JPH07175659A JP H07175659 A JPH07175659 A JP H07175659A JP 5339671 A JP5339671 A JP 5339671A JP 33967193 A JP33967193 A JP 33967193A JP H07175659 A JPH07175659 A JP H07175659A
Authority
JP
Japan
Prior art keywords
grade
label
rule
input
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.)
Pending
Application number
JP5339671A
Other languages
Japanese (ja)
Inventor
Ken Ota
謙 太田
Shii Aachiboruto Uiriamu
ウィリアム・シー・アーチボルト
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
Motorola Japan 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, Motorola Japan Ltd filed Critical Nippon Motorola Ltd
Priority to JP5339671A priority Critical patent/JPH07175659A/en
Publication of JPH07175659A publication Critical patent/JPH07175659A/en
Pending legal-status Critical Current

Links

Landscapes

  • Feedback Control In General (AREA)

Abstract

PURPOSE:To accelerate arithmetic speed and to reduce a hardware amount by spatially rearranging input labels contained in the antecedent parts of respective rules in the order of their grades. CONSTITUTION:Concerning the grades of input labels successively appearing on a grade bus 51, an input label rearranging circuit 10 performs the abandonment of a zero grade and the rearrangement corresponding to the order of grades. Next, the rearranged input labels are outputted to the grade bus 51 according to addresses from an address counter 54 successively from the small grade. At the same time, label codes are outputted to a label code bus 52 and supplied to a rule ROM 20, and a rule corresponding bit group is outputted from the rule ROM 20. According to a control signal from a timing control circuit 61, a corresponding bit group selecting circuit 62 selects either the rule corresponding bit group successively read from the rule ROM 20 or a weight corresponding bit group from a weight corresponding bit group generating circuit 61 and distributes it to respective minimum grade detecting circuits 41-49.

Description

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

【0001】[0001]

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

【0002】[0002]

【従来の技術】ファジイ推論を利用したファジイ制御
は、各種の家電製品や車両の制御など既存の広汎な制御
に応用されつつある。このファジイ推論の核心をなす多
重ファジイ推論では、まず、ファジイ規則(ルール)の
前件部に含まれる入力側の複数のファジイ概念と、実際
の入力データによって示される事実との適合度(グレー
ド)が演算される。入力側の複数のファジイ概念には相
互を識別するためにラベルが付加されており、このた
め、各ファジイ概念は入力ラベルとも称される。演算さ
れた各入力ラベルのグレードについてルールに対応した
min-max 演算を行うことにより、各ルールの後件部に含
まれる出力側のファジイ概念(出力ラベル)のメンバー
シップ関数を頭切りするための出力ラベルのグレードが
演算される。最後に、対応のグレードによって頭切りさ
れた各出力ラベルのメンバーシップ関数の重心から確定
的な出力を得るという非ファジイ化が行われる。
2. Description of the Related Art Fuzzy control using fuzzy inference is being applied to a wide range of existing control such as control of various home appliances and vehicles. In the multi-fuzzy inference that forms the core of this fuzzy inference, first, the degree of relevance (grade) between the multiple fuzzy concepts on the input side included in the antecedent part of the fuzzy rule and the facts indicated by the actual input data. Is calculated. A label is added to the plurality of fuzzy concepts on the input side in order to identify each other. Therefore, each fuzzy concept is also referred to as an input label. Corresponding to the rule about the grade of each input label calculated
By performing the min-max operation, the grade of the output label for cutting off the membership function of the fuzzy concept (output label) on the output side included in the consequent part of each rule is calculated. Finally, defuzzification is performed, in which the deterministic output is obtained 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.65, Fg = 0, Gg=0.45,Hg =0.9, Ig =0, Jg
= 0, Kg =0, Lg =0.62, Mg=0.2, Ng =0であっ
たとする。
The contents of the above-mentioned min-max calculation 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 part of each rule are input labels and X to included in the consequent part Z is an output label. Also, the calculated input labels A to L grades Ag to Lg
Are Ag = 0, Bg = 0.06, Cg = 0.7, Dg = 0.55,
Eg = 0.65, Fg = 0, Gg = 0.45, Hg = 0.9, Ig = 0, Jg
= 0, Kg = 0, Lg = 0.62, Mg = 0. 2, 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 grade of the input label included in the antecedent part of the rule. For example, in rule (1), the antecedent part includes the input labels A and B, but the grades Ag and Bg are 0 and 0.6, respectively.
6, the smaller grade Ag is selected.
Similarly, for rule (2), input label B grade
Bg is selected, the rule (3), the grade Fg of the input label F, is selected, and the rule (4), the grade Ng is selected.

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

【0006】上記制御用のファジイ推論マシンでは、速
度、圧力、温度など複数の入力データを受けるために、
複数の入力チャネルが設けられており、各入力チャネル
には複数の入力ラベルが定義されている。また、スイッ
チの開閉やバルブの開度などに関する複数の出力データ
を出力するために複数の出力チャネルが設けられてお
り、各出力チャネルには複数の出力ラベルが定義されて
いる。従って、演算される入力ラベルのグレードの総数
は、入力チャネル×1入力チャネル当たりの入力ラベル
数となり、後段のmin-max 演算の対象となるデータの量
はかなり大きくなる。
In the above 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. Further, a plurality of output channels are provided for outputting a plurality of output data regarding opening / closing of switches and opening of valves, and a plurality of output labels are defined in each output channel. Therefore, the total number of input label grades calculated is equal to the number of input labels per input channel × one input channel, and the amount of data to be subjected to the min-max calculation in the subsequent stage becomes considerably large.

【0007】従来、上述したようなファジイ推論による
制御は、主として家電製品などの低速制御用に応用され
てきたが、これを自動車の走行制御や、サスペンション
制御など比較的複雑でかつ高速性が要求される技術分野
に応用しようとすれば、従来の処理時間を飛躍的に、典
型的には3桁程度、短縮することが必要になる。この演
算時間の短縮は、入力ラベルについてのグレード演算
と、この演算されたグレード群についてのmin-max 演算
による出力ラベルのグレードの演算と、演算されたグレ
ードにより頭切りされた出力ラベルのメンバーシップ関
数の重心演算による非ファジイ化のそれぞれの段階につ
いて調和を保ちながら実現することが必要になる。
Conventionally, the control based on the fuzzy inference as described above has been mainly applied to low-speed control of home electric appliances and the like, but it is required to be relatively complicated and high-speed such as vehicle running control and suspension control. In order to apply it to the technical field, it is necessary to dramatically reduce the conventional processing time, typically by about 3 digits. This reduction in calculation time is performed by the grade calculation for the input label, the calculation of the output label grade by the min-max calculation for this 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 the input label is realized by comparing the grades of the input label included in the antecedent part of each rule. A typical example of a system that realizes this size comparison by software processing is disclosed in Japanese Patent Application No. 4-10133, etc. However, in such software processing, it is necessary to repeat many size comparisons. There is a problem that it is difficult to improve the calculation speed. A typical example of a system for realizing the above size comparison by a hardware circuit is disclosed in Japanese Patent Application No. 2-159628, etc., but it is necessary to execute a large number of comparison operations for input labels included in each rule. However, there is a problem in that it is difficult to increase the speed, and it becomes difficult to reduce the manufacturing cost because the scale of this 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 we define each of the eight input label membership functions so that only the nearest neighbors intersect, then each input channel will output two input labels with a non-zero grade. To be done. That is, 70 to 80% of the grades of the input label of the min-max calculation target are zero grades.
The zero grade (hereinafter referred to as “zero grade”) that occupies most of this is that the grade of other input labels (hereinafter referred to as “non-zero grade”) does not substantially affect the min-max operation result. Has a specificity different from that of However, in the conventional min-max operation, zero grade is processed in the same way as non-zero grade, so
A large amount of useless processing is included, which makes it more difficult to improve the calculation speed and reduce the hardware amount.

【0010】更に、ファジイ推論を利用した制御システ
ムなどでは、ユーザが利用結果などを踏まえてあるルー
ルを除去したり、そのルールの影響を弱めたりしたい場
合がある。このようなルールの後発的な変更は、そのル
ールのmin 演算結果にゼロや1未満の重み係数を乗算す
ることにって実現できる。しかしながら、この重み係数
の乗算を実現しようとすると回路が複雑になるという問
題がある。
Further, in a control system using fuzzy inference, a user may want to remove a rule or weaken the influence of the rule based on the usage result. The subsequent modification of such a rule can be realized by multiplying the min operation result of the rule by a weighting coefficient of zero or less than 1. However, there is a problem that the circuit becomes complicated when trying to realize the multiplication of the weighting factors.

【0011】従って、本発明の目的は、演算速度の向上
とハードウエア量の低減化を実現したファジイ推論のmi
n-max 演算回路を提供することにあり、特に、各ルール
に対する重み付けを容易に実現できるファジイ推論のmi
n-max 演算回路を提供することにある。
Therefore, an object of the present invention is to improve the speed of computation and reduce the amount of hardware by using fuzzy inference mi.
It is to provide an n-max operation circuit, and in particular, it is a fuzzy inference mi that can easily realize weighting for each rule.
It is to provide an n-max operation circuit.

【0012】[0012]

【課題を解決するための手段】上記従来技術の課題を解
決する本発明に係わるファジイ推論のmin-max 演算回路
は、ファジイ推論に関する入力ラベルのグレードの大小
関係を予め判定する判定手段と、この判定手段によって
判定された大小の順番に従ってmin-max 演算を実行する
演算手段とを備えている。より具体的には、ファジイ推
論の各ルールの前件部に含まれる各入力ラベルについて
定義された所定の配列に従って各ルールがそれぞれの前
件部に各入力ラベルを含むか否かを有効/無効ビットで
表示する符号化ルールが各ルールについて定義され、こ
のように定義された各符号化ルールに特定の入力ラベル
が含まれるか否かを有効/無効ビット群で示すルール対
応ビット群が各入力ラベルに対して定義される。各入力
ラベルに対して定義されたルール対応ビット群をその入
力ラベルの識別コード(以下,「ラベルコード」とい
う)によって指定されるアドレスに保持することによ
り、各符号化ルールが複数のアドレスにわたってかつ各
ルール対応ビット群の各ビットの配列方向に所定の順序
で配列しながら保持するルールメモリが備えられる。
A min-max arithmetic circuit for fuzzy inference according to the present invention, which solves the above-mentioned problems of the prior art, comprises a judging means for preliminarily judging the magnitude relation of grades of input labels concerning fuzzy inference. And a calculation unit that executes the min-max calculation according to the order of magnitude determined by the determination unit. More specifically, whether to enable / disable whether each rule includes each input label in each antecedent part according to a predetermined array defined for each input label included in each antecedent part of each fuzzy inference rule A coding rule to be displayed in bits is defined for each rule, and a rule-corresponding bit group that indicates whether or not each coding rule thus defined includes a specific input label by a valid / invalid bit group is input to each rule. Defined for the label. By holding the rule-corresponding bit group defined for each input label at the address specified by the identification code of the input label (hereinafter referred to as "label code"), each coding rule can be distributed over multiple addresses and A rule memory is provided which holds the bits while arranging them in a predetermined order in the arrangement direction of each bit of each rule corresponding bit group.

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

【0014】更に、本発明のmin-max 演算回路は、ファ
ジイ推論の各ルールに付与される重み係数を小さな順又
は大きな順に出力する重み係数出力手段と、各ルールに
付与される重み係数を保持しかつ保持中の重み係数が上
記重み係数出力手段から出力された重み係数に等しいか
否かを各ルールに対して有効/無効ビットによって示す
重み対応ビット群を発生する重み対応ビット群発生手段
と、上記再配列手段から出力される入力ラベルのグレー
ドと重み係数出力手段から発生された重み係数を比較
し、比較結果に応じてルール対応ビット群と重み対応ビ
ット群の一方を選択すると共に、再配列手段から出力さ
れる入力ラベルのグレードと重み係数出力回路から出力
された重み係数のうちの一方を選択する選択手段から成
る重み付け部分を備えている。
Further, the min-max operation circuit of the present invention holds a weighting factor output means for outputting the weighting factor assigned to each rule of fuzzy inference in ascending or descending order, and the weighting factor assigned to each rule. And a weight-corresponding bit group generating means for generating a weight-corresponding bit group that indicates whether or not the held weight coefficient is equal to the weight coefficient output from the weight coefficient output means, by a valid / invalid bit for each rule. , Comparing the grade of the input label output from the rearrangement means and the weight coefficient generated from the weight coefficient output means, selecting one of the rule-corresponding bit group and the weight-corresponding bit group according to the comparison result, and A weighting section comprising selection means for selecting one of the input label grade output from the array means and the weight coefficient output from the weight coefficient output circuit There.

【0015】更に、本発明のmin-max 演算回路は、ファ
ジイ推論の各出力ラベルに対応して設置されると共に、
上記選択手段で選択されたルール対応ビット群又は重み
対応ビット群中に最初に又は最後に出現する有効ビット
に基づきこの出力ラベルに含まれる選択手段で選択され
た入力ラベルのグレード又は重み係数のうち最小のもの
をに関する情報を各ルールについて検出し、この各ルー
ルについて検出した最小値に関する情報に基づき最大の
グレード又は重み係数をこの出力ラベルについてのmin-
max 演算結果として検出するmin-max 検出手段を備えて
いる。
Further, the min-max operation circuit of the present invention is installed corresponding to each output label of fuzzy inference, and
Of the grade or weighting factor of the input label selected by the selecting means included in this output label based on the effective bit that appears first or last in the rule corresponding bit group or the weight corresponding bit group selected by the selecting means The information about the smallest one is found for each rule, and the maximum grade or weighting factor is min-for this output label based on the information about the smallest value found for each rule.
A min-max detection means for detecting the max calculation result is provided.

【0016】[0016]

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

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

【0018】図10の再配列結果は人間による判別には向
いているが、自動的な判別には不向きである。そこで、
本発明によれば、最小限のデータ量のもとに自動的な判
別を容易にするという観点から、まず、上記入力ラベル
の再配列に先立ってシステム内で定義されている各ルー
ルの符号化が行われる。この各ルールの符号化は、シス
テム内の全ての入力チャネルで定義されている全ての入
力ラベルの配列順序を予め定義しておき、各ルールにつ
いて各入力ラベルを含むか否かを、含む場合には有効ビ
ット(例えば“1”)で、含まない場合には無効ビット
(例えば“0”)で表示した情報を上記入力ラベルにつ
いて定義された配列順序と同一の順序で配列することに
よって実現される。
The rearrangement result of FIG. 10 is suitable for human discrimination, but is not suitable for automatic 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 rearrangement of the input label is performed. Is done. The coding of each rule defines in advance the array order of all input labels defined in all input channels in the system, and determines whether or not each input label is included in each rule. Is a valid bit (for example, “1”), and when not included, it is realized by arranging the information indicated by an invalid bit (for example, “0”) in the same order as the arrangement order defined for the input label. .

【0019】図10の例では、AからNまでの各入力ラ
ベルについて、アルファベット順の配列順序を定義して
おくものとすれば、ルール(1) は入力ラベルAとBのみ
を前件部に含むため、これを符号化した符号化ルール
(1) は、図11に示すように、「1100000000
0000」となる。同様に、ルール(5) は入力ラベルC
とDのみを前件部に含むため、これを符号化した符号化
ルール(5) は、図12に示すように、「0011000
0000000」となる。
In the example of FIG. 10, if the arrangement order in alphabetical order is defined for each input label from A to N, the rule (1) is that only the input labels A and B are set as the antecedent part. The encoding rule that encoded this to include
(1) is, as shown in FIG.
0000 ". Similarly, rule (5) has input label C
Since only the antecedent and D are included in the antecedent part, the encoding rule (5) that encodes this is, as shown in FIG.
It becomes 0000000 ".

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

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

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

【0023】このように、入力ラベルのグレードの大小
順に各入力ラベルのルール対応ビット群を空間的に再配
列することにより、自動的に判定容易な図14の配列を
得ることができる。すなわち、図14に含まれる各符号
化ルールについて最も右側に位置する有効ビット
(“1”)を検出し、次に任意の出力ラベルを共通に含
む1又は複数の符号化ルールのそれぞれについて検出済
みの最も右側の有効ビットのうち最も左側に位置する有
効ビットを検出し、この最も左側に位置する有効ビット
に対応する入力ラベルを検出し、最後に、その検出した
入力ラベルのグレードを選択すれば、これがその出力ラ
ベルについてのmin-max 演算結果となる。
As described above, the rule-corresponding bit group of each input label is spatially rearranged in order of the grade of the input label, so that the arrangement shown in FIG. 14 can be obtained automatically and easily. That is, the effective bit (“1”) located on the rightmost side of each of the coding rules included in FIG. 14 is detected, and then the detection of each of one or a plurality of coding rules including an arbitrary output label in common has been completed. Of the most significant bit on the rightmost side of, the input label corresponding to the most significant bit on the leftmost side is detected, and finally, the grade of the detected input label is selected. , This is the min-max operation result for the output label.

【0024】上述のように、空間的に配列されたルール
対応ビット群に基づきmin-max 演算を行うことが可能で
あり、このような空間的なmin-max 演算の構成について
は本出出願人が既に行った他の特許出願(特願平4ー3
32402 号)に開示されている。本発明のmin-max
演算回路では、ルール対応ビットの出現順序を利用する
時系列的なmin-max 演算が行われる。空間的なあるいは
時系列的ないずれの手法を採用する場合にも、入力ラベ
ルをグレードの順に一旦再配列しておくという構成によ
り、処理時間が大幅に短縮される。
As described above, it is possible to perform the min-max operation based on the spatially arranged rule-corresponding bit group. Regarding the configuration of such a spatial min-max operation, the applicant Already filed another patent application (Japanese Patent Application No. 4-3
32402). Min-max of the present invention
The arithmetic circuit performs a time-series min-max operation that utilizes the order of appearance of the rule corresponding bits. Regardless of whether the method is spatial or time-series, the processing time is greatly shortened by the arrangement in which the input labels are once rearranged in the order of grades.

【0025】すなわち、従来のmin-max 演算回路によれ
ば、各ルールごとに前件部に含まれる入力ラベルのグレ
ードの大小比較が行われるため、例えば、入力ラベルA
とBとを前件部に含むルールが10個存在するものとす
れば、それぞれのグレードの大小比較が10個のルール
について、すなわち10回にわたって繰り返される。こ
れに対して、本発明のmin-max 演算回路では、入力ラベ
ルAとBとを前件部に含むルールが何個存在する場合で
も、それぞれのグレードの大小比較は1回で済み、この
結果、演算時間が大幅に短縮される。
That is, according to the conventional min-max operation circuit, the grades of the input labels included in the antecedent part are compared for each rule.
Assuming that there are 10 rules including B and B in the antecedent part, the magnitude comparison of each grade is repeated for 10 rules, that is, 10 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 comparison of each grade is required only once. , The calculation time is greatly reduced.

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

【0027】そこで、本発明のmin-max 演算回路では、
各符号化ルールに含まれる最小グレードを検出するため
の最小グレード検出部分がルールメモリから順次出力さ
れるルール対応ビット群の各ビット位置に設置される。
各最小グレード検出部分は、入力ラベル再配列回路から
出力される入力ラベルのグレードや再配列の順位と、ル
ールメモリから出力される各符号化ルール中に最初に、
あるいは最後に出現する有効ビットとに基づき最小グレ
ードに関する検出結果を得る。すなわち、入力ラベルの
グレードの小さな順にルールメモリをアクセスすれば、
各符号化ルールの最初に出現する有効ビットと共に再配
列回路から出力されるグレードを最小グレードとして検
出できる。逆に、入力ラベルのグレードの大きな順にル
ールメモリをアクセスすれば、各符号化ルールの最後に
出現する有効ビットと共に再配列回路から出力されるグ
レードを最小グレードとして検出できる。
Therefore, in the min-max arithmetic circuit of the present invention,
A minimum grade detecting portion 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 part is the grade of the input label output from the input label rearrangement circuit and the order of rearrangement, and first in each encoding rule output from the rule memory,
Alternatively, the detection result regarding the minimum grade is obtained based on the last valid bit. In other words, if you access the rule memory in ascending order of input label grade,
The grade output from the rearrangement circuit together with the first valid bit of each coding rule can be detected as the minimum grade. On the contrary, if the rule memory is accessed in order of the grade of the input label, the grade output from the rearrangement circuit together with the valid bit appearing at the end of each encoding rule can be detected as the minimum grade.

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

【0029】次に、各ルールに重み付けを行う場合につ
いて説明する。一例として、上述のルール(2) とルール
(5) のそれぞれにW(0<W<1)の重み付けを行うも
のとする。ルール(2) は、if B and C then X であるか
ら、このルール(2) にWの重み付けを行うには、このル
ールの前件部に含まれるグレードBとCの min値に重み
係数Wを乗算すればよい。この重み係数の乗算をmin 演
算で近似すれば、ルール(2)にWの重み付けを行うこ
とは、その前件部に含まれるグレードB,Cと、重み係
数Wのうちから最小のものを選択するmin 演算で置き換
えることができる。同様にルール(5)にWの重み付け
を行うことは、このルールの前件部に含まれるグレード
C,Dと重み係数Wのうちから最小のものを選択するmi
n 演算で置き換えることができる。
Next, the case of weighting each rule will be described. As an example, rule (2) and rule
Each of (5) is weighted with W (0 <W <1). Since the rule (2) is if B and C then X, in order to weight this rule (2) with W, the weighting factor W is added to the min values of the grades B and C included in the antecedent part of this rule. Multiply by. If the multiplication of the weighting factors is approximated by the min operation, the rule (2) is weighted with W by selecting the smallest one from the grades B and C included in the antecedent part and the weighting factor W. Can be replaced with the min operation. Similarly, weighting W to the rule (5) is performed by selecting the smallest one from the grades C and D and the weighting factor W included in the antecedent part of this rule.
It can be replaced by n operations.

【0030】ここで、重み係数Wを 0.4とすれば、この
重み付け演算は、図15に示すように、大きさ0.4 の入
力ラベルのルール対応ビット群に相当する重み対応ビッ
ト群を図14に追加すればよい。この重み対応ビット群
は、重み付け対象のルール(2) と(4) に対してだけ有効
ビット“1”が設定されており、重み付けの対象となっ
ていない他の全てのルールについては無効ビット“0”
が設定されている。ルール(2) では、前件部のグレード
の最小値Bが0.06であり重み係数0.4 よりも小さいため
重み付けの効果が現れない。一方、ルール(4) では、前
件部のグレードの最小値D( 0.55) が重み係数0.4 に置
き換えられ、重み付けの効果が現れている。このよう
に、各ルールに付与する重み係数を対応のルールの前件
部に含まれる入力ラベルのグレードと同等に扱うと共
に、重み対応ビット群の概念を導入することにより、容
易に重み係数を設定し、システムの実績など状況に応じ
てこれを容易に変更することが可能となる。
Assuming that the weighting coefficient W is 0.4, this weighting operation adds a weight-corresponding bit group corresponding to the rule-corresponding bit group of the input label of size 0.4 to FIG. 14, as shown in FIG. do it. In this weight-corresponding bit group, the valid bit “1” is set only for the weighted rules (2) and (4), and the invalid bit “1” is set for all other rules that are not weighted. 0 "
Is set. In rule (2), the minimum value B of the grade in the antecedent is 0.06, which is smaller than the weighting coefficient 0.4, so that the weighting effect does not appear. On the other hand, in rule (4), the minimum value D (0.55) of the grade in the antecedent part is replaced with the weighting coefficient 0.4, and the weighting effect appears. In this way, the weighting factor assigned to each rule is treated in the same manner as the grade of the input label included in the antecedent part of the corresponding rule, and the weighting factor can be easily set by introducing the concept of the weight-corresponding bit group. However, this can be easily changed according to the situation such as the system performance.

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

【0032】[0032]

【実施例】図1は、本発明の一実施例に係わるファジイ
推論のmin-max 演算回路の構成を示すブロック図であ
り、10は入力ラベルのグレードとラベルコードとをそ
のグレードの大小順に再配列する入力ラベル再配列回
路、20はルールROM、31〜39はグレード保持レ
ジスタ群、41〜49はmin-max 検出回路群、51はグ
レードバス、52はラベルコードバス、53は有効フラ
グ信号線、54はアドレス発生回路である。また、61
は重み対応ビット群発生回路、62は対応ビット群選択
回路、63は重み係数出力回路、64は比較回路、65
はタイミング制御回路、66,67はゲート回路であ
る。図示の便宜上、ルールROM20と、グレード保持
レジスタ群31〜39と、min-max 検出回路群41〜4
9から成る後段部分は、1個の出力チャネルのみについ
て図示されている。すなわち、上記後段部分は、出力チ
ャネルの総数に等しい数、例えば出力チャネルの総数が
10であれば、これと同数の10組だけ設置される。
FIG. 1 is a block diagram showing the construction of a min-max operation circuit for fuzzy inference according to an embodiment of the present invention. 10 is a grade of an input label and a label code are reproduced in order of magnitude of the grade. Input label rearrangement circuit to be arranged, 20 is a rule ROM, 31 to 39 are grade holding register groups, 41 to 49 are min-max detection circuit groups, 51 is a grade bus, 52 is a label code bus, and 53 is a valid flag signal line. , 54 are address generation circuits. Also, 61
Is a weight corresponding bit group generation circuit, 62 is a corresponding bit group selection circuit, 63 is a weight coefficient output circuit, 64 is a comparison circuit, and 65
Is a timing control circuit, and 66 and 67 are gate circuits. For convenience of illustration, the rule ROM 20, the grade holding register groups 31 to 39, and the min-max detection circuit groups 41 to 4
The latter part consisting of 9 is shown for only one output channel. That is, the latter part is installed in a number equal to the total number of output channels, for example, if the total number of output channels is 10, only 10 sets of the same number are installed.

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

【0034】グレードバス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 at the same time as 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, it may be expressed by serial numbers assigned to all the input labels arranged in the arrangement order of the input channels and the arrangement order of the input labels defined for each channel.

【0035】典型的なファジイ推論においては、グレー
ドバス51上に出現する入力ラベルのグレードの大部分
はゼロとなる。例えば、各入力チャネルについて、9個
の入力ラベルのメンバーシップ関数のそれぞれを最隣接
のものだけが交差するように定義すれば、各入力チャネ
ルからはゼロでない入力ラベルのグレードが2個ずつ出
力される。すなわち、全部で8入力チャネル分の総数7
2個の入力ラベルのグレードのうち16個だけがゼロで
なく、残りの56個はゼロのグレード(以下、「ゼログ
レード」と称する)となる。このような入力ラベルのグ
レードの演算回路については、必要に応じて,本出願人
の先願に係わる「ファジイ推論のグレード演算回路」と
題する特願平4ー283935号を参照されたい。
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 we define each of the nine input label membership functions so that only the nearest neighbors intersect, then two nonzero input label grades are output from each input channel. It That is, a total of 7 for 8 input channels in total
Only 16 of the two input label grades are not zero, and the remaining 56 are zero grades (hereinafter referred to as "zero grades"). For such an input label grade arithmetic circuit, refer to Japanese Patent Application No. 4-283935 entitled "Fuzzy Inference Grade Arithmetic Circuit" related to the applicant's prior application, if necessary.

【0036】本実施例のmin-max 演算回路では、入力ラ
ベルのグレードの大部分を占めるゼログレードについて
は例外的な処理を実行することにより、処理時間の短縮
と回路規模の低減とを図っている。その一環として、図
示しない前段の入力ラベルのグレード演算回路からは、
演算結果がゼログレードでなければその旨を示す有効フ
ラグが、ゼログレードであれば無効フラグが有効フラグ
信号線53上に出力される。
In the min-max operation circuit of this embodiment, exceptional processing is executed for the zero grade which occupies most of the grades of the input label, so that the processing time and the circuit scale can be shortened. There is. As part of that, from the grade calculation circuit of the input label in the previous stage (not shown),
If the calculation result is not zero grade, a valid flag indicating that is output to the valid flag signal line 53 if it is zero grade.

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

【0038】このゼログレードの廃棄と、非ゼログレー
ドの大きさの順序に応じた入力ラベルのグレードの再配
列は、有効フラグ信号線53上に有効フラグが出現した
時だけ、グレードバス51上に出現中のグレードをその
大小関係に応じた保持先を選択しながら対応の識別子と
共に各系統のデータレジスタ群の一つに保持することに
よって実現される。このような入力ラベル再配列回路1
0は適宜な手法に基づき実現できるが、好適には、本出
願人が出願済みの特願平4ー293697号に開示され
ているような「データのソート回路」に開示されている
ようなものを利用すれば、処理時間の短縮という点にお
いて特に好適である。この入力ラベル再配列回路の詳細
については後述する。
The discarding of the zero grade and the rearrangement of the grades of the input label according to the order of the size of the non-zero grade are performed on the grade bus 51 only when the 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 relationship. Such an input label rearrangement circuit 1
0 can be realized based on an appropriate method, but it is preferable that it is disclosed in a "data sorting circuit" as disclosed in Japanese Patent Application No. 4-293697 filed by the present applicant. Is particularly preferable in that the processing time can be shortened. Details of this input label rearrangement circuit will be described later.

【0039】入力ラベル再配列回路10によるグレード
とラベルコードの再配列が終了すると、グレードレジス
タ群30の全てについて初期値ゼロが設定されたのち、
アドレスカウンタ54から供給される連続的なアドレス
に従って、再配列済みの入力ラベルのグレードが小さな
順(昇順)に入力ラベル再配列回路10からグレードバ
ス上51に出力される。これと同時に対応のラベルコー
ドが入力ラベル再配列回路10からラベルコードバス5
2上に出力される。このラベルコードバス52上に出力
されたラベルコードは、ルールROM20のアドレス入
力端子に供給されることにより、ルールROM20から
はこのアドレスに保持中のルール対応ビット群が出力さ
れ、対応ビット群選択部62を経て後段のmin-max 検出
回路41〜49に分配される。
When the rearrangement of the grade and label code by the input label rearrangement circuit 10 is completed, the initial value zero is set for all of the grade register group 30,
According to the continuous addresses supplied from the address counter 54, the grades of the rearranged input labels are output from the input label rearrangement circuit 10 to the grade bus 51 in ascending order (ascending order). At the same time, the corresponding label code is input from the input label rearrangement circuit 10 to the label code bus 5
2 is output. The label code output on the label code bus 52 is supplied to the address input terminal of the rule ROM 20, so that the rule ROM 20 outputs the rule corresponding bit group held at this address, and the corresponding bit group selecting unit. After 62, the data is distributed to the min-max detection circuits 41 to 49 in the subsequent stage.

【0040】ルールROM20から出力されるルール対
応ビット群が分配される後段部分は、9個の出力ラベル
のそれぞれに対応して設置されている9個のmin-max 演
算検出回路41,42・・・・49から構成されてい
る。各min-max 検出回路は、対応の出力ラベルについて
定義可能なルールの最大数と同数のmin 検出回路と、こ
れらmin 検出回路の各出力の論理和を作成し出力するオ
アゲートとから成るmax検出回路とから構成されてい
る。min-max 検出回路41で代表して図2に示すよう
に、このmin-max 検出回路41が演算対象とする出力ラ
ベルが4個のルールを含んでいるものとすれば、4個の
min 検出回路411,412,413,414と、これ
らの出力の論理和を作成し出力するオアゲート415か
ら構成されている。
The rear-stage portion to which the rule-corresponding bit group output from the rule ROM 20 is distributed is the nine min-max operation detection circuits 41, 42, ... Which are installed corresponding to the respective nine output labels. ..49. Each min-max detection circuit is a max detection circuit consisting of the same number of min detection circuits as the maximum number of rules that can be defined for the corresponding output label, and an OR gate that creates and outputs the logical sum of the outputs of these min detection circuits. It consists of and. As shown in FIG. 2 as a representative of the min-max detection circuit 41, if the output labels to be operated by the min-max detection circuit 41 include four rules, then four
It is composed of min detection circuits 411, 412, 413, 414 and an OR gate 415 for creating and outputting a logical sum of these outputs.

【0041】図2を参照すれば、最初の出力ラベルに含
まれる4個のルール(1) 〜(4) に対応して設置されてい
るmin 検出回路411〜414は、入力ラベル再配列回
路10からの入力ラベルのグレードの出力時にルールR
OM20から順次読出されたのち対応ビット群選択回路
62で選択されたルール対応ビット、又は重み対応ビッ
ト群発生回路61で発生されたのち対応ビット群選択回
路62で選択された重み対応ビット群のうちの対応のル
ールビット位置に出現する対応の符号化ルール中に最初
に出現する有効ビット“1”を検出し、オアゲート41
1の入力端子に“1”を出力するように構成されてい
る。すなわち、対応の符号化ルール中に2番目、3番目
の有効ビット“1”が出現しても、対応のmin 検出回路
410からは“1”が出力されない。このようなmin 検
出回路410の構成については、後に図3を参照しなが
ら詳述する。
Referring to FIG. 2, the min detection circuits 411 to 414 installed corresponding to the four rules (1) to (4) included in the first output label are the input label rearrangement circuit 10. Rule R when outputting the grade of the input label from
Of the rule-corresponding bits selected by the corresponding bit group selection circuit 62 after being sequentially read from the OM 20, or the weight-corresponding bit group generated by the weight-corresponding bit group generation circuit 61 and then selected by the corresponding bit group selection circuit 62. The effective bit “1” that first appears in the corresponding encoding rule that appears in the corresponding rule bit position of
It is configured to output "1" to one input terminal. That is, even if the second and third effective bits "1" appear in the corresponding coding rule, "1" is not output from the corresponding min detection circuit 410. The configuration of such a min detection circuit 410 will be described later in detail with reference to FIG.

【0042】対応ビット群選択回路62は、入力ラベル
再配列回路10からの入力ラベルのグレードの出力時に
ルールROM20から順次読出されるルール対応ビット
群と重み付け対応ビット群発生回路61で発生された重
み付け対応ビット群のうちの一方を、タイミング制御回
路65から出力されるタイミング制御信号に従って選択
し、選択したルール対応ビット群又は重み付け対応ビッ
ト群を信号線群68を介して最小グレード検出回路41
〜49のそれぞれに分配する。説明の便宜上、まず、各
ルールに対し設定されている重み付け係数が全て「1」
の場合について説明する。この場合、後述する重み演算
部63,64,65の機能により、対応ビット群選択部
62が常にルールROM20から出力されるルール対応
ビット群を選択して最小グレード検出回路41〜49に
分配すると共に、ゲート66が常時開かれる一方ゲート
67が常時閉じらる状態で演算が実行される。
The corresponding bit group selection circuit 62 weights the rule corresponding bit group and the weighted corresponding bit group generating circuit 61 which are sequentially read from the rule ROM 20 when the input label reordering circuit 10 outputs the grade of the input label. One of the corresponding bit groups is selected according to the timing control signal output from the timing control circuit 65, and the selected rule corresponding bit group or weighted corresponding bit group is selected via the signal line group 68 to the minimum grade detection circuit 41.
Distribute to each of ~ 49. For convenience of explanation, first, all the weighting factors set for each rule are “1”.
The case will be described. In this case, the corresponding bit group selection unit 62 always selects the rule corresponding bit group output from the rule ROM 20 and distributes it to the minimum grade detection circuits 41 to 49 by the functions of the weight calculation units 63, 64 and 65 described later. , The gate 66 is always open while the gate 67 is always closed.

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

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

【0045】ここで、グレードバス51上には入力ラベ
ルのグレードが小さな順に出現するという点を考慮すれ
ば、対応の符号化ルール中に出現する最初の有効ビット
に基づきレジスタ31に保持される入力ラベルのグレー
ドは、対応の符号化ルールの前件部に含まれる最小のも
のに他ならない。すなわち、min 検出回路411〜41
4のそれぞれは、対応のルールの前件部に含まれる各入
力グレードに対する min演算を実現するための機能の一
部を果す。
Considering that the grades of the 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 encoding rule. The label grade is none other than the minimum contained in the antecedent part of the corresponding encoding rule. That is, the min detection circuits 411 to 41
Each of 4 fulfills a part of the function for realizing the min operation for each input grade included in the antecedent part of the corresponding rule.

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

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

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

【0049】さて、図2に示したmin-max 検出回路41
1〜414は、min-max 検出回路411で代表して図3
に示すように、Dフリップフロップ411aと2入力ア
ンドゲート411bとから成る後段部分と、JKフリッ
プフロップ411c,411gとスイッチ411dと論
理ゲート411e,411fとから成る前段部分とから
構成されている。この最小グレード検出回路の主要な動
作は、前述したように、再配列済みの入力ラベルのグレ
ードの出力中にmin-max 演算の機能の一部を分担するこ
とにある。まず、Dフリップフロップ411aと2入力
アンドゲート411bとから成る後段部分によって、前
段部分のオアゲート411fの出力が“0”から“1”
に変化した時に半クロック期間だけ“1”を出力する微
分機能が実現されている。
Now, the min-max detection circuit 41 shown in FIG.
1 to 414 are represented by the min-max detection circuit 411 in FIG.
As shown in FIG. 5, it is composed of a rear stage portion including a D flip-flop 411a and a 2-input AND gate 411b, and a front stage portion including JK flip-flops 411c and 411g, a switch 411d, and logic gates 411e and 411f. The main operation of this minimum grade detection circuit is to share a part of the function of the min-max operation during the output of the rearranged input label grades, as described above. First, the output of the OR gate 411f at the front stage is changed from "0" to "1" by the rear stage portion including the D flip-flop 411a and the 2-input AND gate 411b.
The differential function that outputs "1" only for a half clock period when the signal changes to is realized.

【0050】これに対して上記前段部分のうちJKフリ
ップフロップ411gとオアゲート411fから成る部
分は、不使用ルールについて上記後段部分の機能を禁止
するためのものである。また、前段部分のうちJKフリ
ップフロップ411cとオアゲート411fから成る部
分は、入力ラベル再配列回路10による入力ラベルのグ
レードの再配列中に対応のルールに含まれない無効な入
力ラベルが出現したり、ルールに含まれる有効な入力ラ
ベルがゼログレードであった場合、あるいは、min-max
演算過程で各ルールの前件部で指定された最初の有効ビ
ットが出現した後、すなわちルールの最小グレードが出
現した後は、上記後段の機能を停止させるためのもので
ある。
On the other hand, the part consisting of the JK flip-flop 411g and the OR gate 411f in the former part is for prohibiting the function of the latter part in the nonuse rule. Further, in the part consisting of the JK flip-flop 411c and the OR gate 411f in the preceding stage part, 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, or If the rule has a valid input label of 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.

【0051】前段部分のノアゲート411eの一方の入
力端子には、入力ラベル再配列回路10が再配列を実行
中であるか又は配列済みの入力ラベルのグレードの出力
を実行中であるかを、前者の場合には“0”で、後者の
場合には“1”で示す信号が入力する。このノアゲート
411eの他方の入力端子には、図1の有効フラグ信号
線53から再配列対象の入力ラベルのグレードがゼロで
あれば“1”、ゼロでなければ“0”が入力する。
Whether or not the input label rearrangement circuit 10 is executing the rearrangement or the output of the grade of the arranged input label is executed at the one input terminal of the NOR gate 411e in the former stage. In this case, the signal "0" is input, and in the latter case, the signal "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.

【0052】まず、前述した入力ラベル再配列回路10
による再配列の開始に先立って、プリセット信号に基づ
きJKフリップフロップ411gに初期値“1”がセッ
トされる共に、JKフリップフロップ411cに初期値
“0”がセットされる。こののち、入力ラベル再配列回
路10によって再配列が開始されると、ルールROM2
0はラベルバス52上に出現するラベルコードをアドレ
ス端子に受けながらアクセスされる。入力ラベルの再配
列中は上述のようにノアゲート411eの一方の入力端
子には“0”が入力され続ける。
First, the input label rearrangement circuit 10 described above is used.
Prior to the start of the rearrangement by, the initial value “1” is set in the JK flip-flop 411g based on the preset signal, and the initial value “0” is set in the JK flip-flop 411c. After that, when the 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.

【0053】ノアゲート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" which indicates 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 switched in the figure. It is switched to the state shown by the dotted line. In this state, input terminal IN
When a valid bit "1" in the encoding rule appears in J, J
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 " 0 ", 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 label is completed is "" when the grade of the corresponding input label is not zero grade for all effective bits "1" in the encoding rule. 0, and in other cases, that is, when even one zero-grade input label is specified for the valid bit "1" in the coding rule, or when the valid bit "1" is in the coding rule. If no one appears, the initial value is kept at "1".

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

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

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

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

【0058】第2の理由は、本出願人の先願に係わる
「ファジイ推論のグレード演算回路」と題する特願平4
ー283935号に開示されているグレード演算回路を
使用する場合、入力ラベル再配列回路10による入力ラ
ベルの再配列時に、Π型メンバーシップ関数によって定
義される入力ラベルのグレードの演算途中で、無効デー
タが出力される場合があり、このような場合、min-max
演算を禁止する必要があり、このような理由から1ビッ
トの情報によるmin 演算の禁止が行われる。
The second reason is that Japanese Patent Application No. Hei 4 (1999) entitled "Grade Operation Circuit for Fuzzy Reasoning" related to the applicant's earlier application.
In the case of using the grade arithmetic circuit disclosed in US Pat. No. 2,883,935, when the input label rearrangement circuit 10 rearranges the input label, invalid data is generated during the calculation of the grade of the input label defined by the Π type membership function. May be output. In such a case, min-max
It is necessary to prohibit the operation, and for this reason, the min operation is prohibited by 1-bit information.

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

【0060】以上、説明の便宜上、まず、各ルールに対
して設定されている重み係数が全て1.0 の場合、すなわ
ち重み付け機能が全く作動しない場合について説明し
た。以下では、重み付け機能が作動する場合について説
明する。図1の実施例では、各ルールに対し設定可能な
重み係数は、1/8,2/8,3/8 ・・・・7/8,8/8 という具合
に、1/8 刻みの8種類の値に量子化されている。この量
子化された重み係数は、カウンタなどで構成される重み
係数発生回路63において、3ビット幅の8種類の2値
信号として昇順、すなわち 1/8, 2/8, 3/8・・・・8/8
という具合に順次1/8 ずつ増加しながら発生され、これ
が重み対応ビット群発生回路61と比較回路64とに供
給される。
For convenience of explanation, the case where all the weighting factors set for each rule are 1.0, that is, the case where the weighting function does not operate at all has been described above. The case where the weighting function operates will be described below. In the embodiment of FIG. 1, the weighting factors that can be set for each rule are 1/8, 2/8, 3/8, ... 7/8, 8/8, and 8 in 8 steps. It is quantized to the kind value. The quantized weighting factors are output in ascending order as 8 types of binary signals of 3 bit width in the weighting factor generating circuit 63 including a counter, that is, 1/8, 2/8, 3/8 ...・ 8/8
That is, they are sequentially generated by increasing by 1/8 and are supplied to the weight corresponding bit group generation circuit 61 and the comparison circuit 64.

【0061】重み対応ビット群発生回路61は、図4に
示すように、各ルールに付与される重み係数を保持する
ルール総数nと同数のレジスタR1〜Rnと、これら各
レジスタの保持データと重み係数発生回路63から出力
され信号線72上に出現する重み係数とを比較し、一致
の場合には有効信号“1”を出力し不一致の場合には無
効信号“0”を出力するルール総数nと同数の比較回路
COMP1〜COMPnから構成されている。重み係数
発生回路63は、1/8 から8/8 までの重み係数を1/8 刻
みで順次発生できるが、この重み係数として0/8 を追加
することは勿論可能である。ここでは、ラベル再配列回
路10からの読出しをグレードの小さい順に行うものと
し、信号線72上に重み係数1/8 が出力中であるものと
する。
As shown in FIG. 4, the weight-corresponding bit group generation circuit 61 has the same number of registers R1 to Rn as the total number n of rules holding the weighting coefficient assigned to each rule, the data held in these registers and the weights. The total number of rules n that compares the weighting coefficient output from the coefficient generation circuit 63 and appears on the signal line 72 and outputs a valid signal “1” if they match and an invalid signal “0” if they do not match n And the same number of comparison circuits COMP1 to COMPn. The weighting factor generation circuit 63 can sequentially generate weighting factors from 1/8 to 8/8 in 1/8 steps, but it is of course possible to add 0/8 as this weighting factor. Here, it is assumed that the reading from the label rearrangement circuit 10 is performed in ascending order of the grade and that the weighting factor 1/8 is being output on the signal line 72.

【0062】図1を参照すれば、入力ラベルの再配列回
路10からグレードバス51上に出力されるグレードの
上位3ビットが比較回路64の一方の入力端子に供給さ
れ、この比較回路64の他方の入力端子に供給される最
小の重み係数1/8 と比較される。比較回路64は、グレ
ードバス51上に出現するグレードがこの最小の重み係
数1/8 よりも小さければタイミング制御回路65への出
力をロー状態に保つ。この状態では、タイミング制御回
路65は信号線73上に出力する信号をロー状態に保
つ。信号線73上の信号がロー状態にあれば、ゲート6
6はグレードバス51をバス69に接続し、ゲート67
はバス69から信号線72を切り離す。
Referring to FIG. 1, the upper 3 bits of the grade output from the input label rearrangement circuit 10 to the grade bus 51 are supplied to one input terminal of the comparison circuit 64, and the other of the comparison circuit 64 is supplied. It is compared with the minimum weighting factor of 1/8 supplied to the input terminal of. The comparator circuit 64 keeps the output to the timing control circuit 65 low when the grade appearing on the grade bus 51 is smaller than this minimum weighting factor 1/8. In this state, the timing control circuit 65 keeps the signal output on the signal line 73 low. If the signal on signal line 73 is low, gate 6
6 connects grade bus 51 to bus 69 and gate 67
Disconnects the signal line 72 from the bus 69.

【0063】また、信号線73上の信号がロー状態にあ
れば、対応ビット群選択回路62はルールメモリ20か
ら出力されるルール対応ビット群を選択し、これをバス
68を介してmin-max 検出回路41〜49に分配する。
また、タイミング制御回路65は、比較回路64の出力
がローの状態にあれば、信号線75上に所定の周期の歩
進パルスを出力し、アドレス発生回路54の発生アドレ
スを歩進させる。このように、グレードバス51上に出
力されるグレードが重み係数よりも小さい状態では、入
力グレードに関する min-max演算を行う第1の動作が行
われる。
If the signal on the signal line 73 is in the low state, the corresponding bit group selection circuit 62 selects the rule corresponding bit group output from the rule memory 20 and selects it via the bus 68 for min-max. It is distributed to the detection circuits 41 to 49.
Further, when the output of the comparison circuit 64 is in the low state, the timing control circuit 65 outputs a stepping pulse of a predetermined cycle on the signal line 75 and advances the generated address of the address generating circuit 54. As described above, when the grade output on the grade bus 51 is smaller than the weighting coefficient, the first operation for performing the min-max calculation on the input grade is performed.

【0064】これに対して、グレードバス51上に出現
するグレードが最小の重み係数1/8以上になると、比較
回路64の出力がローからハイ状態に変化し、タイミン
グ制御回路65は信号線73上に出力する信号をハイ状
態変化させる。信号線73上の信号がハイ状態に変化す
ると、ゲート66はグレードバス51をバス69から切
り離し、ゲート67は信号線72をバス69の上位3ビ
ットに接続すると共に下位5ビットをゼロに保つ。ま
た、信号線73上の信号がハイ状態に変化すると、重み
対応ビット群選択回路62は重み対応ビット群発生回路
61で発生された重み対応ビット群を選択し、これをバ
ス68を介してmin-max 検出回路41〜49に分配す
る。この結果、重み対応ビット群中に含まれる有効ビッ
トに対応するルールに関しては、バス69に出現中の重
み係数が保持レジスタ31〜39うちの対応のものに保
持される。すなわち、該当のルールについてはその前件
部に含まれる入力ラベルのグレードと同等のmin-max 演
算が重み係数について実行される。
On the other hand, when the grade appearing on the grade bus 51 reaches the minimum weighting factor of 1/8 or more, the output of the comparison circuit 64 changes from the low state to the high state and the timing control circuit 65 causes the signal line 73 to pass. The signal output above is changed to the high state. When the signal on signal line 73 goes high, gate 66 disconnects grade bus 51 from bus 69 and gate 67 connects signal line 72 to the upper 3 bits of bus 69 and keeps the lower 5 bits to zero. When the signal on the signal line 73 changes to the high state, the weight-corresponding bit group selection circuit 62 selects the weight-corresponding bit group generated by the weight-corresponding bit group generation circuit 61, and this is selected via the bus 68 for min. -max is distributed to the detection circuits 41 to 49. As a result, regarding the rule corresponding to the effective bit included in the weight corresponding bit group, the weight coefficient appearing on the bus 69 is held in the corresponding one of the holding registers 31 to 39. That is, with respect to the corresponding rule, the min-max operation equivalent to the grade of the input label included in the antecedent part is executed for the weighting coefficient.

【0065】タイミング制御回路65は、比較回路64
の出力がハイ状態に変化すると、信号線75上への歩進
パルスの出力を延期することによりアドレス発生回路5
4の発生アドレスの歩進を延期させると共に、信号線7
4を74を介して重み係数発生回路63に歩進パルスを
出力することにより、重み係数を1/8 から1ステップだ
け大きな値 2/8に歩進させる。このように、グレードバ
ス51上に出現中のグレードが信号線72上に出現中の
重み係数よりも小さな状態では、重み係数に関する min
-max演算を行う第2の動作が行われる。
The timing control circuit 65 includes a comparison circuit 64.
When the output of the address generation circuit 5 changes to the high state, the output of the stepping pulse on the signal line 75 is postponed so that the address generation circuit 5
4 and the signal line 7
4 is output to the weighting coefficient generating circuit 63 via 74, so that the weighting coefficient is stepped up from 1/8 to a value of 2/8, which is one step larger. In this way, when the grade appearing on the grade bus 51 is smaller than the appearing weighting factor on the signal line 72, the min.
The second operation for performing the -max operation is performed.

【0066】比較回路64は、歩進によって信号線72
上に出現した新たな重み係数とグレードバス51上に出
現中のグレードとを比較し、後者が前者よりも小さけれ
ば上記第1の動作を実行し、他の場合には上記第2の動
作を反復する。この結果、あるルールに対して付与され
ている重み係数についてそのルールの前件部に含まれる
入力ラベルのグレードと同等のmin-max 演算が行われ
る。
The comparison circuit 64 operates the signal line 72 by stepping.
The new weighting coefficient that appears above is compared with the grade that is appearing on the grade bus 51. If the latter is smaller than the former, the first operation is executed, and in other cases, the second operation is executed. Repeat. As a result, the min-max operation equivalent to the grade of the input label included in the antecedent part of the rule is performed on the weighting coefficient assigned to the rule.

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

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

【0069】図5に示す選択的保持回路は、図1の9個
のグレードレジスタ31〜39を、図示の各要素で置き
換えたものであり、図1との対応を明確にするために、
図1に示したと共通の9個のmin-max 検出回路41〜4
9と、バス69とが図1と重複して図示されている。こ
の選択的保持回路は、縦列接続されたグレードレジスタ
111〜113、同じく縦列接続されたラベルレジスタ
121〜123、各レジスタに保持されたグレードの一
致を判定する一致判定回路114、各レジスタに保持さ
れたラベルの一致を判定する一致判定回路124などを
備えている。
The selective holding circuit shown in FIG. 5 is obtained by replacing the nine grade registers 31 to 39 shown in FIG. 1 with the elements shown in the figure. To clarify the correspondence with FIG.
Nine min-max detection circuits 41 to 4 common to those shown in FIG.
9 and bus 69 are shown duplicated in FIG. This selective holding circuit includes grade registers 111 to 113 connected in cascade, label registers 121 to 123 similarly connected in cascade, a match determination circuit 114 for determining a match of grades held in each register, and a register held in each register. A match determination circuit 124 for determining whether the labels match is provided.

【0070】オアゲート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 directly input to the label register 121, and the logical sum of these is input to the D-type flip-flop 132 via the OR gate 131. Therefore, OR gates 411-49
When any one of the outputs 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 referred to here is different from the identification code of the input label for accessing the rule ROM 20 of FIG.
Each input label is displayed by the bit position where "1" is set. The grade held in the grade register 111 is compared with the contents of the grade register 112 in the comparison circuit 114, and the label register 121
The label held at is compared with the contents of the label register 122.

【0071】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 inverted contents of the label register 121 is transferred to the label register 123 through the switch 127 and the AND gate 128, and the label register 122 has an OR gate 126.
The contents of the label register 121 are transferred through.

【0072】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 the switch 127 and the AND gate 128. After being transferred to the label register 123 through the label register 123, the logical sum 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.

【0073】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 register 111 and the grade register 112 do not match
2 is transferred.

【0074】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.

【0075】上記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 appearing on the grade bus 51 so far is the grade register 1
In this case, the maximum grade up to now is transferred from the grade register 112 to the grade register 113 as the grade having the second largest value, and the contents of the grade register 111 is set as the new maximum grade value. It is transferred to the grade register 112. Thus, the grade register 112 holds the maximum value of the grade that has appeared on the grade bus 51 so far, and the grade register 113 has the second largest value of the grade that has appeared on the grade bus 51 so far. Is retained. The label registers 122 and 123 hold the labels corresponding to the maximum grade and the second largest grade. By transferring the label held in the label register 122 to the label register 123 while taking the logical product with the inverted content 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.

【0076】グレードバス51上に最後のグレードが出
現し終わった時点では、グレードレジスタ112と11
3のそれぞれには各出力チャネルの最大グレードと2番
目に大きなグレードが保持されると共に、ラベルレジス
タ122と123には対応の出力ラベルが保持される。
この各レジスタの保持内容は、後段の非ファジイ化回路
によって読出され処理されることにより確定的な出力デ
ータが作成される。
At the time when the last grade has appeared on the grade bus 51, the grade registers 112 and 11
Each of 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 content held in each register is read and processed by the defuzzification circuit in the subsequent stage to create definite output data.

【0077】図6は、本発明の他の実施例に係わるファ
ジイ推論のmin-max 演算回路の構成の一部を示すブロッ
ク図である。図6は、図1に示したmin-max 検出回路4
1と保持レジスタ31に相当する部分を示している。す
なわち、この実施例のmin-max 演算回路は、図1中のmi
n-max 検出回路41と保持レジスタ31、min-max 検出
回路42と保持レジスタ32,・・・・・min-max 検出
回路49と保持レジスタ39によって構成される9個の
回路部分のそれぞれを、min-max 検出回路41と保持レ
ジスタ31に相当する部分について代表して示したもの
であり、その他の部分は全て図1の構成と同一である。
FIG. 6 is a block diagram showing a part of the configuration of a min-max arithmetic circuit for fuzzy inference according to another embodiment of the present invention. FIG. 6 shows the min-max detection circuit 4 shown in FIG.
1 and a portion corresponding to the holding register 31. That is, the min-max operation circuit of this embodiment is similar to
n-max detection circuit 41 and holding register 31, min-max detection circuit 42 and holding register 32, ... The parts corresponding to the min-max detection circuit 41 and the holding register 31 are shown as a representative, and the other parts are all the same as the configuration of FIG.

【0078】本実施例では、入力ラベル再配列回路10
による入力ラベルの再配列が終了すると、再配列済みの
グレードがこれまでとは逆に大きな順(降順)にバス5
5上に出力される。また、重み係数は図1の場合とは逆
に大きな順に出力される。ルールROM20から読出さ
れる各符号化ルールに対応して設置されている4個の最
小グレード検出回路511,512,513,514
は、対応ビット群選択回路62で選択されたルール対応
ビット群又は重み対応ビット群中に出現する有効ビット
に同期してバス69に出現中の入力ラベルのグレード又
は重み係数を保持してゆくことにより対応のビット群中
に最後に出現する、すなわち最小グレード又は最小重み
係数を保持するレジスタから構成されている。また、最
大グレード検出回路520は、4個の最小グレード検出
回路511〜514に保持された最小グレード又は最小
の重み係数のうち最大のものを選択して保持することに
よりmax 演算機能を果たす。
In this embodiment, the input label rearrangement circuit 10
When the rearrangement of the input labels by is completed, the rearranged grades are in reverse order from the previous one in descending order of bus 5
5 is output. In addition, the weighting factors are output in descending order of converse to the case of FIG. Four minimum grade detection circuits 511, 512, 513, 514 installed corresponding to each encoding rule read from the rule ROM 20.
Holds the grade or weight coefficient of the input label appearing on the bus 69 in synchronization with the valid bit appearing in the rule corresponding bit group or the weight corresponding bit group selected by the corresponding bit group selection circuit 62. Is composed of a register that last appears in the corresponding bit group, that is, holds the minimum grade or the minimum weighting coefficient. Further, the maximum grade detection circuit 520 performs the max calculation function by selecting and holding the maximum of the minimum grades or the minimum weighting factors held in the four minimum grade detection circuits 511 to 514.

【0079】なお、各最小グレード検出回路511〜5
14に付加された2入力アンドゲートとフリップフロッ
プは、ゼログレードについての例外処理のための付加回
路である。すなわち、入力ラベル再配列回路10による
再配列中に、有効なゼログレードが出現中すると、対応
の2入力アンドゲートの出力がハイになり後段のフリッ
プフロップがセットされる。このフリップフロップがセ
ットされた各最小グレード検出回路は、入力ラベル再配
列回路10からの出力時にグレード又は重み係数のレジ
スタ部分への保持動作が禁止される。更に、このフリッ
プフロップがセットされた最小グレード検出回路511
〜514の検出値は、最大グレード検出回路521によ
る検出対象から除外される。
The minimum grade detection circuits 511 to 5
The 2-input AND gate and flip-flop added to 14 are additional circuits for exception processing for zero grade. That is, when a valid zero grade appears during the rearrangement by the input label rearrangement circuit 10, the output of the corresponding 2-input AND gate becomes high and the flip-flop of the subsequent stage is set. Each minimum grade detection circuit in which this flip-flop is set is prohibited from holding the grade or weight coefficient in the register portion at the time of output from the input label rearrangement circuit 10. Furthermore, the minimum grade detection circuit 511 in which this flip-flop is set
The detected values of ˜514 are excluded from the detection targets by the maximum grade detection circuit 521.

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

【0081】セレクタ付きデータレジスタ群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 selectors
12, 213 ... Each is a grade register G
R and 2 placed in front of this grade register GR
And an input grade selector GS. One input terminal A of this grade selector GS is 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 in the previous stage, and the output terminal is the grade register GR in the subsequent stage.
Is connected to the input terminal of. Each of the data register groups 221, 222, 223, ... With a selector includes a label code register LR and a 2-input label code selector LS arranged in the preceding stage of this label record register LR. One input terminal A of this 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 in the preceding stage, and outputs The terminal is connected to the input terminal of the label code register LS in the subsequent stage.

【0082】グレードセレクタ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
When S is high, the selection command SA is conductive between the input terminal A and the output terminal. When the selection command SB is high, it is conductive between the input terminal B and the output terminal.
When both are low, neither input terminal A nor B is conducted to the output terminal. A combination in which both selection commands SA and SB are high is prohibited. The selection control circuits 231, 232, 233 ... Arranged in tandem have the grade and grade bus 5 held in the corresponding grade register.
1. A comparison circuit CMP for performing a size comparison with a new grade appearing on the top, a D-type flip-flop FF for holding a size comparison result by this comparison circuit, and a logic circuit composed of two AND gates A1 and A2. I have it. The comparison circuit CMP is configured to hold the holding data Di of the grade register of its own stage.
And the grade DDn appearing on the grade bus are compared, and when DDn ≦ Di, the output is raised to a high level.

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

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

【0085】最初のゼロでないグレード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 circuits 231 and 231 of each stage.
In the comparison circuit CMP in 232, 233, ..., The magnitude comparison between the grade DD1 appearing on the grade bus 51 and the grade Di held in the grade register GR is performed. Since the grade DD1 appearing on the grade bus 51 is less than or equal to the maximum grade value [FF] H ,
The outputs of the comparison circuits CMP in the selection control circuits in each stage are all high, and this high signal is held in the D-type flip-flop FF in the selection control circuits in 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 of the subsequent stage that it is i is output on the signal line S2.

【0086】各段の選択制御回路内では、上記前段の選
択制御回路からの信号線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 the selection control circuit of each stage, the signal line S2 from the selection control circuit of the preceding stage is supplied to the logic circuit composed of AND gates A1 and A2 as the signal line S1 in its own stage. However, only the selection control circuit 231 in the first stage does not have the selection control circuit in the previous stage, and the low signal is continuously supplied to the signal line S1. Therefore, the selection control circuit 2 of the first stage
At 31, the outputs of the AND gates A1 and A2 become high (H) and low (L), respectively, under the above-mentioned magnitude comparison result DD1 ≦ Di, and the corresponding grade selector GS outputs this (H, L). A combination selection signal is supplied.
Corresponding grade selector GS which received this selection command signal
Is appearing on the grade bus 51 by connecting one of the input terminals A connected to the grade bus 51 and the input terminal of the corresponding grade register GR in synchronization with a falling edge of a clock signal (not shown). The first grade DD1 is transferred to and held in the corresponding grade register GR.

【0087】これに対して、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 selection control circuits 232, 233, 234, ... Of the second and subsequent stages, the signal lines S1 connected to the 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. Corresponding grade selector GS which receives the selection command signal by the combination of (L, H) brings input terminal B and the input terminal of corresponding grade register GR into conduction in synchronization with the falling edge of the clock signal. Therefore, in the data registers with selectors 212, 213, 214 ...
The maximum grade value [FF] H held as an initial value in the grade register GR in 3 ... Is shifted and held in the corresponding grade register GR.

【0088】この結果、最初にグレードバス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 first appearing on the grade bus 51 is held in the grade register GR in the data register 211 with selector in the first stage, and the data registers 212, 2 with selectors in the subsequent stages.
.. hold the initial value [FF] H shifted from the grade register GR of the data register 211, 212, 213 ... With selector in the preceding stage. Next, when the second non-zero grade DD2 appears on the grade bus 51, two different data transfer operations are performed depending on the magnitude relationship between this and the first appearing grade DD1. First, the operation in the case of DD2 ≦ DD1 will be described.

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

【0090】一方、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 212, 213, 214 ... With selectors in the second and subsequent stages, the combination of the signals of the AND gates A1, A2 in the corresponding selection control circuits 232, 233, 234. Since both are (L, H) as in the previous time, DD1 being held in the grade register GR in the data registers 211, 212, 213 ... With selector in the previous stage and the upper limit value [FF] of the grade
H is shifted and held. This grade register GR
The shift operation in between is also performed in synchronization with the falling edge of the clock signal at the same time as the grade holding operation from the grade bus 1.

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

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

【0093】これに対して、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 comparator circuit CMP in 2 becomes high because the corresponding grade register GR holds the initial value [FF] H that was previously shifted from the previous grade register GR. In addition, the previous stage selection control circuit 2 appearing on the signal line S2
Since the magnitude comparison result of 31 becomes low, AND gate A
The combination of the outputs of 1 and A2 is (H, L). The grade selector GS in the corresponding data register with selector 212 which receives the selection command of this combination brings the input terminal A and the input terminal of the corresponding grade register GR into conduction.
As a result, the second-stage selector-equipped data register 212
The grade register GR therein holds the grade DD2 (> DD1) appearing on the grade bus 1.

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

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

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

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

【0098】図5を参照すれば、各段のセレクタ付きデ
ータレジスタ211,212,213・・・に対応して
配置されているセレクタ付きデータレジスタ221,2
22,223・・・は、対応の選択制御回路231,2
32,233・・・からの選択指令に従って、各段のセ
レクタ付きデータレジスタ211,212,213・・
・と同一の動作を行う。従って、グレードバス51上に
出力されるグレードに対応してラベルコード・バス52
上に出現するラベルコードが各段のグレードレジスタに
GRに保持されたグレードに対応して各段のラベルコー
ド・レジスタLRに保持される。
Referring to FIG. 5, data registers with selectors 221 and 212 arranged corresponding to the data registers with selectors 211, 212, 213, ...
22, 223 ... Are corresponding selection control circuits 231 and 231, respectively.
In accordance with a selection command from 32, 233, ..., Data registers 211, 212, 213 with selectors at respective stages
・ Perform the same operation as. Therefore, the label code bus 52 corresponds 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.

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

【0100】大きさの順にソートされた入力ラベルのグ
レードは、各段の配列順序に従って各段に供給されるリ
ードイネーブル信号REにより、対応のグレードレジス
タGRからゲート回路GGを経てグレードバス51上に
出力される。この入力ラベルのグレードの出力と同期し
て、リードイネーブル信号REにより、対応のラベルコ
ードがラベルコード・レジスタLRからゲート回路LG
を経てラベルコード・バス52上に出力される。
The grades of the input labels sorted in the order of size are transferred from the corresponding grade register GR through the gate circuit GG to the grade bus 51 by the read enable signal RE supplied to each stage according to 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 transferred 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.

【0101】図8は、本発明の更に他の実施例の min-m
ax演算回路の構成を示すブロック図である。本図中、図
1と同一の参照符号が付されている構成要素は、図1に
示した min-max演算回路に関連して説明済みの構成要素
と同一の構成要素である。これら図1のものと同一の構
成要素については重複する説明を省略する。図8に示し
た min-max演算回路では、図1中の入力ラベルの再配列
回路10が入力ラベルと重み係数の再配列回路10aに
よって置き換えられることにより、図1に示した min-m
ax演算回路の改良が行われている。すなわち、図8の改
良型 min-max演算回路では、まず、図1中の重み係数出
力回路63、比較回路64及びゲート回路66,67が
いずれも除去されている。更に、図8の改良型 min-max
演算回路では、図1中の重みビット発生回路61が一層
簡易な構成の重み対応ビット群保持メモリ61aで置き
換えられると共に、図1中のタイミング制御回路65が
一層簡易な構成のタイミング制御回路65aで置き換え
られている。
FIG. 8 shows the min-m of another embodiment of the present invention.
It is a block diagram which shows the structure of an ax arithmetic circuit. In the figure, the constituents designated by the same reference numerals as those in FIG. 1 are the same constituents as those already described in relation to the min-max operation circuit shown in FIG. Overlapping description of the same components as those in FIG. 1 will be omitted. In the min-max operation circuit shown in FIG. 8, the input label rearrangement circuit 10 in FIG. 1 is replaced by the input label and weight coefficient rearrangement circuit 10a, so that the min-m shown in FIG.
The ax arithmetic circuit has been improved. That is, in the improved min-max operation circuit of FIG. 8, first, the weight coefficient output circuit 63, the comparison circuit 64, and the gate circuits 66 and 67 in FIG. 1 are all removed. Furthermore, the improved min-max of Fig. 8
In the arithmetic circuit, the weight bit generation circuit 61 in FIG. 1 is replaced with a weight corresponding bit group holding memory 61a having a simpler structure, and the timing control circuit 65 in FIG. 1 is replaced with a timing control circuit 65a having a simpler structure. Has been replaced.

【0102】図8に示した改良型 min-max演算回路で
は、ルールROM20へのアクセスを含む min-max演算
の実行時に順次増加する重み係数を発生させる代わり
に、再配列回路10aによる入力ラベルのグレードの再
配列時に各重み係数を入力ラベルのグレードに混在させ
て予め大きさの順に再配列しておき、ルールメモリ20
へのアクセスを含む min-max演算の実行時に再配列済み
の重み係数を再配列済みの入力ラベルのグレードと混在
させてグレードバス51上に出力するように構成されて
いる。このように、重み係数と入力ラベルのグレードと
を同格に取り扱って互いに混在させるため、重み係数に
ついても入力ラベルのグレードの場合と同様に重み係数
どうしを弁別するための識別子(以下「重み係数コー
ド」と称する)が付加される。更に、再配列後にグレー
ドバス51上に出力されるデータが重み係数であるか入
力ラベルのグレードであるかを弁別するための1ビット
の識別子がそれぞれのラベルの最上位ビット(MSB)
に付加される。
In the improved min-max operation circuit shown in FIG. 8, instead of generating the weighting factors which increase sequentially when executing the min-max operation including access to the rule ROM 20, the input label of the rearrangement circuit 10a When rearranging the grades, the weighting factors are mixed in the grades of the input label and rearranged in the order of the size in advance.
When the min-max operation including access to the re-arranged weight coefficient is mixed with the rearranged input label grade, the weight coefficient is output on the grade bus 51. In this way, since the weighting factor and the input label grade are treated as equal and mixed with each other, the weighting factor is also an identifier for distinguishing between the weighting factors (hereinafter, “weighting factor code”) as in the case of the input label grade. ") Is added. Further, a 1-bit identifier for discriminating whether the data output on the grade bus 51 after rearrangement is a weighting coefficient or an input label grade is the most significant bit (MSB) of each label.
Is added to.

【0103】対応ビット群選択回路62は、ルールRO
M20へのアクセスを含む min-max演算の実行時に、再
配列回路10aからラベルコードバス52上に混在して
出力されるラベルコードや重み係数コードのMSBを受
け取る。対応ビット群選択回路62は、受け取ったMS
Bがラベルコードに含まれるもの(例えば“0”)であ
れば、ルールROM20の出力をバス68上に出力す
る。また、対応ビット群選択回路62は、受け取ったM
SBが重み係数コードに含まれるもの(例えば“1”)
であれば、重み対応ビット群保持メモリ61aから出力
される重み対応ビット群をバス68上に出力する。な
お、重み対応ビット群保持メモリ61aはROMやRA
Mなどで構成されており、重み係数に付加されたラベル
によってアクセスされるアドレスに、対応の重み対応ビ
ット群を保持しており、ルールROM20へのアクセス
を含む min-max演算の実行時に、再配列回路10aから
ラベルコードバス52に出力される重み係数のラベルを
アドレス端子に受けると、対応の重み対応ビット群を対
応ビット群選択回路62に出力する。
The corresponding bit group selection circuit 62 uses the rule RO
When the min-max operation including the access to M20 is executed, the MSBs of the label code and the weighting coefficient code which are mixedly output on the label code bus 52 are received from the rearrangement circuit 10a. The corresponding bit group selection circuit 62 receives the received MS.
If B is included in the label code (for example, “0”), the output of the rule ROM 20 is output on the bus 68. Further, the corresponding bit group selection circuit 62 receives the received M
SB that is included in the weighting factor code (for example, "1")
If so, the weight corresponding bit group output from the weight corresponding bit group holding memory 61a is output onto the bus 68. The weight-corresponding bit group holding memory 61a is a ROM or RA.
It is composed of M etc., holds a corresponding weight-corresponding bit group at the address accessed by the label added to the weighting coefficient, and re-executes the min-max operation including the access to the rule ROM 20. When the address terminal receives the label of the weighting coefficient output from the array circuit 10a to the label code bus 52, the corresponding weight corresponding bit group is output to the corresponding bit group selecting circuit 62.

【0104】図1の場合と同様に、入力ラベルと重み係
数の再配列回路10aによる再配列対象の入力ラベルの
グレードに含まれる非ゼログレードが16個であり、か
つ各ルールに加重される重み係数が 0/8 から 8/8 ま
で 1/8ステップで増加する9種類の値であるものとす
る。更に、再配列回路10aの構成が図7に示したよう
なものであるとする。この場合、図7の構成では、縦列
接続されるグレードレジスタとして16個の非ゼログレ
ードを保持するための16段分に加えて新たに追加され
た9種類の重み係数を保持するための9段分が増設され
る。ただし、入力ラベルのグレードと重み係数とを同格
に扱う関係上、各グレードレジスタは入力ラベルのグレ
ードと重み係数とを区別することなく両者を大小順だけ
に応じて保持したり、あるいは後段に転送したりする。
また、各段のグレードレジスタに対応して設置されてい
る各段のラベルレジスタも、ラベルコードであるか重み
係数コードであるかに係わりなく、対応の入力ラベルの
グレードや重み係数の保持や後段への転送動作に同期し
て、各ラベルコードや重み係数コードを保持したりある
いは後段に転送したりする。
As in the case of FIG. 1, there are 16 non-zero grades included in the grades of the input labels to be rearranged by the rearrangement circuit 10a for the input labels and the weighting factors, and the weights weighted by each rule. It is assumed that the coefficient has 9 kinds of values that increase from 0/8 to 8/8 in 1/8 steps. Furthermore, it is assumed that the rearrangement circuit 10a has a configuration as shown in FIG. In this case, in the configuration of FIG. 7, in addition to 16 stages for holding 16 non-zero grades as grade registers connected in cascade, 9 stages for holding 9 kinds of newly added weighting factors. Minutes are added. However, because the grade of the input label and the weighting coefficient are treated the same, each grade register holds both the grade of the input label and the weighting coefficient according to the order of magnitude, or transfers them to the subsequent stage. To do
Also, the label register of each stage installed corresponding to the grade register of each stage, regardless of whether it is a label code or a weight coefficient code, holds the grade and weight coefficient of the corresponding input label and Each label code or weighting factor code is held or transferred to the subsequent stage in synchronization with the transfer operation to.

【0105】図9は、上記入力ラベルのグレードと重み
係数の再配列の開始に先立って各段のグレードレジスタ
と対応のラベルレジスタとに保持される初期値を例示し
ている。前段の9個のグレードレジスタには、 0/8 か
ら 8/8 まで 1/8ステップで増加する各8ビット幅の9
種類の重み係数〔00〕H ,〔20〕H ,〔40〕H ・・・・
・〔FF〕H が保持され、後段の16個のグレードレジス
タの全てには入力ラベルのグレードの上限値に等しい8
ビット幅の初期値〔FF〕H が保持される。また、重み係
数を保持する前段の各グレードレジスタに対応して設置
されている前段の9個のラベルレジスタには、重み係数
どうしを識別するために付与された重み係数そのものか
ら成る識別子と、これらの重み係数をグレードから識別
するために付加されたMSB(“1”)とから構成され
る9ビット幅の重み係数コード〔100 〕H ,〔120
H ,〔140 〕H ・・・・・〔1FF 〕H が保持され
る。更に、後段の16個のラベルレジスタには、9ビッ
ト幅の任意の値、例えば〔000 〕H が初期値として保持
される。図9の例では、再配列対象の入力ラベルのグレ
ードに割当てられるラベルコードは、入力ラベルどうし
を弁別するための8ビット幅の部分と、重み係数との弁
別に使用されるMSB(“0”)が付加された9ビット
構成となる。
FIG. 9 exemplifies the initial values held in the grade register of each stage and the corresponding label register prior to the start of the rearrangement of the input label grade and weight coefficient. The 9 grade registers in the previous stage have 9 grades of 8 bits each increasing from 0/8 to 8/8 in 1/8 steps.
Kind weighting factors [00] H , [20] H , [40] H ...
・ [FF] H is held, and it is equal to the upper limit of the grade of the input label in all of the 16 grade registers in the latter stage.
The initial value [FF] H of the bit width is held. In addition, in the nine label registers in the preceding stage, which are installed corresponding to the grade registers in the preceding stage that hold the weighting factors, the identifiers made up of the weighting factors themselves assigned to identify the weighting factors, and these 9-bit width weight coefficient codes [100] H , [120] composed of MSB (“1”) added to identify the weight coefficient of
] H , [140] H ... [1FF] H are retained. Further, an arbitrary value of 9-bit width, for example, [000] H is held as an initial value in the 16 label registers in the subsequent stage. In the example of FIG. 9, the label code assigned to the grade of the input label to be rearranged is the MSB (“0”) used for discriminating the 8-bit width portion for discriminating input labels from each other and the weighting coefficient. ) Is added to form a 9-bit configuration.

【0106】この後、グレードバス51上に再配列対象
の入力ラベルのグレードが出現しかつ対応のラベルコー
ドがラベルコード・バス52上に出現し始めると、図7
に関連して既に説明したと同様の再配列動作が開始され
る。この再配列動作においては、グレードレジスタに新
たに保持される入力ラベルのグレードと、保持済みの重
み係数とが相互に区別されることなく同格に取り扱われ
る。このような再配列動作においては、グレードレジス
タに新たに保持されるのは入力ラベルのグレードのみで
あり、保持済みの重み係数については後段のレジスタへ
の転送のみが行われる。すなわち、先頭段を除く前段の
8個のグレードレジスタのいずれかに新たな入力ラベル
のグレードが保持されるたびに、これよりも大きな値の
重み係数が後段のグレードレジスタに転送されてゆくこ
とにより、重み係数がその大きさに応じて25段のグレ
ードレジスタのそれぞれに分散しかつ入力ラベルのグレ
ードと混在して保持される。
After that, when the grade of the input label to be rearranged appears on the grade bus 51 and the corresponding label code begins to appear on the label code bus 52, FIG.
A re-arrangement operation similar to that already described in connection with is initiated. In this rearrangement operation, the grade of the input label newly held in the grade register and the held weight coefficient are treated equally without being distinguished from each other. In such a rearrangement operation, only the grade of the input label is newly held in the grade register, and the held weighting coefficient is only transferred to the register in the subsequent stage. That is, each time a grade of a new input label is held in any of the eight grade registers in the previous stage except the first stage, a weighting coefficient having a larger value than this is transferred to the grade register in the subsequent stage. , The weighting factors are distributed to each of the 25 grade registers according to the size and are held together with the grade of the input label.

【0107】このようにして、入力ラベルのグレードと
重み係数の再配列が終了すると、図1の場合と同様にし
て、入力ラベルのグレードや重み係数が小さな順に再配
列回路10aからグレードバス51上に出力される。こ
の入力ラベルのグレードや重み係数の出力と同期して、
対応のラベルコードや重み係数コードがラベルコード・
バス52上に出力される。ルールROM20は、そのア
ドレス端子にMSBが“0”の9ビット幅のラベルコー
ドを受けてルール対応ビット群を出力する。同様に、R
OMやRAMで構成される重み対応ビット群保持メモリ
61aは、そのアドレス端子にMSBが“1”の9ビッ
ト幅の重み係数コードを受けて重み対応ビット群を出力
する。対応ビット群選択回路62は、ラベルコードバス
52上に出現する9ビット幅のデータのMSBのみを受
取り、これが“0”であればルールROM20から出力
されたルール対応ビット群を選択してバス68上に出力
し、上記MSBが“1”であれば、重み対応ビット群保
持メモリ61aから出力される重み対応ビット群をバス
68上に出力する。
When the rearrangement of the input label grades and weighting factors is completed in this way, the rearrangement circuit 10a to the grade bus 51 are arranged in the ascending order of input label grades and weighting factors, as in the case of FIG. Is output to. In sync with the output of this input label grade and weighting factor,
The corresponding label code or weighting factor code is the label code
It is output on the bus 52. The rule ROM 20 receives a 9-bit wide label code having an MSB of "0" at its address terminal and outputs a rule corresponding bit group. Similarly, R
The weight corresponding bit group holding memory 61a composed of the OM and the RAM receives the weight coefficient code of 9-bit width with MSB being "1" at its address terminal and outputs the weight corresponding bit group. The corresponding bit group selection circuit 62 receives only the MSB of the data of 9-bit width appearing on the label code bus 52, and if it is "0", it selects the rule corresponding bit group output from the rule ROM 20 and outputs it to the bus 68. If the above MSB is "1", the weight corresponding bit group output from the weight corresponding bit group holding memory 61a is output onto the bus 68.

【0108】図8の改良型 min-max演算回路について
も、 min-max検出回路41〜49とグレード保持レジス
タ31〜39から成る min-max演算部を図6に示したと
同様のものに変更することにより、再配列済みの入力ラ
ベルのグレードや重み係数をその大きな順にグレードバ
ス51上に出力するように構成を変更することが可能で
ある。
Also in the improved min-max arithmetic circuit of FIG. 8, the min-max arithmetic unit composed of the min-max detection circuits 41 to 49 and the grade holding registers 31 to 39 is changed to the same one as shown in FIG. As a result, the configuration can be changed so that the grades and weighting factors of the rearranged input labels are output on the grade bus 51 in descending order.

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

【0110】また、ゼロよりも大きな所定の閾値を設定
し、この閾値未満のグレードを例外処理の対象とする構
成とすることができる。
Further, it is possible to set a predetermined threshold value larger than zero and to target grades below the threshold value as exception processing targets.

【0111】さらに、重み係数として1/8 〜8/8 の8種
類のものを使用する例について説明した。しかしなが
ら、重み係数としては、0/8 〜7/8 の8種類のものを使
用したり、あるいは、適宜なステップの適宜数のものを
使用することができる。
Further, an example of using eight kinds of weighting factors of 1/8 to 8/8 has been described. However, eight types of weighting factors, 0/8 to 7/8, or an appropriate number of appropriate steps can be used.

【0112】また、図1のmin-max 検出回路41〜49
と保持レジスタ31〜39を含む後段部分を各出力チャ
ネルに対応して設置する構成を例示した。しかしなが
ら、演算時間の増加が許容できるならば、複数の出力チ
ャネルに対し単一のmin-max 検出回路と保持レジスタと
を設置し、これを各出力チャネルごとに時間をずらして
共用することにより後段部分のハードウエア量の低減を
図ることも可能である。
Further, the min-max detection circuits 41 to 49 shown in FIG.
The configuration in which the latter part including the holding registers 31 to 39 is installed corresponding to each output channel is illustrated. However, if the increase in computation time is acceptable, a single min-max detection circuit and a holding register are installed for multiple output channels, and this is shared by staggering the time for each output channel. It is also possible to reduce the amount of hardware in a part.

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

【0114】また、図8に示した min-max演算回路にお
いて、ルールROM20の出力信号線群と重み対応ビッ
ト群保持メモリ61aの出力信号線群をワイアードオア
接続すると共に、ラベルコード又は重み係数コードのM
SBに応じて出力を行わない側のメモリの出力信号群を
ハイインピーダンス状態に変化させることにより、対応
ビット群選択回路62を省略することもできる。図1の
min-max演算回路についても、同様の構成を採用するこ
とにより対応ビット群選択回路62を省略できる。
In the min-max operation circuit shown in FIG. 8, the output signal line group of the rule ROM 20 and the output signal line group of the weight corresponding bit group holding memory 61a are connected by wire or, and the label code or the weight coefficient code is connected. M
The corresponding bit group selection circuit 62 can be omitted by changing the output signal group of the memory that does not output according to SB to the high impedance state. Figure 1
The corresponding bit group selection circuit 62 can be omitted by adopting the same configuration for the min-max operation circuit.

【0115】また、図8に示した min-max演算回路にお
いては、確定的なルールに関するルール対応ビット群を
保持するルールメモリ20をROMで構成し、重み対応
ビット群保持メモリ61aを後発的な書換えを許容する
ためにRAMで構成する場合を例示した。しかしなが
ら、ルール対応ビット群と重み係数対応ビット群を単一
のRAM上のラベルコードと重み係数コードのMSBに
よって分離されるアドレス領域に保持させる構成とすれ
ば、ROMと対応ビット群選択回路62を省略できる。
In the min-max operation circuit shown in FIG. 8, the rule memory 20 for holding the rule-corresponding bit group relating to the deterministic rule is constituted by the ROM, and the weight-corresponding bit-group holding memory 61a is provided later. The case where the RAM is used to allow rewriting is illustrated. However, if the rule-corresponding bit group and the weighting coefficient-corresponding bit group are held in the address area separated by the MSB of the label code and the weighting coefficient code on a single RAM, the ROM and the corresponding bit-group selecting circuit 62 are arranged. It can be omitted.

【0116】[0116]

【発明の効果】以上詳細に説明したように、本発明に係
わるファジイ推論のmin-max 演算回路は、全てのルール
についてそれぞれの前件部に含まれる入力ラベルをその
グレードの大小順に一括して再配列しておく構成である
から、各ルールごとに同一のグレードの大小比較を反復
する無駄が省かれ、処理時間が大幅に短縮されるという
利点がある。
As described in detail above, the fuzzy inference min-max operation circuit according to the present invention collectively collects the input labels included in the antecedent parts of all rules in order of magnitude of 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 omitted and the processing time is significantly shortened.

【0117】また、本発明に係わるファジイ推論のmin-
max 演算回路は、各ルールに付与される重み係数をその
ルールの前件部に含まれる入力ラベルのグレードとのmi
n 演算で近似し、重み対応ビット群の概念を導入する構
成であるから、重み係数を容易に設定できると共に、一
旦設定した重み係数を制御システムの運用状況に応じて
容易に変更できるという利点がある。
In addition, min- of fuzzy inference according to the present invention
The max operation circuit sets the weighting factor given to each rule to the grade of the input label included in the antecedent part of that rule.
Since the configuration approximates by n calculation and introduces the concept of the bit group corresponding to the weight, there is an advantage that the weight coefficient can be easily set and the once set weight coefficient can be easily changed according to the operation status of the control system. is there.

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

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

【図2】図1のmin-max 検出回路41構成の一例を示す
ブロック図である。
FIG. 2 is a block diagram showing an example of the configuration of the min-max detection circuit 41 of FIG.

【図3】図2 のmin 検出回路の構成の一例を示す回路図
である。
FIG. 3 is a circuit diagram showing an example of the configuration of the min detection circuit of FIG.

【図4】図1の重み対応ビット群発明回路61構成の一
例を示すブロック図である。
FIG. 4 is a block diagram showing an example of a configuration of a weight corresponding bit group invention circuit 61 of FIG.

【図5】本発明の他の実施例の一部の構成を示す回路図
である。
FIG. 5 is a circuit diagram showing a partial configuration of another embodiment of the present invention.

【図6】本発明の更に他の実施例の一部の構成を示す回
路図である。
FIG. 6 is a circuit diagram showing a part of the configuration of still another embodiment of the present invention.

【図7】図1の入力ラベルの再配列回路10の好適な構
成の一例を示すブロック図である。
7 is a block diagram showing an example of a preferred configuration of an input label rearrangement circuit 10 of FIG. 1. FIG.

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

【図9】図8中の入力ラベルと重み係数の再配列回路1
0aを図7に示した回路によって実現する場合に各段の
グレードレジスタとラベルレジスタに設定される初期値
の一例を示す概念図である。
9 is a rearrangement circuit 1 for input labels and weighting factors in FIG.
8A is a conceptual diagram showing an example of initial values set in a grade register and a label register of each stage when 0a is realized by the circuit shown in FIG. 7.

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

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

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

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

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

【図15】本発明の重み対応ビット群の概念を説明するた
めの概念図である。
FIG. 15 is a conceptual diagram for explaining the concept of a weight corresponding bit group of the present invention.

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

10 グレード再配列回路 10a グレードと重み係数の再配列回路 20 ルールROM(ルールメモリ) 31〜39 グレード保持レジスタ 41〜49 min-max 検出回路 51 グレードバス 52 ラベルコード・バス 61 重み対応ビット群発生回路 61a 重み対応ビット群保持メモリ 62 対応ビット群選択回路 63 重み係数出力回路 64 比較回路 10 Grade rearrangement circuit 10a Grade and weight coefficient rearrangement circuit 20 Rule ROM (rule memory) 31 to 39 Grade holding register 41 to 49 min-max detection circuit 51 Grade bus 52 Label code bus 61 Weight corresponding bit group generation circuit 61a Weight corresponding bit group holding memory 62 Corresponding bit group selection circuit 63 Weight coefficient output circuit 64 Comparison circuit

Claims (16)

【特許請求の範囲】[Claims] 【請求項1】ファジイ推論の各ルールの前件部に含まれ
る各入力ラベルについて定義された所定の配列に従って
前記各ルールがそれぞれの前件部に前記各入力ラベルを
含むか否かを有効/無効ビットで表示する符号化ルール
が前記各ルールについて定義され、このように定義され
所定の配列に従って配列された各符号化ルールに前記各
入力ラベルが含まれるか否かを有効/無効ビット群によ
って示すルール対応ビット群が定義され、このように定
義された各ルール対応ビット群を対応の入力ラベルの識
別コード(以下,「ラベルコード」という)によって指
定されるアドレスに保持することにより前記各符号化ル
ールを複数のアドレスにわたって保持するルールメモリ
と、 前記各入力ラベルについて演算された入力ラベルのグレ
ードを対応のラベルコードと共に大小の順序に従って再
配列したのち、再配列後の入力ラベルのグレードを小さ
な順又は大きな順に出力すると共に対応のラベルコード
を前記ルールメモリの読出しアドレスとして供給するこ
とにより前記ルール対応ビット群の対応のものを出力さ
せる入力ラベル再配列手段と、 ファジイ推論の各ルールに付与される重み係数を小さな
順又は大きな順に出力する重み係数出力手段と、 前記ファジイ推論の各ルールに付与される重み係数を保
持しかつ保持中の重み係数が前記重み係数出力手段から
出力された重み係数に等しいか否かを各ルールについて
有効/無効ビットによって示す重み対応ビット群を発生
する重み対応ビット群発生手段と、 前記入力ラベル再配列手段から出力される入力ラベルの
グレードと前記重み係数出力手段から出力された重み係
数との大小を比較し、比較結果に応じて前記ルールメモ
リから出力されたルール対応ビット群と前記重み対応ビ
ット群発生手段で発生された重み対応ビット群のうちの
一方を選択すると共に前記入力ラベル再配列手段から出
力される入力ラベルのグレードと前記重み係数出力手段
から出力された重み係数のうちの一方を選択する選択手
段と、 前記ファジイ推論の各出力ラベルに対応して設置される
と共に、前記選択手段で選択されたルール対応ビット群
又は重み対応ビット群中に最初に又は最後に出現する有
効ビットに基づき前記選択手段で選択された入力ラベル
のグレード又は重み係数のうちこの出力ラベルに含まれ
る各ルールについての最小のものに関する情報を検出
し、この各ルールについて検出した最小値に関する情報
に基づきこれら最小値のうちの最大のものを各出力ラベ
ルについてのmin-max 演算結果として検出するmin-max
検出手段とを備えたことを特徴とするファジイ推論のmi
n-max 演算回路。
1. Validating whether each rule includes each input label in each antecedent part according to a predetermined array defined for each input label included in each antecedent part of each rule of fuzzy inference. A coding rule for displaying with invalid bits is defined for each rule, and it is determined by the valid / invalid bit group whether or not each input label is included in each coding rule defined in this way and arranged according to a predetermined array. The rule-corresponding bit group shown is defined, and each rule-corresponding bit group thus defined is held at an address designated by an identification code of the corresponding input label (hereinafter, referred to as "label code") The rule memory that holds the conversion rules across multiple addresses, and the grade of the input label calculated for each input label After rearranging in accordance with the order of magnitude with the label code, the grade of the input label after the rearrangement is output in ascending or descending order and the corresponding label code is supplied as the read address of the rule memory, thereby the rule corresponding bit group. Input label rearranging means for outputting the corresponding ones, weighting coefficient output means for outputting the weighting coefficients assigned to each rule of fuzzy inference in ascending or descending order, and the weights assigned to each rule of the fuzzy inference Weight-corresponding bit group generating means for holding a coefficient and generating a weight-corresponding bit group for each rule indicating whether or not the weight coefficient being held is equal to the weight coefficient output from the weight coefficient output means And the input label grade output from the input label rearranging means and the weighting factor. Comparing the magnitude with the weighting coefficient output from the force means, and comparing the rule-corresponding bit group output from the rule memory and the weight-corresponding bit group generated by the weight-corresponding bit group generating means in accordance with the comparison result. Selection means for selecting one of the grade of the input label output from the input label rearranging means and the weight coefficient output from the weight coefficient output means, and one of the output labels of the fuzzy inference. The grade or weight of the input label, which is installed correspondingly and is selected by the selecting means based on the valid bit that appears first or last in the rule corresponding bit group or the weight corresponding bit group selected by the selecting means. Find the information about the smallest of the coefficients for each rule contained in this output label, and Based on information about the values to detect the largest of these minimum values as min-max calculation results for each output label min-max
Fuzzy reasoning mi which is characterized by having a detection means.
n-max operation circuit.
【請求項2】 請求項1において、 前記各min-max 検出手段で検出されたmin-max 演算結果
のうち大きい順に所定個数のものを検出する手段を更に
備えたことを特徴とするファジイ推論のmin-max 演算回
路。
2. The fuzzy inference according to claim 1, further comprising means for detecting a predetermined number of min-max operation results detected by each of the min-max detection means in descending order. min-max operation circuit.
【請求項3】 請求項2において、 前記所定個数は2であることを特徴とするファジイ推論
のmin-max 演算回路。
3. The min-max arithmetic circuit for fuzzy inference according to claim 2, wherein the predetermined number is 2.
【請求項4】 請求項1乃至3において、 前記入力ラベル再配列手段は、再配列済みの入力ラベル
を小さな順に出力する手段を備え、 前記重み係数出力手段は、前記重み係数を小さな順に出
力する手段を備え、 前記min-max 検出手段は、前記選択手段で選択されたル
ール対応ビット群又は重み対応ビット群中に最初に出現
する有効ビットに基づきこの出力ラベルに含まれる前記
選択手段で選択された入力ラベルのグレード又は重み係
数のうち最小のものに関する情報を各ルールについて検
出する手段を備えたことを特徴とするファジイ推論のmi
n-max 演算回路。
4. The input label rearranging means according to claim 1, further comprising means for outputting rearranged input labels in ascending order, and the weighting coefficient output means outputs the weighting coefficients in ascending order. The min-max detection means is selected by the selection means included in the output label based on the effective bit that first appears in the rule corresponding bit group or the weight corresponding bit group selected by the selecting means. Of fuzzy inference, characterized in that it has means for detecting, for each rule, information about the minimum of the input label grades or weighting factors.
n-max operation circuit.
【請求項5】 請求項1乃至3において、 前記入力ラベル再配列手段は、再配列済みの入力ラベル
を大きな順に出力する手段を備え、 前記重み係数出力手段は、前記重み係数を大きな順に出
力する手段を備え、 前記min-max 検出手段は、前記選択手段で選択されたル
ール対応ビット群又は重み対応ビット群中に最後に出現
する有効ビットに基づきこの出力ラベルに含まれる前記
選択手段で選択された入力ラベルのグレード又は重み係
数のうち最小のものに関する情報を各ルールについて検
出する手段を備えたことを特徴とするファジイ推論のmi
n-max 演算回路。
5. The input label rearranging means according to claim 1, further comprising means for outputting the rearranged input labels in descending order, and the weighting coefficient output means outputs the weighting coefficients in descending order. The min-max detection means is selected by the selection means included in the output label based on the last valid bit in the rule-corresponding bit group or the weight-corresponding bit group selected by the selecting means. Of fuzzy inference, characterized in that it has means for detecting, for each rule, information about the minimum of the input label grades or weighting factors.
n-max operation circuit.
【請求項6】 請求項1乃至5において、 前記入力ラベル再配列手段は、再配列対象の各入力ラベ
ルのグレードのうち所定の閾値以上のものについては前
記再配列と出力の対象とし、前記閾値未満の入力ラベル
のグレードについてはその旨を示す指示信号に従って前
記再配列と出力の対象外としかつ対応のラベルコードを
前記ルールメモリの読出しアドレスとして供給すること
により対応のルール対応ビット群を出力させる例外処理
手段を備え、 前記min-max 検出手段は、前記入力ラベル再配列手段に
よる入力ラベルの再配列時に前記ルールメモリから出力
される各符号化ルール中に出現する有効ビットに対応す
る再配列中の入力ラベルのグレードが前記閾値以上の場
合にのみ前記入力ラベル再配列手段による入力ラベルの
出力時の前記最小値検出機能を有効化する例外処理手段
を備えたことを特徴とするをファジイ推論のmin-max 演
算回路。
6. The input label rearranging means according to claim 1, wherein the grade of each input label of the rearrangement target that is equal to or higher than a predetermined threshold is a target of the rearrangement and output, and the threshold is set. For input grades of less than, the corresponding rearrangement bit group is output by excluding the rearrangement and output according to the instruction signal indicating that and supplying the corresponding label code as the read address of the rule memory. Exception processing means, the min-max detection means, during the rearrangement corresponding to the effective bit appearing in each coding rule output from the rule memory at the time of rearrangement of the input label by the input label rearrangement means The minimum value at the time of output of the input label by the input label rearranging means only when the grade of the input label of the min-max calculation circuit fuzzy inferring characterized by comprising exception handling means for enabling the function output.
【請求項7】 請求項6において、 前記所定の閾値は、このmin-max 演算演算回路で処理可
能な最小の有限値であることを特徴とするファジイ推論
のmin-max 演算回路。
7. The min-max operation circuit for fuzzy inference according to claim 6, wherein the predetermined threshold value is a minimum finite value that can be processed by the min-max operation operation circuit.
【請求項8】 請求項1乃至7おいて、 前記演算された入力ラベルのグレードが前段のグレード
演算手段による演算順に前記入力ラベル再配列手段に供
給されることにより、この入力ラベル再配列手段と前記
前段のグレード演算手段とがパイプライン式に連携動作
することを特徴とするファジイ推論のmin-max 演算回
路。
8. The input label rearranging means according to claim 1, wherein the calculated input label grades are supplied to the input label rearranging means in the order of calculation by the grade calculating means in the preceding stage. A fuzzy inference min-max arithmetic circuit characterized in that the grade arithmetic means in the preceding stage operates in a pipeline manner.
【請求項9】 請求項1乃至8において、 前記入力ラベル再配列回路は、 縦列配置され初期設定により所定の初期値を保持する複
数のグレードレジスタと、これらグレードレジスタに対
応して設置され入力ラベルのグレードが出現するグレー
ドバスから対応のグレードレジスタに至るデータ転送路
を形成する第1の動作、隣接段のグレードレジスタから
対応のグレードレジスタに至るデータ転送路を形成する
第2の動作及び前記いずれのデータ転送路も形成しない
非動作のうちいずれか一つを実行するように制御される
グレード転送路形成手段と、前記グレードレジスタに対
応して縦列配置されたラベルコード・レジスタと、これ
らラベルコード・レジスタに対応して設置されラベルコ
ードが出現するラベルコード・バスから対応のラベルコ
ード・レジスタに至るデータ転送路を形成する第1の動
作、隣接段のラベルコード・レジスタから対応のラベル
コード・レジスタに至るデータ転送路を形成する第2の
動作及び前記いずれのデータ転送路も形成しない非動作
のうちいずれか一つを実行するように制御されるラベル
コード転送路形成手段と、 前記グレード転送路形成手段及びラベルコード転送路形
成手段に前記各動作を指令するためにそれぞれに対応し
て設置される複数の転送制御回路とを備え、 前記各転送制御回路は、対応のグレードレジスタに保持
中のグレードと前記グレードバス上に出現中のグレード
との大小関係を判定する大小判定回路と、この大小判定
回路による自段の大小判定結果と前記隣接段の転送制御
回路内の大小判定回路で同様に行われる前記隣接段の大
小判定結果との組合せに基づき前記対応のグレード転送
路形成手段及びラベルコード転送路形成手段に前記動作
の選択指令を発する論理回路とを備え、 この論理回路は、 a.前記自段の大小判定結果が第1の結果であり、かつ
前記隣接段の大小判定結果がこれと逆の第2の結果であ
れば、対応の転送路形成手段に前記第1の動作を指令す
る信号を出力し、 b.前記自段の大小判定結果が第1の結果であり、かつ
前記隣接段の大小判定結果もこれと同一の第1の結果で
あれば、前記対応の転送路形成手段に前記第2の動作を
指令する信号を出力し、 c.前記自段の大小判定結果が第2の結果であれば、前
記隣接段の大小判定結果に係わりなく前記対応の転送路
形成手段に前記非動作を指令する信号を出力するように
構成されたことを特徴とするファジイ推論のmin-max 演
算回路。
9. The input label rearrangement circuit according to claim 1, wherein the input label rearrangement circuit comprises a plurality of grade registers arranged in a column and holding a predetermined initial value by initialization, and input labels installed corresponding to these grade registers. The first operation of forming a data transfer path from the grade bus in which the grade appears to the corresponding grade register, the second operation of forming a data transfer path from the grade register of the adjacent stage to the corresponding grade register, and any one of the above. Grade transfer path forming means that is controlled to execute any one of the non-operations that do not form the data transfer path, label code registers arranged in a column corresponding to the grade registers, and these label codes.・ Label code that is installed corresponding to the register and the label code appears A first operation for forming a data transfer path to a corresponding register code register, a second operation for forming a data transfer path from a label code register of an adjacent stage to a corresponding label code register, and any of the above data transfer paths A label code transfer path forming means that is controlled to execute any one of non-operations that are not formed, and a grade code transfer path forming means and a label code transfer path forming means, respectively, for instructing each operation. A plurality of transfer control circuits installed corresponding to each other, each transfer control circuit determining a size relationship between a grade being held in a corresponding grade register and a grade appearing on the grade bus. Circuit, the result of the size judgment of its own stage by this size judgment circuit, and the size of the adjacent stage which is similarly performed by the size judgment circuit in the transfer control circuit of the adjacent stage. A logic circuit for issuing a selection command for the operation to the corresponding grade transfer path forming means and label code transfer path forming means based on a combination with the determination result, and the logic circuit comprises: a. If the size judgment result of the self-stage is the first result and the size judgment result of the adjacent stage is the second result opposite to this, the corresponding transfer path forming means is instructed to perform the first operation. Output a signal to perform b. If the magnitude judgment result of the self-stage is the first result and the magnitude judgment result of the adjacent stage is the same first result, the second operation is performed on the corresponding transfer path forming means. Outputs a commanding signal, c. If the size determination result of the self-stage is the second result, the signal for instructing the non-operation is output to the corresponding transfer path forming unit regardless of the size determination result of the adjacent stage. A min-max arithmetic circuit for fuzzy inference.
【請求項10】ファジイ推論の各ルールの前件部に含まれ
る各入力ラベルについて定義された所定の配列に従って
前記各ルールがそれぞれの前件部に前記各入力ラベルを
含むか否かを有効/無効ビットで表示する符号化ルール
が前記各ルールについて定義され、このように定義され
所定の配列に従って配列された各符号化ルールに前記各
入力ラベルが含まれるか否かを有効/無効ビット群によ
って示すルール対応ビット群が定義され、このように定
義された各ルール対応ビット群を対応の入力ラベルの識
別コード(以下,「ラベルコード」という)によって指
定されるアドレスに保持することにより前記各符号化ル
ールを複数のアドレスにわたって保持するルールメモリ
と、 前記各ルールに重み係数が付与されているか否かを前記
各ルール対応ビット群と同様の形式で表現する重み対応
ビット群を、この重み係数を識別するための重み係数コ
ードによってアクセスされるアドレスに保持する重み対
応ビット群保持メモリと、 前記各入力ラベルについて演算された入力ラベルのグレ
ードと前記各ルールに付与された重み係数とを対応のラ
ベルコード又は重み係数コードと共に大小の順序に従っ
て再配列したのち、再配列後の入力ラベルのグレードと
重み係数とを小さな順又は大きな順に出力すると共に対
応のラベルコード又は重み係数コードを前記ルールメモ
リ又は重み対応ビット群保持メモリの読出しアドレスと
して供給することにより前記ルール対応ビット群又は重
み対応ビット群の対応のものを出力させる入力ラベルと
重み係数の再配列手段と、 前記ファジイ推論の各出力ラベルに対応して設置される
と共に、前記各メモリから読出されたルール対応ビット
群又は重み対応ビット群中に最初に又は最後に出現する
有効ビットに基づき前記入力ラベルと重み係数の再配列
手段から出力された入力ラベルのグレード又は重み係数
のうちこの出力ラベルに含まれる各ルールについての最
小のものに関する情報を検出し、この各ルールについて
検出した最小値に関する情報に基づきこれら最小値のう
ちの最大のものを各出力ラベルについてのmin-max 演算
結果として検出するmin-max 検出手段とを備えたことを
特徴とするファジイ推論のmin-max 演算回路。
10. It is enabled / disabled whether each rule includes each input label in each antecedent part according to a predetermined array defined for each input label included in each antecedent part of each rule of fuzzy inference. A coding rule for displaying with invalid bits is defined for each rule, and it is determined by the valid / invalid bit group whether or not each input label is included in each coding rule defined in this way and arranged according to a predetermined array. The rule-corresponding bit group shown is defined, and each rule-corresponding bit group thus defined is held at an address designated by an identification code of the corresponding input label (hereinafter, referred to as "label code") A rule memory that holds the generalization rules over a plurality of addresses, and whether or not a weighting factor is assigned to each rule corresponds to each rule. Bit-corresponding bit group expressed in the same format as the bit group, and a weight-corresponding bit group holding memory that holds the address corresponding to the weight coefficient code for identifying the weight coefficient, and is calculated for each input label. After rearranging the input label grade and the weighting factor assigned to each rule according to the order of magnitude with the corresponding label code or weighting factor code, the rearranged input label grade and weighting factor are sorted in ascending order. Alternatively, the corresponding label code or weight coefficient code is output as a read address of the rule memory or the weight corresponding bit group holding memory to output the corresponding one of the rule corresponding bit group or the weight corresponding bit group. Input label and weight coefficient rearrangement means, and each output label of the fuzzy inference And output from the rearrangement means of the input label and the weighting coefficient based on the effective bit that appears first or last in the rule corresponding bit group or the weight corresponding bit group read from each memory. Information about the minimum of the grades or weighting factors of the input labels that are included in this output label for each rule, and the maximum of these minimum values is detected based on the information about the minimum value that is detected for each rule. A min-max operation circuit for fuzzy inference, comprising min-max detection means for detecting an object as a min-max operation result for each output label.
【請求項11】 請求項10において、 前記各min-max 検出手段で検出されたmin-max 演算結果
のうち大きい順に所定個数のものを検出する手段を更に
備えたことを特徴とするファジイ推論のmin-max 演算回
路。
11. The fuzzy inference according to claim 10, further comprising means for detecting a predetermined number of min-max operation results detected by each of the min-max detection means in descending order. min-max operation circuit.
【請求項12】 請求項11において、 前記所定個数は2であることを特徴とするファジイ推論
のmin-max 演算回路。
12. The fuzzy inference min-max operation circuit according to claim 11, wherein the predetermined number is 2.
【請求項13】 請求項10乃至12において、 前記入力ラベルと重み係数の再配列手段は、再配列対象
の各入力ラベルのグレードのうち所定の閾値以上のもの
については前記再配列と出力の対象とし、前記閾値未満
の入力ラベルのグレードについてはその旨を示す指示信
号に従って前記再配列と出力の対象外としかつ対応のラ
ベルコードを前記ルールメモリの読出しアドレスとして
供給することにより対応のルール対応ビット群を出力さ
せる例外処理手段を備え、 前記min-max 検出手段は、前記入力ラベルと重み係数の
再配列手段による入力ラベルと重み係数の再配列時に前
記ルールメモリから出力される各符号化ルール中に出現
する有効ビットに対応する再配列中の入力ラベルのグレ
ードが前記閾値以上の場合にのみ前記入力ラベル再配列
手段による入力ラベルの出力時の前記最小値検出機能を
有効化する例外処理手段を備えたことを特徴とするをフ
ァジイ推論のmin-max 演算回路。
13. The input label and weighting factor rearrangement unit according to claim 10, wherein the rearrangement and output target is a target of rearrangement and output for grades of each input label to be rearranged that are equal to or more than a predetermined threshold value. Then, with respect to the grade of the input label less than the threshold value, the corresponding rule corresponding bit is excluded by the rearrangement and output according to the instruction signal indicating that and the corresponding label code is supplied as the read address of the rule memory. An exception processing unit for outputting a group, wherein the min-max detection unit is arranged in each of the coding rules output from the rule memory when rearranging the input label and the weight coefficient by the rearrangement unit of the input label and the weight coefficient. By the input label rearrangement means only when the grade of the input label in the rearrangement corresponding to the effective bit appearing in min-max calculation circuit fuzzy inferring characterized by comprising exception handling means for enabling said minimum value detecting function at the output of the input label.
【請求項14】 請求項13において、 前記所定の閾値は、このmin-max 演算演算回路で処理可
能な最小の有限値であることを特徴とするファジイ推論
のmin-max 演算回路。
14. The fuzzy inference min-max operation circuit according to claim 13, wherein the predetermined threshold value is a minimum finite value that can be processed by the min-max operation operation circuit.
【請求項15】 請求項10乃至14において、 前記演算された入力ラベルのグレードが前段のグレード
演算手段による演算順に前記入力ラベル再配列手段に供
給されることにより、この入力ラベル再配列手段と前記
前段のグレード演算手段とがパイプライン式に連携動作
することを特徴とするファジイ推論のmin-max 演算回
路。
15. The input label rearranging means according to claim 10, wherein the calculated input label grades are supplied to the input label rearranging means in a calculation order by a grade calculating means in a preceding stage. A min-max arithmetic circuit for fuzzy inference, characterized in that the grade arithmetic unit in the previous stage operates in a pipelined manner.
【請求項16】 請求項10乃至15において、 前記入力ラベルと重み係数の再配列手段は、 縦列配置され前記重み係数又は所定の初期値を保持する
複数のグレードレジスタと、 これらグレードレジスタに対応して設置され入力ラベル
のグレードが出現するグレードバスから対応のグレード
レジスタに至るデータ転送路を形成する第1の動作、隣
接段のグレードレジスタから対応のグレードレジスタに
至るデータ転送路を形成する第2の動作及び前記いずれ
のデータ転送路も形成しない非動作のうちいずれか一つ
を実行するように制御されるグレード及び重み係数転送
路形成手段と、 前記グレードレジスタに対応して縦列配置され、対応の
グレードレジスタに保持中の入力ラベルのグレード又は
重み係数を互いに識別するためのコードを保持するコー
ド・レジスタと、 これらコード・レジスタに対応して設置されラベルコー
ドが出現するラベルコード・バスから対応のコード・レ
ジスタに至るデータ転送路を形成する第1の動作、隣接
段のコード・レジスタから対応のコード・レジスタに至
るデータ転送路を形成する第2の動作及び前記いずれの
データ転送路も形成しない非動作のうちいずれか一つを
実行するように制御されるコード転送路形成手段と、 前記グレード及び重み係数転送路形成手段及びコード転
送路形成手段に前記各動作を指令するためにそれぞれに
対応して設置される複数の転送制御回路とを備え、 前記各転送制御回路は、対応のグレードレジスタに保持
中のグレード又は重み係数と前記グレードバス上に出現
中のグレードとの大小関係を判定する大小判定回路と、
この大小判定回路による自段の大小判定結果と前記隣接
段の転送制御回路内の大小判定回路で同様に行われる前
記隣接段の大小判定結果との組合せに基づき前記対応の
グレード及び重み係数転送路形成手段及びコード転送路
形成手段に前記動作の選択指令を発する論理回路とを備
え、 この論理回路は、 a.前記自段の大小判定結果が第1の結果であり、かつ
前記隣接段の大小判定結果がこれと逆の第2の結果であ
れば、対応の転送路形成手段に前記第1の動作を指令す
る信号を出力し、 b.前記自段の大小判定結果が第1の結果であり、かつ
前記隣接段の大小判定結果もこれと同一の第1の結果で
あれば、前記対応の転送路形成手段に前記第2の動作を
指令する信号を出力し、 c.前記自段の大小判定結果が第2の結果であれば、前
記隣接段の大小判定結果に係わりなく前記対応の転送路
形成手段に前記非動作を指令する信号を出力するように
構成されたことを特徴とするファジイ推論のmin-max 演
算回路。
16. The input label and weight coefficient rearranging means according to claim 10, wherein a plurality of grade registers are arranged in a column and hold the weight coefficients or a predetermined initial value, and these grade registers correspond to these grade registers. First operation of forming a data transfer path from a grade bus in which a grade of an input label appears to a corresponding grade register, second operation of forming a data transfer path from a grade register at an adjacent stage to a corresponding grade register And a grade and weight coefficient transfer path forming means that is controlled to execute any one of the operation and the non-operation that does not form any of the data transfer paths, and the grade registers are arranged in columns corresponding to the grade registers. The code that holds the grades or weighting factors of the input labels currently held in the The first operation of forming a data transfer path from a label register and a label code bus installed corresponding to these code registers, in which the label code appears, to the corresponding code register, Code transfer path forming means controlled to execute one of a second operation of forming a data transfer path to a corresponding code register and a non-operation of forming no data transfer path; A plurality of transfer control circuits installed corresponding to each of the grade and weight coefficient transfer path forming means and the code transfer path forming means for instructing each of the operations. A magnitude determination circuit for determining the magnitude relationship between the grade or weighting coefficient held in the grade register and the grade appearing on the grade bus,
The corresponding grade and weight coefficient transfer path is based on a combination of the result of the size judgment of this stage by the size judgment circuit and the result of the size judgment of the adjacent stage which is similarly performed by the size judgment circuit in the transfer control circuit of the adjacent stage. And a logic circuit for issuing the operation selection command to the forming means and the code transfer path forming means, the logic circuit comprising: a. If the size judgment result of the self-stage is the first result and the size judgment result of the adjacent stage is the second result opposite to this, the corresponding transfer path forming means is instructed to perform the first operation. Output a signal to perform b. If the size determination result of the self-stage is the first result and the size determination result of the adjacent stage is the same first result, the second operation is performed on the corresponding transfer path forming means. Outputs a commanding signal, c. If the size determination result of the self-stage is the second result, the signal for instructing the non-operation is output to the corresponding transfer path forming unit regardless of the size determination result of the adjacent stage. A min-max arithmetic circuit for fuzzy inference.
JP5339671A 1993-10-28 1993-12-06 Min/max arithmetic circuit for fuzzy inference Pending JPH07175659A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5339671A JPH07175659A (en) 1993-10-28 1993-12-06 Min/max arithmetic circuit for fuzzy inference

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP29284393 1993-10-28
JP5-292843 1993-10-28
JP5339671A JPH07175659A (en) 1993-10-28 1993-12-06 Min/max arithmetic circuit for fuzzy inference

Publications (1)

Publication Number Publication Date
JPH07175659A true JPH07175659A (en) 1995-07-14

Family

ID=26559150

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5339671A Pending JPH07175659A (en) 1993-10-28 1993-12-06 Min/max arithmetic circuit for fuzzy inference

Country Status (1)

Country Link
JP (1) JPH07175659A (en)

Similar Documents

Publication Publication Date Title
US5245695A (en) Fuzzy microcontroller
EP0694856B1 (en) Daisy chain circuit for serial connection of neuron circuits
EP0694852B1 (en) Innovative neuron circuit architectures
EP0332361B1 (en) Method and apparatus for logic simulation
EP0694853B1 (en) Circuit for pre-charging the input vector components in a free neuron circuit during the recognition phase
JP3312155B2 (en) Method and apparatus for accurate leading zero prediction for floating point adders
US5623680A (en) Finite state machine for process control
JP2850082B2 (en) Min-max arithmetic circuit for fuzzy inference
US5671166A (en) Barrel shifter for combining pieces of data into a piece of combined data and shifting the combined data
JPH08339291A (en) Selection circuit of maximum value
JPH07175659A (en) Min/max arithmetic circuit for fuzzy inference
JP2633161B2 (en) Min-max arithmetic circuit for fuzzy inference
JPH056261A (en) Device and method for sorting data
JP3008710B2 (en) Min-max arithmetic circuit for fuzzy inference
JP2633153B2 (en) Min-max arithmetic circuit for fuzzy inference
WO2016109571A1 (en) Devices for time division multiplexing of state machine engine signals
US5720005A (en) Circuit and method for processing lower limit value fuzzy inputs during a fuzzy logic operation
US4777622A (en) Associative data storage system
JP3998904B2 (en) Logic circuit design method, logic circuit design support system, and computer-readable recording medium
JPH06119146A (en) Data sorting circuit
JP2003099488A (en) Logical matching device
US5586217A (en) Min/max computing circuit for fuzzy inference
JPH10134017A (en) Fussy logical neural network module type architecture
JPH05151785A (en) Content-addressable memory
JPH07271592A (en) Calculation circuit, decision circuit of membership functionvalue, fuzzy logic processor, decision method of membership function value and fuzzy-logic justification method