JPH01114961A - Directory memory access controller - Google Patents

Directory memory access controller

Info

Publication number
JPH01114961A
JPH01114961A JP27382587A JP27382587A JPH01114961A JP H01114961 A JPH01114961 A JP H01114961A JP 27382587 A JP27382587 A JP 27382587A JP 27382587 A JP27382587 A JP 27382587A JP H01114961 A JPH01114961 A JP H01114961A
Authority
JP
Japan
Prior art keywords
counter
data
register
signal
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP27382587A
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 JP27382587A priority Critical patent/JPH01114961A/en
Publication of JPH01114961A publication Critical patent/JPH01114961A/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

Abstract

PURPOSE:To easily speed up a processing such as the extraction of only a specific field in a record and the extraction of a specific dimension in a multi- dimensional array by allowing the updated value of an address counter to correspond to structured data. CONSTITUTION:In case of extracting a certain field, a reading address is stored in a counter 1, and during the period of access to the field, '1' is added to the contents of the counter 1 synchronously with a data reading signal. The length of the field is previously stored in a register 7 and set up in a counter 8 before accessing respective fields. A value '1' is subtracted from the contents of the counter 8 synchronously with a data reading signal, and when the contents of the register 8 reaches zero, a 1st output signal is outputted and the length of the field is inputted from the register 7. On the other hand, a distance between records is set up in a register 2 and the value is added to the output of the counter 1 by an adder 3 and the added value is outputted as the set data of the counter 1. The data are set up in the counter synchronous ly with a 1st end signal. Thus, the succeeding objective field can be made access.

Description

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

〔従来の技術〕[Conventional technology]

CPUはプログラミングによって汎用処理が可能であり
、データ転送もできるが、ハードウェアがデータ転送に
特別向いているわけではないので、より高速にデータ転
送をおこなうためには専用に設計されたDMA制御装置
が用いられる。
CPUs can be programmed to perform general-purpose processing and can also transfer data, but the hardware is not particularly suited to data transfer, so in order to transfer data at higher speeds, a specially designed DMA control device is required. is used.

第3図はこのようなりMA制御装置を用いた情報処理装
置を示す。これは、メインメモリ31と、CPU32と
、DMA制御装置33がデータバス線、アドレスバス線
、データ読取書込み信号線で結合されている。第4図は
これらの線上の信号の状態である。
FIG. 3 shows an information processing device using such an MA control device. In this, a main memory 31, a CPU 32, and a DMA control device 33 are connected by a data bus line, an address bus line, and a data read/write signal line. FIG. 4 shows the state of the signals on these lines.

第2図は従来のDMA制御装置である。これは、次のよ
うにメインメモリの或領域のデータを別領域へ移す。
FIG. 2 shows a conventional DMA control device. This moves data from one area of the main memory to another area as follows.

すなわち、第1計数器2つに読出すデータの収納されて
いるアドレスを設定し、第2計数器27に書き込むアド
レスを設定し、第3計数器23にデータの転送回数を設
定する。そこで、CPUがDMAデータ転送を要求する
DMAREQ命令を入力すると、フリップフロップ21
がセットされ、バス線を要求するHOLDREQ信号を
出力する。これに答えて、cpuがHOLDACK信号
を出力すると、これらの論理積をとるゲート22の出力
により信号発生器26が動作を始め、DMAデータ転送
状態になる。
That is, the addresses storing the data to be read are set in the two first counters, the addresses to be written are set in the second counter 27, and the number of data transfers is set in the third counter 23. Therefore, when the CPU inputs a DMAREQ command requesting DMA data transfer, the flip-flop 21
is set and outputs the HOLDREQ signal requesting the bus line. In response, when the CPU outputs a HOLDACK signal, the signal generator 26 starts operating due to the output of the gate 22 which takes these ANDs, and the DMA data transfer state is established.

先ず、第1計数器29の出力がマルチプレクサ28によ
り選択されアドレスバスに出力される。
First, the output of the first counter 29 is selected by the multiplexer 28 and output to the address bus.

そして、データ読取り信号が出力され、そのアドレスか
らデータバス上に読み出される。このデータは読取り信
号に同期して、データレジスタ25に取り込まれる。こ
のとき同時に、第1計数器29の内容は次の読取アドレ
スになるように+1される。
Then, a data read signal is output and read out onto the data bus from that address. This data is taken into the data register 25 in synchronization with the read signal. At the same time, the contents of the first counter 29 are incremented by 1 to become the next read address.

データレジスタ25にデータが取り込まれると、マルチ
プレクサ28は第2計数器27の出力を選択しアドレス
バスに出力する。このとき活性化される出力バッファ2
4を介して、データレジスタ25に取り込まれたデータ
がデータバス上に出力される。そして、データ書込み信
号が出力され、第2計数器27の出力で指定されるアド
レスに、データが書込まれる。このとき、次の書込みア
ドレスになるように第2計数器27の内容は+1され、
第3計数器23の内容は−1される。
When the data is loaded into the data register 25, the multiplexer 28 selects the output of the second counter 27 and outputs it to the address bus. Output buffer 2 activated at this time
4, the data taken into the data register 25 is output onto the data bus. Then, a data write signal is output, and data is written to the address specified by the output of the second counter 27. At this time, the contents of the second counter 27 are incremented by 1 so as to become the next write address.
The contents of the third counter 23 are incremented by -1.

第3計数器23の内容が零でなければ、データ転送が繰
り返される。もし、これが零になると、フリップフロッ
プ21がリセットされてDMAデータ転送状態が終了す
る。
If the content of the third counter 23 is not zero, the data transfer is repeated. If this becomes zero, the flip-flop 21 is reset and the DMA data transfer state ends.

信号発生器26はデータ読取及びデータ書込み信号を外
部に出力すると共に、第1.2.3計数器29,27.
23の増減信号や、マルチプレクサ28の切り替え信号
、データレジスタ25のストローブ信号、データバッフ
ァ24の活性化信号などを発生する。
The signal generator 26 outputs data read and data write signals to the outside, and also outputs data read and write signals to the outside, and also outputs data read and write signals to the outside, and also outputs data read and write signals to the outside.
23, a switching signal for the multiplexer 28, a strobe signal for the data register 25, an activation signal for the data buffer 24, etc.

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

情報処理装置でよく扱われる構造化されたデータを処理
するレコード形式のデータで、特定のフィールドだけを
抜き出して処理する場合や、多次元配列のデータで、特
定次元のデータだけを抜き出して処理する場合などは、
従来のDMA制御装置はアドレスが連続したデータしか
転送できないため対応ができないという問題があった。
Processing structured data that is often handled by information processing equipment When extracting and processing only a specific field in record format data, or extracting and processing only data in a specific dimension in multidimensional array data In case,
Conventional DMA control devices have a problem in that they cannot handle this problem because they can only transfer data with consecutive addresses.

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

本発明のDMA制御装置は、第1設定データが第1終了
信号に同期して設定され第2信号に同期して単位数ずつ
変化する第1計数器と、第1レジスタと、前記第1計数
器の出力値に前記第1レジスタの値を加えて第1設定デ
ータを出力する第1加算器と、第2設定データが前記第
1終了信号に同期して設定され前記第2信号に同期して
単位数ずつ変化する第2計数器と、第2レジスタと、第
2計数器の出力値に前記第2レジスタの値を加えて第2
設定データを出力する第2加算器と、第3レジスタと、
前記第2信号を計数し前記第3レジスタの設定値を計数
し終えると前記第1終了信号を発生し初期状態に戻る第
3計数器と、前記第1終了信号を計数し規定値を計数し
終えると前記第2終了信号を発生する第4計数器と、D
MA処理機能をもち前記第1計数器の出力を読取アドレ
スとし前記第2計数器の出力を書込みアドレスとし前記
第2信号とこれに同期したデータ読取り及びデータ書込
み信号を出力し前記第2終了信号が出力されるとDMA
データ転送動作を終了する制御回路と、前記データ読取
信号に同期してデータを取り込み、また前記データ書込
み信号に同期してこのデータを出力する第4レジスタと
で構成される。
The DMA control device of the present invention includes a first counter in which first setting data is set in synchronization with a first end signal and changes by the number of units in synchronization with a second signal, a first register, and the first counter. a first adder that adds the value of the first register to the output value of the device and outputs first setting data; and second setting data that is set in synchronization with the first end signal and is set in synchronization with the second signal. a second counter that changes by the number of units, a second register, and a second counter that adds the value of the second register to the output value of the second counter;
a second adder that outputs setting data; a third register;
a third counter that counts the second signal and when the set value of the third register is finished, generates the first end signal and returns to the initial state; and a third counter that counts the first end signal and counts the specified value. a fourth counter that generates the second termination signal when completed;
It has an MA processing function, uses the output of the first counter as a read address, uses the output of the second counter as a write address, outputs the second signal and data read and data write signals synchronized therewith, and outputs the second end signal. When is output, DMA
It is comprised of a control circuit that ends a data transfer operation, and a fourth register that takes in data in synchronization with the data read signal and outputs this data in synchronization with the data write signal.

〔作用〕[Effect]

本発明のDMA制御装置は、アドレス計数器の更新値が
構造化されたデータに対応しているために、このような
データの特定部分を高速に抜き出すことが出来る。
In the DMA control device of the present invention, since the update value of the address counter corresponds to structured data, a specific portion of such data can be extracted at high speed.

〔実施例〕〔Example〕

以下、本発明について図面を用いて説明を行う。 The present invention will be explained below with reference to the drawings.

第1図は本発明によるDMA制御装置の一実施例を示す
ブロック図である。この図で、1は第1計数器、2は第
2レジスタ、3は第1加算器、4は第2計数器、5は第
2レジスタ、6は第2加算器、7は第4レジスタ、8は
第3計数器、9は第4計数器、10は制御回路、11は
データレジスタである。
FIG. 1 is a block diagram showing an embodiment of a DMA control device according to the present invention. In this figure, 1 is the first counter, 2 is the second register, 3 is the first adder, 4 is the second counter, 5 is the second register, 6 is the second adder, 7 is the fourth register, 8 is a third counter, 9 is a fourth counter, 10 is a control circuit, and 11 is a data register.

複数のレコードから或フィールドを抜き出す場合、読取
アドレスは第1計数器1に格納され、そのフィールドを
アクセスする間、データ読取信号に同期して+1される
。フィールドの長さは、第4レジスタ7に格納されてお
り、各フィールドがアクセスされる前に第3計数器8に
設定される。
When extracting a certain field from a plurality of records, the read address is stored in the first counter 1, and is incremented by 1 in synchronization with the data read signal while the field is accessed. The length of the field is stored in the fourth register 7 and is set in the third counter 8 before each field is accessed.

第3計数器8はデータ読取信号に同期して−1され、零
になると、第1出力信号を出力し、第4レジスタ7から
フィールドの長さを取り込む。第2レジスタ2にはレコ
ード間の距離が設定されており、第1加算器3は第1計
数器1の出力にこれを加え第1計数器1の設定データと
して出力する。
The third counter 8 is decremented by 1 in synchronization with the data read signal, and when it becomes zero, it outputs the first output signal and takes in the field length from the fourth register 7. The distance between records is set in the second register 2, and the first adder 3 adds this to the output of the first counter 1 and outputs it as setting data for the first counter 1.

このデータは第1終了信号に同期して、第1計数器1に
設定される。こうして、次のレコードの対象フィールド
をアクセス出来るようになる。
This data is set in the first counter 1 in synchronization with the first end signal. In this way, the target field of the next record can be accessed.

書込みアドレスは第2計数器4の出力であり、読取りア
ドレスを発生するのと同様、第2レジスタ5、第2加算
器6を用いて、別の構造のレコードにデータを書込むこ
とが出来る。
The write address is the output of the second counter 4, and similarly to generating the read address, the second register 5 and second adder 6 can be used to write data to another structured record.

転送されるフィールドの数は、第4計数器9に設定され
ており、これは第3計数器8の出力する第1終了信号に
より、−1されて零になると第2終了信号が第4計数器
9から出力されて、DMAデータ転送状態が終了する。
The number of fields to be transferred is set in the fourth counter 9, and when it is subtracted by 1 and becomes zero by the first end signal output from the third counter 8, the second end signal is set to the fourth count. The signal is output from the device 9, and the DMA data transfer state ends.

制御回路10はcpuからのDMAREQ命令の入力に
より、cpuにHOLDREQ信号を出し、HOLDA
CK信号が帰ってくるとDMAデータ転送を開始する。
The control circuit 10 outputs a HOLDREQ signal to the CPU in response to a DMAREQ command input from the CPU, and outputs a HOLDREQ signal to the CPU.
When the CK signal returns, DMA data transfer is started.

ここで、制御回路10は第1計数器1の出力をアドレス
バスに出力し、データ読取り信号(リード)を出力する
。データバスに読み出されたデータは、データレジスタ
11に設定される6次に、制御回路10は第2計数器4
の出力をアドレスバスに出力し、データ書込み信号(ラ
イト)を出力する。同時に、データレジスタ11は設定
されたデータをデータバスに出力する。これでデータ転
送が1回行われ、先に述べたように各計数器1゜4.8
.9が更新され、複数のレコードから特定のデータフィ
ールドだけを抜き出すようなりMAデータ転送が行われ
る。
Here, the control circuit 10 outputs the output of the first counter 1 to the address bus, and outputs a data read signal (read). The data read onto the data bus is set in the data register 11.Next, the control circuit 10 sends the data to the second counter 4.
output to the address bus and output a data write signal (write). At the same time, the data register 11 outputs the set data to the data bus. This completes one data transfer, and as mentioned earlier, each counter 1°4.8
.. 9 is updated, and MA data transfer is performed by extracting only a specific data field from a plurality of records.

なお、以上の説明における計数器は+1ずつ更新するも
のであったが、−1するものでもレコード間の距離を負
数で与えることにより、同様の効果が得られ、以上の説
明は何等本発明の特許請求の範囲を制限するものではな
い。
Note that although the counter in the above explanation updates by +1, the same effect can be obtained by giving the distance between records as a negative number even if the counter updates by -1. It does not limit the scope of the claims.

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

本発明によれば、構造化されたデータの処理、すなわち
、レコードの特定フィールドだけを抜き出したり、多次
元配列の特定次元を抜き出すような処理の高速化が容易
に達成できる。
According to the present invention, it is possible to easily speed up the processing of structured data, that is, the processing of extracting only a specific field of a record or extracting a specific dimension of a multidimensional array.

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

第1図は本発明の一実施例のブロック図、第2図は従来
例のブロック図、第3図は第2図のシステム適用例の図
、第4図は第3図のシステムの各信号の図である。 1.4,8.9,23,27.29・・・計数器、2.
5.7・・・レジスタ、11.25・・・データレジス
タ、3.6・・・加算器、10・・・制御回路、21・
・・フリップフロップ、24・・・バッファ、26・・
・信号発生器、28・・・マルチプレクサ、31・・・
メインメモリ、32・・・CPU、33・・・DMA制
御装置。
Fig. 1 is a block diagram of an embodiment of the present invention, Fig. 2 is a block diagram of a conventional example, Fig. 3 is a diagram of an example of application of the system of Fig. 2, and Fig. 4 is a block diagram of each signal of the system of Fig. 3. This is a diagram. 1.4, 8.9, 23, 27.29... Counter, 2.
5.7...Register, 11.25...Data register, 3.6...Adder, 10...Control circuit, 21.
...Flip-flop, 24...Buffer, 26...
- Signal generator, 28...Multiplexer, 31...
Main memory, 32... CPU, 33... DMA control device.

Claims (1)

【特許請求の範囲】[Claims] 第1設定データが第1終了信号に同期して設定され第2
信号に同期して単位数ずつ変化する第1計数器と、第1
レジスタと、前記第1計数器の出力値に前記第1レジス
タの値を加えて第1設定データを出力する第1加算器と
、第2設定データが前記第1終了信号に同期して設定さ
れ前記第2信号に同期して単位数ずつ変化する第2計数
器と、第2レジスタと、第2計数器の出力値に前記第2
レジスタの値を加えて第2設定データを出力する第2加
算器と、第3レジスタと、前記第2信号を計数し前記第
3レジスタの設定値を計数し終えると前記第1終了信号
を発生し初期状態に戻る第3計数器と、前記第1終了信
号を計数し規定値を計数し終えると前記第2終了信号を
発生する第4計数器と、DMA処理機能をもち前記第1
計数器の出力を読取アドレスとし前記第2計数器の出力
を書込みアドレスとし前記第2信号とこれに同期したデ
ータ読取り及びデータ書込み信号を出力し前記第2終了
信号が出力されるとDMAデータ転送動作を終了する制
御回路と、前記データ読取信号に同期してデータを取り
込み、また前記データ書込み信号に同期してこのデータ
を出力する第4レジスタとで構成されることを特徴とす
るダイレクトメモリアクセス制御装置。
The first setting data is set in synchronization with the first end signal, and the second
a first counter that changes by the number of units in synchronization with the signal;
a register, a first adder that adds the value of the first register to the output value of the first counter and outputs first setting data; and second setting data that is set in synchronization with the first end signal. a second counter that changes by the number of units in synchronization with the second signal; a second register;
a second adder that adds the value of the register and outputs second setting data; a third register; and a third register that counts the second signal and generates the first end signal when the set value of the third register is finished counting. a third counter that returns to the initial state; a fourth counter that counts the first end signal and generates the second end signal after counting the specified value;
The output of the counter is used as a read address, the output of the second counter is used as a write address, and the second signal and data read and write signals synchronized therewith are output, and when the second end signal is output, DMA data transfer is performed. A direct memory access comprising a control circuit for terminating an operation, and a fourth register for capturing data in synchronization with the data read signal and outputting the data in synchronization with the data write signal. Control device.
JP27382587A 1987-10-28 1987-10-28 Directory memory access controller Pending JPH01114961A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27382587A JPH01114961A (en) 1987-10-28 1987-10-28 Directory memory access controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27382587A JPH01114961A (en) 1987-10-28 1987-10-28 Directory memory access controller

Publications (1)

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

Family

ID=17533077

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27382587A Pending JPH01114961A (en) 1987-10-28 1987-10-28 Directory memory access controller

Country Status (1)

Country Link
JP (1) JPH01114961A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7292212B2 (en) 2000-12-04 2007-11-06 Hitachi, Ltd. Liquid crystal display device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7292212B2 (en) 2000-12-04 2007-11-06 Hitachi, Ltd. Liquid crystal display device

Similar Documents

Publication Publication Date Title
KR950033856A (en) Data transmission control method and peripheral circuits, data processor and data processing system used in the same
JPH01114961A (en) Directory memory access controller
JPH02132543A (en) Information processor
JP2581144B2 (en) Bus control device
JP2699482B2 (en) Data transfer control device
JPH0324844A (en) Packet transfer system
JPH02211571A (en) Information processor
RU1835551C (en) Data processor
JPS63292356A (en) Dma controller
JP2570271B2 (en) Semiconductor memory controller
JPH03100851A (en) Fifo storage device
JPS6249537A (en) Data buffer controller
JPS61206063A (en) Memory access controller
JPH01106148A (en) Multi-port memory device
JPS61117651A (en) Interface device
JPS63245745A (en) Buffer storage controller
JPS61214047A (en) Memory data transfer circuit
JPS63288351A (en) Write/read-out circuit for memory block
JPS59136830A (en) Direct memory access controller
JPS63298466A (en) Data transfer device
JPH03189755A (en) Inter-memory transfer device
JPH0769885B2 (en) Data transfer device
JPS63201810A (en) Time system for information processing system
JPS63142446A (en) Address generating system
JPH01145753A (en) Direct memory access controller