JPH0155493B2 - - Google Patents
Info
- Publication number
- JPH0155493B2 JPH0155493B2 JP56126609A JP12660981A JPH0155493B2 JP H0155493 B2 JPH0155493 B2 JP H0155493B2 JP 56126609 A JP56126609 A JP 56126609A JP 12660981 A JP12660981 A JP 12660981A JP H0155493 B2 JPH0155493 B2 JP H0155493B2
- Authority
- JP
- Japan
- Prior art keywords
- sorting
- memory
- address
- data
- read
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/22—Arrangements for sorting or merging computer data on continuous record carriers, e.g. tape, drum, disc
- G06F7/24—Sorting, i.e. extracting data from one or more carriers, rearranging the data in numerical or other ordered sequence, and rerecording the sorted data on the original carrier or on a different carrier or set of carriers sorting methods in general
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
【発明の詳細な説明】
本発明はメモリに記憶されたデータを特定の順
序になるように入れ替えるメモリソーテイング回
路に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a memory sorting circuit that rearranges data stored in a memory in a specific order.
従来メモリソーテイングのほとんどはソフトウ
エアによりある特定の番地と別の番地を順次比較
し、入れ替えるものであつた。しかしこの手法は
膨大なデータ量をあつかう場合は演算時間が極め
て多くなり、個々の演算は高速で行なわれても演
算回数が多いソーテイングについては多くの処理
時間を要していた。 In the past, most memory sorting methods involved sequentially comparing a specific address with another address and exchanging them using software. However, when dealing with a huge amount of data, this method requires an extremely long calculation time, and even if individual calculations are performed at high speed, sorting, which involves a large number of calculations, requires a lot of processing time.
そこで本発明はメモリソーテイングにおいて、
処理装置にできるだけ負荷をかけずに短時間でソ
ーテイングを行なうためのメモリソーテイング回
路を提供することを目的とする。またメモリソー
テイングといつても多種多様であるが、本発明は
特にあるメモリ領域のデータを大小順に入れ替え
るのに好適なメモリソーテイング回路を提供する
ものである。 Therefore, in memory sorting, the present invention
It is an object of the present invention to provide a memory sorting circuit for performing sorting in a short time without imposing as much load on a processing device as possible. Furthermore, although there are many types of memory sorting, the present invention provides a memory sorting circuit particularly suitable for rearranging data in a certain memory area in order of magnitude.
この目的を達成するため本発明は、メモリのあ
る領域(ソーテイング領域)のデータを大小順に
入れ替えるメモリソーテイング回路において、
ソーテイング領域の読出しアドレスをソーテイ
ング領域の先頭から順に指定するメモリ読出しア
ドレス指定回路と、
ソーテイングされたデータの書き込みアドレス
を順に指定するメモリ書込みアドレス指定回路
と、
ソーテイングワーキングメモリと、
このソーテイングワーキングメモリの読出しア
ドレスを順に指定するソーテイングカウンタと、
前記メモリのデータ線と前記ソーテイングワー
キングメモリのアドレス線と前記ソーテイングカ
ウンタの出力線との間に設けられ、ライトモード
信号により前記メモリのデータ線と前記ソーテイ
ングワーキングメモリのアドレス線とを接続し、
リードモード信号により前記ソーテイングカウン
タの出力線と前記ソーテイングワーキングメモリ
のアドレス線とを接続し、前記ソーテイングワー
キングメモリから読み出された特定データにより
前記ソーテイングカウンタの出力線と前記メモリ
のデータ線とを接続するデータ送出切替回路と、
これらを制御する主制御回路
とを備え、前記主制御回路が、
外部からのソーテイング開始命令により前記メ
モリ読出しアドレス指定回路にアドレスの設定を
指示し、前記メモリに読出しを指示し、前記デー
タ送出切替回路および前記ソーテイングワーキン
グメモリにライトモード信号を送出して前記メモ
リから読み出したデータをアドレスとして前記ソ
ーテイングワーキングメモリに前記特定データを
書込む機能と、
この特定データの書込み後に前記メモリ書込み
アドレス指定回路にアドレスの設定を指示し、前
記データ送出切替回路および前記ソーテイングワ
ーキングメモリにリードモード信号を送出して前
記ソーテイングカウンタの出力をアドレスとして
前記ソーテイングワーキングメモリからデータを
読出す機能と、
前記ソーテイングワーキングメモリからのデー
タ読出し中に前記ソーテイングワーキングメモリ
から前記特定データ以外のデータを読み出した場
合は前記ソーテイングカウンタにカウントアツプ
(またはカウントダウン)を指示し、一方特定デ
ータを読み出した場合は前記メモリに書込みを指
示した後前記メモリ書込みアドレス指定回路に次
のアドレスの設定を指示し、前記ソーテイングカ
ウンタにカウントアツプ(またはカウントダウ
ン)を指示して前記特定データが読み出されたソ
ーテイグワーキングメモリのアドレスを順にメモ
リに書き込む機能とを設けたものである。 To achieve this object, the present invention provides a memory read address designation circuit that specifies read addresses of the sorting area in order from the beginning of the sorting area in a memory sorting circuit that rearranges data in a certain area (sorting area) of a memory in order of size. , a memory write addressing circuit that sequentially specifies write addresses of sorted data, a sorting working memory, a sorting counter that sequentially specifies read addresses of the sorting working memory, and a data line of the memory and the sorting working memory. is provided between the address line of the sorting working memory and the output line of the sorting counter, and connects the data line of the memory and the address line of the sorting working memory by a write mode signal;
A read mode signal connects the output line of the sorting counter and the address line of the sorting working memory, and specific data read from the sorting working memory connects the output line of the sorting counter and the data of the memory. and a main control circuit that controls these, and the main control circuit instructs the memory read address designation circuit to set an address in response to an external sorting start command, and a function of instructing a memory to read, sending a write mode signal to the data transmission switching circuit and the sorting working memory, and writing the specific data to the sorting working memory using the data read from the memory as an address; After writing this specific data, the memory write address designation circuit is instructed to set an address, and a read mode signal is sent to the data output switching circuit and the sorting working memory, and the output of the sorting counter is used as the address for the sorting. a function of reading data from the sorting working memory; and when data other than the specific data is read from the sorting working memory while reading data from the sorting working memory, the sorting counter counts up (or counts down). On the other hand, if specific data is read, it instructs writing to the memory, instructs the memory write address designation circuit to set the next address, and instructs the sorting counter to count up (or count down). and a function of sequentially writing into memory the addresses of the sorting working memory from which the specific data has been read.
以下図面に従つて本発明の実施例を詳細に説明
する。 Embodiments of the present invention will be described in detail below with reference to the drawings.
第1図は本発明を説明するための概略構成図
で、中央処理装置(CPU)1及びメモリ2に対
して以下に述べる構成のメモリソーテイング回路
としてのソーテイング制御部3がプログラムバス
4、DMAバス(ダイレクト・メモリ・アクセス
バス)5を介して接続する。 FIG. 1 is a schematic configuration diagram for explaining the present invention. In FIG. It is connected via a bus (direct memory access bus) 5.
ソーテイング制御部3の構成を第2図に示す。
6はメモリソーテイングの先頭アドレスを記憶す
る先頭アドレスレジスタ、7はメモリソーテイン
グの最終アドレスを記憶する最終アドレスレジス
タ、8はメモリ2の読み出しあるいは書き込みを
行なうアドレスを指定するメモリアドレスカウン
タ、9は最終アドレスレジスタ7の内容とメモリ
アドレスカウンタ8の内容とが一致すると一致信
号S1を送出するコインシイデンス回路であり、こ
れらの先頭アドレスレジスタ6、最終アドレスレ
ジスタ7、メモリアドレスカウンタ8、コインシ
イデンス回路9によりソーテイング領域の読出し
アドレスをソーテイング領域の先頭から順に指定
するメモリ読出しアドレス指定回路とソーテイン
グされたデータの書込みアドレスを順に指定する
メモリ書込みアドレス指定回路が構成されてい
る。10はメモリ2のデータの入れ替えに使用さ
れるソーテイングワーキングメモリ、11は前記
ソーテイング・ワーキング・メモリ10の読出し
アドレスを順次指定するソーテイングカウンタ、
12はメモリ2のデータ線14とソーテイングワ
ーキングメモリ10のアドレス線13とソーテイ
ングカウンタ11の出力線との間に設けられ、ラ
イトモード信号によりデータ線14とアドレス線
13とを接続し、リードモード信号によりソーテ
イングカウンタ11の出力線とアドレス線13と
を接続し、ソーテイングワーキングメモリ10の
読み出しデータが特定データであるときソーテイ
ングカウンタ11の出力線とデータ線14とを接
続するデータ送出切替回路、15は上記レジス
タ、カウンタ類及びデータ送出切替回路12等の
動作を制御する主制御回路、16はメモリ2に対
するメモリ制御回路、17はメモリ2のアドレス
線である。 The configuration of the sorting control section 3 is shown in FIG.
6 is a start address register that stores the start address of memory sorting; 7 is a final address register that stores the end address of memory sort; 8 is a memory address counter that specifies the address for reading or writing from memory 2; 9 is a memory address register that stores the start address of memory sorting; This is a coincidence circuit that sends out a match signal S1 when the contents of the final address register 7 and the contents of the memory address counter 8 match, and these The dense circuit 9 constitutes a memory read address designation circuit that sequentially designates the read address of the sorting area from the beginning of the sorting area, and a memory write address designation circuit that sequentially designates the write address of the sorted data. 10 is a sorting working memory used to replace data in the memory 2; 11 is a sorting counter that sequentially specifies read addresses of the sorting working memory 10;
Reference numeral 12 is provided between the data line 14 of the memory 2, the address line 13 of the sorting working memory 10, and the output line of the sorting counter 11, and connects the data line 14 and the address line 13 by a write mode signal to perform a read operation. Data transmission that connects the output line of the sorting counter 11 and the address line 13 according to the mode signal, and connects the output line of the sorting counter 11 and the data line 14 when the read data of the sorting working memory 10 is specific data. 15 is a main control circuit for controlling the operations of the registers, counters, data transmission switching circuit 12, etc.; 16 is a memory control circuit for the memory 2; and 17 is an address line for the memory 2.
次に上記構成のソーテイング制御部の作用につ
いて説明する。 Next, the operation of the sorting control section having the above configuration will be explained.
まず中央処理装置1からメモリ2のソーテイン
グ先頭アドレス情報とソーテイング最終アドレス
情報を受け取り、主制御回路15から送出するセ
ツト信号S2により各々先頭アドレスレジスタ6、
最終アドレスレジスタ7にセツトする。次に中央
処理装置1からソーテイング開始命令を受ける
と、主制御回路15はカウンタプリセツト信号S3
を送出し、メモリアドレスカウンタ8の内容をソ
ーテイング先頭アドレスにプリセツトすると共に
メモリ制御回路16にトリガをかけ、メモリ2の
アクセスを可能とする。 First, the sorting start address information and the sorting end address information of the memory 2 are received from the central processing unit 1, and by the set signal S2 sent from the main control circuit 15, the start address register 6,
Set in final address register 7. Next, upon receiving a sorting start command from the central processing unit 1, the main control circuit 15 outputs a counter preset signal S3.
, and presets the contents of the memory address counter 8 to the sorting start address, and also triggers the memory control circuit 16 to enable access to the memory 2.
メモリ2のソーテイング先頭アドレスから読み
出されたデータはデータ線14を介してデータ送
出切替回路12に与えられる。データ送出切替回
路12は主制御回路15から送出されるライトモ
ード信号S4によりデータ線14からのデータをア
ドレス線13に送出するように切り替わつてお
り、メモリ2の読み出しデータがソーテイングワ
ーキングメモリ10にアドレスデータとして与え
られる。前記ライトモード信号S4はまたソーテイ
ングワーキングメモリ10に供給されており、ソ
ーテイングワーキングメモリ10はこの信号によ
りメモリ2の読み出しデータの内容をアドレスと
して“1”を書き込む。 The data read from the sorting start address of the memory 2 is applied to the data output switching circuit 12 via the data line 14. The data transmission switching circuit 12 is switched to transmit the data from the data line 14 to the address line 13 by the write mode signal S4 transmitted from the main control circuit 15, and the data read from the memory 2 is transferred to the sorting working memory. 10 as address data. The write mode signal S4 is also supplied to the sorting working memory 10, and the sorting working memory 10 uses this signal to write "1" using the contents of the read data of the memory 2 as an address.
一例としてソーテイング先頭アドレスをM番
地、ソーテイング最終アドレスをN番地とする
と、メモリアドレスカウンタ8はまずMにセツト
され、メモリ2からM番地のデータが読み出され
る。このデータを“F5DE”とすると、ソーテイ
ングワーキングメモリ10の“F5DE”番地に
“1”が書き込まれる。次に主制御回路15はメ
モリアドレスカウンタ8にカウントアツプ信号S5
を送出し、メモリ2の読み出しアドレスを(M+
1)番地にすると共に再びメモリ制御回路16に
トリガをかけ、(M+1)番地のデータを読み出
してくる。この読み出しデータを“421F”とす
ると、上記と同様にソーテイングワーキングメモ
リ10の“421F”番地に“1”が書き込まれる。
以下この動作をソーテイング最終アドレスN番地
が読み出されるまで繰り返す。メモリ2の1ワー
ドが16ビツトとするとソーテイングワーキングメ
モリ10は64kビツトのメモリが必要である。 As an example, if the sorting start address is the M address and the sorting final address is the N address, the memory address counter 8 is first set to M, and the data at the M address is read from the memory 2. If this data is "F5DE", "1" is written to the "F5DE" address of the sorting working memory 10. Next, the main control circuit 15 sends a count-up signal S5 to the memory address counter 8.
is sent, and the read address of memory 2 is set to (M+
1) At the same time, the memory control circuit 16 is triggered again to read the data at address (M+1). If this read data is "421F", "1" is written to the address "421F" of the sorting working memory 10 in the same way as above.
Thereafter, this operation is repeated until the final sorting address N is read out. Assuming that one word of the memory 2 is 16 bits, the sorting working memory 10 requires 64 kbits of memory.
メモリアドレスカウンタ8の内容がNになり、
メモリ2の読み出しアドレスがソーテイング最終
番地と一致すると、コインシイデンス回路9から
主制御回路15に一致信号S1が送出される。主制
御回路15はメモリ2のM番地からN番地までの
データが全て検索されたことになるのでデータの
検索段階を終了し、次の段階にうつる。 The contents of memory address counter 8 become N,
When the read address of the memory 2 matches the final sorting address, a match signal S1 is sent from the coincidence circuit 9 to the main control circuit 15. The main control circuit 15 ends the data retrieval stage and moves on to the next stage since all the data from address M to address N of the memory 2 has been retrieved.
まず主制御回路15からプリセツト信号S3が送
出され、メモリアドレスカウンタ8を再びMにプ
リセツトする。また主制御回路15から送出され
ていたライトモード信号S4はこの段階ではなくな
り、ソーテイングワーキングメモリ10はリード
モードになつていると共にデータ送出切替回路1
2はソーテイングカウンタ11の内容をアドレス
線13に送出するように切り替わつている。この
ためソーテイングワーキングメモリ10からソー
テイングカウンタ11の内容で示されるアドレス
のデータが読み出される。この読み出しデータ信
号S6は主制御回路15とデータ送出切替回路12
に与えられるようになつている。主制御回路15
はソーテイングカウンタ11にカウントアツプ信
号S7を送出し、ソーテイングワーキングメモリ1
0から“1”が読み出されるまでソーテイングカ
ウンタ11を高速でカウントアツプする。メモリ
2のM番地からN番地までのデータで最小の値を
例えば“00FE”とすると、ソーテイングカウン
タ11の内容が“00FE”になつた時ソーテイン
グワーキングメモリ10から“1”が読み出され
る。主制御回路15はソーテイングワーキングメ
モリ10から“1”が読み出されると、カウント
アツプ信号S7の送出を止め、ソーテイングカウン
タ11を“00FE”のままストツプさせると共に
メモリ制御回路16にトリガをかける。一方デー
タ送出切替回路12はソーテイングワーキングメ
モリ10の読み出しデータが“1”であることに
よつてソーテイングカウンタ11の内容をメモリ
2のデータ線14に送出するよう切り替わる。 First, a preset signal S3 is sent from the main control circuit 15, and the memory address counter 8 is preset to M again. Also, the write mode signal S4 sent from the main control circuit 15 disappears at this stage, the sorting working memory 10 is in the read mode, and the data sending switching circuit 1
2 is switched so that the contents of the sorting counter 11 are sent to the address line 13. Therefore, data at the address indicated by the contents of the sorting counter 11 is read from the sorting working memory 10. This read data signal S6 is transmitted to the main control circuit 15 and the data transmission switching circuit 12.
It is beginning to be given to Main control circuit 15
sends a count-up signal S7 to the sorting counter 11, and the sorting working memory 1
The sorting counter 11 is counted up at high speed until "1" is read from 0. If the minimum value of the data from address M to address N in memory 2 is, for example, "00FE," then "1" is read from sorting working memory 10 when the content of sorting counter 11 reaches "00FE." When "1" is read out from the sorting working memory 10, the main control circuit 15 stops sending out the count-up signal S7 , stops the sorting counter 11 at "00FE", and triggers the memory control circuit 16. . On the other hand, the data output switching circuit 12 is switched to output the contents of the sorting counter 11 to the data line 14 of the memory 2 when the read data of the sorting working memory 10 is "1".
メモリ2はアドレス線17を介して与えられる
M番地にデータ線14を介して与えられるソーテ
イングカウンタ11の内容“00FE”を書き込む。
メモリ2の書き込みが終了すると、主制御回路1
5はカウントアツプ信号S5を送出してメモリアド
レスカウンタ8を(M+1)にすると共にソーテ
イングカウンタ11に再びカウントアツプ信号S7
を送出し続ける。そしてソーテイングワーキング
メモリ10からまた“1”が読み出されると、そ
のときのソーテイングカウンタ11の内容をメモ
リ2の(M+1)番地に書き込む。以下同様の動
作を繰り返し、メモリアドレスカウンタ8がNに
なつてコインシイデンス回路9から一致信号S1が
出ると動作を終了する。 The memory 2 writes the content "00FE" of the sorting counter 11 applied via the data line 14 to the M address applied via the address line 17.
When writing to memory 2 is completed, main control circuit 1
5 sends a count-up signal S5 to set the memory address counter 8 to (M+1) and also sends a count-up signal S7 to the sorting counter 11 again.
continue to send out. When "1" is read again from the sorting working memory 10, the contents of the sorting counter 11 at that time are written to address (M+1) of the memory 2. Thereafter, similar operations are repeated, and when the memory address counter 8 reaches N and the coincidence signal S1 is output from the coincidence circuit 9, the operation ends.
このようにしてソーテイングワーキングメモリ
10から“1”が読み出されるごとにそのときの
ソーテイングカウンタ11の内容をメモリ2に書
き込むと、メモリ2のM番地からN番地のデータ
は小さい順に入れ替わる。 In this way, whenever "1" is read from the sorting working memory 10, the contents of the sorting counter 11 at that time are written into the memory 2, and the data from addresses M to N in the memory 2 are replaced in ascending order.
上記ソーテイング制御方式の作用をまとめて図
で示すと第3図の様になる。メモリ2のソーテイ
ング領域M番地からN番地までのデータを順に読
み出し、このデータをアドレスとしてソーテイン
グワーキングメモリ10に“1”を書き込む。次
にソーテイングワーキングメモリ10を0番地か
ら順にに高速で読み出し、“1”が読み出される
ごとにそのときのソーテイングワーキングメモリ
10のアドレスをメモリ2のM番地から順に書き
込む。2′はソーテイング終了後のメモリ2の一
部を示す。 The effects of the sorting control method described above are summarized in a diagram as shown in FIG. 3. Data from addresses M to N in the sorting area of the memory 2 is read out in order, and "1" is written into the sorting working memory 10 using this data as an address. Next, the sorting working memory 10 is sequentially read from address 0 at high speed, and each time a "1" is read, the address of the sorting working memory 10 at that time is written sequentially from address M of the memory 2. 2' indicates a part of the memory 2 after sorting is completed.
メモリ2のデータを上記とは逆に大きい順に入
れ替える場合には、メモリ2のソーテイング領域
のデータを順に読み出し、上記の如くこのデータ
をソーテイングワーキングメモリ10のアドレス
として“1”を書き込んだ後ソーテイングカウン
タ11を“FFFF”にセツトし、これを上記とは
逆にカウントダウンして“1”が読み出されるソ
ーテイングワーキングメモリ10のアドレスをメ
モリ2に順に書き込むことによつて達成できる。
またソーテイング領域内に同一のデータが重複し
てある場合は、ソーテイングカウンタ11がキヤ
リイ信号(又はボロー信号)の送出をもつてソー
テイングの終了とする。 When replacing the data in the memory 2 in ascending order, contrary to the above, read the data in the sorting area of the memory 2 in order, write "1" to this data as the address of the sorting working memory 10 as described above, and then start sorting. This can be achieved by setting the sorting counter 11 to "FFFF", counting down in the opposite manner to the above, and sequentially writing into the memory 2 the addresses of the sorting working memory 10 from which "1" is read.
If the same data is duplicated within the sorting area, sorting ends when the sorting counter 11 sends out a carry signal (or borrow signal).
以上詳細に説明したように本発明によれば、処
理装置は単にソーテイング領域を指定する情報と
ソーテイング命令を与えるだけでよく、ソーテイ
ングが行なわれている間他の処理を実行できるよ
うになつて処理装置の利用効率が向上する効果が
あり、またソーテイングが短時間で行なわれる効
果がある。本発明は特にランダムに入力される漢
字コードにより、該漢字のフオントデータをデイ
スク、FDD等のメモリ装置から読み出す場合、
多数のフオントデータを該メモリ装置から短時間
で読み出せるように入力漢字コードをそのフオン
トデータの格納アドレス順に並べかえるのに有用
である。 As described in detail above, according to the present invention, the processing device only needs to provide information specifying a sorting area and a sorting command, and while sorting is being performed, other processing can be performed. This has the effect of improving the utilization efficiency of the device, and also has the effect of performing sorting in a short time. In particular, when reading font data of a kanji from a memory device such as a disk or FDD using a kanji code input at random,
This is useful for rearranging input Kanji codes in the order of the storage addresses of the font data so that a large number of font data can be read from the memory device in a short time.
第1図は本発明の説明に供する概略構成図、第
2図はソーテイング制御部の構成を示すブロツク
図、第3図は本発明の作用の説明図である。
1…中央処理装置、2…メモリ、3…ソーテイ
ング制御部、4…プログラムバス、5…DMAバ
ス、6…先頭アドレスレジスタ、7…最終アドレ
スレジスタ、8…メモリアドレスカウンタ、9…
コインシイデンス回路、10…ソーテイングワー
キングメモリ、11…ソーテイングカウンタ、1
2…データ送出切替回路、13…アドレス線、1
4…データ線、15…主制御回路、16…メモリ
制御回路、17…アドレス線。
FIG. 1 is a schematic configuration diagram for explaining the present invention, FIG. 2 is a block diagram showing the configuration of a sorting control section, and FIG. 3 is an explanatory diagram of the operation of the present invention. DESCRIPTION OF SYMBOLS 1...Central processing unit, 2...Memory, 3...Sorting control unit, 4...Program bus, 5...DMA bus, 6...Start address register, 7...Final address register, 8...Memory address counter, 9...
Coincidence circuit, 10... Sorting working memory, 11... Sorting counter, 1
2...Data transmission switching circuit, 13...Address line, 1
4...Data line, 15...Main control circuit, 16...Memory control circuit, 17...Address line.
Claims (1)
ータを大小順に入れ替えるメモリソーテイング回
路において、 ソーテイング領域の読出しアドレスをソーテイ
ング領域の先頭から順に指定するメモリ読出しア
ドレス指定回路と、 ソーテイングされたデータの書き込みアドレス
を順に指定するメモリ書込みアドレス指定回路
と、 ソーテイングワーキングメモリと、 このソーテイングワーキングメモリの読出しア
ドレスを順に指定するソーテイングカウンタと、 前記メモリのデータ線と前記ソーテイングワー
キングメモリのアドレス線と前記ソーテイングカ
ウンタの出力線との間に設けられ、ライトモード
信号により前記メモリのデータ線と前記ソーテイ
ングワーキングメモリのアドレス線とを接続し、
リードモード信号により前記ソーテイングカウン
タの出力線と前記ソーテイングワーキングメモリ
のアドレス線とを接続し、前記ソーテイングワー
キングメモリから読み出された特定データにより
前記ソーテイングカウンタの出力線と前記メモリ
のデータ線とを接続するデータ送出切替回路と、 これらを制御する主制御回路 とを備え、前記主制御回路が、 外部からのソーテイング開始命令により前記メ
モリ読出しアドレス指定回路にアドレスの設定を
指示し、前記メモリに読出しを指示し、前記デー
タ送出切替回路および前記ソーテイングワーキン
グメモリにライトモード信号を送出して前記メモ
リから読み出したデータをアドレスとして前記ソ
ーテイングワーキングメモリに前記特定データを
書込む機能と、 この特定データの書込み後に前記メモリ書込み
アドレス指定回路にアドレスの設定を指示し、前
記データ送出切替回路および前記ソーテイングワ
ーキングメモリにリードモード信号を送出して前
記ソーテイングカウンタの出力をアドレスとして
前記ソーテイングワーキングメモリからデータを
読出す機能と、 前記ソーテイングワーキングメモリからのデー
タ読出し中に前記ソーテイングワーキングメモリ
から前記特定データ以外のデータを読み出した場
合は前記ソーテイングカウンタにカウントアツプ
(またはカウントダウン)を指示し、一方特定デ
ータを読み出した場合は前記メモリに書込みを指
示した後前記メモリ書込みアドレス指定回路に次
のアドレスの設定を指示し、前記ソーテイングカ
ウンタにカウントアツプ(またはカウントダウ
ン)を指示して前記特定データが読み出されたソ
ーテイングワーキングメモリのアドレスを順にメ
モリに書き込む機能とを有することを特徴とする
メモリソーテイング回路。[Scope of Claims] 1. A memory sorting circuit that rearranges data in a certain area of memory (sorting area) in order of magnitude, comprising: a memory read address designation circuit that specifies read addresses of the sorting area in order from the beginning of the sorting area; a memory write address designating circuit that sequentially specifies a write address for data stored in the memory, a sorting working memory, a sorting counter that sequentially specifies a read address of the sorting working memory, a data line of the memory, and the sorting working memory. is provided between an address line of the sorting counter and an output line of the sorting counter, and connects the data line of the memory and the address line of the sorting working memory by a write mode signal;
A read mode signal connects the output line of the sorting counter and the address line of the sorting working memory, and specific data read from the sorting working memory connects the output line of the sorting counter and the data of the memory. and a main control circuit that controls these, and the main control circuit instructs the memory read address designation circuit to set an address in response to an external sorting start command, and a function of instructing a memory to read, sending a write mode signal to the data transmission switching circuit and the sorting working memory, and writing the specific data to the sorting working memory using the data read from the memory as an address; After writing this specific data, the memory write address designation circuit is instructed to set an address, and a read mode signal is sent to the data output switching circuit and the sorting working memory, and the output of the sorting counter is used as the address for the sorting. a function of reading data from the sorting working memory; and when data other than the specific data is read from the sorting working memory while reading data from the sorting working memory, the sorting counter counts up (or counts down). On the other hand, if specific data is read, it instructs writing to the memory, instructs the memory write address designation circuit to set the next address, and instructs the sorting counter to count up (or count down). A memory sorting circuit having a function of sequentially writing addresses of the sorting working memory from which the specific data has been read into the memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56126609A JPS5829046A (en) | 1981-08-14 | 1981-08-14 | Memory sorting system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56126609A JPS5829046A (en) | 1981-08-14 | 1981-08-14 | Memory sorting system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5829046A JPS5829046A (en) | 1983-02-21 |
| JPH0155493B2 true JPH0155493B2 (en) | 1989-11-24 |
Family
ID=14939426
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP56126609A Granted JPS5829046A (en) | 1981-08-14 | 1981-08-14 | Memory sorting system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5829046A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS60243741A (en) * | 1984-05-17 | 1985-12-03 | Japan Radio Co Ltd | Sorting method of data |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5216547B2 (en) * | 1972-08-25 | 1977-05-10 |
-
1981
- 1981-08-14 JP JP56126609A patent/JPS5829046A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5829046A (en) | 1983-02-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US2968027A (en) | Data processing system memory controls | |
| US4514808A (en) | Data transfer system for a data processing system provided with direct memory access units | |
| US6782465B1 (en) | Linked list DMA descriptor architecture | |
| JPH02227763A (en) | Data transfer control system | |
| GB1167762A (en) | Input-Output Data Service Computer | |
| JPS6376034A (en) | Multiple address space control method | |
| US4764896A (en) | Microprocessor assisted memory to memory move apparatus | |
| EP0386719A2 (en) | Partial store control circuit | |
| US4575796A (en) | Information processing unit | |
| GB1179613A (en) | Data Transfer System | |
| JPH0155493B2 (en) | ||
| US3913073A (en) | Multi-memory computer system | |
| JPH0792734B2 (en) | Memory device | |
| JPS6240736B2 (en) | ||
| JP2574019B2 (en) | DMA transfer method | |
| JPH0315772B2 (en) | ||
| JPH01265339A (en) | Structured data processing device | |
| JPS62186328A (en) | Sort processing system | |
| JPS56168255A (en) | Interface adapter | |
| JPS6329295B2 (en) | ||
| JPH06161945A (en) | Memory data transfer device | |
| JPH02236741A (en) | Logic simulator | |
| JPH02136951A (en) | Dma transfer system | |
| JPS6297047A (en) | Input and output controller | |
| JPH02157932A (en) | variable length data processing device |