JPH01114960A - Direct memory access control circuit - Google Patents

Direct memory access control circuit

Info

Publication number
JPH01114960A
JPH01114960A JP27382387A JP27382387A JPH01114960A JP H01114960 A JPH01114960 A JP H01114960A JP 27382387 A JP27382387 A JP 27382387A JP 27382387 A JP27382387 A JP 27382387A JP H01114960 A JPH01114960 A JP H01114960A
Authority
JP
Japan
Prior art keywords
data
signal
counter
data string
string
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
JP27382387A
Other languages
Japanese (ja)
Inventor
Hajime Nagai
肇 永井
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 JP27382387A priority Critical patent/JPH01114960A/en
Publication of JPH01114960A publication Critical patent/JPH01114960A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
    • G06F13/285Halt processor DMA

Abstract

PURPOSE:To easily attain more high-speed data conversion as compared to a method for executing an ordinary CPU and an ordinary program by comparing data strings while executing DMA data transfer, and converting the data into codes at real time. CONSTITUTION:A signal generator 1 sends a data reading signal READ to an input/output device and outputs data to a data bus line. At that time, the generator 1 sends a data writing signal WRITE to a main memory and the data is written in an address specified by a counter 4. A value '1' is subtracted from the contents of a counter 3 by the signal READ and a value '1' is added to the contents of a counter 4 by the signal WRITE to prepare data transfer. Simultaneously, these data are compared with a registered data string by a data string detector 6, and when both the data do not coincide with each other, the succeeding data transfer is started. At the time of coincidence, a coincidence signal, a code and length are outputted from the detector 6. A subtractor 5 subtracts the length of the data string from the output of the counter 4 and sets up the subtracted value in the counter 4.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ミニコンピユータ、マイクロコンピュータ等
の情報処理装置で高速にデータを転送するためのダイレ
クトメモリアクセス(以後、DMAと称す)制御回路に
関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a direct memory access (hereinafter referred to as DMA) control circuit for transferring data at high speed in an information processing device such as a minicomputer or a microcomputer. .

〔従来の技術〕[Conventional technology]

第2図は従来のDMA゛制御装置が備わったシステムの
構成を示す。これは、入出力装置21と、メインメモリ
22と、CPU23とDMA制御装置24とがデータバ
ス線、アドレスバス線、読出し書込み信号線に接続され
ている。DMA制御装置24を用いたデータ転送は、入
出力装置21とメインメモリ22の間や、メインメモリ
22内部の領域間などで行われる。DMA制御装置24
はデータ転送に特化した回路構成のため、CPO23の
プログラムで行うより高速なデータ転送が可能である。
FIG. 2 shows the configuration of a system equipped with a conventional DMA controller. In this, an input/output device 21, a main memory 22, a CPU 23, and a DMA control device 24 are connected to a data bus line, an address bus line, and a read/write signal line. Data transfer using the DMA control device 24 is performed between the input/output device 21 and the main memory 22, between areas within the main memory 22, etc. DMA control device 24
Since it has a circuit configuration specialized for data transfer, it is possible to transfer data at a higher speed than that performed by the CPO 23 program.

入出力装置21からメインメモリ22ヘデータを送る場
合は、DMA制御装置24の第1カウンタ12にデータ
の書込まれるメインメモリのアドレスを設定し、第2カ
ウンタ13に転送データ数を設定する。この状態で、入
出力装置121からDMA動作を要求するDMAREQ
信号が入力されると、DMA制御装置24はCPU23
に、バス線の使用権を要求するHOLDREQ信号を出
力する。
When sending data from the input/output device 21 to the main memory 22, the first counter 12 of the DMA control device 24 is set to the address of the main memory where the data will be written, and the second counter 13 is set to the number of data to be transferred. In this state, DMAREQ requesting DMA operation from the input/output device 121
When the signal is input, the DMA control device 24
Then, it outputs a HOLDREQ signal requesting the right to use the bus line.

CPU23はこの要求を受は付けると、HOLDACK
信号を返して停止する。すると、DMA制御装置24は
DMAACK信号を入出力装置21に出力し、DMAデ
ータ転送状態になる。ここで、DMA制御装置24の信
号発生器14が出力する読出し信号によって、入出力装
置21からデータがデータバス線上に読出される。この
データは、第1カウンタ12の指定するメインメモリ2
2のアドレスに、信号発生器14の出力する書込み信号
によって書き込まれる。
When the CPU 23 accepts this request, it issues a HOLDACK
Return the signal and stop. Then, the DMA control device 24 outputs a DMAACK signal to the input/output device 21, and enters a DMA data transfer state. Here, data is read from the input/output device 21 onto the data bus line in response to a read signal output by the signal generator 14 of the DMA control device 24. This data is stored in the main memory 2 specified by the first counter 12.
The data is written to address No. 2 by the write signal output from the signal generator 14.

これら読出し書込み信号に同期して、第1カウンタ12
は更新され、新しいアドレスを出力する。
In synchronization with these read/write signals, the first counter 12
is updated and outputs the new address.

第2カウンタ13も同時に減算される。これが零になる
と、設定されていた回数のデータ転送が終了したことを
示す信号が出力され、DMAデータ転送が終了する。
The second counter 13 is also decremented at the same time. When this becomes zero, a signal indicating that the set number of data transfers has been completed is output, and the DMA data transfer ends.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

情報処理装置で重要な仮名漢字変換や、データ圧縮等の
データ列を別の符号に置換する処理では、データ列を逐
次調べなければならない、従来のDMA制御装置24は
、単にデータ転送を高速化するだけで、このようのデー
タに依存した制御を行うことができなかった。第2図の
CPU23を用いた場合は、プログラムによってデータ
列を調べなければならず、高速な処理ができないという
問題があった。
In the process of replacing a data string with another code, such as kana-kanji conversion and data compression, which are important in information processing equipment, the conventional DMA control device 24, which requires sequential examination of the data string, simply speeds up data transfer. However, it was not possible to perform control that depended on such data. When the CPU 23 shown in FIG. 2 is used, there is a problem in that the data string must be checked by a program, and high-speed processing cannot be performed.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のDMA制御装置は、第1装置にデータ読取り信
号を与え第2装置にデータ書込み信号を与える信号発生
器と、前記データ読取り信号を計数し既定値に達すると
終了信号を出力する第1カウンタと、登録されている複
数のデータ列と入力されるデータ列とを比較して一致信
号とそのデータ列の長さとそのデータ列に対応した符号
とを出力するデータ列検出器と、前記第2装置のアドレ
スを出力し前記データ書込み信号に同期して更新され前
記一致信号により入力値を取り込む第2カウンタと、前
記第2カウンタの出力から前記データ列の長さを減じ前
記第2カウンタの入力値とする減算器と、前記一致信号
で前記データ読取り信号をマスクする第1ゲート回路と
、前記一致信号で前記符号を第2装置に出力する第2ゲ
ート回路とを含んで構成される。
The DMA control device of the present invention includes a signal generator that provides a data read signal to a first device and a data write signal to a second device; a counter; a data string detector that compares a plurality of registered data strings with an input data string and outputs a coincidence signal, the length of the data string, and a code corresponding to the data string; a second counter that outputs the address of the second device, is updated in synchronization with the data write signal, and takes in the input value in response to the coincidence signal; and a second counter that subtracts the length of the data string from the output of the second counter. The apparatus includes a subtracter that receives an input value, a first gate circuit that masks the data read signal with the match signal, and a second gate circuit that outputs the code to a second device with the match signal.

〔作用〕[Effect]

本発明は、DMAデータ転送を行いながら、同時にデー
タ列比較を行い、実時間でこれを符号に変換するので、
従来のCPUとプログラムで行う方法より高速な処理が
可能である。
The present invention simultaneously compares data strings while transferring DMA data and converts them into codes in real time.
Faster processing is possible than the conventional method using a CPU and a program.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明によるDMA制御装置の一実施例のブロ
ック図である。データ列検出器6には、複数のレコード
が登録されている。このレコードは、データ列とその長
さとそれを表す符号とから構成されている。これらのデ
ータ列は、入力されるデータ列と実時間で比較され、一
致検出される。
FIG. 1 is a block diagram of an embodiment of a DMA control device according to the present invention. A plurality of records are registered in the data string detector 6. This record consists of a data string, its length, and a code representing it. These data strings are compared with the input data string in real time to detect a match.

このような一致検出手段は、本出願人によりすでに出願
されている(特開昭62−040529号、特開昭62
−065130号等)。ここで用いているデータ列検出
器6は、この一致検出手段に長さと符号を登録するため
のメモリを加え、一致検出手段の出力する一致アドレス
でこのメモリをアクセスするようにしたものである。
Such a coincidence detection means has already been applied for by the present applicant (Japanese Patent Application Laid-Open No. 62-040529, Japanese Patent Application Laid-open No. 62-040529,
-065130 etc.). The data string detector 6 used here is such that a memory for registering the length and code is added to the coincidence detection means, and this memory is accessed by a coincidence address output from the coincidence detection means.

DMA転送は、次のように行われる。先ず、第1カウン
タに転送するデータの数を、また第2カウンタに転送先
のメインメモリアドレスを設定する。ここで、入出力装
置21からDMA転送を要求するDMAREQ信号が信
号発生器1に入力されると、信号発生器1はCPU23
に対してバス線の使用を要求するHOLDREQ信号を
出力する。CPO23がこの要求を認めるHOLDAC
K信号を返すと、信号発生器1ば入出力装置21にDM
AACK信号を出力し、DMA制御装置24によるデー
タ転送が開始される。
DMA transfer is performed as follows. First, the number of data to be transferred is set in the first counter, and the main memory address of the transfer destination is set in the second counter. Here, when the DMAREQ signal requesting DMA transfer is input from the input/output device 21 to the signal generator 1, the signal generator 1
A HOLDREQ signal is output to request the use of the bus line. CPO23 approves this request HOLDAC
When the K signal is returned, the signal generator 1 sends a DM to the input/output device 21.
The AACK signal is output, and data transfer by the DMA control device 24 is started.

信号発生器1は入出力装置21にデータ読取り信号RE
ADを送り、入出力装置21はデータバス線にデータを
出力する。このとき、信号発生器lはデータ書込み信号
WRITEをメインメモリに送り、第2カウンタ4で指
定されたアドレスに、このデータが書込まれる。そして
、データ読取り信号READによって第1カウンタ3は
−1され、データ書込み信号WRITEによって第2カ
ウンタ4は+1され、次のデータ転送の準備がなされる
。同時に、このデータはデータ列検出器6で比較される
。登録されているデータ列と一致しないときには、次の
データ転送が始められる。
The signal generator 1 sends a data read signal RE to the input/output device 21.
AD is sent, and the input/output device 21 outputs data to the data bus line. At this time, the signal generator 1 sends a data write signal WRITE to the main memory, and this data is written to the address specified by the second counter 4. Then, the first counter 3 is incremented by 1 by the data read signal READ, and the second counter 4 is incremented by 1 by the data write signal WRITE, thereby preparing for the next data transfer. At the same time, this data is compared in the data string detector 6. If the data does not match the registered data string, the next data transfer is started.

もし一致したときには、データ列検出器6から一致信号
と符号と長さが出力される。このとき、減算器5は第2
カウンタ4の出力からデータ列の長さを引き、これを第
2カウンタ4に設定する。
If there is a match, the data string detector 6 outputs a match signal, code, and length. At this time, the subtracter 5
The length of the data string is subtracted from the output of the counter 4, and this is set in the second counter 4.

この一致信号により、第1ゲート回路2はデータ読取り
信号READをマスクし、入出力装置21からデータは
読み出されず、転送データ数を計数する第1カウンタ3
も−1されない。第2ゲート回路7は、データ列検出器
6からの符号をデータバス線に出力する。この符号が次
の書込み信号WRITEにより、メインメモリ22の第
2カウンタ4で指定される位置に書込まれ、データ列が
符号に置き換えられる。
Due to this coincidence signal, the first gate circuit 2 masks the data read signal READ, and no data is read from the input/output device 21, and the first counter 3 that counts the number of transferred data
It is not -1 either. The second gate circuit 7 outputs the code from the data string detector 6 to the data bus line. This code is written in the position specified by the second counter 4 of the main memory 22 by the next write signal WRITE, and the data string is replaced with the code.

設定されたデータ数の転送が終了すると、第1カウンタ
3からキャリーが終了信号として出力される。
When the transfer of the set number of data is completed, a carry is outputted from the first counter 3 as an end signal.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、DMAデータ転
送中にデータ列を別の符号に変換することができ、高速
データ変換が容易に実現できる。
As described above, according to the present invention, a data string can be converted into another code during DMA data transfer, and high-speed data conversion can be easily realized.

尚、データ転送がメインメモリの或領域がら別の領域に
対して行われる場合は、従来のメモリ・メモリDMA転
送に本発明を用いれば良く、以上の記述は、本発明の特
許請求の範囲を制限するものではない。
Note that when data transfer is performed from one area of the main memory to another area, the present invention may be used for conventional memory-to-memory DMA transfer, and the above description does not exceed the scope of the claims of the present invention. It is not a restriction.

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

第1図は本発明の一実施例のブロック図、第2図は従来
のDMA制御装置とシステム構成図である。 1.13・・・信号発生器、2.7・・・ゲート回路、
3.4,11.12・・・カウンタ、5・・・減算器、
6・・・データ列検出器、21・・・入出力装置、22
・・・メインメモリ、23・・・CPU、24・・・D
MA制御装置。
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a diagram of a conventional DMA control device and system configuration. 1.13...Signal generator, 2.7...Gate circuit,
3.4, 11.12...Counter, 5...Subtractor,
6... Data string detector, 21... Input/output device, 22
...Main memory, 23...CPU, 24...D
MA control device.

Claims (1)

【特許請求の範囲】[Claims] 第1装置にデータ読取り信号を与え第2装置にデータ書
込み信号を与える信号発生器と、前記データ読取り信号
を計数し既定値に達すると終了信号を出力する第1カウ
ンタと、登録されている複数のデータ列と入力されるデ
ータ列とを比較して一致信号とそのデータ列の長さとそ
のデータ列に対応した符号とを出力するデータ列検出器
と、前記第2装置のアドレスを出力し前記データ書込み
信号に同期して更新され前記一致信号により入力値を取
り込む第2カウンタと、前記第2カウンタの出力から前
記データ列の長さを減じ前記第2カウンタの入力値とす
る減算器と、前記一致信号で前記データ読取り信号をマ
スクする第1ゲート回路と、前記一致信号で前記符号を
第2装置に出力する第2ゲート回路とを含んで構成され
ることを特徴とするダイレクトメモリアクセス制御回路
a signal generator that provides a data read signal to a first device and a data write signal to a second device; a first counter that counts the data read signal and outputs a termination signal when a predetermined value is reached; a data string detector that compares the data string with the input data string and outputs a coincidence signal, the length of the data string, and a code corresponding to the data string; a second counter that is updated in synchronization with a data write signal and takes in an input value in accordance with the coincidence signal; a subtracter that subtracts the length of the data string from the output of the second counter and sets it as an input value of the second counter; A direct memory access control comprising: a first gate circuit that masks the data read signal with the coincidence signal; and a second gate circuit that outputs the code to a second device with the coincidence signal. circuit.
JP27382387A 1987-10-28 1987-10-28 Direct memory access control circuit Pending JPH01114960A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27382387A JPH01114960A (en) 1987-10-28 1987-10-28 Direct memory access control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27382387A JPH01114960A (en) 1987-10-28 1987-10-28 Direct memory access control circuit

Publications (1)

Publication Number Publication Date
JPH01114960A true JPH01114960A (en) 1989-05-08

Family

ID=17533054

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27382387A Pending JPH01114960A (en) 1987-10-28 1987-10-28 Direct memory access control circuit

Country Status (1)

Country Link
JP (1) JPH01114960A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6629160B1 (en) 1999-06-16 2003-09-30 Nec Electronics Corporation Direct memory access controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6629160B1 (en) 1999-06-16 2003-09-30 Nec Electronics Corporation Direct memory access controller

Similar Documents

Publication Publication Date Title
JPH01114960A (en) Direct memory access control circuit
JPH0225958A (en) High-speed data transfer system
JPH05165761A (en) Dma controller
JP3145765B2 (en) Information processing device
JPH07104845B2 (en) Parallel processor
JPH069036B2 (en) I / O controller
JP2574821B2 (en) Direct memory access controller
JPS62135038A (en) Data communications system for slave processor
JP2594611B2 (en) DMA transfer control device
JP2503059B2 (en) Connection device between different types of buses
JPS6130300B2 (en)
JP3481503B2 (en) Address translation system
JPS61117651A (en) Interface device
JPH05324534A (en) Dma transfer system
JPH01124045A (en) Bus connection system
JPH064457A (en) Electronic filing device
JPS6261976B2 (en)
JPS61286955A (en) Method for transferring data
JPH05134952A (en) Data transfer system
JPH0535693A (en) Data transfer device
JPH02301851A (en) System bus accessing system
JPS6378256A (en) Input/output data transferring and controlling system
JPH0429101B2 (en)
JPH01114961A (en) Directory memory access controller
JPS63276941A (en) Data transfer control system