JP2002229930A - DMA control method and media processing device - Google Patents
DMA control method and media processing deviceInfo
- Publication number
- JP2002229930A JP2002229930A JP2001023359A JP2001023359A JP2002229930A JP 2002229930 A JP2002229930 A JP 2002229930A JP 2001023359 A JP2001023359 A JP 2001023359A JP 2001023359 A JP2001023359 A JP 2001023359A JP 2002229930 A JP2002229930 A JP 2002229930A
- Authority
- JP
- Japan
- Prior art keywords
- dma
- request
- dma request
- requests
- priority
- 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
Links
Landscapes
- Bus Control (AREA)
Abstract
(57)【要約】
【課題】 適切な順序でDMAを実行し、ストリーミン
グデータの処理時に必要な入出力のバッファ量を削減す
ることのできるDMA制御方法を提供すること。
【解決手段】 複数のタスク1,2,…,PがDMAコ
ントローラ115を共有するメディア処理装置101に
おいて、タスク1,2,…,Pの各々がDMAコントロ
ーラ115に対するDMA要求をDMA処理部114に
出す場合には、DMA転送に関するパラメータ及び優先
度を示すパラメータを付加して要求を出す。DMA処理
部114は、DMA要求を処理するに際して、処理すべ
きDMA要求が複数存在する場合には、各DMA要求に
付加されている優先度を示すパラメータに基づいて、処
理すべきDMA要求を選択する。
(57) [PROBLEMS] To provide a DMA control method capable of executing DMA in an appropriate order and reducing the amount of input / output buffer required when processing streaming data. In a media processing apparatus 101 in which a plurality of tasks 1, 2, ..., P share a DMA controller 115, each of tasks 1, 2, ..., P sends a DMA request to a DMA controller 115 to a DMA processing unit 114. When issuing the request, a request is issued by adding a parameter relating to the DMA transfer and a parameter indicating the priority. When processing a DMA request, when there are a plurality of DMA requests to be processed, the DMA processing unit 114 selects the DMA request to be processed based on a parameter indicating the priority added to each DMA request. I do.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、マルチタスクシス
テムにおけるストリームデータのDMA転送を効率的に
行うためのDMA制御方法及びメディア処理装置に関す
る。[0001] 1. Field of the Invention [0002] The present invention relates to a DMA control method and a media processing device for efficiently performing DMA transfer of stream data in a multitask system.
【0002】[0002]
【従来の技術】DMAは、データ転送とCPUによる演
算処理とを並列に行うための技術である。一般的なDM
A転送実行では、(1)CPUが転送元および転送先の
アドレスおよび転送サイズを算出、(2)CPUがDM
Aコントローラに対して転送要求を発行、(3)(3−
1)CPUはタスクスイッチを行って別タスクの処理を
実行、(3−2)DMAコントローラはデータの転送を
実行、(4)DMAコントローラはDMA転送終了時に
割込を発生、(5)CPUはDMA終了割込を受け取
り、DMAを起動したタスクを復帰させる、という手順
を実行する。2. Description of the Related Art DMA is a technique for performing data transfer and arithmetic processing by a CPU in parallel. General DM
In the A transfer execution, (1) the CPU calculates the source and destination addresses and the transfer size, and (2) the CPU
A transfer request is issued to the A controller, and (3) (3-
1) The CPU performs a task switch to execute processing of another task, (3-2) the DMA controller executes data transfer, (4) the DMA controller generates an interrupt at the end of the DMA transfer, and (5) the CPU executes A procedure for receiving a DMA end interrupt and restoring the task that started the DMA is executed.
【0003】一般的なマルチタスクOSでは、タスクの
実行優先度をOSが管理しており、優先度に従ってタス
クの起動順序を決定している。従って、各タスクが起動
するDMA要求は、タスクの優先度に従った頻度で起動
され、DMA要求が発生した順序でDMA転送が実行さ
れる。In a general multi-task OS, the OS manages task execution priorities, and determines the order in which tasks are started according to the priorities. Therefore, the DMA requests started by each task are started at a frequency according to the task priority, and the DMA transfer is executed in the order in which the DMA requests are generated.
【0004】図5に、従来のDMA制御方法を採用した
メディア処理装置を示す。メディア処理装置301はメ
モリ302と接続されている。メディア処理装置301
内では、P個のタスク、すなわちタスク1(図中、30
3)、タスク2(図中、318)、…、タスクP(図
中、319)が実行される。タスク1にはN個のDMA
要求1−1〜1−Nがあり、タスク2にはM個のDMA
要求2−1〜2−Mがあり、タスクPにはL個のDMA
要求P−1〜P−Lがある。FIG. 5 shows a media processing apparatus employing a conventional DMA control method. The media processing device 301 is connected to the memory 302. Media processing device 301
, P tasks, that is, task 1 (30 in the figure)
3), task 2 (318 in the figure),..., Task P (319 in the figure) are executed. Task 1 has N DMAs
There are requests 1-1 to 1-N, and task 2 has M DMAs.
There are requests 2-1 to 2-M, and task P has L DMAs.
There are requests P-1 to PL.
【0005】タスク1が起動され、DMA要求1−1
(図中、304)が実行されると、転送元アドレス・伝
送先アドレス・転送サイズのDMA要求情報(305)
を、オペレーティングシステム313内のDMA制御部
314に出力し、タスクスイッチを行う。[0005] Task 1 is started and a DMA request 1-1 is issued.
When (304 in the figure) is executed, DMA request information of transfer source address, transfer destination address, and transfer size (305)
Is output to the DMA control unit 314 in the operating system 313 to perform a task switch.
【0006】次に、OSがタスク2(図中、318)を
起動すると判断すると、タスク2の処理が行われ、処理
の途中にあるDMA要求2−1(図中、307)が実行
されると、転送元アドレス・伝送先アドレス・転送サイ
ズのDMA要求情報(308)を、オペレーティングシ
ステム313内のDMA制御部314に出力し、タスク
スイッチを行う。Next, when the OS determines that the task 2 (318 in the figure) is to be started, the processing of the task 2 is performed, and the DMA request 2-1 (307 in the figure) in the middle of the processing is executed. And the DMA request information (308) of the transfer source address, the transfer destination address, and the transfer size are output to the DMA control unit 314 in the operating system 313, and task switching is performed.
【0007】同様に、タスクP(図中、319)が起動
され、DMA要求P−L(図中、330)が実行される
と、転送元アドレス・伝送先アドレス・転送サイズのD
MA要求情報(311)を、オペレーティングシステム
313内のDMA制御部314に出力し、タスクスイッ
チを行う。Similarly, when a task P (319 in the figure) is activated and a DMA request PL (330 in the figure) is executed, a transfer source address, a transfer destination address, and a transfer size D are obtained.
The MA request information (311) is output to the DMA control unit 314 in the operating system 313 to perform a task switch.
【0008】上述のタスク1・タスク2・タスクPの処
理中に動作していたDMA転送が終了すると、DMA制
御部314は蓄積されている未処理のDMA要求のうち
最初に要求を発行したDMA要求1−1を選択し、DM
Aコントローラ315へ転送元アドレス・転送先アドレ
ス・転送サイズ等のパラメータを設定し、DMAコント
ローラ315を起動する。DMA要求1−1がメモリヘ
の書込要求の場合、アドレスバス316に書込アドレス
が出力され、タスク1から読み出したデータは、データ
バス306・DMAコントローラ315・データバス3
17を経由してメモリ302に書き込まれる。DMA要
求1−1がメモリからの読出要求の場合、アドレスバス
316に読出アドレスが出力され、メモリ302から読
み出したデータはデータバス317・DMAコントロー
ラ315・データバス306を経由してタスク1に書き
込まれる。When the DMA transfer that has been operating during the processing of the above-described task 1, task 2, and task P ends, the DMA control unit 314 issues the first DMA request among the stored unprocessed DMA requests. Request 1-1 is selected, and DM
Parameters such as a transfer source address, a transfer destination address, and a transfer size are set in the A controller 315, and the DMA controller 315 is started. When the DMA request 1-1 is a write request to the memory, the write address is output to the address bus 316, and the data read from the task 1 is transferred to the data bus 306, the DMA controller 315, and the data bus 3
17 and is written to the memory 302. When the DMA request 1-1 is a read request from the memory, the read address is output to the address bus 316, and the data read from the memory 302 is written to the task 1 via the data bus 317, the DMA controller 315, and the data bus 306. It is.
【0009】DMA要求1−1の処理が終了した時点
で、DMA制御部314に残るDMA要求は、DMA要
求2−1およびDMA要求P−Lとなる。When the processing of the DMA request 1-1 is completed, the DMA requests remaining in the DMA control unit 314 are the DMA request 2-1 and the DMA request PL.
【0010】DMA制御部314は、未処理のDMA要
求のうち先に要求を発行したDMA要求2−1を選択
し、DMAコントローラ315へ転送元アドレス・転送
先アドレス・転送サイズ等のパラメータを設定し、DM
Aコントローラ315を起動する。DMA要求2−1が
メモリヘの書込要求の場合、アドレスバス316に書込
アドレスが出力され、タスク2から読み出したデータ
は、データバス312・DMAコントローラ315・デ
ータバス317を経由してメモリ302に書き込まれ
る。DMA要求2−1がメモリからの読出要求の場合、
アドレスバス316に読出アドレスが出力され、メモリ
302から読み出したデータはデータバス317・DM
Aコントローラ315・データバス312を経由してタ
スク2に書き込まれる。The DMA control unit 314 selects the DMA request 2-1 that has issued the request first among the unprocessed DMA requests, and sets parameters such as a transfer source address, a transfer destination address, and a transfer size to the DMA controller 315. And DM
The A controller 315 is started. When the DMA request 2-1 is a write request to the memory, the write address is output to the address bus 316, and the data read from the task 2 is transferred to the memory 302 via the data bus 312, the DMA controller 315, and the data bus 317. Is written to. When the DMA request 2-1 is a read request from the memory,
The read address is output to the address bus 316, and the data read from the memory 302 is transmitted to the data bus
The data is written to task 2 via A controller 315 and data bus 312.
【0011】DMA要求2−1の実行中にタスク1が起
動され、DMA要求1−N(図中、320)が実行され
ると、転送元アドレス・伝送先アドレス・転送サイズの
DMA要求情報(321)を、オペレーティングシステ
ム313内のDMA制御部314に出力する。When the task 1 is started during the execution of the DMA request 2-1 and the DMA request 1-N (320 in the figure) is executed, the DMA request information (source address, destination address, transfer size) 321) is output to the DMA control unit 314 in the operating system 313.
【0012】DMA要求2−1の処理が終了した時点
で、DMA制御部314に残るDMA要求は、DMA要
求1−NおよびDMA要求P−Lとなる。When the processing of the DMA request 2-1 is completed, the DMA requests remaining in the DMA control unit 314 are a DMA request 1-N and a DMA request PL.
【0013】DMA制御部314は、未処理のDMA要
求のうち先に要求を発行したDMA要求P−Lを選択
し、DMAコントローラ315へ転送元アドレス・転送
先アドレス・転送サイズ等のパラメータを設定し、DM
Aコントローラ315を起動し、以下同様に実行され
る。The DMA control unit 314 selects the DMA request PL which issued the request first among the unprocessed DMA requests, and sets parameters such as a transfer source address, a transfer destination address, and a transfer size to the DMA controller 315. And DM
The A controller 315 is started, and the same operation is performed thereafter.
【0014】[0014]
【発明が解決しようとする課題】上述したようなDMA
制御方法を用いて画像や音声データのようなストリーム
データの処理をする場合、処理を行ったデータは、一旦
低コストな大容量のメモリ(DRAM等)に保存し、外
部との入出力を行うときにDMAで入出力バッファ(F
IFO)との間でデータ転送を行う。外部とのデータの
入出力を途切れさせないため、他のタスクの実行中に入
出力されるデータ量をあらかじめ見積もって十分なバッ
ファ量を確保する必要がある。SUMMARY OF THE INVENTION A DMA as described above
When processing stream data such as image or audio data by using the control method, the processed data is temporarily stored in a low-cost large-capacity memory (DRAM or the like), and input / output with an external device is performed. Sometimes I / O buffer (F
IFO). In order not to interrupt data input / output with the outside, it is necessary to estimate in advance the amount of data input / output during the execution of another task to secure a sufficient buffer amount.
【0015】しかしながら、他のタスクの実行中に入出
力されるデータ量をあらかじめ見積もって十分なバッフ
ァ量を確保すると、バッファ量が多くなるという問題が
ある。However, if the amount of data input / output during execution of another task is estimated in advance to secure a sufficient buffer amount, there is a problem that the buffer amount increases.
【0016】本発明は、上記事情を考慮してなされたも
ので、適切な順序でDMAを実行し、ストリーミングデ
ータの処理時に必要な入出力のバッファ量を削減するこ
とのできるDMA制御方法及びメディア処理装置を提供
することを目的とする。The present invention has been made in consideration of the above circumstances, and has been made in consideration of the above circumstances, and performs a DMA in an appropriate order to reduce a required amount of input / output buffers when processing streaming data. It is an object to provide a processing device.
【0017】[0017]
【課題を解決するための手段】本発明は、複数のタスク
がDMAコントローラを共有するメディア処理装置にお
けるDMA制御方法であって、前記タスクの各々が前記
DMAコントローラに対するDMA要求を出す場合に
は、DMA転送に関するパラメータ及び優先度を示すパ
ラメータを付加して要求を出し、前記DMAコントロー
ラに対するDMA要求を処理するに際して、処理すべき
DMA要求が複数存在する場合には、各DMA要求に付
加されている前記優先度を示すパラメータに基づいて、
処理すべきDMA要求を選択することを特徴とする。SUMMARY OF THE INVENTION The present invention is a DMA control method in a media processing apparatus in which a plurality of tasks share a DMA controller, wherein each of the tasks issues a DMA request to the DMA controller. A request is issued by adding a parameter relating to DMA transfer and a parameter indicating priority, and when processing a DMA request to the DMA controller, if there are a plurality of DMA requests to be processed, the DMA request is added to each DMA request. Based on the parameter indicating the priority,
A DMA request to be processed is selected.
【0018】好ましくは、前記DMA要求のうち優先的
に処理すべきものを特別のDMA要求として定め(例え
ば、ストリームデータの入力処理又は出力処理に対する
DMA要求)、前記タスクが出す前記DMA要求が、前
記特別のDMA要求である場合には、他のDMA要求よ
り高い優先度を示すパラメータを付加してDMA要求を
出すようにしてもよい。Preferably, among the DMA requests, the one to be processed with priority is determined as a special DMA request (for example, a DMA request for input processing or output processing of stream data), and the DMA request issued by the task is In the case of a special DMA request, a DMA request may be issued with a parameter indicating a higher priority than other DMA requests.
【0019】また、本発明は、複数のタスクがDMAコ
ントローラを共有するメディア処理装置におけるDMA
制御方法であって、前記タスクの各々が前記DMAコン
トローラに対するDMA要求を出す場合には、DMA転
送に関するパラメータ及び該DMA要求が優先的に処理
すべき特別のDMA要求であるか否かを識別可能とする
パラメータを付加して要求を出し、前記DMAコントロ
ーラに対するDMA要求を処理するに際して、処理すべ
きDMA要求が複数存在する場合には、特別のDMA要
求が存在するならば、特別のDMA要求を優先的に処理
し、特別のDMA要求が存在しないならば、特別のDM
A要求でないDMA要求を処理することを特徴とする。Also, the present invention provides a DMA processing method for a media processing apparatus in which a plurality of tasks share a DMA controller.
In the control method, when each of the tasks issues a DMA request to the DMA controller, it is possible to identify parameters relating to the DMA transfer and whether or not the DMA request is a special DMA request to be preferentially processed. In processing a DMA request to the DMA controller, when there are a plurality of DMA requests to be processed, if a special DMA request exists, a special DMA request is issued. Priority, and if no special DMA request exists, a special DM
It is characterized by processing a DMA request other than the A request.
【0020】なお、装置に係る本発明は方法に係る発明
としても成立し、方法に係る本発明は装置に係る発明と
しても成立する。また、装置または方法に係る本発明
は、コンピュータに当該発明に相当する手順を実行させ
るための(あるいはコンピュータを当該発明に相当する
手段として機能させるための、あるいはコンピュータに
当該発明に相当する機能を実現させるための)プログラ
ム(例えば、オペレーティングシステムの一機能)とし
ても成立し、該プログラムを記録したコンピュータ読取
り可能な記録媒体としても成立する。It should be noted that the present invention relating to the apparatus is also realized as an invention relating to a method, and the present invention relating to a method is also realized as an invention relating to an apparatus. Further, the present invention according to an apparatus or a method has a function of causing a computer to execute a procedure corresponding to the present invention (or causing a computer to function as means corresponding to the present invention, or a computer having a function corresponding to the present invention). The present invention is also realized as a program (for example, one function of an operating system) for realizing the present invention, and is also realized as a computer-readable recording medium storing the program.
【0021】本発明では、タスクがDMAコントローラ
に対するDMA要求を出す際、DMA転送のパラメータ
に優先度を示すパラメータを付加し、優先度を示すパラ
メータをもとにDMAコントローラの使用順序を決定す
る。According to the present invention, when a task issues a DMA request to the DMA controller, a parameter indicating a priority is added to a parameter of the DMA transfer, and a use order of the DMA controller is determined based on the parameter indicating the priority.
【0022】また、本発明では、タスクがDMAコント
ローラに対するDMA要求を出す際、ストリームデータ
の入出力処理に対するDMA要求に対して高い優先度の
パラメータを付加してDMA要求を出し、ストリームデ
ータの入出力処理以外に対するDMA要求に対しては一
般の優先度のパラメータを付加してDMA要求を出し、
これらのパラメータをもとにDMAコントローラの使用
順序を決定する。Further, according to the present invention, when a task issues a DMA request to a DMA controller, a high-priority parameter is added to the DMA request for stream data input / output processing to issue a DMA request, and the stream data is input. A DMA request is issued by adding a general priority parameter to a DMA request other than the output process,
The use order of the DMA controller is determined based on these parameters.
【0023】本発明によれば、マルチタスクシステムに
おいて複数のDMA要求が発生する場合、DMA実行の
優先度を、オペレーティングシステムが決める優先度で
はなく、ユーザが意図した優先度で実行できるようにな
る。According to the present invention, when a plurality of DMA requests occur in a multitask system, the priority of DMA execution can be executed not by the priority determined by the operating system but by the priority intended by the user. .
【0024】また、本発明によれば、ストリームデータ
の入出力処理を行うためのDMA転送の優先度を、ユー
ザからの指示により高くすることができ、従来のDMA
要求発生順にDMA処理を行っていたメディア処理装置
から比べると、バッファメモリの量を削減することが可
能になり、回路規模を削減できる。Further, according to the present invention, the priority of DMA transfer for performing input / output processing of stream data can be increased by an instruction from a user.
Compared with a media processing apparatus that has performed DMA processing in the order of request generation, the amount of buffer memory can be reduced, and the circuit scale can be reduced.
【0025】[0025]
【発明の実施の形態】以下、図面を参照しながら発明の
実施の形態を説明する。Embodiments of the present invention will be described below with reference to the drawings.
【0026】図1に、本発明の第1の実施形態に係るメ
ディア処理装置の構成例を示す。FIG. 1 shows a configuration example of a media processing apparatus according to the first embodiment of the present invention.
【0027】メディア処理装置101は、従来のものと
同様、CPUの他にDMAコントローラを備え、タスク
の実行や切り替えを制御するための機能、DMA制御を
行うための機能を持っている(ここでは、これらの機能
はオペレーティングシステムにより実現される)。ま
た、メディア処理装置101は、メモリ102と接続さ
れている。The media processing apparatus 101 is provided with a DMA controller in addition to the CPU similarly to the conventional one, and has a function for controlling execution and switching of a task and a function for performing DMA control (here, a function is provided). , These functions are realized by the operating system). Further, the media processing device 101 is connected to the memory 102.
【0028】メディア処理装置101内では、P個のタ
スク1(図中、103)、タスク2(図中、118)、
…、タスクP(図中、119)が実行される。In the media processing apparatus 101, P tasks 1 (103 in the figure), tasks 2 (118 in the figure),
.., A task P (119 in the figure) is executed.
【0029】タスク1にはN個のDMA要求1−1〜1
−Nがあり、タスク2にはM個のDMA要求2−1〜2
−Mがある。以下同様で、タスクPにはL個のDMA要
求P−1〜P−Lがある。Task 1 includes N DMA requests 1-1 to 1
−N, and task 2 has M DMA requests 2-1 to 2
-M. Similarly, the task P has L DMA requests P-1 to P-L.
【0030】まず、タスク1が起動されるものとする。
タスク1でDMA要求1−1(図中、104)が実行さ
れると、転送元アドレス・伝送先アドレス・転送サイズ
・優先度を含むDMA要求情報(105)が、オペレー
ティングシステム113内のDMA制御部114に出力
される。ここで、タスクスイッチが行われる。First, it is assumed that task 1 is started.
When the DMA request 1-1 (104 in the figure) is executed in the task 1, the DMA request information (105) including the source address, the destination address, the transfer size, and the priority is transferred to the DMA control in the operating system 113. It is output to the unit 114. Here, a task switch is performed.
【0031】次に、タスク2が起動され、DMA要求2
−1(図中、107)を実行されると、転送元アドレス
・伝送先アドレス・転送サイズ・優先度を含むDMA要
求情報(108)が、オペレーティングシステム113
内のDMA制御部114に出力される。ここで、また、
タスクスイッチが行われる。Next, task 2 is started, and DMA request 2
When -1 (107 in the figure) is executed, the DMA request information (108) including the source address, the destination address, the transfer size, and the priority is transmitted to the operating system 113.
Is output to the DMA control unit 114 in the. Where
A task switch is performed.
【0032】同様に、タスクPが起動され、DMA要求
P−L(図中、110)が実行されると、転送元アドレ
ス・伝送先アドレス・転送サイズ・優先度を含むDMA
要求情報(111)が、オペレーティングシステム11
3内のDMA制御部114に出力される。ここで、さら
に、タスクスイッチが行われる。Similarly, when the task P is activated and the DMA request PL (110 in the figure) is executed, the DMA including the transfer source address, the transfer destination address, the transfer size, and the priority is executed.
The request information (111) is stored in the operating system 11
3 is output to the DMA control unit 114. Here, a task switch is further performed.
【0033】ここで、各DMA要求の優先度の大小関係
は、 DMA要求1−1 > DMA要求P−L > DMA
要求2−1 であるものとする。Here, the magnitude relationship between the priorities of the DMA requests is as follows: DMA request 1-1> DMA request PL> DMA
Request 2-1.
【0034】さて、タスク1・タスク2・タスクPの処
理中に動作していたDMA転送が終了すると、DMA制
御部114は、蓄積されている未処理のDMA要求のう
ち優先度が最も高いDMA要求1−1を選択し、DMA
コントローラ115へ転送元アドレス・転送先アドレス
・転送サイズ等のパラメータを設定し、DMAコントロ
ーラ115を起動する。When the DMA transfer operating during the processing of task 1, task 2, and task P is completed, the DMA controller 114 sets the highest priority DMA among the stored unprocessed DMA requests. Request 1-1 is selected and DMA
Parameters such as a transfer source address, a transfer destination address, and a transfer size are set in the controller 115, and the DMA controller 115 is started.
【0035】DMA要求1−1がメモリヘの書込要求の
場合、アドレスバス116に書込アドレスが出力され、
タスク1から読み出したデータは、データバス106・
DMAコントローラ115・データバス117を経由し
てメモリ102に書き込まれる。DMA要求1−1がメ
モリからの読出要求の場合、アドレスバス116に読出
アドレスが出力され、メモリ102から読み出したデー
タはデータバス117・DMAコントローラ115・デ
ータバス106を経由してタスク1に書き込まれる。When the DMA request 1-1 is a write request to the memory, the write address is output to the address bus 116,
Data read from task 1 is transferred to data bus 106
The data is written to the memory 102 via the DMA controller 115 and the data bus 117. When the DMA request 1-1 is a read request from the memory, a read address is output to the address bus 116, and the data read from the memory 102 is written to the task 1 via the data bus 117, the DMA controller 115, and the data bus 106. It is.
【0036】続いて、DMA要求1−1の処理が終了し
た時点で、DMA制御部114に残るDMA要求の優先
度の大小関係は、 DMA要求P−L > DMA要求2−1 となる。Subsequently, at the time when the processing of the DMA request 1-1 has been completed, the priority order of the DMA requests remaining in the DMA control unit 114 is as follows: DMA request PL> DMA request 2-1.
【0037】DMA制御部114は、未処理のDMA要
求のうち優先度が最も高いDMA要求P−Lを選択し、
DMAコントローラ115へ転送元アドレス・転送先ア
ドレス・転送サイズ等のパラメータを設定し、DMAコ
ントローラ115を起動する。The DMA control unit 114 selects the DMA request PL having the highest priority among the unprocessed DMA requests,
Parameters such as a transfer source address, a transfer destination address, and a transfer size are set in the DMA controller 115, and the DMA controller 115 is activated.
【0038】DMA要求P−Lがメモリヘの書込要求の
場合、アドレスバス116に書込アドレスが出力され、
タスクPから読み出したデータは、データバス112・
DMAコントローラ115・データバス117を経由し
てメモリ102に書き込まれる。DMA要求P−Lがメ
モリからの読出要求の場合、アドレスバス116に読出
アドレスが出力され、メモリ102から読み出したデー
タはデータバス117・DMAコントローラ115・デ
ータバス112を経由してタスクPに書き込まれる。When the DMA request PL is a write request to the memory, the write address is output to the address bus 116,
The data read from task P is stored in data bus 112
The data is written to the memory 102 via the DMA controller 115 and the data bus 117. When the DMA request PL is a read request from the memory, a read address is output to the address bus 116, and the data read from the memory 102 is written to the task P via the data bus 117, the DMA controller 115, and the data bus 112. It is.
【0039】さて、ここで、DMA要求P−Lの実行中
にタスク1が起動され、DMA要求1−N(図中、12
0)が実行されると、転送元アドレス・伝送先アドレス
・転送サイズ・優先度を含むDMA要求情報(121)
を、オペレーティングシステム113内のDMA制御部
114に出力する。Now, the task 1 is started during the execution of the DMA request PL, and the DMA request 1-N (12 in FIG.
0) is executed, the DMA request information (121) including the source address, destination address, transfer size, and priority
To the DMA control unit 114 in the operating system 113.
【0040】DMA要求1−Nの優先度がDMA要求2
−1の優先度より高いとすると、DMA要求P−Lの処
理が終了した時点で、DMA制御部114に残るDMA
要求について、その優先度の大小関係は、 DMA要求1−N > DMA要求2−1 となる。The priority of DMA request 1-N is DMA request 2
Assuming that the priority is higher than −1, the DMA remaining in the DMA control unit 114 at the time when the processing of the DMA request PL is completed.
Regarding the requests, the priority relationship is as follows: DMA request 1-N> DMA request 2-1.
【0041】この場合、次にDMA転送を実行するのは
より高い優先度を持つDMA要求1−Nとなり、DMA
コントローラ115へ転送元アドレス・転送先アドレス
・転送サイズ等のパラメータを設定し、DMAコントロ
ーラ115を起動する。In this case, the next DMA transfer is executed by the DMA request 1-N having a higher priority.
Parameters such as a transfer source address, a transfer destination address, and a transfer size are set in the controller 115, and the DMA controller 115 is started.
【0042】DMA要求1−Nがメモリヘの書込要求の
場合、アドレスバス116に書込アドレスが出力され、
タスク1から読み出したデータは、データバス106・
DMAコントローラ115・データバス117を経由し
てメモリ102に書き込まれる。DMA要求1・Nがメ
モリからの読出要求の場合、アドレスバス116に読出
アドレスが出力され、メモリ102から読み出したデー
タはデータバス117・DMAコントローラ115・デ
ータバス106を経由してタスク1に書き込まれる。When the DMA request 1-N is a write request to the memory, the write address is output to the address bus 116,
Data read from task 1 is transferred to data bus 106
The data is written to the memory 102 via the DMA controller 115 and the data bus 117. If the DMA request 1 · N is a read request from the memory, a read address is output to the address bus 116, and the data read from the memory 102 is written to the task 1 via the data bus 117, the DMA controller 115, and the data bus 106. It is.
【0043】以下、同様にして、DMA転送の実行を待
っているDMA要求が複数残存する場合には、発行され
た順番(あるいは受け付けた順番)ではなく、優先度が
高いDMA要求からDMA転送が実行される。Similarly, when there are a plurality of DMA requests waiting for execution of the DMA transfer, the DMA transfer is started from the DMA request having the higher priority instead of the issued order (or the accepted order). Be executed.
【0044】なお、DMA転送の実行を待っているDM
A要求のうちに同一の優先度を持つ複数のDMA要求が
同時に存在することを許すようにしてもよい。この場
合、最も高い優先度を持つDMA要求が複数あるときに
は、それらについて、発行された順番(あるいは受け付
けた順番)に従って、DMA転送を実行すればよい。It should be noted that the DM waiting to execute the DMA transfer
A plurality of DMA requests having the same priority among the A requests may be allowed to exist at the same time. In this case, when there are a plurality of DMA requests having the highest priority, the DMA transfer may be executed in accordance with the issued order (or the accepted order).
【0045】ここで、図2に、DMA制御部114によ
るDMA要求選択手順の一例を示す。すなわち、DMA
要求を処理可能で且つ処理すべきDMA要求がある場合
に(ステップS1)、処理すべきDMA要求が1つなら
ば(ステップS2)、そのDMA要求を選択し(ステッ
プS3)、処理すべきDMA要求が複数あるならば(ス
テップS2)、最も高い優先度を持つDMA要求を選択
し(ステップS4)、選択したDMA要求の実行に必要
な手続きを行う(ステップS5)。以下、これを繰り返
し行う。FIG. 2 shows an example of a procedure for selecting a DMA request by the DMA control unit 114. That is, DMA
When the request can be processed and there is a DMA request to be processed (step S1), if there is one DMA request to be processed (step S2), the DMA request is selected (step S3), and the DMA to be processed is selected. If there are a plurality of requests (step S2), a DMA request having the highest priority is selected (step S4), and a procedure necessary for executing the selected DMA request is performed (step S5). Hereinafter, this is repeated.
【0046】なお、図2の手順は一例であり、本発明を
他の手順で実施することももちろん可能である。The procedure shown in FIG. 2 is an example, and the present invention can be implemented by another procedure.
【0047】図3に、本発明の第2の実施形態に係るメ
ディア処理装置の構成例を示す。FIG. 3 shows a configuration example of a media processing apparatus according to the second embodiment of the present invention.
【0048】メディア処理装置201は、従来のものと
同様、CPUの他にDMAコントローラを備え、タスク
の実行や切り替えを制御するための機能、DMA制御を
行うための機能を持っている(ここでは、これらの機能
はオペレーティングシステムにより実現される)。ま
た、メディア処理装置201は、メモリ202と接続さ
れている。The media processing device 201 has a DMA controller in addition to the CPU as in the conventional one, and has a function for controlling execution and switching of tasks and a function for performing DMA control. , These functions are realized by the operating system). Further, the media processing device 201 is connected to the memory 202.
【0049】メディア処理装置201内では、P個のタ
スク1(図中、203)、タスク2(図中、218)、
…、タスクP(図中、219)が実行される。In the media processing device 201, P tasks 1 (203 in the figure), tasks 2 (218 in the figure),
..., the task P (219 in the figure) is executed.
【0050】タスク1にはN個のDMA要求1−1〜1
−Nがあり、タスク2にはM個のDMA要求2−1〜2
−Mがある。以下同様で、タスクPにはL個のDMA要
求P−1〜P−Lがある。Task 1 includes N DMA requests 1-1 to 1
−N, and task 2 has M DMA requests 2-1 to 2
-M. Similarly, the task P has L DMA requests P-1 to P-L.
【0051】ここでは、タスク1は、ストリームデータ
の入力処理を含んでおり、外部からの入力(224)を
入力メモリ222で一時的にバッファリングし、DMA
要求1−N(図中、220)でメモリ202に転送する
ものとする。一方、タスク2は、ストリームデータの出
力処理を含んでおり、外部への出力(225)をDMA
要求2−1(図中、207)でメモリ202から読み出
し、出力メモリ223に転送するものとする。In this case, the task 1 includes an input process of stream data, temporarily buffers an external input (224) in the input memory 222, and
The request is transferred to the memory 202 by a request 1-N (220 in the figure). On the other hand, the task 2 includes the output processing of the stream data, and outputs the output to the outside (225) by the DMA.
It is assumed that data is read from the memory 202 in response to a request 2-1 (207 in the figure) and transferred to the output memory 223.
【0052】まず、タスク1が起動され、DMA要求1
−1(図中、204)が実行されると、転送元アドレス
・伝送先アドレス・転送サイズ・優先度(一般のDMA
要求の優先度)を含むDMA要求情報(205)を、オ
ペレーティングシステム213内のDMA制御部214
に出力し、タスクスイッチを行う。First, task 1 is started, and DMA request 1
-1 (204 in the figure), the source address, destination address, transfer size, and priority (general DMA
DMA request information (205) including the request priority) is transferred to the DMA control unit 214 in the operating system 213.
To perform a task switch.
【0053】次に、タスク2が起動され、DMA要求2
−1が実行されると、転送元アドレス・伝送先アドレス
・転送サイズ・優先度(出力のDMA要求の優先度)を
含むDMA要求情報(208)を、オペレーティングシ
ステム213内のDMA制御部214に出力し、タスク
スイッチを行う。Next, task 2 is started, and DMA request 2
When -1 is executed, the DMA request information (208) including the source address, the destination address, the transfer size, and the priority (priority of the output DMA request) is transmitted to the DMA control unit 214 in the operating system 213. Output and perform task switch.
【0054】同様に、タスクPが起動され、DMA要求
P−L(図中、210)が実行されると、転送元アドレ
ス・伝送先アドレス・転送サイズ・優先度(一般のDM
A要求の優先度)を含むDMA要求情報(211)を、
オペレーティングシステム213内のDMA制御部21
4に出力し、タスクスイッチを行う。Similarly, when the task P is activated and the DMA request PL (210 in the figure) is executed, the transfer source address, the transfer destination address, the transfer size, and the priority (general DM address)
DMA request information (211) including A request priority)
DMA control unit 21 in operating system 213
4 to perform a task switch.
【0055】ここで、一般のDMA要求の優先度の大小
関係は、 DMA要求P−L>DMA要求1−1 であるものとする。Here, it is assumed that the relationship between the priorities of the general DMA requests is as follows: DMA request PL> DMA request 1-1.
【0056】また、特別のDMA要求(ここでは入出力
処理に対するDMA要求(入力のDMA要求および出力
のDMA要求))の優先度は、一般のDMA要求の優先
度の最大値よりも大きいものとする。The priority of a special DMA request (here, the DMA request for input / output processing (input DMA request and output DMA request)) is higher than the maximum priority of general DMA requests. I do.
【0057】さて、タスク1・タスク2・タスクPの処
理中に動作していたDMA転送が終了すると、DMA制
御部214は、蓄積されている未処理のDMA要求を検
索する。この具体例の場合、この時点で、未処理のDM
A要求としては、 入力のDMA: なし 出力のDMA: DMA要求2−1 一般のDMA: DMA要求P−L > DMA要求1
−1 がある。When the DMA transfer that has been operating during the processing of task 1, task 2, and task P is completed, the DMA control unit 214 searches the stored unprocessed DMA requests. In this specific example, at this point, the unprocessed DM
As the A request, input DMA: none output DMA: DMA request 2-1 general DMA: DMA request PL> DMA request 1
-1.
【0058】ここでは、一般のDMAより高い優先度を
持つ出力のDMA要求が残っているので、優先的にDM
A要求2−1を選択し、DMAコントローラ215へ転
送元アドレス・転送先アドレス・転送サイズ等のパラメ
ータを設定し、DMAコントローラ215を起動する。
この場合、アドレスバス216に読出アドレスが出力さ
れ、メモリ202から読み出したデータはデータバス2
17・DMAコントローラ215・データバス209を
経由してタスク2が管理する出力メモリ223に書き込
まれる。Here, since there remains an output DMA request having a higher priority than a general DMA,
The A request 2-1 is selected, parameters such as a transfer source address, a transfer destination address, and a transfer size are set in the DMA controller 215, and the DMA controller 215 is activated.
In this case, the read address is output to the address bus 216, and the data read from the memory 202 is
17, DMA controller 215, data bus 209, and is written to output memory 223 managed by task 2.
【0059】続いて、DMA要求2−1の処理が終了し
た時点で、DMA制御部214に残るDMA要求は、 入力のDMA: なし 出力のDMA: なし 一般のDMA: DMA要求P−L > DMA要求1
−1 となる。Subsequently, when the processing of the DMA request 2-1 is completed, the remaining DMA requests in the DMA control unit 214 are: input DMA: none output DMA: none General DMA: DMA request P-L> DMA Request 1
-1.
【0060】ここでは、一般のDMAのみ残っているの
で、DMA制御部214は、未処理の一般のDMA要求
のうち優先度が最も高いDMA要求P−Lを選択し、D
MAコントローラ215へ転送元アドレス・転送先アド
レス・転送サイズ等のパラメータを設定し、DMAコン
トローラ215を起動する。DMA要求P−Lがメモリ
ヘの書込要求の場合、アドレスバス216に書込アドレ
スが出力され、タスクPから読み出したデータは、デー
タバス212・DMAコントローラ215・データバス
217を経由してメモリ202に書き込まれる。DMA
要求P−Lがメモリからの読出要求の場合、アドレスバ
ス216に読出アドレスが出力され、メモリ202から
読み出したデータはデータバス217・DMAコントロ
ーラ215・データバス212を経由してタスクPに書
き込まれる。Here, since only the general DMA remains, the DMA control unit 214 selects the DMA request PL having the highest priority among the unprocessed general DMA requests, and
Parameters such as a transfer source address, a transfer destination address, and a transfer size are set in the MA controller 215, and the DMA controller 215 is started. When the DMA request PL is a write request to the memory, the write address is output to the address bus 216, and the data read from the task P is transferred to the memory 202 via the data bus 212, the DMA controller 215, and the data bus 217. Is written to. DMA
When the request PL is a read request from the memory, the read address is output to the address bus 216, and the data read from the memory 202 is written to the task P via the data bus 217, the DMA controller 215, and the data bus 212. .
【0061】さて、ここで、DMA要求P−Lの実行中
にタスク1が起動され、DMA要求1−Nが実行される
と、転送元アドレス・伝送先アドレス・転送サイズ・優
先度(入力のDMA要求の優先度)のDMA要求情報
(221)を、オペレーティングシステム213内のD
MA制御部214に出力する。Now, when the task 1 is started during the execution of the DMA request PL and the DMA request 1-N is executed, the transfer source address, the transfer destination address, the transfer size, and the priority (input The DMA request information (221) of the DMA request priority) is
Output to MA control section 214.
【0062】DMA要求P−Lの処理が終了した時点
で、DMA制御部214に残るDMA要求は、 入力のDMA: DMA要求1−N 出力のDMA: なし 一般のDMA: DMA要求1−1 となる。When the processing of the DMA request P-L is completed, the remaining DMA requests in the DMA control unit 214 are: input DMA: DMA request 1-N output DMA: none General DMA: DMA request 1-1 Become.
【0063】動作中のDMA転送が終了すると、DMA
制御部214は、未処理のDMA要求を検索し、入力の
DMAに該当するDMA要求1−Nを選択し、DMAコ
ントローラ215へ転送元アドレス・転送先アドレス・
転送サイズ等のパラメータを設定し、DMAコントロー
ラ215を起動する。この場合、アドレスバス216に
書込アドレスが出力され、入力メモリ222から読み出
したデータは、データバス206・DMAコントローラ
215・データバス217を経由してメモリ202に書
き込まれる。When the DMA transfer in operation is completed, the DMA transfer
The control unit 214 searches for an unprocessed DMA request, selects the DMA request 1-N corresponding to the input DMA, and sends the DMA request 215 the transfer source address, the transfer destination address,
The parameters such as the transfer size are set, and the DMA controller 215 is started. In this case, the write address is output to the address bus 216, and the data read from the input memory 222 is written to the memory 202 via the data bus 206, the DMA controller 215, and the data bus 217.
【0064】DMA要求1−Nの処理が終了した時点
で、DMA制御部214に残るDMA要求は、 出力のDMA: なし 一般のDMA: DMA要求1−1 となる。When the processing of the DMA request 1-N is completed, the remaining DMA request in the DMA control unit 214 is: output DMA: none general DMA: DMA request 1-1.
【0065】以下、同様にして、DMA転送の実行を待
っているDMA要求が複数残存する場合には、発行され
た順番(あるいは受け付けた順番)ではなく、優先度が
高いDMA要求からDMA転送が実行される。また、そ
の際、特別のDMA要求、例えば、入力のDMA要求お
よび出力のDMA要求は、その優先度が一般のDMA要
求の優先度の最大値よりも大きいものとされるので、優
先的に扱うことができる。Similarly, when there are a plurality of DMA requests waiting for the execution of the DMA transfer, the DMA transfer is performed not from the order in which they were issued (or the order in which they were received) but from the DMA request having the higher priority. Be executed. At this time, special DMA requests, for example, an input DMA request and an output DMA request have higher priority than the maximum value of the priority of the general DMA request, so that they are handled preferentially. be able to.
【0066】なお、複数の特別のDMA要求、例えば、
入力のDMA要求と出力のDMA要求とが発生した場
合、要求の発生順とすることや、入出力のDMA要求の
中での優先度パラメータを使用することによって、両者
の優先度を決めることができる。Note that a plurality of special DMA requests, for example,
When an input DMA request and an output DMA request occur, it is possible to determine the priority of both by setting the order of the requests and by using the priority parameter in the input / output DMA request. it can.
【0067】また、DMA転送の実行を待っている一般
のDMA要求のうちに同一の優先度を持つ複数のDMA
要求が同時に存在することを許すようにしてもよい。こ
の場合、最も高い優先度を持つDMA要求が複数あると
きには、それらについて、発行された順番(あるいは受
け付けた順番)に従って、DMA転送を実行すればよ
い。Also, a plurality of DMAs having the same priority among general DMA requests waiting for execution of DMA transfer
Requests may be allowed to exist simultaneously. In this case, when there are a plurality of DMA requests having the highest priority, the DMA transfer may be executed in accordance with the issued order (or the accepted order).
【0068】さらに、一般のDMA要求については、そ
の発生順に従って優先度を決めるようにする方法も可能
である。Further, it is possible to determine the priority of general DMA requests in accordance with the order of generation.
【0069】なお、優先度を示すパラメータの代わり
に、特別のDMA要求であるか否かを示すパラメータを
付加し、このパラメータに基づいて、特別のDMA要求
を、それ以外の一般のDMA要求よりも優先的に処理す
るように制御することも可能である。It should be noted that a parameter indicating whether the request is a special DMA request is added instead of the parameter indicating the priority, and based on this parameter, the special DMA request is added to the other general DMA requests. Can also be controlled so as to be processed preferentially.
【0070】ここで、図4に、DMA制御部214によ
るDMA要求選択手順の一例を示す。すなわち、DMA
要求を処理可能で且つ処理すべきDMA要求がある場合
に(ステップS11)、特別のDMA要求(例えば、入
力のDMA要求または出力のDMA要求)が存在するな
らば(ステップS12)、特別のDMA要求のうちから
1つを選択し(ステップS14)、特別のDMA要求が
存在しないならば(ステップS12)、一般のDMA要
求のうちから1つを選択し(ステップS13)、選択し
たDMA要求の実行に必要な手続きを行う(ステップS
15)。以下、これを繰り返し行う。FIG. 4 shows an example of a procedure for selecting a DMA request by the DMA control unit 214. That is, DMA
If there is a DMA request that can process the request and should be processed (step S11), and there is a special DMA request (for example, an input DMA request or an output DMA request) (step S12), a special DMA request is issued. One of the requests is selected (step S14). If there is no special DMA request (step S12), one of the general DMA requests is selected (step S13), and the selected DMA request is selected. Perform the necessary procedures for execution (step S
15). Hereinafter, this is repeated.
【0071】また、本実施形態で、図2の手順を用いる
ことも可能である。In this embodiment, the procedure shown in FIG. 2 can be used.
【0072】さらに、本発明を他の手順で実施すること
ももちろん可能である。Further, it is of course possible to carry out the present invention by another procedure.
【0073】なお、第1および第2の実施形態におい
て、DMA制御部が新たにDMA要求を受け付ける毎
に、待機中のDMA要求を、処理すべき順にソートして
おき、DMA要求が処理可能になった際には、ソートさ
れた先頭のDMA要求を、次に実行すべきものとして選
択するようにしてもよい。In the first and second embodiments, each time the DMA controller receives a new DMA request, the waiting DMA requests are sorted in the order in which they are to be processed, so that the DMA requests can be processed. In such a case, the sorted first DMA request may be selected as the next DMA request to be executed.
【0074】なお、本実施形態の機能は、コンピュータ
に所定の手段を実行させるための(あるいはコンピュー
タを所定の手段として機能させるための、あるいはコン
ピュータに所定の機能を実現させるための)プログラム
(例えば、オペレーティングシステムの一機能)として
実施することもでき、該プログラムを記録したコンピュ
ータ読取り可能な記録媒体として実施することもでき
る。The functions of the present embodiment include a program (for example, a program for causing a computer to execute predetermined means (or for causing a computer to function as predetermined means, or for causing a computer to realize predetermined functions)). , A function of an operating system) or a computer-readable recording medium on which the program is recorded.
【0075】なお、この発明の実施の形態で例示した構
成は一例であって、それ以外の構成を排除する趣旨のも
のではなく、例示した構成の一部を他のもので置き換え
たり、例示した構成の一部を省いたり、例示した構成に
別の機能あるいは要素を付加したり、それらを組み合わ
せたりすることなどによって得られる別の構成も可能で
ある。また、例示した構成と論理的に等価な別の構成、
例示した構成と論理的に等価な部分を含む別の構成、例
示した構成の要部と論理的に等価な別の構成なども可能
である。また、例示した構成と同一もしくは類似の目的
を達成する別の構成、例示した構成と同一もしくは類似
の効果を奏する別の構成なども可能である。また、この
発明の実施の形態で例示した各種構成部分についての各
種バリエーションは、適宜組み合わせて実施することが
可能である。また、この発明の実施の形態は、装置ある
いはプログラムとしての発明、装置あるいはプログラム
の内部の構成部分についての発明、またはそれらに対応
する方法の発明等、種々の観点、段階、概念またはカテ
ゴリに係る発明を包含・内在するものである。従って、
この発明の実施の形態に開示した内容からは、例示した
構成に限定されることなく発明を抽出することができる
ものである。The configuration illustrated in the embodiment of the present invention is merely an example, and is not intended to exclude other configurations, and a part of the illustrated configuration is replaced with another one or illustrated. Another configuration obtained by omitting a part of the configuration, adding another function or element to the illustrated configuration, or combining them is also possible. Also, another configuration that is logically equivalent to the illustrated configuration,
Another configuration including a portion logically equivalent to the illustrated configuration, another configuration logically equivalent to a main part of the illustrated configuration, and the like are also possible. Further, another configuration that achieves the same or similar purpose as the illustrated configuration, another configuration that achieves the same or similar effect as the illustrated configuration, and the like are also possible. Various variations of the various components exemplified in the embodiments of the present invention can be implemented in appropriate combinations. Embodiments of the present invention relate to various aspects, steps, concepts, or categories, such as an invention as an apparatus or a program, an invention about an internal component of an apparatus or a program, or an invention of a method corresponding thereto. It encompasses and implies the invention. Therefore,
From the contents disclosed in the embodiments of the present invention, the invention can be extracted without being limited to the exemplified configuration.
【0076】本発明は、上述した実施の形態に限定され
るものではなく、その技術的範囲において種々変形して
実施することができる。The present invention is not limited to the above-described embodiments, but can be implemented with various modifications within the technical scope thereof.
【0077】[0077]
【発明の効果】本発明によれば、DMA要求に付加され
た優先度に基づいて制御を行うので、複数のDMA要求
が発生するマルチタスクシステムにおいて、オペレーテ
ィングシステムが決める順番ではなく、ユーザが意図し
た優先度に従ってDMA要求を実行させることが可能に
なる。According to the present invention, the control is performed based on the priority added to the DMA request. Therefore, in a multitask system in which a plurality of DMA requests are generated, the user does not have to determine the order determined by the operating system but the user's intention. It is possible to execute the DMA request according to the given priority.
【図1】本発明の一実施形態に係るメディア処理装置の
構成例を示すブロック図FIG. 1 is a block diagram illustrating a configuration example of a media processing apparatus according to an embodiment of the present invention.
【図2】同実施形態に係るDMA要求選択手順の一例を
示すフローチャートFIG. 2 is an exemplary flowchart illustrating an example of a DMA request selection procedure according to the embodiment.
【図3】同実施形態に係るメディア処理装置の他の構成
例を示すブロック図FIG. 3 is an exemplary block diagram showing another configuration example of the media processing apparatus according to the embodiment;
【図4】同実施形態に係るDMA要求選択手順の他の例
を示すフローチャートFIG. 4 is a flowchart showing another example of the DMA request selection procedure according to the embodiment;
【図5】従来のメディア処理装置のブロック図FIG. 5 is a block diagram of a conventional media processing apparatus.
101,201…メディア処理装置 102,202…メモリ 103,118,119,203,218,219…タ
スク 104,107,110,120,204,207,2
10,220…DMA要求 105,108,111,121,205,208,2
11,221…DMA要求情報 106,109,112,117,206,209,2
12,217…データバス 113,213…オペレーティングシステム 114,214…DMA制御部 115,215…DMAコントローラ 116,216…アドレスバス 222…入力メモリ 223…出力メモリ101, 201 ... media processing device 102, 202 ... memory 103, 118, 119, 203, 218, 219 ... task 104, 107, 110, 120, 204, 207, 2
10, 220 ... DMA request 105, 108, 111, 121, 205, 208, 2
11, 221... DMA request information 106, 109, 112, 117, 206, 209, 2
12, 217 data bus 113, 213 operating system 114, 214 DMA controller 115, 215 DMA controller 116, 216 address bus 222 input memory 223 output memory
Claims (9)
するメディア処理装置におけるDMA制御方法であっ
て、 前記タスクの各々が前記DMAコントローラに対するD
MA要求を出す場合には、DMA転送に関するパラメー
タ及び優先度を示すパラメータを付加して要求を出し、 前記DMAコントローラに対するDMA要求を処理する
に際して、処理すべきDMA要求が複数存在する場合に
は、各DMA要求に付加されている前記優先度を示すパ
ラメータに基づいて、処理すべきDMA要求を選択する
ことを特徴とするDMA制御方法。1. A DMA control method in a media processing device in which a plurality of tasks share a DMA controller, wherein each of the tasks has a D
When issuing an MA request, a request is issued by adding a parameter relating to DMA transfer and a parameter indicating priority. When processing a DMA request to the DMA controller, if there are a plurality of DMA requests to be processed, A DMA control method, wherein a DMA request to be processed is selected based on a parameter indicating the priority added to each DMA request.
ものを特別のDMA要求として定め、 前記タスクが出す前記DMA要求が、前記特別のDMA
要求である場合には、他のDMA要求より高い優先度を
示すパラメータを付加してDMA要求を出すことを特徴
とする請求項1に記載のDMA制御方法。2. The method according to claim 2, wherein the DMA request to be processed with priority is determined as a special DMA request, and the DMA request issued by the task is the special DMA request.
2. The DMA control method according to claim 1, wherein when the request is a request, a DMA request is issued with a parameter indicating higher priority than other DMA requests.
タの入力処理又は出力処理に対するDMA要求であるこ
とを特徴とする請求項2に記載のDMA制御方法。3. The DMA control method according to claim 2, wherein said special DMA request is a DMA request for input processing or output processing of stream data.
するメディア処理装置におけるDMA制御方法であっ
て、 前記タスクの各々が前記DMAコントローラに対するD
MA要求を出す場合には、DMA転送に関するパラメー
タ及び該DMA要求が優先的に処理すべき特別のDMA
要求であるか否かを識別可能とするパラメータを付加し
て要求を出し、 前記DMAコントローラに対するDMA要求を処理する
に際して、処理すべきDMA要求が複数存在する場合に
は、特別のDMA要求が存在するならば、特別のDMA
要求を優先的に処理し、特別のDMA要求が存在しない
ならば、特別のDMA要求でないDMA要求を処理する
ことを特徴とするDMA制御方法。4. A DMA control method in a media processing device in which a plurality of tasks share a DMA controller, wherein each of the tasks has a D
When issuing an MA request, the parameters relating to the DMA transfer and the special DMA to be preferentially processed by the DMA request
A request is issued by adding a parameter that enables identification of whether or not the request is a request. When processing a DMA request to the DMA controller, if there are a plurality of DMA requests to be processed, a special DMA request exists. If you do, special DMA
A DMA control method characterized by processing requests preferentially and, if no special DMA request exists, processing a DMA request that is not a special DMA request.
て、複数の特別のDMA要求が存在する場合には、その
発行順に基づいて処理を行うことを特徴とする請求項4
に記載のDMA制御方法。5. When processing the special DMA request, if there are a plurality of special DMA requests, the processing is performed based on the issuing order.
2. The DMA control method according to 1.
するメディア処理装置において、 前記タスクの各々から、前記DMAコントローラに対す
るDMA要求であって、DMA転送に関するパラメータ
及び優先度を示すパラメータを付加されたものを受け付
ける手段と、 受け付けた前記DMA要求であって未処理のものが複数
存在する場合に、各DMA要求に付加されている前記優
先度を示すパラメータに基づいて、処理すべきDMA要
求を選択する手段とを備えたことを特徴とするメディア
処理装置。6. A media processing device in which a plurality of tasks share a DMA controller, wherein each of the tasks is a DMA request to the DMA controller, to which a parameter relating to a DMA transfer and a parameter indicating a priority are added. Means for accepting, and when there are a plurality of unprocessed received DMA requests, selecting a DMA request to be processed based on the parameter indicating the priority added to each DMA request And a media processing device.
ものを特別のDMA要求として定め、 前記タスクが出す前記DMA要求が、前記特別のDMA
要求である場合には、他のDMA要求より高い優先度を
示すパラメータを付加することを特徴とする請求項6に
記載のメディア処理装置。7. A special DMA request which is to be processed preferentially among the DMA requests, wherein the DMA request issued by the task is the special DMA request.
7. The media processing apparatus according to claim 6, wherein if the request is a request, a parameter indicating a higher priority than other DMA requests is added.
するメディア処理装置において、 前記タスクの各々から、前記DMAコントローラに対す
るDMA要求であって、DMA転送に関するパラメータ
及び該DMA要求が優先的に処理すべき特別のDMA要
求であるか否かを識別可能とするパラメータを付加され
たものを受け付ける手段と、 受け付けた前記DMA要求であって未処理のものが複数
存在する場合に、各DMA要求に付加されている前記特
別のDMA要求であるか否かを識別可能とするパラメー
タに基づいて、処理すべきDMA要求を選択する手段と
を備えたことを特徴とするメディア処理装置。8. A media processing apparatus in which a plurality of tasks share a DMA controller, wherein each of the tasks is a DMA request to the DMA controller, and a parameter relating to DMA transfer and the DMA request should be processed preferentially. Means for receiving a DMA request to which a parameter enabling identification of whether or not the DMA request is a special DMA request; Means for selecting a DMA request to be processed based on a parameter which makes it possible to identify whether the request is a special DMA request or not.
するコンピュータ上で動作するプログラムであって、 前記タスクの各々から、前記DMAコントローラに対す
るDMA要求であって、DMA転送に関するパラメータ
及び優先度を示すパラメータを付加されたものを受け付
ける機能と、 受け付けた前記DMA要求であって未処理のものが複数
存在する場合に、各DMA要求に付加されている前記優
先度を示すパラメータに基づいて、処理すべきDMA要
求を選択する機能とをコンピュータに実現させるための
プログラム。9. A program running on a computer in which a plurality of tasks share a DMA controller, wherein each of the tasks is a DMA request to the DMA controller, the parameter indicating a DMA transfer and a parameter indicating a priority. And a function for receiving the DMA request received, and when there are a plurality of received DMA requests that have not been processed, the DMA request should be processed based on the parameter indicating the priority added to each DMA request. A program for causing a computer to implement a function of selecting a DMA request.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001023359A JP2002229930A (en) | 2001-01-31 | 2001-01-31 | DMA control method and media processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001023359A JP2002229930A (en) | 2001-01-31 | 2001-01-31 | DMA control method and media processing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2002229930A true JP2002229930A (en) | 2002-08-16 |
Family
ID=18888657
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001023359A Pending JP2002229930A (en) | 2001-01-31 | 2001-01-31 | DMA control method and media processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2002229930A (en) |
-
2001
- 2001-01-31 JP JP2001023359A patent/JP2002229930A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4356765B2 (en) | Information processing apparatus and method, and program | |
| JP2004038758A (en) | Storage control device, control method for storage control device, and program | |
| JP2001160041A (en) | CPU load reduction method for online system | |
| JPH0798663A (en) | Asynchronous I / O control method | |
| JP2005258509A (en) | Storage device | |
| JP2002229930A (en) | DMA control method and media processing device | |
| JP4218034B2 (en) | Data communication system, data communication method, and data communication program | |
| JPH09223102A (en) | Direct memory access controller | |
| CN114564289A (en) | Task switching method and device and electronic equipment | |
| JP2000259591A (en) | Distributed processing job execution method and network system | |
| US6842900B2 (en) | Information processing apparatus executing processing corresponding to new thread by reusing arrangement for previous thread | |
| JPS63223860A (en) | Multiple processor configuration device | |
| JP2024125948A (en) | JOB EXECUTION CONTROL DEVICE, JOB EXECUTION CONTROL PROGRAM, AND JOB EXECUTION CONTROL METHOD | |
| JPH08272739A (en) | Method for improving on-line response | |
| JPH0452942A (en) | File transfer system | |
| JPH09190317A (en) | Printing apparatus and printing method | |
| JP3008890B2 (en) | Processing control unit | |
| JP2677069B2 (en) | Data processing system | |
| JP2752894B2 (en) | File transfer device | |
| JPH05224941A (en) | Application program control system | |
| JP2500446B2 (en) | Collective message processing system with intermittent operation function | |
| JP2005025294A (en) | I / O request priority controller in multiple systems | |
| JPH05233525A (en) | Input/otuput processor | |
| CN116009798A (en) | Working method and image forming apparatus | |
| JP2007233608A (en) | A program for causing a computer to execute an interrupt control device and an interrupt control method. |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050218 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050301 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050502 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20060411 |