JPH02230463A - Memory searching circuit - Google Patents

Memory searching circuit

Info

Publication number
JPH02230463A
JPH02230463A JP1051344A JP5134489A JPH02230463A JP H02230463 A JPH02230463 A JP H02230463A JP 1051344 A JP1051344 A JP 1051344A JP 5134489 A JP5134489 A JP 5134489A JP H02230463 A JPH02230463 A JP H02230463A
Authority
JP
Japan
Prior art keywords
data
memory
counter
cpu
address
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
JP1051344A
Other languages
Japanese (ja)
Inventor
Kazuhiro Kusuda
和弘 楠田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP1051344A priority Critical patent/JPH02230463A/en
Publication of JPH02230463A publication Critical patent/JPH02230463A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To retrieve data at a high speed by comparing the output data on a memory obtained by inputting the output of a counter into a memory as an address and then into a reading I/O port of a CPU with the writing I/O data of the CPU and using this result as the counter control signal. CONSTITUTION:A memory 1 is prepared together with a CPU 6, a counter 4, and a comparator 2. The counter 4 inputs the addresses which are successively increased to the memory 1 and at the same time gives the set data to a reading I/O port of the CPU 6. The comparator 2 compares the data read out of an address of the memory 1 given from the counter 4 with the data received from the CPU 6 via a writing I/O port. Then the value of the counter 4 is increased until the coincidence is obtained between both data. Thus the data retrieving time is shortened.

Description

【発明の詳細な説明】 (厘業上の利用分野) 本発明はブロセサシステムの改良に関し、特にIj P
 Uによりメモリ上のデータを検索するシステムに関す
る。
DETAILED DESCRIPTION OF THE INVENTION (Field of industrial application) The present invention relates to an improvement in a processor system, and in particular to an Ij P
This invention relates to a system for searching data on memory using U.

(従来の技術) 従来、C l’ Uがメモリ上のデータを検累丁る場合
には、プログラム上でメモリアドレスを増力ロさせなが
ら、その都度、メモリデータ全読出して条件を比較して
いた。
(Prior art) Conventionally, when C1'U checked the data on the memory, it read all the memory data each time and compared the conditions while increasing the memory address on the program. .

(発明が解決しようと″1−る恕題) 上述した従来のデータ検索方式では、プログラム上でメ
モリアドレスの設定、ならびにデータの比V.を行うた
め、処理時間が非常に長くなると云う欠点がある。
(Problem that the invention seeks to solve) The conventional data search method described above has the disadvantage that the processing time is extremely long because the memory address setting and data ratio V. are performed on the program. be.

本発明の目的は、カウンタの出力全メモリにアドレスど
して入力するとともにO P TJの読出しI/Oポー
トにも入力し、得られたメモリの出力データとC! P
 Uの簀込みI/Oデータとを比較し、七の結果全力ウ
ンタの制御イぎ号と丁ることにより上記欠点全除去し、
処理時間全短縮できるように構成したメモリサーチ回路
全提供丁ることにある。
The purpose of the present invention is to input the output of the counter as an address to all the memories and also input it to the read I/O port of the OPTJ, and to combine the output data of the memory and the C! P
Compare the I/O data of U and compare the result of step 7 with the control key number of the full-power counter to eliminate all the above defects,
The purpose is to provide a complete memory search circuit configured to reduce processing time.

(課題を解決でるだめの手段) 本発明によるメモリサーチ回路はメモリと、C P U
と.カウンタと、比較器とを具備して構成したものであ
る。
(Means for Solving the Problem) The memory search circuit according to the present invention has a memory and a CPU.
and. It is configured with a counter and a comparator.

メモリは複数のアドレスを有し、データを格納丁るため
のものである。
Memory has multiple addresses and is used to store data.

CPUは、メモIJ y,サーチするためのものである
The CPU is for searching the memo IJy.

カウンタはメモリに対して順次増分されるアドレス?人
力丁るとともに、O P Uの読出しI/Oボートに設
定データ全与えるためのものである。
Is the counter an address that is sequentially incremented into memory? It is used to input all the setting data to the read I/O boat of the OPU as well as to manually edit the data.

比較器は、メモリのカウンタにより与えられたアドレス
より読出されたデータと、CPUから書込みI/Oボー
ト全弁して与えられたデータとを比較して、両データが
一致するまでカウンタの値を増分させるためのものであ
る。
The comparator compares the data read from the address given by the memory counter with the data given from the CPU by opening all write I/O ports, and increases the counter value until both data match. It is for incrementing.

(実 施例) 次に、本発明について図面を参照して説明丁る。(Example) Next, the present invention will be explained with reference to the drawings.

第1図は、本発明によるメモリサーチ回路の一実施例を
示1−ブロック図である。
FIG. 1 is a block diagram showing one embodiment of a memory search circuit according to the present invention.

第1図において、1はメモリ、2は比較器、3は書込み
J/Oボート、4ぱカウンタ、5は読出しI/Oポート
、6はCPUである。また、7〜14はそれぞれ信号線
である。
In FIG. 1, 1 is a memory, 2 is a comparator, 3 is a write J/O port, 4 is a counter, 5 is a read I/O port, and 6 is a CPU. Further, 7 to 14 are signal lines, respectively.

メモリ1はアドレスO O 0 0−FFI;”Fを有
し、256Kの答量を有丁る。
Memory 1 has the address OO 0 0-FFI;"F and has an answer size of 256K.

信号線7はメモリ1の出力データ(8ビット)全乗せ、
信号線8ぱ書込み工/0ポート3によってラッチされた
データ(8ビット)を乗せる。
Signal line 7 carries all the output data (8 bits) of memory 1,
Data (8 bits) latched by signal line 8/0 port 3 is loaded.

信号線9はO P U 6により書込まれる書込みデー
タを乗せ、信月線10は信号線7上のデータと信号線8
上のデータとが一致したときにオンとなるCPU6への
割込み信号を乗せる。信号線11は、書込みI/Oポー
ト3にデータを書込むためのストローブ信号を乗せる。
The signal line 9 carries the write data written by the OPU 6, and the Shingetsu line 10 carries the data on the signal line 7 and the signal line 8.
An interrupt signal to the CPU 6 that is turned on when the above data matches is placed. The signal line 11 carries a strobe signal for writing data to the write I/O port 3.

信号線11上のストローブ信号は,カウンタ4の初期化
信号でもある。信号線l2は、メモリ1のアドレスバス
訃よび絖出しJ/0ボート5のデータバスとして作用し
、カウンタ4からメモリ1に与えられるアドレスおよび
O P U aに対する設定データ?乗せる。信号線1
3は、抗出し■/0ボート5からデータ全読出てときに
使用されるイネーブル信号を乗せる。信号線14はCP
U6のデータバスとして作用し、信号線l3上のイネー
ブル信号によって信号線12からO PU6に入力され
るデータを乗せる。
The strobe signal on the signal line 11 is also an initialization signal for the counter 4. The signal line 12 acts as an address bus for the memory 1 and a data bus for the starting J/0 board 5, and carries the address given to the memory 1 from the counter 4 and the setting data for OPU a. I'll ride it. Signal line 1
3 carries an enable signal used when all data is read from the output port 5/0. Signal line 14 is CP
It acts as a data bus for U6, and carries data input from signal line 12 to OPU6 by an enable signal on signal line l3.

O P U 6がメモリ1上のデータ” A A ( 
16)をサーチするための手順を以下に説明丁る。
O P U 6 is the data on memory 1” A A (
16) The procedure for searching will be explained below.

CPU6より書込みI/Oボート3にデータ”AA″が
書込1れると、比較器2の入力信号線8には”AA”が
セットされ、カウンタ4の出力信号線12は” o o
 o o ”にクリアされる。
When data "AA" is written to the write I/O boat 3 by the CPU 6, "AA" is set to the input signal line 8 of the comparator 2, and the output signal line 12 of the counter 4 is set to "o o".
It is cleared to "o o".

メモリ1では、” o o o o ”番地のデータが
比較器20入力信号称7上に出力される。データが″A
A”に等しくなければ、比較器2から信号線10上に出
力された比較結果はオフになる。
In the memory 1, the data at address "o o o o" is output on the comparator 20 input signal 7. Data is “A”
A'', the comparison result output from comparator 2 on signal line 10 is turned off.

信号線10上の比戟結果がオンでなければ、カウンタ4
ては出力値?増分して” O O 0 1 ”をメモリ
1のアドレスとする。
If the comparison result on signal line 10 is not on, counter 4
Is it the output value? Increment and make "O O 0 1" the address of memory 1.

以下、同様にしてO P U 6の設定データ”AA 
”とメモリlの出力データとが一致1−るまで、メモリ
アドレスが増分され、信号線10上の比較結果がオンに
なるとメモリ1のアドレスの増分が止まる。
Hereinafter, in the same way, the setting data of OPU 6 "AA"
The memory address is incremented until ``1-'' and the output data of memory 1 match, and when the comparison result on signal line 10 turns on, the increment of the address of memory 1 stops.

このとき、(! P U 6に対丁る割込みがオンとな
るので、データ”AA”が検索されたことを知る。この
ときに読出しI/Oボート5の出力k 読出てと、デー
タ”AA”が格納されたメモリアドレスヲ得ることがで
きる。
At this time, the interrupt for (! ” can be obtained from the memory address where it is stored.

(発明の効果) 以上;況明したように本発明は、カウンタの出力全メモ
リにアドレスとしで入力するとともに(E }’ Uの
絖出しI/Oボートにも入力し、得られたメモリの出力
データとO P Uの書込みI/Oデータとを比較し、
その結果をカウンタの制御信号と丁ることにより、デー
タの検索全高速化できると云う効果がある。
(Effects of the Invention) As explained above, the present invention inputs the output of the counter as an address to all memories and also inputs it to the start I/O boat of (E }' U, and stores the resulting memory. Compare the output data and the OPU write I/O data,
By combining the result with the counter control signal, there is an effect that data retrieval speed can be increased.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、本発明によるメモリザーチ回路の一実施例を
示すブロック図である。 ■・・・メモリ    2・・・比較器3・・・書込み
■/0ボート  4・・・カウンタ5・・・読出しI/
Oボート  6・・・C’.PU7〜14・・・信号線
FIG. 1 is a block diagram showing one embodiment of a memory search circuit according to the present invention. ■...Memory 2...Comparator 3...Write ■/0 boat 4...Counter 5...Read I/
O boat 6...C'. PU7~14...Signal line

Claims (1)

【特許請求の範囲】[Claims] 複数のアドレスを有してデータを格納するためのメモリ
と、前記メモリをサーチするためのCPUと、前記メモ
リに対して順次増分されるアドレスを入力するとともに
前記CPUの読出しI/Oポートに設定データを与える
ためのカウンタと、前記メモリの前記カウンタにより与
えられたアドレスより続出されたデータと前記CPUか
ら書込みI/Oポートを介して与えられたデータとを比
較して前記両データが一致するまで前記カウンタの値を
増分させるための比較器とを具備して構成したことを特
徴とするメモリサーチ回路。
A memory having a plurality of addresses for storing data, a CPU for searching the memory, and inputting sequentially incremented addresses to the memory and setting them to read I/O ports of the CPU. A counter for giving data compares the data successively read from the address given by the counter of the memory with the data given from the CPU via the write I/O port, and the two data match. A memory search circuit comprising: a comparator for incrementing the value of the counter up to .
JP1051344A 1989-03-03 1989-03-03 Memory searching circuit Pending JPH02230463A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1051344A JPH02230463A (en) 1989-03-03 1989-03-03 Memory searching circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1051344A JPH02230463A (en) 1989-03-03 1989-03-03 Memory searching circuit

Publications (1)

Publication Number Publication Date
JPH02230463A true JPH02230463A (en) 1990-09-12

Family

ID=12884315

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1051344A Pending JPH02230463A (en) 1989-03-03 1989-03-03 Memory searching circuit

Country Status (1)

Country Link
JP (1) JPH02230463A (en)

Similar Documents

Publication Publication Date Title
JPH0245277B2 (en)
JPS635839B2 (en)
JPS62180596A (en) Memory circuit allowed to address pseudo contents
JPS5995660A (en) Data processor
JPH02230463A (en) Memory searching circuit
WO1991007754A1 (en) Read-while-write-memory
JP3019627B2 (en) Data retrieval device
JPS59197946A (en) Memory device
JP3222647B2 (en) Automatic memory bank switching system
JPS6214919B2 (en)
JPH04298882A (en) Dual port memory
JPS59116992A (en) Associative memory
JPH06103162A (en) Ram address controller
JPS60211541A (en) Data retireval circuit
JPS58105487A (en) Memory circuit
JPS622317A (en) Multilevel comparison and coincidence detecting circuit
JPH0683698A (en) Device for method for recognizing main memory capacity
JPS60211540A (en) Data retrieval circuit
JPS6145485A (en) Magnetic bubble memory control device
JPH01255924A (en) Directory memory access control device
JPS59198585A (en) Multiaccess storage device
JPH09305476A (en) Data processor
JPS60147838A (en) Data retrieving device
JPH05189386A (en) Input and output controller
JPH04102145A (en) Data processor