JPH03164850A - Direct memory access device - Google Patents

Direct memory access device

Info

Publication number
JPH03164850A
JPH03164850A JP30440589A JP30440589A JPH03164850A JP H03164850 A JPH03164850 A JP H03164850A JP 30440589 A JP30440589 A JP 30440589A JP 30440589 A JP30440589 A JP 30440589A JP H03164850 A JPH03164850 A JP H03164850A
Authority
JP
Japan
Prior art keywords
data
raster
address
status
cycle
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
JP30440589A
Other languages
Japanese (ja)
Inventor
Tsuneo Takahashi
恒雄 高橋
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP30440589A priority Critical patent/JPH03164850A/en
Publication of JPH03164850A publication Critical patent/JPH03164850A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To perform an optimum operation of an external device by analyzing data read out in a source cycle and generating a status corresponding to this data and reporting it to the external device. CONSTITUTION:A status generator 7 is provided which analyzes contents of a data register 6 to generate a status corresponding to analysis contents and reports it to first and second external devices 8 and 9. When first data D in an address (k) is the pointer to raster data, the status generator 7 outputs a raster ID as a status signal SS. This raster ID is continuously outputted till conversion of the classification of data. While the raster ID is continuously outputted as the status signal SS, first and second external devices 8 and 9 perform the optimum operation corresponding to the raster ID. Thus, the data attribute in an access cycle can be outputted as a signal for the purpose of optimizing the operation of an external storage device.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、メモリ装置とメモリ装置との間、あるいは、
メモリ装置と入出力装置との間でデータ転送を行うダイ
レクトメモリアクセス装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to
The present invention relates to a direct memory access device that transfers data between a memory device and an input/output device.

〔従来の技術〕[Conventional technology]

第3図は、従来のダイレクトメモリアクセス装置(以下
、DMA装置と略称する)を使用したデータ処理装置の
構成例を示している。このデータ処理装置においては、
システムバス5に対してCPU(中央処理装置)21.
メモリ装置22.23.入出力装置24等が接続されて
おり、更に、DMA装置25が接続されている。第3図
に示すデータ処理装置にあけるデータ転送方法としては
、CP U21を介してプログラムに従って転送する方
法と、CP U21を介さずDMA装置25によりハー
ドウェア的に直接転送する方法、すなわちDMA法があ
る。
FIG. 3 shows an example of the configuration of a data processing device using a conventional direct memory access device (hereinafter abbreviated as a DMA device). In this data processing device,
CPU (Central Processing Unit) 21.
Memory device 22.23. An input/output device 24 and the like are connected thereto, and a DMA device 25 is further connected thereto. Data transfer methods for the data processing device shown in FIG. 3 include a method of transferring data according to a program via the CPU 21, and a method of direct transfer using hardware using the DMA device 25 without using the CPU 21, that is, the DMA method. be.

第4図は、従来のDMA装置25の構成例を示している
FIG. 4 shows an example of the configuration of a conventional DMA device 25. As shown in FIG.

転送元のアドレスA、を発生するソースアドレス発生器
1及び転送先のアドレスAn を発生するデスティネー
ションアドレス発生器2の各出力は、アドレススイッチ
3に供給され、タイミングコントローラ4からの出力に
基づき、アドレススイッチ3により選択的にシステムバ
ス5に出力される。
The outputs of the source address generator 1 which generates the transfer source address A and the destination address generator 2 which generates the transfer destination address An are supplied to the address switch 3, and based on the output from the timing controller 4, The address switch 3 selectively outputs the data to the system bus 5.

この従来のDMA装置25(第3図参照)において、た
とえば、メモリ装置22からメモリ族!23へDMA法
によりデータを転送する場合には、まずアドレススイッ
チ4をソースアドレス発生器1側に切り換えて、ソース
アドレス発生器1でメモリ装置22のアドレスを指定し
てメモリ装置22のデータDを読み出して一旦データレ
ジスタ6に格納し、次に、アドレススイッチ4をデステ
ィネーションアドレス発生器2側に切り換えて、データ
レジスタ6内のデータDを読み出して、デスティネーシ
ョンアドレス発生器2で指定されるメモリ装置23のア
ドレスに書き込む。これによりデータDのDMA転送が
実行される。
In this conventional DMA device 25 (see FIG. 3), for example, from the memory device 22 to the memory group! 23 by the DMA method, first switch the address switch 4 to the source address generator 1 side, specify the address of the memory device 22 with the source address generator 1, and transfer the data D of the memory device 22. Read the data and temporarily store it in the data register 6, then switch the address switch 4 to the destination address generator 2 side, read the data D in the data register 6, and store it in the memory specified by the destination address generator 2. Write to the address of device 23. As a result, DMA transfer of data D is executed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

通常のメモリアクセス動作であれば、上述の従来のDM
A装置で特に問題は発生しない。ところが、アクセスの
内容によりアクセスする外部記憶装置等を変更したいよ
うな場合に問題が生じる。
For normal memory access operations, the conventional DM described above
No particular problem occurs with device A. However, a problem arises when it is desired to change the external storage device or the like to be accessed depending on the content of the access.

たとえば、キャシニメモリを使用した文書処理装置にお
いて、キャシコメモリを、ラスタデータ等の大写゛量で
はあるが使用頻度が低いデータを格納する低速大容量の
画像用キャシニメモリと、それ以外の文字データ、命令
等の小容量ではあるが使用頻度が高いデータを格納する
一般用キャシュメモリとに分けることにより、文書処理
装置の処理速度を向上させようとしたものがある。
For example, in a document processing device that uses cache memory, the cache memory is divided into a low-speed, large-capacity image cache memory that stores large amounts of data such as raster data but is infrequently used, and a low-speed, large-capacity image cache memory that stores other data such as character data and instructions. Some attempts have been made to improve the processing speed of document processing devices by separating the document processing device into a general cache memory that stores data that has a small capacity but is frequently used.

このような場合、従来のDMA装置では、アクセス先を
区別する方法がないので、DMAを適用することができ
なかった。
In such cases, conventional DMA devices cannot apply DMA because there is no way to distinguish between access destinations.

本発明の目的は、外部記憶装置の動作を適切なものにす
るために、アクセスサイクル中のデータ属性を信号とし
て出力できるDMA装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a DMA device that can output data attributes during an access cycle as a signal in order to optimize the operation of an external storage device.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のダイレクトメモリアクセス装置は、前記目的を
達成するため、ソースアドレス発生器からのアドレスに
基づいて第1の外部装置からデータを読み出して一旦デ
ータレジスタに格納し、該データレジスタの内容を読み
出してデスティネーションアドレス発生器からのアドレ
スに基づいて第2の外部装置に対してデータの書き込み
を行なうダイレクトメモリアクセス装置において、前記
データレジスタの内容を解析し、解析内容に応じたステ
ータスを発生して前記第1.第2の外部装置に通知する
ステータス発生器を設けたことを特徴とする。
In order to achieve the above object, the direct memory access device of the present invention reads data from a first external device based on an address from a source address generator, temporarily stores it in a data register, and reads out the contents of the data register. A direct memory access device that writes data to a second external device based on an address from a destination address generator, analyzes the contents of the data register, and generates a status according to the analysis contents. Said 1st. The present invention is characterized by providing a status generator that notifies the second external device.

〔実施例〕〔Example〕

以下、図面を参照しながら実施例に基づいて本発明の特
徴を具体的に説明する。
DETAILED DESCRIPTION OF THE INVENTION Hereinafter, features of the present invention will be specifically described based on examples with reference to the drawings.

第1図は本発明のDMA装置の実施例を示すブロック図
である。なあ、第4図に示す従来例のDMA装置と対応
する部材等には同一符番を付している。
FIG. 1 is a block diagram showing an embodiment of the DMA device of the present invention. Incidentally, the same reference numerals are given to parts and the like that correspond to those of the conventional DMA device shown in FIG.

本実施例においては1、第4図に示す従来例のDMA装
置の構成に加えて、データレジスタ6内のデータを解釈
してステータス信号S1を発生するステータス発生器7
が設けられてふり、更に、システムバス5に第1及び第
2外部装置8.9が接続されている。以下、第1図に示
すDMA装置の動作について説明する。
In this embodiment, in addition to the configuration of the conventional DMA device shown in FIG. 1 and FIG.
Further, first and second external devices 8.9 are connected to the system bus 5. The operation of the DMA device shown in FIG. 1 will be explained below.

DMA装置の動作には、ソースサイクルとデスティネー
ションサイクルがある。ソースサイクルとは、転送元の
データを読み出すサイクルであり、デスティネーション
サイクルとは、ソースサイクルで読み出されたデータを
転送先に書き込むサイクルである。な右、一連の動作は
必ずソースサイクルから始まる。
The operation of a DMA device includes a source cycle and a destination cycle. A source cycle is a cycle for reading data from a transfer source, and a destination cycle is a cycle for writing data read in a source cycle to a transfer destination. On the right, a series of operations always begins with a source cycle.

先ず、ソースサイクルでは、第1外部装置8からデータ
を得るように動作する。すなわち、タイミングコントロ
ーラ4は、ソースアドレス発生器lを制御し、このソー
スアドレス発生器lからソースアドレスA、をアドレス
スイッチ3を通じシステムバス5に出力させる。同時に
タイミングコントローラ4は、システムバス5に第1外
部装置に対してデータリード要求をする制御信号R/W
を出力する。
First, in the source cycle, it operates to obtain data from the first external device 8. That is, the timing controller 4 controls the source address generator 1, and causes the source address generator 1 to output the source address A to the system bus 5 through the address switch 3. At the same time, the timing controller 4 sends a control signal R/W to the system bus 5 requesting the first external device to read data.
Output.

第1外部装置8は、システムバス5からこれらの信号を
受け、データDをシステムバス5に出力する。データレ
ジスタ6は、このデータDを一時的に記憶する。同時に
ステータス発生器7はデータDを解析し、アクセスサイ
クル中のデータ属性を出力する。
The first external device 8 receives these signals from the system bus 5 and outputs data D to the system bus 5. The data register 6 temporarily stores this data D. At the same time, the status generator 7 analyzes the data D and outputs the data attributes during the access cycle.

今、第2図に示すように、k番地の最初のデータDがラ
スタデータへのポインタであった場合には、ステータス
発生器7は、ステータス信号SSとして、ラスタIDを
出力する。このラスタIDは、データの種別が変更され
るまで出力され続ける。なお、ここでは、データの種別
としては、画像情報を表すラスタデータと、それ以外の
文字データ、命令等を示す一般データがある。ステータ
ス信号Ss としてラスタIDが出力され続けている間
、第1.第2の外部装置8.9は、ラスタIDに対応し
た最適な動作を行う。
Now, as shown in FIG. 2, if the first data D at address k is a pointer to raster data, the status generator 7 outputs the raster ID as the status signal SS. This raster ID continues to be output until the data type is changed. Note that here, the types of data include raster data representing image information, and general data representing other character data, commands, and the like. While the raster ID continues to be output as the status signal Ss, the first . The second external device 8.9 performs an optimal operation corresponding to the raster ID.

また、上述のようにデータレジスタ6に記憶されたデー
タDが、ラスタへのポインタであった場合には、データ
Dはシステムバス5に送られず、ソースアドレス発生器
1に送られる。これによりソースアドレスは、ラスタデ
ータA、B、C。
Furthermore, if the data D stored in the data register 6 is a pointer to a raster as described above, the data D is not sent to the system bus 5 but to the source address generator 1. As a result, the source addresses are raster data A, B, and C.

・・自体が格納されている領域の先頭アドレス、すなわ
ち、1番地となる。そして、タイミングコントローラ4
は、この新しいアドレスからもう一度ソースサイクルの
動作を行う。
...This is the start address of the area in which it is stored, that is, address 1. And timing controller 4
performs the source cycle operation again from this new address.

次のソースサイクルでは、ラスタポインタを読み出した
ときと同じ順序でラスタデータを読み出して、データレ
ジスタ6に記憶する。この場合、ステータス発生器7は
、読み出したデータが単なるデータであることをタイミ
ングコントローラ4に伝える。このため、タイミングコ
ントローラ4は、デスティネーションサイクルを発生す
るように動作する。即ち、タイミングコントローラ4は
、デスティネーションアドレス発生器2からデスティネ
ーションアドレス八〇 をアドレススイッチ3を通じシ
ステムパス5に出力させ、第2外部装置9に対する書き
込み制御を行ってデータレジスタ6の内容を書き込む。
In the next source cycle, the raster data is read out in the same order as when the raster pointer was read out and stored in the data register 6. In this case, the status generator 7 notifies the timing controller 4 that the read data is just data. Therefore, the timing controller 4 operates to generate a destination cycle. That is, the timing controller 4 outputs the destination address 80 from the destination address generator 2 to the system path 5 through the address switch 3, controls writing to the second external device 9, and writes the contents of the data register 6.

このソースサイクル、デスティネーションサイクルの繰
り返しで、第1外部装置8のアドレスを1+1番地、!
+2番地とインクリメントしながらデータ転送が行われ
る。そして、m−1番地でリターンポインタが検出され
たら、ソースアドレスを、次のラスタデータのポインタ
が格納されているアドレス、すなわち、k+1番地に変
更する。
By repeating this source cycle and destination cycle, the address of the first external device 8 is changed to 1+1 address,!
Data transfer is performed while incrementing the address by +2. When a return pointer is detected at address m-1, the source address is changed to the address where the next raster data pointer is stored, that is, address k+1.

このサイクルの繰り返しは、データレジスタ6に新たな
ラスタポインタやその他の制御コードなどが与えられな
い限り続けられる。
This cycle continues until a new raster pointer or other control code is given to the data register 6.

なお、上述の実施例においては、ラスタデータを転送す
る場合を例に挙げて説明したが、これに限定されるもの
ではなく、他のデータ、たとえば音声データ等に対して
も本発明を適用することができる。
In addition, in the above-mentioned embodiment, the case where raster data is transferred was explained as an example, but the present invention is not limited to this, and the present invention can also be applied to other data, such as audio data. be able to.

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

以上に述べたように、本発明によれば、DMA法により
データを転送するに際し、ソースサイクルで読み出され
たデータ、を解析し、それに応じたステータスを発生さ
せ、これを外部装置に通知することにより、外部装置に
最適な動作を行わせる事ができる。
As described above, according to the present invention, when transferring data using the DMA method, the data read in the source cycle is analyzed, a status corresponding to the data is generated, and an external device is notified of this. This allows the external device to perform optimal operations.

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

第1図は本発明実施例のDMA装置を示すブロック図、
第2図はラスタデータの構造例を示す説明図、第3図は
DMA法による一般的なデータ転送を説明するためのブ
ロック図、第4図は従来のDMA装置の構成例を示すブ
ロック図である。 1:ソースアドレス発生器 2:デスティネーションアドレス発生器3;アドレスス
イッチ 4:タイミングコントローラ 5ニジステムバス   6:データレ、ジスタフ:ステ
ータス発生器 8:第1外部装置9:第2外部装置
FIG. 1 is a block diagram showing a DMA device according to an embodiment of the present invention;
Fig. 2 is an explanatory diagram showing an example of the structure of raster data, Fig. 3 is a block diagram for explaining general data transfer using the DMA method, and Fig. 4 is a block diagram showing an example of the configuration of a conventional DMA device. be. 1: Source address generator 2: Destination address generator 3; Address switch 4: Timing controller 5 system bus 6: Data register, distaff: Status generator 8: First external device 9: Second external device

Claims (1)

【特許請求の範囲】[Claims] 1、ソースアドレス発生器からのアドレスに基づいて第
1の外部装置からデータを読み出して一旦データレジス
タに格納し、該データレジスタの内容を読み出してデス
ティネーションアドレス発生器からのアドレスに基づい
て第2の外部装置に対してデータの書き込みを行なうダ
イレクトメモリアクセス装置において、前記データレジ
スタの内容を解析し、解析内容に応じたステータスを発
生して前記第1、第2の外部装置に通知するステータス
発生器を設けたことを特徴とするダイレクトメモリアク
セス装置。
1. Read data from the first external device based on the address from the source address generator and temporarily store it in a data register, read the contents of the data register, and read the data from the second external device based on the address from the destination address generator. A direct memory access device that writes data to an external device analyzes the contents of the data register, generates a status according to the analysis content, and generates a status to notify the first and second external devices. A direct memory access device characterized by being provided with a device.
JP30440589A 1989-11-22 1989-11-22 Direct memory access device Pending JPH03164850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30440589A JPH03164850A (en) 1989-11-22 1989-11-22 Direct memory access device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30440589A JPH03164850A (en) 1989-11-22 1989-11-22 Direct memory access device

Publications (1)

Publication Number Publication Date
JPH03164850A true JPH03164850A (en) 1991-07-16

Family

ID=17932616

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30440589A Pending JPH03164850A (en) 1989-11-22 1989-11-22 Direct memory access device

Country Status (1)

Country Link
JP (1) JPH03164850A (en)

Similar Documents

Publication Publication Date Title
JPH03164850A (en) Direct memory access device
JP2712414B2 (en) Image storage circuit
JP3053196B2 (en) Image data raster converter
KR860002122B1 (en) Laser beam printer
JPH1069428A (en) Video display device
JPH0239383A (en) Image processor
JP3299147B2 (en) Cache control circuit
JPH0467964A (en) Page printer printing control method
JP2902709B2 (en) Image processing device
JP2581144B2 (en) Bus control device
JPH0290274A (en) Raster operation device
JPH0728623A (en) Control method for ring buffer
JPH02217943A (en) Rapid cache memory
JPH0311474A (en) Image editing device
JPS61260340A (en) Block transfer control part
JPS61153770A (en) Image processor
JPH04195355A (en) Direct memory access device
JPH03189755A (en) Inter-memory transfer device
JPH01219930A (en) Interrupt control circuit device for indirect address system
JPH0385658A (en) Data processor
JPH07325913A (en) Information processing system
JP2000181788A (en) File managing method for file system
JPH01310966A (en) Image memory access system
JPH02307149A (en) Direct memory access control system
JPS6367604A (en) Process signal converter