JPH0564820B2 - - Google Patents
Info
- Publication number
- JPH0564820B2 JPH0564820B2 JP62058619A JP5861987A JPH0564820B2 JP H0564820 B2 JPH0564820 B2 JP H0564820B2 JP 62058619 A JP62058619 A JP 62058619A JP 5861987 A JP5861987 A JP 5861987A JP H0564820 B2 JPH0564820 B2 JP H0564820B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- channel data
- address
- transfer
- channel
- 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 - Lifetime
Links
- 238000012546 transfer Methods 0.000 claims description 83
- 238000013500 data storage Methods 0.000 claims description 10
- 238000004891 communication Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 238000000034 method Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000013144 data compression Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/20—Handling requests for interconnection or transfer for access to input/output bus
- G06F13/28—Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Bus Control (AREA)
Description
【発明の詳細な説明】
〔概要〕
ダイレクトメモリアクセス制御方式において、
メモリと入出力装置との間のデータ転送の制御に
必要なチヤネルデータが格納手段に格納され、チ
ヤネルデータアドレス保持部で示されるチヤネル
データを格納手段から取り込んでデータ転送制御
を行ない、そのデータの転送終了に応じてチエイ
ンチヤネルデータアドレスをチヤネルデータアド
レス保持部に設定することにより、チヤネルデー
タチエインが可能となつて複数のデータを連続し
て転送制御することができる。[Detailed Description of the Invention] [Summary] In a direct memory access control method,
Channel data necessary for controlling data transfer between the memory and the input/output device is stored in the storage means, and the channel data indicated by the channel data address holding section is fetched from the storage means to control the data transfer, and the data transfer is controlled. By setting the chain channel data address in the channel data address holding section in response to the completion of the transfer, channel data chaining becomes possible and transfer control of a plurality of data can be performed continuously.
本考案は、マイクロプロセツサを用いた情報処
理装置、特に高密度な画情報を高速転送するフア
クシミリ装置の他において、メモリと入出力装置
との間のデータ転送を直接制御するダイレクトメ
モリアクセス(以下、「DMA」という。)制御方
式に関する。
This invention uses direct memory access (hereinafter referred to as "direct memory access"), which directly controls data transfer between memory and input/output devices, in information processing devices using microprocessors, especially in facsimile devices that transfer high-density image information at high speed. (referred to as ``DMA''.) Concerning control methods.
従来のフアクシミリ装置においては、装置内部
のメモリと入出力装置との間で高速なデータ転送
を必要とするために、マイクロプロセツサ(主制
御部)がデータ転送を直接制御するのではなく、
DMA制御装置がマイクロプロセツサの動作とは
独立して、メモリと入出力装置との間のデータ転
送を制御するのが普通である。
Conventional facsimile devices require high-speed data transfer between the device's internal memory and input/output devices, so the microprocessor (main control section) does not directly control data transfer.
Typically, a DMA controller controls data transfers between memory and input/output devices independent of microprocessor operation.
第3図は、フアクシミリ装置に用いられる従来
のDMA制御方式を説明するブロツク構成図であ
る。 FIG. 3 is a block diagram illustrating a conventional DMA control method used in facsimile devices.
DMA制御装置300の制御により、メモリ3
50と入出力装置360との間でデータ転送が行
なわれる。 Under the control of the DMA control device 300, the memory 3
Data transfer is performed between 50 and input/output device 360.
データ転送制御に必要なチヤネルデータが保持
されるDMA制御装置300のレジスタ群310
は、制御レジスタ311、状態レジスタ312、
アドレスレジスタ313および転送語数レジスタ
314により構成される。制御レジスタ311に
は動作の種類(メモリと入出力装置との間のデー
タ転送の方向)を示す情報が格納され、状態レジ
スタ312にはその時点のデータ転送の状況を示
す情報が格納され、アドレスレジスタ313には
データの読み出しあるいは書き込みを行なうメモ
リのアドレス情報が格納され、転送語数レジスタ
314には転送するデータ量の情報が格納され
る。 Register group 310 of DMA control device 300 that holds channel data necessary for data transfer control
are a control register 311, a status register 312,
It is composed of an address register 313 and a transfer word count register 314. The control register 311 stores information indicating the type of operation (direction of data transfer between memory and input/output device), and the status register 312 stores information indicating the status of data transfer at that time. Register 313 stores address information of a memory from which data is to be read or written, and transfer word count register 314 stores information on the amount of data to be transferred.
以下、メモリ350内にある複数のデータブロ
ツク351〜354を入出力装置360に順次転
送する場合の動作について説明する。 The operation of sequentially transferring a plurality of data blocks 351 to 354 in the memory 350 to the input/output device 360 will be described below.
マイクロプロセツサ370は、共通バス380
を介してDMA制御装置300内の制御レジスタ
311に対して、メモリ350から入出力装置3
60へのデータ転送の指示情報を保持させ、アド
レスレジスタ313にはデータブロツク351の
格納アドレスを、転送語数レジスタ314にはデ
ータブロツク351のブロツク内語数をそれぞれ
保持させる。 The microprocessor 370 is connected to a common bus 380.
from the memory 350 to the control register 311 in the DMA control device 300 via the input/output device 3
The address register 313 holds the storage address of the data block 351, and the transfer word count register 314 holds the number of words in the data block 351.
ここで、マイクロプロセツサ370は入出力装
置360に対してデータの出力動作の開始を指示
する。それ以降、マイクロプロセツサ370はデ
ータ転送動作から解放されて他の作業を行なうこ
とができる。 Here, the microprocessor 370 instructs the input/output device 360 to start the data output operation. From then on, microprocessor 370 is freed from data transfer operations and can perform other tasks.
一方、DMA制御装置300の制御部330
は、レジスタ群310に保持させたチヤネルデー
タに基づき、入出力装置360のデータ転送要求
信号391に従つて、メモリ350内のデータブ
ロツク351内のデータを順次読み取つて入出力
装置360に転送する。ここでのデータ転送は、
1語ずつアドレスレジスタ313の値を1加算
し、転送語数レジスタ314の値を1減算し、転
送語数レジスタ314での減算結果が0になるま
でデータ転送要求のタイミングに従つて行なわれ
る。 On the other hand, the control unit 330 of the DMA control device 300
Based on the channel data held in the register group 310 and in accordance with the data transfer request signal 391 of the input/output device 360, the data block 351 in the memory 350 is sequentially read and transferred to the input/output device 360. The data transfer here is
Word by word, the value in the address register 313 is incremented by 1, and the value in the transfer word count register 314 is subtracted by 1, until the subtraction result in the transfer word count register 314 becomes 0, in accordance with the timing of the data transfer request.
データブロツク351がすべて転送されたとき
に、DMA制御装置300の制御部330は状態
レジスタ312にデータ転送終了情報を書き込
み、さらにマイクロプロセツサ370に対して通
常割り込み信号393によりデータ転送終了を通
知する。マイクロプロセツサ370は、その割り
込みによりDMA制御装置300内の状態レジス
タ312を参照してデータブロツク351の転送
が終了したことを認識する。 When all data blocks 351 have been transferred, the control section 330 of the DMA control device 300 writes data transfer end information to the status register 312, and also notifies the microprocessor 370 of the end of data transfer by a normal interrupt signal 393. . The microprocessor 370 uses the interrupt to refer to the status register 312 in the DMA control device 300 and recognizes that the transfer of the data block 351 has been completed.
次にマイクロプロセツサ370は、データブロ
ツク352を入出力装置360に転送するよう
に、DMA制御装置300内の制御レジスタ31
1をセツトし、アドレスレジスタ313にデータ
ブロツク352の第一格納アドレスを保持させ、
かつ転送語数レジスタ314にブロツク内語数を
設定することにより、同様にDMA制御装置30
0が再び入出力装置360に対してデータ転送を
開始する。以下同様の操作を繰り返して、メモリ
350内のデータブロツク353,354が順次
入出力装置360へ転送される。 Microprocessor 370 then controls control register 31 in DMA controller 300 to transfer data block 352 to input/output device 360.
1 and causes the address register 313 to hold the first storage address of the data block 352,
By setting the number of words in the block in the transfer word count register 314, the DMA control device 30
0 starts data transfer to the input/output device 360 again. Thereafter, similar operations are repeated to sequentially transfer data blocks 353 and 354 in memory 350 to input/output device 360.
ところが、このような従来方式では、前述のよ
うに複数のデータブロツク351〜354を順次
転送する場合には、各ブロツクの切り替え時ごと
にマイクロプロセツサ370の制御を介さなけれ
ばならなかつた。すなわち、たとえば最初のデー
タブロツク351の転送が終了した時点で、メモ
リ350と入出力装置360との間のデータ転送
制御が、DMA制御装置300からマイクロプロ
セツサ370に移行し、改めて次のデータ転送の
指示がDMA制御装置300に出される。
However, in such a conventional system, when a plurality of data blocks 351 to 354 are sequentially transferred as described above, control by the microprocessor 370 must be used each time each block is switched. That is, for example, when the transfer of the first data block 351 is completed, data transfer control between the memory 350 and the input/output device 360 is transferred from the DMA control device 300 to the microprocessor 370, and the next data transfer is started again. An instruction is issued to the DMA control device 300.
このとき、マイクロプロセツサ370は、デー
タ転送終了を示す割り込み信号が「DMA制御装
置300からの割り込みであり、かつデータブロ
ツク351のデータ転送終了である」ことを認識
し、さらにDMA制御装置300に対して、次の
データブロツク352のデータ転送に必要なチヤ
ネルデータをレジスタ群310に設定する動作を
行なう必要があつた。 At this time, the microprocessor 370 recognizes that the interrupt signal indicating the end of the data transfer is an interrupt from the DMA control device 300 and indicates the end of the data transfer of the data block 351, and also sends the interrupt signal to the DMA control device 300. On the other hand, it was necessary to set channel data necessary for data transfer of the next data block 352 in the register group 310.
このように、データブロツク351の最終デー
タ語が転送されてから、次のデータブロツク35
2内の最初のデータ語が転送されるまでの間は、
マイクロプロセツサ370が制御情報を処理中で
あり、入出力装置360はデータ転送待ちの状態
となる。 In this manner, the last data word of data block 351 is transferred before the next data block 35 is transferred.
Until the first data word in 2 is transferred,
The microprocessor 370 is processing control information, and the input/output device 360 is in a state of waiting for data transfer.
ここで、入出力装置360がモデムおよび網制
御装置を介して回線に接続される回線入出力装置
の場合には、たとえば接続される回線のデータ送
信速度が64kビツト/秒程度であれば、データ転
送待ち状態の許容範囲は、1語8ビツトとする
と、
1/(64000/8)=125×10-6 〔秒〕
となる。 Here, if the input/output device 360 is a line input/output device connected to a line via a modem and a network control device, for example, if the data transmission speed of the connected line is about 64 kbit/s, the data The permissible range of the transfer waiting state is 1/(64000/8)=125×10 -6 [seconds], assuming that one word is 8 bits.
このデータ転送待ちの許容時間は、前述の処理
を行なうマイクロプロセツサの処理速度に対して
かなり厳しい条件であり、通常それに対処するた
めには、専用のマイクロプロセツサあるいは高速
のマイクロプロセツサを用いる必要があつた。 The allowable time for waiting for data transfer is a fairly strict condition for the processing speed of the microprocessor that performs the above-mentioned processing, and to cope with this, a dedicated microprocessor or a high-speed microprocessor is usually used. The need arose.
本発明は、このような従来の問題点を解決する
もので、マイクロプロセツサを介在させることな
く、ブロツク化された複数のデータを連続して転
送することが可能なDMA制御方式を提供するこ
とを目的とする。 The present invention solves these conventional problems by providing a DMA control method that can continuously transfer a plurality of blocks of data without the intervention of a microprocessor. With the goal.
第1図は、本発明の原理ブロツク図である。 FIG. 1 is a block diagram of the principle of the present invention.
図において、チヤネルデータ保持部101は、
メモリと入出力装置との間のデータ転送を制御す
るためのチヤネルデータを保持する。 In the figure, the channel data holding unit 101 is
Holds channel data for controlling data transfer between memory and input/output devices.
制御手段102は、このチヤネルデータに基づ
いてメモリと入出力装置との間のデータ転送を制
御する。 Control means 102 controls data transfer between the memory and the input/output device based on this channel data.
チヤネルデータ格納手段103は、チヤネルデ
ータ保持部101に書き込まれるチヤネルデータ
と、続けて書き込まれるチヤネルデータの格納ア
ドレスとが格納される。 The channel data storage unit 103 stores channel data to be written to the channel data holding unit 101 and a storage address for the channel data to be subsequently written.
チヤネルデータアドレス保持部104は、チヤ
ネルデータ保持部101に書き込まれるチヤネル
データの格納アドレスを保持する。 Channel data address holding unit 104 holds a storage address of channel data written to channel data holding unit 101.
チエインチヤネルデータアドレス保持部105
は、続けて書き込まれるチヤネルデータの格納ア
ドレスを保持する。 Chain channel data address holding unit 105
holds the storage address of the channel data to be written subsequently.
書替制御手段106は、このチヤネルデータア
ドレス保持部104がアドレス指定し、読み出さ
れたチヤネルデータの書き替え制御を行ない、か
つチヤネルデータ保持部101のチヤネルデータ
によるデータ転送制御が終了したときに、チエイ
ンチヤネルデータアドレス保持部105に保持さ
れているアドレスをチヤネルデータアドレス保持
部104に書き替える。 The rewriting control means 106 performs rewriting control of the channel data that has been addressed and read by the channel data address holding section 104, and when the data transfer control using the channel data of the channel data holding section 101 is completed. , rewrites the address held in the channel data address holding unit 105 to the channel data address holding unit 104.
データ転送制御時にチヤネルデータアドレス保
持部104に設定されるアドレスに従つて、書替
制御手段106を介してチヤネルデータ格納手段
103からチヤネルデータをチヤネルデータ保持
部101に取り込み、制御手段102はそのチヤ
ネルデータに基づいて、メモリと入出力装置との
間のデータ転送制御を行なう。
According to the address set in the channel data address holding unit 104 during data transfer control, channel data is fetched from the channel data storage unit 103 into the channel data holding unit 101 via the rewriting control unit 106, and the control unit 102 Data transfer control between the memory and the input/output device is performed based on the data.
チヤネルデータが格納されるチヤネルデータ格
納手段103には、チエインされるチヤネルデー
タの格納アドレスが格納されており、読み出され
たそのアドレスがチエインチヤネルデータアドレ
ス保持部105に保持される。 The channel data storage unit 103 in which channel data is stored stores the storage address of the channel data to be chained, and the read address is held in the chain channel data address holding unit 105.
一つのチヤネルデータが示すデータの転送終了
に応じて、書替制御手段106がチエインチヤネ
ルデータアドレス保持部105に保持されている
アドレスをチヤネルデータアドレス保持部104
に書き替え、そのアドレスにより指定されるチヤ
ネルデータを続けてチヤネルデータ保持部101
に取り込むことにより、チヤネルデータのチエイ
ンが可能となり、複数のデータブロツクの転送制
御を連続して行なうことができる。 Upon completion of transfer of data indicated by one channel data, the rewrite control means 106 transfers the address held in the chain channel data address holding unit 105 to the channel data address holding unit 104.
The channel data specified by the address is continuously stored in the channel data holding unit 101.
By importing data into a data block, channel data can be chained, and transfer control of a plurality of data blocks can be performed continuously.
以下、図面に基づいて本発明の実施例について
詳細に説明する。
Hereinafter, embodiments of the present invention will be described in detail based on the drawings.
第2図は、本発明の一実施例の構成を示すブロ
ツク構成図である。なお、本実施例はフアクシミ
リ装置において、メモリと回線入出力装置との間
のデータ転送制御に関する構成例である。 FIG. 2 is a block configuration diagram showing the configuration of an embodiment of the present invention. Note that this embodiment is an example of a configuration related to data transfer control between a memory and a line input/output device in a facsimile device.
実施例の第1図との対応関係
ここで、本発明の実施例と第1図との対応関係
を示しておく。 Correspondence between the embodiment and FIG. 1 Here, the correspondence between the embodiment of the present invention and FIG. 1 will be shown.
チヤネルデータ保持部101は、制御レジスタ
CT211、状態レジスタST212、アドレスレ
ジスタAD213および転送語数レジスタBC2
14に相当し、チヤネルデータアドレス保持部1
04はチヤネルアドレスレジスタ216に相当
し、チエインチヤネルデータアドレス保持部10
6は値チエインレジスタNX215に相当する。
各レジスタにより、レジスタ群210が構成され
る。 The channel data holding unit 101 is a control register.
CT211, status register ST212, address register AD213 and transfer word count register BC2
14, the channel data address holding unit 1
04 corresponds to the channel address register 216, and the channel data address holding section 10
6 corresponds to value chain register NX215.
Each register constitutes a register group 210.
制御手段102は制御部230に相当する。 The control means 102 corresponds to the control section 230.
チヤネルデータ格納手段103は、メモリ25
0に相当し、チエインチヤネルデータのアドレス
を含むチヤネルデータ255〜257と、データ
ブロツク251〜153を格納する。 Channel data storage means 103 includes memory 25
0, and stores channel data 255 to 257 including the address of the channel data and data blocks 251 to 153.
書替制御手段106は、リードライト制御部2
20に相当する。 The rewrite control means 106 is a read/write control unit 2
It corresponds to 20.
なお、レジスタ群210、リードライト制御部
220および制御部230によりDMA制御装置
200が構成される。 Note that the register group 210, the read/write control section 220, and the control section 230 constitute the DMA control device 200.
実施例の構成
以上のような対応関係があるものとして、以下
本発明の実施例について説明する。 Configuration of Embodiment Embodiments of the present invention will be described below, assuming that the above-mentioned correspondence exists.
第2図において、マイクロプロセツサ270に
は共通バス280を介してDMA制御装置20
0、メモリ250および入出力装置260が接続
される。メモリ250はRAM(随時書込み読出
し自由メモリ)から構成され、複数のデータブロ
ツク251〜253と、各データブロツクに対応
するチヤネルデータ255〜257が格納されて
いる。入出力装置260は、モデム261および
網制御装置NCU263を介して通信回線265
に接続される。 In FIG. 2, a microprocessor 270 is connected to a DMA controller 20 via a common bus 280.
0, memory 250 and input/output device 260 are connected. The memory 250 is composed of a RAM (random read/write memory), and stores a plurality of data blocks 251 to 253 and channel data 255 to 257 corresponding to each data block. The input/output device 260 connects to a communication line 265 via a modem 261 and a network control unit NCU 263.
connected to.
DMA制御装置200は、データ転送制御に必
要なチヤネルデータを保持するレジスタ群210
と、メモリ250とレジスタ群210との間のチ
ヤネルデータの読出しおよび書込みを制御するリ
ードライト制御部220と、制御部230とを有
する。制御部230は、レジスタ群210および
リードライト制御部220に接続され、入出力装
置260からのデータ転送要求信号291が入力
され、またマイクロプロセツサ270に対して割
り込み信号293を送出する。 The DMA control device 200 includes a register group 210 that holds channel data necessary for data transfer control.
, a read/write control section 220 that controls reading and writing of channel data between the memory 250 and the register group 210, and a control section 230. The control section 230 is connected to the register group 210 and the read/write control section 220, receives a data transfer request signal 291 from the input/output device 260, and sends an interrupt signal 293 to the microprocessor 270.
実施例の動作
本実施例では、メモリ250内のデータブロツ
ク251〜253を入出力装置260、モデム2
61および網制御装置NCU263を介して通信
回線265に順次送信する場合について説明す
る。なお、メモリ250内のデータブロツク25
1〜253を入出力装置260へ転送制御するの
に必要なチヤネルデータ255〜257は、あら
かじめメモリ250の一部に格納されている。 Operation of Embodiment In this embodiment, the data blocks 251 to 253 in the memory 250 are transferred to the input/output device 260 and the modem 2.
61 and the network control unit NCU 263 to the communication line 265 will be described. Note that the data block 25 in the memory 250
Channel data 255 to 257 necessary to control the transfer of data 1 to 253 to the input/output device 260 are stored in a part of the memory 250 in advance.
マイクロプロセツサ270は、DMA制御装置
200に対して、データブロツク251の転送に
必要なチヤネルデータ255が格納されているア
ドレスをチヤネルアドレスレジスタ216に設定
し、さらに入出力装置260に対してデータ送信
を行なうように指示する。 The microprocessor 270 sets the address where the channel data 255 necessary for transferring the data block 251 is stored in the channel address register 216 for the DMA control device 200, and also sends the data to the input/output device 260. instruct them to do so.
入出力装置260は、マイクロプロセツサ27
0からの送信開始の指示を受けて、DMA制御装
置200にデータ転送要求信号291を送出す
る。 The input/output device 260 includes a microprocessor 27
Upon receiving the instruction to start transmission from 0, the data transfer request signal 291 is sent to the DMA control device 200.
このデータ転送要求信号291が入力された
DMA制御装置200の制御部230は、リード
ライト制御部220を起動し、チヤネルアドレス
レジスタ216を読み出し、当該レジスタに設定
されているアドレス内のチヤネルデータをレジス
タ群210に読み込むように制御する。すなわ
ち、データブロツク251に対応するチヤネルデ
ータ255の制御データCT、状態データST、ア
ドレスデータAD、転送語数データBC、および
チエインされるチヤネルデータのチエインアドレ
スNXが、それぞれ制御レジスタ211、状態レ
ジスタ212、アドレスレジスタ213、転送語
数レジスタ214およびチエインレジスタ215
に書き込まれる。 This data transfer request signal 291 is input
The control unit 230 of the DMA control device 200 activates the read/write control unit 220, reads the channel address register 216, and controls the channel data within the address set in the register to be read into the register group 210. That is, the control data CT, status data ST, address data AD, transfer word count data BC, and chain address NX of channel data to be chained are stored in the control register 211, status register 212, and channel data 255 corresponding to the data block 251, respectively. Address register 213, transfer word count register 214 and chain register 215
will be written to.
制御部230は、制御レジスタ211によりメ
モリ250から入出力装置260へのデータ転送
であることを判断し、アドレスレジスタ213に
設定されているアドレスに従つて、データブロツ
ク251の第一語を読み取つて入出力装置260
に転送する。このとき、アドレスレジスタ213
の値を1加算し、転送語数レジスタ214の値を
1減算処理してそれぞれ更新する。 The control unit 230 determines by the control register 211 that data is to be transferred from the memory 250 to the input/output device 260, and reads the first word of the data block 251 according to the address set in the address register 213. Input/output device 260
Transfer to. At this time, address register 213
The value of the transfer word count register 214 is updated by 1, and the value of the transfer word count register 214 is subtracted by 1.
入出力装置260は、メモリ250から転送さ
れた一語のデータを1ビツトずつ直列データに変
換し、モデム261および網制御装置NCU26
3を介して通信回線265へ送出する。それとと
もに、DMA制御装置200の制御部230へデ
ータ転送要求信号291を送出する。 The input/output device 260 converts one word of data transferred from the memory 250 into serial data one bit at a time, and sends it to the modem 261 and network control unit NCU 26.
3 to the communication line 265. At the same time, a data transfer request signal 291 is sent to the control unit 230 of the DMA control device 200.
以降、同様の操作を繰り返してデータブロツク
251内の全データが順次転送される。データブ
ロツク251がすべて入出力装置260へ転送さ
れ、さらに通信回線265へ送信されると、
DMA制御装置200の転送語数レジスタ214
の減算結果が0となり、制御部230は状態レジ
スタ212にデータブロツク251の転送終了の
旨を書き込む。同時に制御部230は、制御レジ
スタ211の内容を調べ、データチエインを行な
う指示があれば、リードライト制御部220に対
してチエインレジスタ215の値をチヤネルアド
レスレジスタ216へ書き込むように指示する。 Thereafter, similar operations are repeated to sequentially transfer all data in the data block 251. When all data blocks 251 are transferred to the input/output device 260 and further transmitted to the communication line 265,
Transfer word count register 214 of DMA control device 200
The subtraction result becomes 0, and the control unit 230 writes to the status register 212 that the transfer of the data block 251 has been completed. At the same time, the control unit 230 checks the contents of the control register 211 and, if there is an instruction to perform a data chain, instructs the read/write control unit 220 to write the value of the chain register 215 to the channel address register 216.
チエインレジスタ215に保持されているチエ
インアドレスデータは、連続して転送されるデー
タブロツク252の転送に必要なチヤネルデータ
256の格納アドレスであり、したがつて、リー
ドライト制御部220がチヤネルアドレスレジス
タ216により指定されるアドレスのチヤネルデ
ータ256をレジスタ群210のレジスタ211
〜215に書き込み、制御部230にレジスタの
設定完了通知を行なうことにより、再度制御部2
30が動作を開始し、連続してデータブロツク2
52の転送が開始される。 The chain address data held in the chain register 215 is the storage address of the channel data 256 necessary for transferring the data blocks 252 that are continuously transferred. The channel data 256 at the address specified by is stored in the register 211 of the register group 210.
~ 215 and notifies the control unit 230 of register setting completion, the control unit 2
30 starts operating, and data block 2 is continuously
52 transfer is started.
以下同様に、データブロツク253が入出力装
置260に転送されるが、データブロツク253
のデータ転送に対応するチヤネルデータ257の
制御データが、データチエインを指示していない
場合には、データブロツク253内のすべてのデ
ータが転送された時点で、制御部230はマイク
ロプロセツサ270に対して、割り込み信号29
3を送出してデータ転送終了を通知する。 Similarly, the data block 253 is transferred to the input/output device 260, but the data block 253
If the control data of the channel data 257 corresponding to the data transfer does not instruct the data chain, the control unit 230 sends a command to the microprocessor 270 when all the data in the data block 253 has been transferred. interrupt signal 29
3 to notify the end of data transfer.
発明の変形態様
本実施例では、複数のデータブロツクを順次チ
エインし、連続してデータ転送を行なう方式にお
いて、一つの入出力装置とメモリとの間で行なわ
れるDMA制御方式について説明したが、複数の
入出力装置とメモリとの間のデータ転送において
も同様に実現可能である。 Modifications of the Invention In this embodiment, a DMA control method performed between one input/output device and a memory in a method of sequentially chaining a plurality of data blocks and performing continuous data transfer has been described. The same can be realized in data transfer between an input/output device and a memory.
その場合には、複数の入出力装置の一つから制
御部230に通知されるデータ転送要求信号に従
つて、その都度チヤネルアドレスレジスタ216
のアドレスを設定し、対応するチヤネルデータを
レジスタ群210に取り込み、一語ずつのデータ
転送を行ない、その後チヤネルデータを返却す
る。チヤネルアドレスレジスタ216のアドレス
設定は、データ転送要求信号を送出した入出力装
置に対応するメモリ250の固定アドレスに格納
されているデータを読み込むことにより、特にハ
ードウエアを増加させることなく、多数の入出力
装置の同時制御に対応することができる。 In that case, in accordance with the data transfer request signal notified to the control unit 230 from one of the plurality of input/output devices, the channel address register 216
, the corresponding channel data is loaded into the register group 210, data is transferred word by word, and then the channel data is returned. The address setting of the channel address register 216 can be performed without increasing the hardware by reading the data stored in the fixed address of the memory 250 corresponding to the input/output device that sent the data transfer request signal. It can support simultaneous control of output devices.
なお複数の入出力装置には、本実施例に示した
通信回線に対してデータの入出力を行なう装置の
他に、たとえばデータを入力するキーボード、情
報を出力するデイスプレイ、送信原稿を読み取る
スキヤナ、受信原稿を出力するプリンタ装置、画
像データの圧縮/伸長装置がある。 Note that the plurality of input/output devices include, in addition to the device for inputting and outputting data to and from the communication line shown in this embodiment, for example, a keyboard for inputting data, a display for outputting information, a scanner for reading a transmitted document, There are printer devices that output received original documents and image data compression/expansion devices.
上述したように、本発明によれば、複数のブロ
ツク化されたデータがマイクロプロセツサの制御
を介在させることなく、メモリと入出力装置との
間で連続して転送制御することができる。したが
つて、専用のマイクロプロセツサあるいは高速マ
イクロプロセツサを使用することなく、DMA制
御による高速データ転送を可能にすることがで
き、実用的には極めて有用である。
As described above, according to the present invention, it is possible to control the continuous transfer of a plurality of blocks of data between a memory and an input/output device without intervening control by a microprocessor. Therefore, it is possible to perform high-speed data transfer under DMA control without using a dedicated microprocessor or a high-speed microprocessor, which is extremely useful in practice.
第1図は本発明の原理ブロツク図、第2図は本
発明の一実施例を示すブロツク構成図、第3図は
従来のDMA制御方式を説明するブロツク構成図
である。
図において、101はチヤネルデータ保持部、
102は制御手段、103はチヤネルデータ格納
手段、104はチヤネルデータアドレス保持部、
105はチエインチヤネルデータアドレス保持
部、106は書替制御手段、200,300は
DMA制御装置、210,310はレジスタ群、
211,311は制御レジスタ、212,312
は状態レジスタ、213,313はアドレスレジ
スタ、214,314は転送語数レジスタ、21
5はチエインレジスタ、216はチヤネルアドレ
スレジスタ、220はリードライト制御部、23
0,330は制御部、250,350はメモリ、
251〜253,351〜354はデータブロツ
ク、255〜257はチヤネルデータ、260,
360は入出力装置、261はモデム、263は
網制御装置NCU、265は通信回線、270,
370はマイクロプロセツサ、280,380は
共通バス、291,391はデータ転送要求信
号、293,393は割り込み信号である。
FIG. 1 is a block diagram of the principle of the present invention, FIG. 2 is a block diagram showing an embodiment of the present invention, and FIG. 3 is a block diagram illustrating a conventional DMA control system. In the figure, 101 is a channel data holding unit;
102 is a control means, 103 is a channel data storage means, 104 is a channel data address holding section,
105 is a chain channel data address holding section, 106 is a rewrite control means, and 200 and 300 are
DMA control device, 210 and 310 are register groups,
211, 311 are control registers, 212, 312
is a status register, 213 and 313 are address registers, 214 and 314 are transfer word count registers, 21
5 is a chain register, 216 is a channel address register, 220 is a read/write control unit, 23
0,330 is a control unit, 250,350 is a memory,
251-253, 351-354 are data blocks, 255-257 are channel data, 260,
360 is an input/output device, 261 is a modem, 263 is a network control unit NCU, 265 is a communication line, 270,
370 is a microprocessor, 280 and 380 are common buses, 291 and 391 are data transfer request signals, and 293 and 393 are interrupt signals.
Claims (1)
御するためのチヤネルデータが格納されているチ
ヤネルデータ格納手段103を備えたダイレクト
メモリアクセス制御装置において、 前記チヤネルデータは、データの連続転送を行
うかどうかの指示および該連続転送を行うための
チヤネルデータが格納されている前記チヤネルデ
ータ格納手段103のアドレスを含み、 データの連続転送を行うかどうかの指示を含む
前記チヤネルデータを保持するチヤネルデータ保
持部101と、 前記チヤネルデータ保持部101に書き込まれ
るチヤネルデータが格納されている前記チヤネル
データ格納手段103のアドレスを保持するチヤ
ネルデータアドレス保持部104と、 前記チヤネルデータ中の連続転送を行うための
チヤネルデータが格納されている前記チヤネルデ
ータ格納手段103のアドレスを保持するチエイ
ンチヤネルデータアドレス保持部105と、 前記チヤネルデータ保持部101に保持されて
いるチヤネルデータに基づいて前記メモリと入出
力装置との間のデータ転送を制御し、且つ前記チ
ヤネルデータ保持部101でデータの連続転送を
行う指示がされているか判定する制御手段102
と、 前記チヤネルデータ保持部101に保持されて
いるチヤネルデータを、前記チヤネルデータアド
レス保持部104に保持されているアドレスに基
づいて前記チヤネルデータ格納部103から読み
出されるチヤネルデータに書き替え、 且つ、前記チヤネルデータ保持部101に保持
されているチヤネルデータによるデータ転送制御
が終了したときに、前記制御手段102によつ
て、前記チヤネルデータ保持部101でデータの
連続転送が指示されていると判定された場合に
は、チヤネルデータアドレス保持部104に保持
されているアドレスを、前記チエインチヤネルデ
ータアドレス保持部105に保持されているアド
レスに書き替える書替制御手段106と を備えたことを特徴とするダイレクトメモリアク
セス制御装置。[Scope of Claims] 1. A direct memory access control device comprising channel data storage means 103 storing channel data for controlling data transfer between a memory and an input/output device, wherein the channel data comprises: The channel includes an instruction as to whether or not to perform continuous data transfer and the address of the channel data storage means 103 in which channel data for performing the continuous transfer is stored; a channel data holding section 101 that holds data; a channel data address holding section 104 that holds an address of the channel data storage means 103 in which channel data written in the channel data holding section 101 is stored; a chain channel data address storage unit 105 that holds the address of the channel data storage means 103 in which channel data for continuous transfer of is stored; a control means 102 that controls data transfer between the memory and the input/output device, and determines whether or not the channel data holding unit 101 is instructed to continuously transfer data;
and rewriting the channel data held in the channel data holding unit 101 to channel data read out from the channel data storage unit 103 based on the address held in the channel data address holding unit 104, and When the data transfer control based on the channel data held in the channel data holding unit 101 is completed, the control means 102 determines that the channel data holding unit 101 is instructed to continuously transfer data. In this case, the present invention is characterized by comprising a rewrite control means 106 for rewriting the address held in the channel data address holding unit 104 to the address held in the chain channel data address holding unit 105. Direct memory access control device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5861987A JPS63223943A (en) | 1987-03-13 | 1987-03-13 | Direct memory access control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5861987A JPS63223943A (en) | 1987-03-13 | 1987-03-13 | Direct memory access control device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS63223943A JPS63223943A (en) | 1988-09-19 |
JPH0564820B2 true JPH0564820B2 (en) | 1993-09-16 |
Family
ID=13089577
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP5861987A Granted JPS63223943A (en) | 1987-03-13 | 1987-03-13 | Direct memory access control device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63223943A (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0285948A (en) * | 1988-09-22 | 1990-03-27 | Fujitsu Ltd | Direct memory access control method |
JP2002202948A (en) * | 2000-12-28 | 2002-07-19 | Mega Chips Corp | Data transfer circuit and data transfer method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS57103526A (en) * | 1980-12-19 | 1982-06-28 | Fujitsu Ltd | Interruption controlling system |
JPS5814235A (en) * | 1981-07-20 | 1983-01-27 | Fujitsu Ltd | magnetic bubble memory device |
-
1987
- 1987-03-13 JP JP5861987A patent/JPS63223943A/en active Granted
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS57103526A (en) * | 1980-12-19 | 1982-06-28 | Fujitsu Ltd | Interruption controlling system |
JPS5814235A (en) * | 1981-07-20 | 1983-01-27 | Fujitsu Ltd | magnetic bubble memory device |
Also Published As
Publication number | Publication date |
---|---|
JPS63223943A (en) | 1988-09-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2829091B2 (en) | Data processing system | |
GB2089076A (en) | Data proccessing system | |
KR20040044366A (en) | Shared memory data transfer apparatus | |
US4779190A (en) | Communication bus interface | |
EP0844566B1 (en) | Interface apparatus for adapting data width to system bus width | |
KR100348545B1 (en) | Communication dma device | |
JPH0564820B2 (en) | ||
JP3079956B2 (en) | Printer | |
JP3196661B2 (en) | Data transmission device | |
US5113513A (en) | Apparatus and method for loading a program in an external storage device connected to one bus into a memory connected to a different bus | |
US6609179B1 (en) | Method and apparatus for controlling memory access | |
JP3202769B2 (en) | Burst read processing device | |
JP3264316B2 (en) | Direct memory access controller | |
JP3442099B2 (en) | Data transfer storage device | |
JP2980163B2 (en) | Data transfer method | |
JP3050286B2 (en) | Data transfer system | |
JPH064457A (en) | Electronic filing device | |
JPH02133854A (en) | Dma controller capable of access to transfer enable/ unable memory | |
JPH07334453A (en) | Memory access system | |
JPS61151768A (en) | Dma transfer system | |
JP2001167046A (en) | Image processor | |
JPH06259374A (en) | Input/output bus controller | |
JPH064488A (en) | Command transfer method | |
JPS61276050A (en) | Data transmission system | |
JPS61201368A (en) | Transfer device for image information |