JPH05257864A - Direct memory access device - Google Patents

Direct memory access device

Info

Publication number
JPH05257864A
JPH05257864A JP5495492A JP5495492A JPH05257864A JP H05257864 A JPH05257864 A JP H05257864A JP 5495492 A JP5495492 A JP 5495492A JP 5495492 A JP5495492 A JP 5495492A JP H05257864 A JPH05257864 A JP H05257864A
Authority
JP
Japan
Prior art keywords
data
memory
dma
block
transfer
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
JP5495492A
Other languages
Japanese (ja)
Inventor
Sachio Yamato
佐知男 山戸
Daisaku Yamane
大作 山根
Hiroshi Miura
浩 三浦
Masaji Ishikawa
正司 石川
Yuuki Sudou
雄基 須藤
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.)
Japan Radio Co Ltd
Original Assignee
Japan Radio 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 Japan Radio Co Ltd filed Critical Japan Radio Co Ltd
Priority to JP5495492A priority Critical patent/JPH05257864A/en
Publication of JPH05257864A publication Critical patent/JPH05257864A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To make DMA transfer from a memory to a specific transfer destination device efficient when a series of data are stored in the memory divisionally as plural discontinuous blocks. CONSTITUTION:The blocks of the data 302 stored in the memory are given control information 303. The control information 303 indicates the head address of the block to be read next by DMA. Its head bit 304 is used to discriminate between the data 302 and control information 303. The data are read out of the memory by the DMA according to a DMA transfer command from a CPU and the head address of the block to be read next is decided according to the control information 303. Consequently, the data 302 stored as the discontinuous blocks can be transferred by the DMA with one DMA transfer command generated by the CPU and the frequency of actuation of the DMA decreases, so the DMA transfer efficiency is improved.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、メモリ上に記憶されて
いる直接アクセスしてデータを転送することが可能な直
接メモリアクセス装置(DMA)の改良に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an improvement of a direct memory access device (DMA) which is capable of directly accessing and transferring data stored in a memory.

【0002】[0002]

【従来の技術】従来から、コンピュータ等のデータ処理
装置においてDMAが用いられている。図3には、DM
Aを備えたデータ処理装置の構成が示されている。
2. Description of the Related Art Conventionally, DMA has been used in a data processing device such as a computer. In Figure 3, DM
The configuration of the data processing device with A is shown.

【0003】この図に示される装置は、メモリ101、
I/O102、CPU103及びDMA105をバス1
04により接続した構成である。CPU103がメモリ
101上のデータをI/O102を介して外部の転送先
装置に転送しようとする場合、CPU103はDMA1
05に対しDMA転送を行う旨の指令を発し、DMA1
05はこの指令に応じてメモリ101上のデータをI/
O102に書き込む。すなわち、DMA105はメモリ
101を直接アクセスし、I/O102を介して外部の
転送先装置にこのデータを転送する。DMA105は、
従って、メモリ101対I/O102の間でのデータの
転送を実行するものであり、また、メモリ101を複数
個備えている場合にはメモリ101対メモリ101の転
送を実現するものである。
The device shown in this figure comprises a memory 101,
Bus 1 for I / O 102, CPU 103, and DMA 105
It is the structure connected by 04. When the CPU 103 tries to transfer the data in the memory 101 to the external transfer destination device via the I / O 102, the CPU 103 uses the DMA1
05 issues a command to perform DMA transfer, and DMA1
05 responds to this command with I / O data stored in the memory 101.
Write to O102. That is, the DMA 105 directly accesses the memory 101 and transfers this data to an external transfer destination device via the I / O 102. DMA105 is
Therefore, the transfer of data between the memory 101 and the I / O 102 is executed, and when a plurality of memories 101 are provided, the transfer of the memory 101 to the memory 101 is realized.

【0004】[0004]

【発明が解決しようとする課題】このように、従来のデ
ータ処理装置によれば、DMA105を用いることによ
りCPU103の負担が軽減され、外部装置へ高速に大
量のデータ転送を行うことが可能である。しかし、メモ
リ上に一連のデータが不連続な複数のブロックに分れて
記憶されている場合、これをDMA転送しようとする
と、CPUが各ブロックごとに指令を発しなければなら
ない。すなわち、CPUがDMAをブロックの個数だけ
起動しなければならず、DMA転送の効率が低下してし
まう。
As described above, according to the conventional data processing device, the load on the CPU 103 is reduced by using the DMA 105, and a large amount of data can be transferred to an external device at high speed. .. However, when a series of data is divided into a plurality of discontinuous blocks and stored in the memory, the CPU must issue a command for each block when attempting the DMA transfer. That is, the CPU has to activate the DMA for the number of blocks, which reduces the efficiency of the DMA transfer.

【0005】今、従来におけるDMA転送効率は、次の
式によって求めることができる。
Now, the conventional DMA transfer efficiency can be obtained by the following equation.

【0006】[0006]

【数1】 この式に現れる変数のうち、D及びBが転送効率Aを下
げる原因となっている。例えば1ワードあたり(1ワー
ド=DMAが転送を行う最小単位のデータ)の転送時間
を1とした場合、DMAを起動するために要する時間は
10、CPUがデータブロックの順序を求める時間を3
0とすることができる。この場合に、100ワードを転
送するために要する時間は、転送すべきデータが格納さ
れているブロック数を変えて計算すると、次の表のよう
になる。
[Equation 1] Among the variables appearing in this equation, D and B cause the transfer efficiency A to decrease. For example, when the transfer time per word (1 word = the smallest unit of data transferred by DMA) is 1, the time required to activate the DMA is 10 and the time required for the CPU to determine the order of data blocks is 3
It can be zero. In this case, the time required to transfer 100 words is as shown in the following table when the number of blocks storing the data to be transferred is changed.

【0007】[0007]

【表1】 すなわち、データブロックの大きさが小さく、またデー
タブロックの個数が多いほど、DMA転送効率Aが下が
ってしまう。
[Table 1] That is, the smaller the data block size and the larger the number of data blocks, the lower the DMA transfer efficiency A becomes.

【0008】本発明は、このような問題点を解決するこ
とを課題としてなされたものであり、一連のデータがメ
モリ上において不連続な複数のブロックに分れて記憶さ
れている場合でも、これらのブロックに係るデータをD
MA転送により外部装置に効率良く転送することが可能
な装置を提供することを目的とする。
The present invention has been made to solve the above problems, and even when a series of data is divided and stored in a plurality of discontinuous blocks in a memory, these data are stored. Data related to the block
An object of the present invention is to provide a device capable of efficiently transferring to an external device by MA transfer.

【0009】[0009]

【課題を解決するための手段】このような目的を達成す
るために、本発明のDMAは、プロセッサからの指令に
応じメモリからデータを直接に読み込む手段と、データ
を転送先装置に書き込む手段と、メモリに記憶されてい
るデータにブロック単位で付与されている管理情報に基
づいて当該ブロックに続いて読み込むべきブロックを判
別し、判別結果に基づいてデータの読込み動作を制御す
ることにより、不連続な複数のブロックに分れて記憶さ
れているデータの読込みを管理する手段と、を備えるこ
とを特徴とする。
In order to achieve such an object, the DMA of the present invention comprises means for directly reading data from a memory in response to a command from a processor and means for writing data to a transfer destination device. Discontinuity is achieved by determining the block to be read subsequently to the block based on the management information added to the data stored in the memory in block units, and controlling the data read operation based on the determination result. Means for managing reading of data stored in a plurality of blocks.

【0010】また、本発明のデータ処理装置は、一連の
データを不連続な複数のブロックに分けて記憶すること
が可能であるとともに、これら不連続な複数のブロック
に付与され続いて読み込むべきブロックを示す管理情報
を記憶するメモリと、メモリ上のデータを転送先装置に
転送すべき旨の指令を発するプロセッサと、メモリに不
連続な複数のブロックに分れて記憶されている一連のデ
ータを、プロセッサからの1回の指令に応じて転送先装
置に転送する本発明のDMAと、を備えることを特徴と
する。
Further, the data processing apparatus of the present invention is capable of dividing a series of data into a plurality of discontinuous blocks and storing the data, and blocks to be read subsequently given to the plurality of discontinuous blocks. Memory for storing management information, a processor for issuing a command to transfer the data in the memory to the transfer destination device, and a series of data stored in the memory divided into a plurality of discontinuous blocks. , The DMA of the present invention for transferring to the transfer destination device in response to one command from the processor.

【0011】[0011]

【作用】本発明のDMAにおいては、管理手段によって
管理情報に基づく判別が実行される。メモリに一連のデ
ータが不連続な複数のブロックに分れて記憶されている
場合、この判別によってあるブロックに続いて読み込む
べきブロックが判別される。さらに管理手段は、この判
別結果に基づいてデータの読込み動作を制御する。従っ
て、一連のデータがメモリ上において不連続な複数のブ
ロックに分れて記憶されている場合であっても、1回の
DMA転送指令によってこれらのデータを転送すること
が可能となり、DMA転送効率が向上する。
In the DMA of the present invention, the management means makes the determination based on the management information. When a series of data is divided into a plurality of discontinuous blocks and stored in the memory, a block to be read subsequent to a certain block is determined by this determination. Further, the management unit controls the data reading operation based on the determination result. Therefore, even when a series of data is divided and stored in a plurality of discontinuous blocks on the memory, it becomes possible to transfer these data by one DMA transfer command, and the DMA transfer efficiency can be improved. Is improved.

【0012】また、本発明のデータ処理装置において
も、同様の作用が得られる。
The same operation can be obtained in the data processing device of the present invention.

【0013】[0013]

【実施例】以下、本発明の好適な実施例について図面に
基づき説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will be described below with reference to the drawings.

【0014】図1には、本発明の一実施例に係るDMA
201の構成が示されている。この図に示されるDMA
201は、データ読み込みブロック202、DMA制御
ブロック203、データ書き込みブロック204から構
成されている。この図のDMA201は、図3に示され
るような構成を有するデータ処理装置に適用可能であ
る。
FIG. 1 shows a DMA according to an embodiment of the present invention.
The configuration of 201 is shown. DMA shown in this figure
201 comprises a data reading block 202, a DMA control block 203, and a data writing block 204. The DMA 201 of this figure is applicable to a data processing device having a configuration as shown in FIG.

【0015】データ読み込みブロック202は、メモリ
101上に書込まれているデータをCPU103からの
DMA転送指令に応じて読み込むブロックである。DM
A制御ブロック203は、データ読み込みブロック20
2によって読み込まれたデータについて管理情報の判別
を行いつつデータ書き込みブロック204に当該データ
を出力する。データ書き込みブロック204は、データ
をI/O102に書き込むことにより所定の転送先装置
に転送する。
The data reading block 202 is a block for reading the data written in the memory 101 in response to a DMA transfer command from the CPU 103. DM
The A control block 203 is the data reading block 20.
The data read in 2 is output to the data write block 204 while determining management information. The data write block 204 transfers the data to a predetermined transfer destination device by writing the data to the I / O 102.

【0016】DMA制御ブロック203によって判別さ
れる対象となる管理情報は、図2に示されるように各ブ
ロックごとに付与されている情報303である。メモリ
101上にデータが書き込まれる際、図2に示されるよ
うに、複数の不連続なブロック301に分れて書き込ま
れ、その際、各ブロック301に、n個のデータ302
に加え管理情報303が付与されるようにする。
The management information to be judged by the DMA control block 203 is the information 303 given to each block as shown in FIG. When data is written on the memory 101, as shown in FIG. 2, it is divided into a plurality of discontinuous blocks 301 and written, and at that time, n pieces of data 302 are written in each block 301.
In addition to this, management information 303 is added.

【0017】なお、データ302及び管理情報303の
先頭1ビット304はデータ302であるか管理情報3
03であるかを示すビットである。DMA制御ブロック
203は、メモリ101から読出した情報の先頭ビット
304が“0”である場合にはデータ302であると判
別し、“1”である場合には管理情報と判別して制御を
行う。DMA制御ブロック203は、管理情報303と
してメモリ101に格納されている内容から、次に読み
込むべきブロックの先頭番地を知り、次のブロックに係
るデータの読出しを行う。
The first 1 bit 304 of the data 302 and the management information 303 is the data 302 or the management information 3
It is a bit indicating whether it is 03. The DMA control block 203 determines that the data 302 is the data 302 when the first bit 304 of the information read from the memory 101 is “0”, and determines the management information when it is “1” and performs control. .. The DMA control block 203 knows the start address of the block to be read next from the contents stored in the memory 101 as the management information 303, and reads the data of the next block.

【0018】本実施例におけるDMA転送効率Aは、次
の式により求められる。
The DMA transfer efficiency A in this embodiment is obtained by the following equation.

【0019】[0019]

【数2】 すなわち、本実施例において上の式で求められるDMA
転送効率Aは、DMA201の起動回数が1回であるた
め、表2に示されるように従来に比べ著しく向上する。
例えば、転送ブロック数が2、1ブロックあたりのワー
ド数が50の場合、従来66.7%の転送効率であった
ものが87.0%まで向上し、転送ブロック数が10、
1ブロックあたりのワード数が10である場合に従来2
1.3%であった転送効率が64.5%まで向上する。
[Equation 2] That is, the DMA obtained by the above equation in this embodiment.
Since the number of times the DMA 201 is activated is one, the transfer efficiency A is significantly improved as compared with the conventional one as shown in Table 2.
For example, when the number of transfer blocks is 2, and the number of words per block is 50, the transfer efficiency of 66.7% in the past is improved to 87.0%, and the transfer block number is 10,
Conventional 2 when the number of words per block is 10
The transfer efficiency, which was 1.3%, is improved to 64.5%.

【0020】[0020]

【表2】 [Table 2]

【0021】[0021]

【発明の効果】以上説明したように、本発明によれば、
メモリにデータを格納する際ブロック単位で管理情報を
付与し、この管理情報に基づいて次に読み込むべきブロ
ックを判別するようにしたため、DMAの起動回数が減
少し、転送効率が著しく向上する。
As described above, according to the present invention,
When the data is stored in the memory, the management information is added in block units, and the block to be read next is determined based on this management information. Therefore, the number of DMA activations is reduced and the transfer efficiency is significantly improved.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例に係るDMAの構成を示すブ
ロック図である。
FIG. 1 is a block diagram showing a configuration of a DMA according to an embodiment of the present invention.

【図2】この実施例におけるメモリ上のデータ記憶態様
を示す図である。
FIG. 2 is a diagram showing a data storage mode on a memory in this embodiment.

【図3】一般的なデータ処理装置の構成を示すブロック
図である。
FIG. 3 is a block diagram showing a configuration of a general data processing device.

【符号の説明】[Explanation of symbols]

101 メモリ 102 I/O 103 CPU 201 DMA 202 データ読み込みブロック 203 DMA制御ブロック 204 データ書き込みブロック 301 ブロック 302 データ 303 管理情報 304 データ又は管理情報の先頭1ビット 101 Memory 102 I / O 103 CPU 201 DMA 202 Data Read Block 203 DMA Control Block 204 Data Write Block 301 Block 302 Data 303 Management Information 304 Data or First 1 Bit of Management Information

───────────────────────────────────────────────────── フロントページの続き (72)発明者 石川 正司 東京都三鷹市下連雀五丁目1番1号 日本 無線株式会社内 (72)発明者 須藤 雄基 東京都三鷹市下連雀五丁目1番1号 日本 無線株式会社内 ─────────────────────────────────────────────────── ─── Continuation of front page (72) Inventor Shoji Ishikawa 5-1-1 Shimorenjaku, Mitaka-shi, Tokyo Within Japan Radio Co., Ltd. (72) 5-1-1 1-1 Shimorenjaku, Mitaka-shi, Tokyo Inventor Within the corporation

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 プロセッサからの指令に応じメモリから
データを直接に読み込む手段と、 データを転送先装置に書き込む手段と、 メモリに記憶されているデータにブロック単位で付与さ
れている管理情報に基づいて当該ブロックに続いて読み
込むべきブロックを判別し、判別結果に基づいてデータ
の読み込み動作を制御することにより、不連続な複数の
ブロックに分れて記憶されているデータの読み込みを管
理する手段と、 を備えることを特徴とする直接メモリアクセス装置。
1. A means for directly reading data from a memory in response to a command from a processor, a means for writing the data to a transfer destination device, and a management information added to the data stored in the memory in block units. A block to be read subsequent to the block concerned, and controlling the data read operation based on the result of the judgment, thereby managing the reading of the data stored divided into a plurality of discontinuous blocks. A direct memory access device comprising:
【請求項2】 一連のデータを不連続な複数のブロック
に分けて記憶することが可能であると共に、これら不連
続な複数のブロックに付与され続いて読み込むべきブロ
ックを示す管理情報を記憶するメモリと、 メモリ上のデータを転送先装置に転送すべき旨の指令を
発するプロセッサと、 メモリに不連続な複数のブロックに分かれて記憶されて
いる一連のデータを、プロセッサからの1回の指令に応
じて転送先装置に転送する請求項1記載の直接メモリア
クセス装置と、 を備えることを特徴とするデータ処理装置。
2. A memory capable of storing a series of data by dividing it into a plurality of discontinuous blocks and storing management information indicating a block to be read subsequently given to the plurality of discontinuous blocks. And a processor issuing a command to transfer the data in the memory to the transfer destination device, and a series of data stored in the memory divided into a plurality of discontinuous blocks into one command from the processor. A direct memory access device according to claim 1, which transfers data to a transfer destination device in response thereto, and a data processing device.
JP5495492A 1992-03-13 1992-03-13 Direct memory access device Pending JPH05257864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5495492A JPH05257864A (en) 1992-03-13 1992-03-13 Direct memory access device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5495492A JPH05257864A (en) 1992-03-13 1992-03-13 Direct memory access device

Publications (1)

Publication Number Publication Date
JPH05257864A true JPH05257864A (en) 1993-10-08

Family

ID=12985068

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5495492A Pending JPH05257864A (en) 1992-03-13 1992-03-13 Direct memory access device

Country Status (1)

Country Link
JP (1) JPH05257864A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS634219A (en) * 1986-06-24 1988-01-09 Canon Inc Manufacture of substrate with projection for spacer

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS634219A (en) * 1986-06-24 1988-01-09 Canon Inc Manufacture of substrate with projection for spacer

Similar Documents

Publication Publication Date Title
EP0374074A2 (en) Computer system having efficient data transfer operations
JP4768697B2 (en) Storage system and data transfer method
JP2006302255A (en) Data storage device with nonvolatile memory of different kind and method for driving thereof
JPH1131102A (en) Data storage system and access control method applied to the system
JP2001344148A (en) Boot block flash memory control circuit, ic memory card provided with it, semiconductor storage device, and boot block flash memory deleting method
JPH08235092A (en) Data transfer controller
JP2000222226A (en) Access controller and accessing method
JPH08221312A (en) Memory card device
JPH05257864A (en) Direct memory access device
JPH02208716A (en) Character and pattern output device
JPH0778043A (en) Image processor
TWI742565B (en) Memory device, electronic device, and associated read method
JPH0411897B2 (en)
JPH01169643A (en) Filing device for picture data
JP2964504B2 (en) Document processing device
JPH0863396A (en) Disk cache device
JPH11249937A (en) Computer system
JPH0754544B2 (en) Image memory access circuit
JPH07248927A (en) Input/output emulation circuit and data checking circuit
JPH06214939A (en) Dma controller
JPH0527929A (en) Printer control part
JPS6194167A (en) Peripheral controller
JPH04337851A (en) Memory access system
JPS63285657A (en) Storage device
JPH05233451A (en) Disk cache memory controller system