JPH0612258A - Memory for fuzzy set processing - Google Patents

Memory for fuzzy set processing

Info

Publication number
JPH0612258A
JPH0612258A JP4168796A JP16879692A JPH0612258A JP H0612258 A JPH0612258 A JP H0612258A JP 4168796 A JP4168796 A JP 4168796A JP 16879692 A JP16879692 A JP 16879692A JP H0612258 A JPH0612258 A JP H0612258A
Authority
JP
Japan
Prior art keywords
data
memory
address
terminal
given
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
JP4168796A
Other languages
Japanese (ja)
Inventor
Souzou Yamamoto
創造 山本
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP4168796A priority Critical patent/JPH0612258A/en
Priority to US08/080,179 priority patent/US5430828A/en
Publication of JPH0612258A publication Critical patent/JPH0612258A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)

Abstract

PURPOSE:To perform fuzzy set arithmetic at high speed with simple configuration by providing a memory equipped with the function of logical arithmetic concerning a memory constituting a computer system. CONSTITUTION:At the time of write to the memory, logical arithmetic is performed between newly given data and data already stored in the address of the memory, and a register 13, logical arithmetic part 14 and control terminal 25 are added to the conventional memory so as to store the result in the memory. Thus, it is only required for one time of fuzzy logical arithmetic to transfer data twice so as to easily realize high-speed fuzzy logical arithmetic without load for a CPU.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、計算機の主記憶に用い
るメモリにファジィ集合演算の機能を付加することによ
って、簡単な構成で高速にファジィ演算を行なうことを
可能とするメモリに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory which is capable of performing a fuzzy operation at a high speed with a simple structure by adding a fuzzy set operation function to a memory used as a main memory of a computer. .

【0002】[0002]

【従来の技術】ファジィ理論の応用の進展にともなっ
て、ファジィ推論の処理をハードウェア的に実現するこ
とは一般に行なわれるようになった。しかし、ファジィ
推論の実行だけでは推論ルールやメンバーシップ関数の
学習や数値演算の処理を含む幅広いアプリケーションを
カバーするのに十分でなく、高速性と汎用性とを兼ね備
えるために、CPUとファジィ推論専用回路の組合せを
行なう方法や、汎用CPUのインストラクションセット
に最大値演算(Max)と最小値演算(Min)とを追
加する方法などが考えられている(例えば、国際ファジ
ィ工学シンポジウム予稿集、第387頁から第398頁
(Proc. of the Internation
al Fuzzy Engineering Symp
osium91 pp. 387−398)。
2. Description of the Related Art With the progress of application of fuzzy theory, it has become common practice to implement fuzzy reasoning processing by hardware. However, the execution of fuzzy inference is not enough to cover a wide range of applications including learning of inference rules and membership functions, and the processing of numerical operations. A method of combining circuits and a method of adding a maximum value operation (Max) and a minimum value operation (Min) to an instruction set of a general-purpose CPU have been considered (eg, International Fuzzy Engineering Symposium Proceedings, No. 387). Pages 398 (Proc. Of the International
al Fuzzy Engineering Symp
osium91 pp. 387-398).

【0003】最大値演算と最小値演算は、ファジィ理論
の応用において頻繁に用いられる。制御におけるファジ
ィ推論では推論の合成法としてMax−min合成法を
用いる場合が多い。Max−Min法によるファジィ推
論では、推論の実行は入力として与えられるファジィ集
合とルールを構成するファジィ集合との間で順次最大値
演算と最小値演算を繰り返して行なう操作に帰着する。
システムにおいては、ファジィ集合は計算機上では図6
に示すようにグレード値を連続番値に並べる形で表現す
ることが出来る。推論の実行はこのように表現したグレ
ード値の間で最大値演算と最小値演算とを順次行なって
ゆくことに帰着する。
Maximum value arithmetic and minimum value arithmetic are frequently used in fuzzy theory applications. In fuzzy reasoning in control, the Max-min combining method is often used as a reasoning combining method. In fuzzy inference by the Max-Min method, inference execution results in an operation in which a maximum value operation and a minimum value operation are sequentially repeated between a fuzzy set given as an input and a fuzzy set forming a rule.
In the system, the fuzzy set is as shown in FIG.
As shown in, the grade values can be expressed by arranging them in sequence. The execution of the inference results in sequentially performing the maximum value operation and the minimum value operation between the grade values expressed in this way.

【0004】従来のメモリの構成は、図4に示すような
ものである。アドレスバッファ1とカラムデコーダ2、
ロウデコーダ3はアドレス端子22に与られたアドレス
をデコードし、メモリセルアレイ4のある番地を特定す
る。データの流れを制御するために、入力データコント
ロール11、出力データコントロール12とが置かれ、
センススイッチ5を介してメモリセルアレイ4とデータ
入出力端子21との間のデータの流れを制御する。
The structure of a conventional memory is as shown in FIG. Address buffer 1 and column decoder 2,
The row decoder 3 decodes the address given to the address terminal 22 and specifies an address in the memory cell array 4. An input data control 11 and an output data control 12 are provided to control the flow of data,
The flow of data between the memory cell array 4 and the data input / output terminal 21 is controlled via the sense switch 5.

【0005】動作は、チップセレクト端子23とライト
イネーブル端子24に与えられた制御信号を制御部15
が解釈して、入力データコントロール11と出力データ
コントロール12を制御することにより行なわれる。こ
の制御部の動作は(表1)のようなものである。
In operation, the control signal given to the chip select terminal 23 and the write enable terminal 24 is applied to the control section 15.
Is performed and the input data control 11 and the output data control 12 are controlled. The operation of this control unit is as shown in (Table 1).

【0006】[0006]

【表1】 [Table 1]

【0007】すなわち、チップセレクト端子23にL、
ライトイネーブル端子24にHが与えられた時は読み取
りモードであり、入力データコントロールがイネーブ
ル、出力データコントロールがディスエーブルになる。
これによってメモリセルアレイ4の特定番地の内容がデ
ータ入出力端子21に出力される。また、チップセレク
ト端子23にL、ライトイネーブル端子24にLが与え
られた時は書き込みモードであり、入力データコントロ
ールがディスエーブル、出力データコントロールがイネ
ーブルになることによって、データ入出力端子21に与
えられたデータがメモリセルアレイ4に格納される。チ
ップセレクト端子23にHが与えられた時には有効な動
作をしない。
That is, L is applied to the chip select terminal 23,
When H is given to the write enable terminal 24, the read mode is set, and the input data control is enabled and the output data control is disabled.
As a result, the content of the specific address of the memory cell array 4 is output to the data input / output terminal 21. When L is applied to the chip select terminal 23 and L is applied to the write enable terminal 24, the write mode is set, and the input data control is disabled and the output data control is enabled. The obtained data is stored in the memory cell array 4. When H is given to the chip select terminal 23, it does not operate effectively.

【0008】このような従来のメモリを用いて構成され
た計算機による演算の流れを図5を用いて説明する。フ
ァジィ集合の演算を行なう場合においては、メモリから
ファジィ集合の要素を2個取りだし(1)(2)、これらをC
PUのレジスタに格納して、CPUで最小値演算、最大
値演算など所定の演算を行なう (3)。この演算の結果を
さらに別の番地に格納する(4)ことにより1つの演算が
完了する。
The flow of calculation by a computer configured using such a conventional memory will be described with reference to FIG. When performing a fuzzy set operation, two elements of the fuzzy set are fetched from the memory (1) (2) and these are C
It is stored in the register of PU, and the CPU performs predetermined calculations such as minimum value calculation and maximum value calculation (3). One operation is completed by storing the result of this operation in another address (4).

【0009】ところで、最小値演算、最大値演算は一般
的なCPUには備えられていない。従って、一般的に
は、最大値演算や最小値演算を行なう場合には、比較命
令、分岐命令を組み合わせて実行する。CPUレジスタ
へのデータのロードも考慮すると、3インストラクショ
ンは必要になる。ファジィ演算を高速化する目的で、C
PUのインストラクションセットに最大値演算(MA
X)、最小値演算(MIN)を加えるという手法をとる
と、最大値演算と最小値演算は1インストラクションで
実行することが出来、ファジィ論理演算を高速化でき
る。
By the way, the minimum value calculation and the maximum value calculation are not provided in a general CPU. Therefore, generally, when performing the maximum value operation or the minimum value operation, the comparison instruction and the branch instruction are combined and executed. Considering the loading of data into the CPU register, 3 instructions are required. For the purpose of speeding up fuzzy calculation, C
Maximum value calculation (MA for PU instruction set)
X) and the minimum value operation (MIN) are added, the maximum value operation and the minimum value operation can be executed by one instruction, and the fuzzy logic operation can be speeded up.

【0010】[0010]

【発明が解決しようとする課題】しかしながら、上記の
従来の構成では以下に示すような問題点が見られた。す
なわち、ファジィ集合処理部に入力データを送りまた出
力データをメモリに転送する必要があるので、ファジィ
論理演算あたりメモリアクセスを3回必要とする。この
ため、CPUに最大値演算と最小値演算のインストラク
ションを加えても、計算機システム全体としての処理速
度はメモリとCPUとの間のデータ転送の能力で制約を
受けてしまうことがあった。
However, the following problems have been observed in the above-mentioned conventional structure. That is, since it is necessary to send input data to the fuzzy set processing unit and transfer output data to the memory, memory access is required three times for each fuzzy logic operation. Therefore, even if instructions for maximum value calculation and minimum value calculation are added to the CPU, the processing speed of the entire computer system may be limited by the ability of data transfer between the memory and the CPU.

【0011】また、以上に上げた手法においては、CP
Uのインストラクションセット自体を変更するため、C
PUの設計自体を変更する必要がある。また、ファジィ
集合処理固有のハードウェアを制御することが必要であ
るため、計算機全体のハードウェア構成が複雑化した
り、特別な制御を行なうためにコンパイラなどのソフト
ウェアに負担がかかるという問題点があった。
In addition, in the method mentioned above, CP
To change U's instruction set itself, C
It is necessary to change the PU design itself. In addition, since it is necessary to control the hardware specific to fuzzy set processing, the hardware configuration of the entire computer becomes complicated, and the software such as the compiler is burdened by special control, which is a problem. It was

【0012】本発明は上記従来の問題点を解決するもの
で、メモリ自体にファジィ論理演算の機能を付加するこ
とにより、データ転送によるオーバーヘッドを軽減し、
高速なファジィ演算を簡単な構成によって提供すること
を目的とする。
The present invention solves the above-mentioned conventional problems. By adding a fuzzy logic operation function to the memory itself, the overhead due to data transfer is reduced,
It is an object to provide a high-speed fuzzy operation with a simple structure.

【0013】[0013]

【課題を解決するための手段】この目的を達成するため
に本発明のファジィ集合処理用メモリは、メモリ内部に
レジスタと論理演算部を設け、メモリセルの当該アドレ
スの内容と新たにデータ入出力端子に与えられたデータ
との間で論理演算を行ない、この論理演算の結果を再び
メモリセルの当該アドレスに格納するように構成し、こ
の論理演算部で行なう演算の種類を外部からの入力によ
り切替える制御部とコントロール端子を設ける。
In order to achieve this object, the fuzzy set processing memory of the present invention is provided with a register and a logical operation unit inside the memory, and the contents of the address of the memory cell and new data input / output are provided. A logical operation is performed with the data given to the terminal, and the result of this logical operation is stored again at the relevant address of the memory cell, and the type of operation performed by this logical operation unit is set by external input. A switching control unit and control terminal are provided.

【0014】[0014]

【作用】論理演算部の働きにより、メモリへの書き込み
の操作においては、指定されたアドレスにすでに記憶さ
れていたデータと新しく書き込みデータとして与えられ
たデータとの間の論理演算の結果を新たに記憶すること
が可能になる。この論理演算部は外部から制御可能であ
るので、和演算や積演算などのファジィ集合演算に切替
えることが可能である。
With the operation of the logical operation unit, in the operation of writing to the memory, the result of the logical operation between the data already stored at the specified address and the data newly given as the write data is newly added. It becomes possible to memorize. Since this logical operation unit can be controlled externally, it is possible to switch to a fuzzy set operation such as a sum operation or a product operation.

【0015】従って、ファジィ集合演算を実質的にはメ
モリ転送と同じ手続きで行なうことが可能になり、簡便
な構成で高速なファジィ集合演算を実現することができ
る。例えば従来の方法では1グレードあたり3回のメモ
リアクセスとCPUでの演算とを必要としていた2項フ
ァジィ集合演算を2回のメモリ転送手続きのみで処理で
きる。これにより、中央演算装置(CPU)の負担を軽
減するとともに、全体の演算速度を高速化することが出
来る。
Therefore, the fuzzy set operation can be performed by substantially the same procedure as the memory transfer, and the high-speed fuzzy set operation can be realized with a simple structure. For example, the binomial fuzzy set operation, which requires three memory accesses and one CPU operation per grade in the conventional method, can be processed by only two memory transfer procedures. As a result, the load on the central processing unit (CPU) can be reduced and the overall calculation speed can be increased.

【0016】また、コントロール端子をアドレス端子の
1つで代用することによって、従来のメモリと互換性を
持ったピン配置のメモリを構成することが可能であり、
これによってさらに簡便に、従来の計算機をファジィ集
合処理に適した計算機として用いることが可能になる。
Further, by substituting one of the address terminals for the control terminal, it is possible to construct a memory having a pin arrangement compatible with the conventional memory.
This makes it possible to use the conventional computer as a computer suitable for fuzzy set processing more easily.

【0017】[0017]

【実施例】以下、本発明の第1の実施例のファジィ集合
処理用メモリについて、図面を参照しながら説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A fuzzy set processing memory according to a first embodiment of the present invention will be described below with reference to the drawings.

【0018】図1に示すのは、スタティックRAMに対
して本発明を適用した実施例のブロック図である。図1
において、基本部分に関しては、図4に示した従来のメ
モリと同様の構成であるため、同一構成部分には同一番
号を付して詳細な説明を省略する。従来のメモリとは異
なり、本実施例には、メモリセルアレイ4から読み出さ
れた内容を一時的に保存するレジスタ13と、レジスタ
の内容とデータ入出力端子に与えられたデータとの間で
論理演算を行なう論理演算部14とが新たに設けられて
おり、論理演算部14の動作を制御するために、コント
ロール端子25を設けている。制御部15の動作は従来
のメモリと異なり、(表2)に示すようなものである。
FIG. 1 is a block diagram of an embodiment in which the present invention is applied to a static RAM. Figure 1
In regard to the basic part, since it has the same configuration as the conventional memory shown in FIG. 4, the same components are designated by the same reference numerals and detailed description thereof will be omitted. Unlike the conventional memory, in this embodiment, there is a logic between the register 13 for temporarily storing the contents read from the memory cell array 4 and the contents of the register and the data given to the data input / output terminal. A logical operation unit 14 for performing an operation is newly provided, and a control terminal 25 is provided to control the operation of the logical operation unit 14. The operation of the control unit 15 is as shown in (Table 2) unlike the conventional memory.

【0019】[0019]

【表2】 [Table 2]

【0020】以下、制御部15の動作を中心に、本実施
例の動作について説明する。本実施例においては、読み
出しにおいては従来のメモリと同様に動作するが、書き
込み時の動作が以下のようになる。
The operation of this embodiment will be described below, focusing on the operation of the control section 15. In this embodiment, the read operation is similar to that of the conventional memory, but the write operation is as follows.

【0021】書き込み時の動作は3つのステージに分か
れている。アドレス端子22にアドレスが与えられ、チ
ップセレクト端子23とライトイネーブル端子24にL
が与えられた時、まず第1のステージが開始し、メモリ
セルアレイからの読み出しの動作が行なわれる。従来の
メモリのデータ読み出し時の動作と同様に、入力データ
コントロール11がイネーブル、出力データコントロー
ル12がディスエーブルになり、センススイッチ5を介
してメモリセルアレイ4からデータが読み出される。そ
してこの読み出されたデータがレジスタ13にラッチさ
れる。第2のステージでは、論理演算部14がデータ入
力端子21に与えられたデータとレジスタ13にラッチ
されたデータとの間で、所定の論理演算を行なう。そし
て第3のステージで、この論理演算の結果がメモリセル
アレイ4に書き込まれる。
The writing operation is divided into three stages. An address is given to the address terminal 22, and L is given to the chip select terminal 23 and the write enable terminal 24.
Is given, the first stage starts first, and the operation of reading from the memory cell array is performed. Similar to the conventional data read operation of the memory, the input data control 11 is enabled, the output data control 12 is disabled, and data is read from the memory cell array 4 via the sense switch 5. Then, the read data is latched in the register 13. In the second stage, logical operation unit 14 performs a predetermined logical operation between the data applied to data input terminal 21 and the data latched in register 13. Then, in the third stage, the result of this logical operation is written in the memory cell array 4.

【0022】全体としては、新たにデータ入出力端子2
1に与えられたデータと既に当該アドレスに格納されて
いたデータとの間の論理演算の結果を再び格納するとい
う働きをする。各ステージの切替は論理演算部内部のタ
イマに従って制御される。
As a whole, a new data input / output terminal 2 is provided.
It serves to store again the result of the logical operation between the data given to 1 and the data already stored at the address. Switching of each stage is controlled according to a timer inside the logical operation unit.

【0023】用意されている演算は最大値演算、最小値
演算、無演算の3つである。それぞれ、以下のような演
算を行なう。
There are three prepared operations: maximum value operation, minimum value operation, and no operation. The following calculations are performed respectively.

【0024】最大値演算 MEM <- IN max REG 最小値演算 MEM <- IN min REG 無演算 MEM <- IN ただし IN 入力端子に与えられたデータ REG レジスタの値 ONE 1の計算機内部での表現 MEM メモリセルアレイに与えられるデータ これらの演算は全て簡単な回路で実現でき、大きなチッ
プ面積を必要としない。また、演算速度も高速に行なえ
るので、高速なメモリ回路を用いれば、以上に述べたよ
うな動作を従来のメモリのライトサイクルの範囲内で行
なうことが可能である。
Maximum value operation MEM <-IN max REG Minimum value operation MEM <-IN min REG No operation MEM <-IN However, data given to IN input terminal REG register value ONE 1 internal expression MEM memory Data given to cell array All of these operations can be realized by a simple circuit and do not require a large chip area. Further, since the operation speed can be performed at high speed, the operation described above can be performed within the range of the write cycle of the conventional memory by using a high speed memory circuit.

【0025】演算が無演算に設定されている時には、デ
ータ入出力端子21に与えられたデータがそのままメモ
リセルアレイ4に入力される。この場合は、従来のメモ
リと全く同じ動作をすることになる。
When the operation is set to no operation, the data supplied to the data input / output terminal 21 is directly input to the memory cell array 4. In this case, the operation is the same as that of the conventional memory.

【0026】論理演算の種類はコントロール端子25を
用いることによって制御する。通常のメモリへの書き込
みや読みだし時にはコントロール端子25は常にHに保
たれるのであるが、これにLが与えられた時には、制御
部は論理演算部の制御を行ない、演算の種類の切替を行
なう。すなわちチップセレクト端子23にL、コントロ
ール端子25にLが与えられた時には、入力データコン
トロール11はイネーブル、出力データコントロール1
2はディスエーブルになり、データ入出力端子21に与
えられているデータに従って、論理演算部14で行なう
演算の種類の選択を行なう。このコントロール端子に
は、従来のメモリで用いられていたアドレス端子の1つ
をこれに充てて用いている。これにより、実質的にアド
レス空間を半分しか使わないことになり、このために記
憶容量は減少するが、外部のハードウェアを変更するこ
となく既存の計算機のメモリを置き換えることによりフ
ァジィ集合用の計算機を構成することが可能となってい
る。
The type of logical operation is controlled by using the control terminal 25. The control terminal 25 is always kept at H at the time of writing to or reading from a normal memory, but when L is given to this, the control unit controls the logical operation unit to switch the operation type. To do. That is, when L is applied to the chip select terminal 23 and L is applied to the control terminal 25, the input data control 11 is enabled and the output data control 1
2 is disabled, and the type of operation performed by the logical operation unit 14 is selected according to the data applied to the data input / output terminal 21. For this control terminal, one of the address terminals used in the conventional memory is used by being allocated to it. This effectively uses only half the address space, which reduces storage capacity, but by replacing the existing computer's memory without changing external hardware, the fuzzy set computer Can be configured.

【0027】次に、演算の種類の切替の動作を説明す
る。従来のメモリのアドレス端子の最上位ビットをコン
トロール端子として用いている。仮に従来のメモリにお
けるアドレス空間が0x0000から0xFFFFまでの64キロバイ
トであれば、本実施例における有効アドレス空間は0x80
00から0xFFFFまでの32キロバイトになる。そして、0x00
00から0x7FFFまでの空間に対するアクセスは全て演算の
切替を意味する。
Next, the operation of switching the type of calculation will be described. The most significant bit of the address terminal of the conventional memory is used as the control terminal. If the address space in the conventional memory is 64 kilobytes from 0x0000 to 0xFFFF, the effective address space in this embodiment is 0x80.
It is 32 kilobytes from 00 to 0xFFFF. And 0x00
All access to the space from 00 to 0x7FFF means switching the operation.

【0028】例えば、アドレス0x0000に対してデータ0x
0000を書き込む操作を行なった場合には無演算が設定さ
れ、データ0x0001が与えられた時には最大値演算が設定
されるというように動作する。この動作は、制御部15
から論理演算部14に演算切替の信号が与えられた時、
データ入力端子に与えられた信号に従って論理演算部1
4内部のレジスタまたはフラグを書き換えることにより
制御できる。従って、演算の種類の切替の操作は、特定
のアドレス空間に対するデータの書き込みの操作として
実現できるので、計算機の構成を変更することなく、本
実施例のメモリを従来のメモリに替えて用い、ソフトウ
ェアレベルの変更を行なうだけで、簡便にファジィ集合
演算の高速処理を実現することが出来る。
For example, data 0x for address 0x0000
When 0000 is written, no calculation is set, and when data 0x0001 is given, maximum value calculation is set. This operation is performed by the control unit 15
When an operation switching signal is given from the logical operation unit 14 from
Logical operation unit 1 according to the signal given to the data input terminal
4 It can be controlled by rewriting the internal registers or flags. Therefore, the operation of switching the type of operation can be realized as an operation of writing data to a specific address space. Therefore, the memory of the present embodiment is used in place of the conventional memory without changing the configuration of the computer, and the software of the present embodiment is used. High-speed processing of fuzzy set operations can be easily realized simply by changing the level.

【0029】本実施例のメモリを用いて構成された計算
機でファジィ演算を行なう場合の処理の流れは次のよう
になる。2つのファジィ集合FAとFBの積集合をとっ
てFCに格納する場合、FA(n)でファジィ集合FAの
第n番目の要素のアドレスを表すことにすると、 演算の種類を無演算に設定 FA(1) -> FC(1) FA(2) -> FC(2) ・ ・ FA(n) -> FC(n) 演算を最小値演算に設定 FB(1) -> FC(1) FB(2) -> FC(2) ・ ・ FB(n) -> FC(n) のようになる。ただし、'X -> Y'はアドレスXの内容
をアドレスYに書き込むことを示す。それぞれのファジ
ィ集合の要素数が多ければ、演算の種類の設定に要する
時間は無視できてメモリ間の転送の量は2*nになる。
これは、図2に示すように、CPUとメモリとの間の転
送をなくし、第1のオペランドを目的アドレスに転送し
(1)、第2のオペランドを目的アドレスに転送する(2)と
いう2回のメモリ間転送の手続きのみで演算を行なうた
めである。このメモリ間の転送はDMAコントローラを
用いることによってCPUに負担を掛けることなく高速
に実行することが可能である。
The flow of processing when a fuzzy operation is performed by a computer constructed using the memory of this embodiment is as follows. When the product set of two fuzzy sets FA and FB is stored in FC, FA (n) represents the address of the nth element of the fuzzy set FA, and the operation type is set to no operation FA (1)-> FC (1) FA (2)-> FC (2) ・ ・ FA (n)-> FC (n) Set the calculation to the minimum value calculation FB (1)-> FC (1) FB ( 2)-> FC (2) ... FB (n)-> FC (n). However, 'X->Y'indicates that the contents of address X are written to address Y. If the number of elements in each fuzzy set is large, the time required to set the type of operation can be ignored and the amount of transfer between memories becomes 2 * n.
This eliminates the transfer between the CPU and memory and transfers the first operand to the destination address, as shown in FIG.
This is because the calculation is performed only by the procedure of (1), which transfers the second operand to the target address, and (2), which is a two-time memory transfer. The transfer between the memories can be executed at high speed without burdening the CPU by using the DMA controller.

【0030】次に、本発明の第2の実施例について示
す。図3は本発明の第2の実施例のメモリのブロック図
である。基本的構成は図1と同様であるので説明を省略
し、以下相違点についてのみ述べる。本実施例において
は、論理演算部14はメモリセルアレイから読み出され
たデータとデータ入出力端子に与えられたデータとの間
で論理演算を行ない、レジスタ13はこの論理演算部1
4からの出力を一時的に保存するのに用いられる。制御
部15も同様のものが設けられているが、動作は、(表
3)に示すようになっている。
Next, a second embodiment of the present invention will be described. FIG. 3 is a block diagram of a memory according to the second embodiment of the present invention. Since the basic structure is the same as that of FIG. 1, the description thereof is omitted, and only the different points will be described below. In the present embodiment, the logical operation unit 14 performs a logical operation between the data read from the memory cell array and the data supplied to the data input / output terminal, and the register 13 is used by the logical operation unit 1.
Used to temporarily store the output from 4. The control unit 15 is also provided with the same one, but the operation is as shown in (Table 3).

【0031】[0031]

【表3】 [Table 3]

【0032】すなわち、書き込み時の動作が3つのステ
ージに分かれているのは同様であるが、アドレス端子2
2にアドレスが与えられ、チップセレクト端子23とラ
イトイネーブル端子24にLが与えられた時、まず第1
のステージが開始し、メモリセルアレイからの読み出し
の動作が行なわれる。入力データコントロール11がイ
ネーブル、出力データコントロール12がディスエーブ
ルになり、センススイッチ5を介してメモリセルアレイ
4からデータが読み出される。第2のステージでは、第
1のステージで読み出されたデータが直ちに論理演算部
14に供され、論理演算が実行され、その論理演算の結
果がレジスタ13にラッチされる。最後に第3のステー
ジで、レジスタに13の内容がメモリセルアレイ4の当
該箇所に書き込まれる.以上に示した動作の結果、第1
の実施例と同様、新たにデータ入出力端子21に与えら
れたデータと既に当該アドレスに格納されていたデータ
との間の論理演算の結果を再び格納するという働きをす
る。
That is, although the operation at the time of writing is divided into three stages, the address terminal 2
When an address is given to 2 and L is given to the chip select terminal 23 and the write enable terminal 24, first the first
Stage is started, and the reading operation from the memory cell array is performed. The input data control 11 is enabled, the output data control 12 is disabled, and data is read from the memory cell array 4 via the sense switch 5. In the second stage, the data read in the first stage is immediately supplied to the logical operation unit 14, the logical operation is executed, and the result of the logical operation is latched in the register 13. Finally, in the third stage, the contents of 13 are written in the register in the relevant part of the memory cell array 4. As a result of the above operation, the first
Similar to the embodiment described above, it functions to store the result of the logical operation between the data newly applied to the data input / output terminal 21 and the data already stored at the address.

【0033】なお、以上に挙げた実施例では、従来のメ
モリのアドレス端子の1つをコントロール端子に替えて
用いるものとしたが、コントロール端子として専用の端
子を設けることも可能である。専用の端子を設けた場合
には、複数のメモリを含むモジュールのレベルで、アド
レス空間の一部を各メモリのコントロール端子に割り振
ることにより、アドレス空間を有効に活用することがで
きる。この構成はメモリをモジュール単位で使用する場
合に有効である。
In the above-mentioned embodiments, one of the address terminals of the conventional memory is used instead of the control terminal, but it is also possible to provide a dedicated terminal as the control terminal. When the dedicated terminal is provided, the address space can be effectively utilized by allocating a part of the address space to the control terminal of each memory at the level of a module including a plurality of memories. This configuration is effective when the memory is used in module units.

【0034】同様に、アドレスのデコードの結果の一つ
をコントロール端子に割り当て、メモリに割り当てられ
たアドレス空間のうちの1つをコントロール端子への入
力に割り当てることも可能である。この構成では、メモ
リに割り当てられたメモリ空間のほとんどを記憶に割り
振ることができるので、メモリ空間の使用効率が良いと
いう特徴がある。しかしながら、コントロール用に割り
振られたアドレスに関しては特定の取り扱いが要求され
るため、ソフトウェア作成上では注意が必要である。
Similarly, it is possible to assign one of the results of the address decoding to the control terminal and assign one of the address spaces assigned to the memory to the input to the control terminal. With this configuration, most of the memory space allocated to the memory can be allocated to the storage, and therefore the memory space is used efficiently. However, special handling is required for the addresses assigned for control, so care must be taken when creating software.

【0035】また、以上に挙げた実施例では、演算の種
類は最大値演算、最小値演算、無演算の3つとしたが、
この組合せは、Max−Min法のファジィ推論を行な
うのに適した組合せであり、異なる推論方法に対して
は、別の組合せを用いるのが有効である。例えば、Ma
x−Product法の推論を用いる場合には、論理演
算部で行なう演算の種類の中に積演算を加えれば良い。
Further, in the above-mentioned embodiments, there are three types of calculation, maximum value calculation, minimum value calculation, and no calculation.
This combination is suitable for performing the fuzzy inference of Max-Min method, and it is effective to use another combination for different inference methods. For example, Ma
When the inference based on the x-Product method is used, the product operation may be added to the types of operations performed by the logical operation unit.

【0036】さらに実施例では本発明のスタティックR
AMへの適用を例として示したが、ダイナミックRAM
など他の構成を持つメモリに対しても適用でき、同様の
効果を持つことは言うまでもない。
Further, in the embodiment, the static R of the present invention is used.
The application to AM is shown as an example, but dynamic RAM
Needless to say, the present invention can be applied to a memory having other configurations and has the same effect.

【0037】[0037]

【発明の効果】以上のように本発明は、計算機の主記憶
に用いるメモリに対して、メモリセルから読み出された
データを一時的に保持するレジスタと、メモリ書き込み
時に、前記レジスタに保存されたデータと新しく書き込
みデータとして与えられたデータとの間でファジィ論理
演算を行なう論理演算部を設けることにより、メモリ転
送の操作によってファジィ演算を行なうことを可能とす
る。このメモリを用いることにより、高速なファジィ集
合演算を簡便な構成で行なうことが可能となる。
As described above, according to the present invention, with respect to a memory used as a main memory of a computer, a register which temporarily holds data read from a memory cell and a register which is saved in the register when writing to the memory are provided. By providing a logic operation unit for performing a fuzzy logic operation between the new data and the data newly given as the write data, the fuzzy operation can be performed by the memory transfer operation. By using this memory, high-speed fuzzy set calculation can be performed with a simple structure.

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

【図1】本発明の第1の実施例のメモリの構成を示すブ
ロック図
FIG. 1 is a block diagram showing a configuration of a memory according to a first embodiment of the present invention.

【図2】同実施例を用いた計算機による演算の流れを示
す図
FIG. 2 is a diagram showing a flow of calculation by a computer using the same embodiment.

【図3】本発明の第2の実施例のメモリの構成を示すブ
ロック図
FIG. 3 is a block diagram showing a configuration of a memory according to a second embodiment of the present invention.

【図4】従来のメモリの構成を示すブロック図FIG. 4 is a block diagram showing a configuration of a conventional memory.

【図5】従来のメモリを用いた計算機による演算の流れ
を示す図
FIG. 5 is a diagram showing a flow of calculation by a computer using a conventional memory.

【図6】計算機におけるファジィ集合の表現法を示す概
念図
FIG. 6 is a conceptual diagram showing a representation method of a fuzzy set in a computer.

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

1 アドレスバッファ 2 カラムデコーダ 3 ロウデコーダ 4 メモリセルアレイ 5 センススイッチ 11 入力データコントロール 12 出力データコントロール 13 レジスタ 14 論理演算部 15 制御部 21 データ入出力端子 22 アドレス端子 23 チップセレクト端子 24 ライトイネーブル端子 25 コントロール端子 1 Address Buffer 2 Column Decoder 3 Row Decoder 4 Memory Cell Array 5 Sense Switch 11 Input Data Control 12 Output Data Control 13 Register 14 Logical Operation Section 15 Control Section 21 Data Input / Output Terminal 22 Address Terminal 23 Chip Select Terminal 24 Write Enable Terminal 25 Control Terminal

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】計算機システムの記憶装置として用いるラ
ンダムアクセスメモリ装置であって、アドレス端子に与
えられたアドレスを展開するアドレスデコーダと、デー
タの保存を行なうメモリセル、データの入出力を行なう
データ入出力端子に加え、メモリセルから読み出された
データを一時的に保存するレジスタと、前記レジスタに
保存されたデータと新しく書き込みデータとしてデータ
入出力端子に与えられたデータとの間で演算を行ないこ
の結果を前記メモリセルに供する論理演算部と、前記論
理演算部の動作を外部からの入力により切替える制御部
とコントロール端子とを設け、メモリへの書き込み時に
はアドレス端子に与えられたアドレスに対応するメモリ
セルの内容を一時的にレジスタに保存し、レジスタの内
容とデータ入出力端子に与えられたデータとの間で論理
演算を行ないこの結果をメモリセルに書き込むように、
またコントロール端子に信号が与えられた時には、前記
制御部の働きにより、演算部に設定された演算の種類を
前記データ入出力端子に与えられたデータによって決ま
る演算に切替えるように構成したことを特徴とするファ
ジィ集合処理用メモリ。
1. A random access memory device used as a storage device of a computer system, comprising: an address decoder for expanding an address given to an address terminal; a memory cell for storing data; and a data input / output for inputting / outputting data. In addition to the output terminal, a register for temporarily storing the data read from the memory cell and an operation is performed between the data stored in the register and the data given to the data input / output terminal as new write data. A logical operation unit that supplies the result to the memory cell, a control unit that switches the operation of the logical operation unit by an external input, and a control terminal are provided, and correspond to the address given to the address terminal when writing to the memory. The contents of the memory cell are temporarily saved in the register, and the contents of the register and data input / output The results to write to the memory cell performs a logical operation between the data given to the child,
Further, when a signal is applied to the control terminal, the operation of the control unit switches the kind of operation set in the operation unit to an operation determined by the data applied to the data input / output terminal. Memory for fuzzy set processing.
【請求項2】計算機システムの記憶装置として用いるラ
ンダムアクセスメモリ装置であって、アドレス端子に与
えられたアドレスを展開するアドレスデコーダと、デー
タの保存を行なうメモリセル、データの入出力を行なう
データ入出力端子に加え、メモリセルから読み出された
データと新しく書き込みデータとしてデータ入出力端子
に与えられたデータとの間で演算を行ないこの結果をレ
ジスタに供する論理演算部と、前記論理演算部の出力を
一時的に保存するレジスタと、前記論理演算部の動作を
外部からの入力により切替える制御部とコントロール端
子とを設け、メモリへの書き込み時にはアドレス端子に
与えられたアドレスに対応するメモリセルの内容とデー
タ入出力端子に与えられたデータとの間で論理演算を行
ない、この結果を一時的にレジスタに保存した後このレ
ジスタの内容をメモリセルに書き込むように、またコン
トロール端子に信号が与えられた時には、前記制御部の
働きにより、演算部に設定された演算の種類を前記デー
タ入出力端子に与えられたデータによって決まる演算に
切替えるように構成したことを特徴とするファジィ集合
処理用メモリ。
2. A random access memory device used as a storage device of a computer system, comprising an address decoder for expanding an address applied to an address terminal, a memory cell for storing data, and a data input / output for inputting / outputting data. In addition to the output terminal, a logical operation unit that performs an operation between the data read from the memory cell and the data newly given to the data input / output terminal as write data, and supplies the result to a register, and the logical operation unit A register for temporarily storing the output, a control unit for switching the operation of the logic operation unit by an input from the outside and a control terminal are provided, and when writing to the memory, the memory cell corresponding to the address given to the address terminal is A logical operation is performed between the contents and the data given to the data input / output terminal, and the result is When the signal is given to the control terminal after the contents of this register are temporarily stored in the register, or when a signal is given to the control terminal, the operation of the control section causes the operation type set in the operation section to be changed to the data. A fuzzy set processing memory, characterized in that it is configured to switch to an operation determined by data given to an input / output terminal.
JP4168796A 1992-06-26 1992-06-26 Memory for fuzzy set processing Pending JPH0612258A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP4168796A JPH0612258A (en) 1992-06-26 1992-06-26 Memory for fuzzy set processing
US08/080,179 US5430828A (en) 1992-06-26 1993-06-21 Arithmetic and logic unit, storage unit and computer system for fuzzy set processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4168796A JPH0612258A (en) 1992-06-26 1992-06-26 Memory for fuzzy set processing

Publications (1)

Publication Number Publication Date
JPH0612258A true JPH0612258A (en) 1994-01-21

Family

ID=15874638

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4168796A Pending JPH0612258A (en) 1992-06-26 1992-06-26 Memory for fuzzy set processing

Country Status (1)

Country Link
JP (1) JPH0612258A (en)

Similar Documents

Publication Publication Date Title
KR100287355B1 (en) Smart video memory for processing graphics / images and its processing method
US5455955A (en) Data processing system with device for arranging instructions
EP0341899A1 (en) Content addressable memory array
JPH0973793A (en) Associative storage
US4460972A (en) Single chip microcomputer selectively operable in response to instructions stored on the computer chip or in response to instructions stored external to the chip
JP2001504959A (en) 8-bit microcontroller with RISC architecture
FI91107C (en) The data processing unit
US5542079A (en) Data driven processor for reading data from storage to apply prescribed operation in response to operation updating instruction and updating the contents of the storage
JPH0612258A (en) Memory for fuzzy set processing
EP0020972A1 (en) Program controlled microprocessing apparatus
US5430828A (en) Arithmetic and logic unit, storage unit and computer system for fuzzy set processing
JP2918570B2 (en) Central processing unit
US6772271B2 (en) Reduction of bank switching instructions in main memory of data processing apparatus having main memory and plural memory
JPH0795269B2 (en) Instruction code decoding device
JPS6148174B2 (en)
JP3597548B2 (en) Digital signal processor
KR100236530B1 (en) Address generating circuit of a digital signal processor
JP3429880B2 (en) Memory device and memory access method
JP3345050B2 (en) Two-dimensional array type memory system
JP2590704B2 (en) Parallel processor LSI
JP2798109B2 (en) Arithmetic device, storage device, and computer system for fuzzy set processing
JPS63159966A (en) Single-chip microcomputer
JPS59106047A (en) Microcomputer
JPS6168636A (en) Data processor
JPS63241647A (en) Microprocessor

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A977 Report on retrieval

Effective date: 20050428

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050510

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050523

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080610

Year of fee payment: 3

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090610

Year of fee payment: 4

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090610

Year of fee payment: 4

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090610

Year of fee payment: 4

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090610

Year of fee payment: 4

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 4

Free format text: PAYMENT UNTIL: 20090610

R370 Written measure of declining of transfer procedure

Free format text: JAPANESE INTERMEDIATE CODE: R370

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090610

Year of fee payment: 4

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees