JP2768121B2 - Multi-task processing system - Google Patents

Multi-task processing system

Info

Publication number
JP2768121B2
JP2768121B2 JP4070682A JP7068292A JP2768121B2 JP 2768121 B2 JP2768121 B2 JP 2768121B2 JP 4070682 A JP4070682 A JP 4070682A JP 7068292 A JP7068292 A JP 7068292A JP 2768121 B2 JP2768121 B2 JP 2768121B2
Authority
JP
Japan
Prior art keywords
task
port
program
main processor
data 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.)
Expired - Lifetime
Application number
JP4070682A
Other languages
Japanese (ja)
Other versions
JPH05274154A (en
Inventor
達哉 設楽
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP4070682A priority Critical patent/JP2768121B2/en
Publication of JPH05274154A publication Critical patent/JPH05274154A/en
Application granted granted Critical
Publication of JP2768121B2 publication Critical patent/JP2768121B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は、マルチタスク処理シ
ステムに関し、さらに詳しくは、マルチタスク処理でタ
スクプログラムをスワップするときのオーバヘッドを低
減できるマルチタスク処理システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multitask processing system, and more particularly, to a multitask processing system capable of reducing the overhead when swapping task programs in multitask processing.

【0002】[0002]

【従来の技術】ディスク装置を持つシステムにおいて
は、主メモリとディスク装置の間でいかに高速にしかも
メインプロセッサやシステムバスの負荷やオーバヘッド
を低減させてデータ転送を行うかがシステムの性能を向
上する上で大きなウェートを占める。
2. Description of the Related Art In a system having a disk device, how high-speed the data transfer between the main memory and the disk device and the load and overhead of the main processor and the system bus are reduced to improve the performance of the system. Occupies a large weight above.

【0003】このため、主メモリにデュアルポートRA
Mを用い、そのシリアルアクセスメモリ部をDMAアク
セス専用にし、そのランダムアクセスメモリ部をメイン
プロセッサアクセス用にそれぞれ分けて使用するメモリ
アクセス方式が、例えば特開平2−29845号公報に
おいて提案されている。このメモリアクセス方式によれ
ば、メインプロセッサのアクセスとDMAのアクセスを
独立に行えるので、システムバスの負荷やオーバヘッド
を低減できる。
For this reason, a dual port RA
For example, Japanese Patent Application Laid-Open No. 2-29845 proposes a memory access method in which the serial access memory unit is dedicated to DMA access using M and the random access memory unit is separately used for main processor access. According to this memory access method, the access of the main processor and the access of the DMA can be performed independently, so that the load and overhead of the system bus can be reduced.

【0004】[0004]

【発明が解決しようとする課題】上記特開平2−298
45号公報において提案のメモリアクセス方式は、マル
チタスク処理を行う場合については特に考慮されていな
かった。このため、マルチタスク処理でタスクプログラ
ムをスワップするときのオーバヘッドによりシステムの
性能が低下する問題点があった。
SUMMARY OF THE INVENTION The above-mentioned Japanese Patent Application Laid-Open No. 2-298 is disclosed.
In the memory access method proposed in Japanese Patent Publication No. 45, no consideration is given to the case of performing multitask processing. Therefore, there is a problem that the performance of the system is reduced due to the overhead when the task programs are swapped in the multitask processing.

【0005】この発明は、上記問題点を解決するために
なされたもので、マルチタスク処理でタスクプログラム
をスワップするときのオーバヘッドを低減できるマルチ
タスク処理システムを提供することを目的とする。
An object of the present invention is to provide a multitask processing system capable of reducing the overhead when swapping task programs in multitask processing.

【0006】[0006]

【課題を解決するための手段】この発明のマルチタスク
処理システムは、メインプロセッサと、そのメインプロ
セッサにランダムポートを接されたデュアルポートポ
ートラムと、そのデュアルポートポートラムのシリアル
ポートに接続されたディスク装置と、そのディスク装置
と前記デュアルポートポートラムの間のデータ転送を制
御するデータ転送コントローラとを有するマルチタスク
処理システムであって、前記デュアルポートポートラム
のメモリセル部は論理的あるいは物理的に2以上のバン
クに分割されており、前記データ転送コントローラは、
前記バンクの一つに前記シリアルポートを介して前記デ
ィスク装置側からマルチタスク処理を行うタスクプログ
ラムロード、そのタスクプログラムに前記ランダム
ポートを介して前記メインプロセッサ側がアクセスして
当該タスクプログラムを実行している間に他のバンクに
前記シリアルポートを介して前記ディスク装置側から次
に実行するマルチタスク処理を行うタスクプログラム
ロードするものである、ことを特徴とするものである。
Means for Solving the Problems] multitask processing system of the present invention, the main processor, and a dual-port port ram random port is connected to the main processor, disk connected to the serial port of the dual port port RAM Device and its disk device
Data transfer between the
And a data transfer controller for controlling the data transfer controller , wherein the memory cell portion of the dual port port ram is logically or physically divided into two or more banks, and the data transfer controller comprises:
Load the task program for multitasking from the disk device side one in through the serial port of the bank, executing the task program the main processor side is accessed through the random port in the task program And loading a task program for performing a multi-task process to be executed next from the disk device via the serial port to another bank during the operation. .

【0007】[0007]

【0008】[0008]

【作用】この発明のマルチタスク処理システムでは、デ
ュアルポートRAMのメモリセル部を2以上のバンクに
分割し、一つのバンクにロードしたタスクプログラムに
ランダムポートを介してメインプロセッサがアクセスし
実行している間に、他のバンクにシリアルポートを介し
てディスク装置がアクセスし次に実行するタスクプログ
ラムをロードする。すなわち、一つのタスクプログラム
の実行中に次に実行するタスクプログラムのロードを並
行して行えるので、マルチタスク処理でタスクプログラ
ムをスワップするときのオーバヘッドを低減できる。
In the multitask processing system of the present invention, the memory cell section of the dual port RAM is divided into two or more banks, and the main processor accesses and executes the task program loaded in one bank via a random port. During this time, the disk device accesses another bank via the serial port and loads a task program to be executed next. That is, since the loading of the next task program can be performed in parallel during the execution of one task program, it is possible to reduce the overhead when the task programs are swapped in the multitask processing.

【0009】[0009]

【0010】[0010]

【実施例】以下、図に示す実施例について説明する。な
お、これによりこの発明が限定されるものではない。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The embodiment shown in FIG. It should be noted that the present invention is not limited by this.

【0011】図1は、この発明の一実施例のマルチタス
ク処理システムのブロック図である。1は、システム全
体を制御するメインプロセッサである。2は、ランダム
ポート9およびシリアルポート10を有するデュアルポ
ートRAMである。3はディスクコントローラ、4はデ
ィスク装置である。5は、デュアルポートRAM2とデ
ィスクコントローラ3間のデータ転送を行うのに必要な
シーケンスプログラムを有するデータ転送コントローラ
である。6は、システムバスである。
FIG. 1 is a block diagram of a multitask processing system according to an embodiment of the present invention. 1 is a main processor that controls the entire system. 2 is a dual port RAM having a random port 9 and a serial port 10. 3 is a disk controller and 4 is a disk device. Reference numeral 5 denotes a data transfer controller having a sequence program necessary for performing data transfer between the dual port RAM 2 and the disk controller 3. 6 is a system bus.

【0012】デュアルポートRAM2のランダムポート
9は、システムバス6を介してメインプロセッサ1に接
続されている。また、デュアルポートRAM2のシリア
ルポート10は、ディスクコントローラ3に接続されて
いる。
The random port 9 of the dual port RAM 2 is connected to the main processor 1 via the system bus 6. The serial port 10 of the dual port RAM 2 is connected to the disk controller 3.

【0013】図2は、デュアルポートRAM2のブロッ
ク図である。7は、ランダムアクセスが可能なメモリセ
ル部である。メモリセル部7は、論理的(または物理
的)にバンクA11とバンクB12の2つのバンクに分
割されている。8は、シリアル転送を行うデータレジス
タ8である。メモリセル部7は、システムバス6および
ランダムポート9を介して、メインプロセッサ1からア
クセスされ、主メモリとして使用される。それとは独立
に、メモリセル部7は、データレジスタ8およびシリア
ルポート10およびディスクコントローラ3を介してデ
ィスク装置4からアクセスされる。
FIG. 2 is a block diagram of the dual port RAM 2. Reference numeral 7 denotes a memory cell unit that can be randomly accessed. The memory cell unit 7 is logically (or physically) divided into two banks A11 and B12. Reference numeral 8 denotes a data register 8 for performing serial transfer. The memory cell unit 7 is accessed from the main processor 1 via the system bus 6 and the random port 9, and is used as a main memory. Independently, the memory cell unit 7 is accessed from the disk device 4 via the data register 8, the serial port 10, and the disk controller 3.

【0014】次に、上記システムによりマルチタスク処
理を行う場合の動作を説明する。図3に示すように、デ
ィスク装置4には、マルチタスク処理を行う3個のタス
クプログラム/データ(タスクA13,タスクB14,
タスクC15)が格納されている。システム起動時、メ
インプロセッサ1は、最初に実行すべきタスクA13の
プログラム/データをロードするための情報と次に実行
すべきタスクB14のプログラム/データをロードする
ための情報をデータ転送コントローラ5にセットし、デ
ータ転送コントローラ5に起動をかける。データ転送コ
ントローラ5は、ディスク装置4からバンクA11にタ
スクA13をロードする。ロードが完了すると、内部の
完了フラグをセットする。
Next, the operation when multitask processing is performed by the above system will be described. As shown in FIG. 3, the disk device 4 stores three task programs / data (task A13, task B14,
Task C15) is stored. When the system is started, the main processor 1 sends to the data transfer controller 5 information for loading the program / data of the task A13 to be executed first and information for loading the program / data of the task B14 to be executed next. Set and activate the data transfer controller 5. The data transfer controller 5 loads the task A13 from the disk device 4 to the bank A11. When the loading is completed, an internal completion flag is set.

【0015】図4に示すように、メインプロセッサ1
は、完了フラグがセットされていることを確認してか
ら、バンクA11にアクセスし、タスクA13を実行す
る。このとき、データ転送コントローラ5は、ディスク
装置4からバンクB12にタスクB14をロードする。
ロードが完了すると、内部の完了フラグをセットする。
As shown in FIG. 4, the main processor 1
Confirms that the completion flag is set, accesses the bank A11, and executes the task A13. At this time, the data transfer controller 5 loads the task B14 from the disk device 4 to the bank B12.
When the loading is completed, an internal completion flag is set.

【0016】図5に示すように、メインプロセッサ1
は、タスクA13を一定時間実行した後、タスクA13
の実行を中断する。そして、バンクA11内のタスクA
のプログラム/データをディスク装置4にセーブするた
めの情報と,ディスク装置4からバンクA11にタスク
Cのプログラム/データをロードするための情報をデー
タ転送コントローラ5にセットし、起動をかける。
As shown in FIG. 5, the main processor 1
Executes task A13 for a certain period of time, and then executes task A13
Interrupts the execution of. Then, task A in bank A11
The information for saving the program / data in the disk device 4 and the information for loading the program / data of the task C from the disk device 4 to the bank A11 are set in the data transfer controller 5 and activated.

【0017】図6に示すように、メインプロセッサ1
は、バンクB12にアクセスし、タスクB14の実行に
移る。このとき、データ転送コントローラ5は、バンク
A11内のタスクAのプログラム/データをディスク装
置4にセーブする。また、図7に示すように、データ転
送コントローラ5は、空になったバンクA11内に、デ
ィスク装置4からタスクCのプログラム/データをロー
ドする。
As shown in FIG. 6, the main processor 1
Accesses the bank B12 and proceeds to the execution of the task B14. At this time, the data transfer controller 5 saves the program / data of the task A in the bank A11 to the disk device 4. As shown in FIG. 7, the data transfer controller 5 loads the program / data of the task C from the disk device 4 into the empty bank A11.

【0018】メインプロセッサ1は、タスクB14を一
定時間実行した後、タスクB14の実行を中断する。そ
して、バンクB12内のタスクBのプログラム/データ
をディスク装置4にセーブするための情報と,ディスク
装置4からバンクB12にタスクAのプログラム/デー
タをロードするための情報をデータ転送コントローラ5
にセットし、起動をかける。
After executing the task B14 for a predetermined time, the main processor 1 suspends the execution of the task B14. Then, information for saving the program / data of the task B in the bank B12 to the disk device 4 and information for loading the program / data of the task A from the disk device 4 to the bank B12 are transferred to the data transfer controller 5.
And start.

【0019】図8に示すように、メインプロセッサ1
は、バンクA11にアクセスし、タスクC15の実行に
移る。このとき、データ転送コントローラ5は、バンク
B12内のタスクBのプログラム/データをディスク装
置4にセーブする。以下、上記動作が繰り返される。図
9は、上記動作におけるランダムポート9とシリアルポ
ート10の状態図である。
As shown in FIG. 8, the main processor 1
Accesses the bank A11 and proceeds to the execution of the task C15. At this time, the data transfer controller 5 saves the program / data of the task B in the bank B12 to the disk device 4. Hereinafter, the above operation is repeated. FIG. 9 is a state diagram of the random port 9 and the serial port 10 in the above operation.

【0020】以上のように、ある一つのタスクを実行中
に、前のタスクのセーブを行い、また、次のタスクのロ
ードを行うことで、タスクの切換時間を最短にすること
が出来る。すなわち、タスクプログラムをスワップする
ときのオーバヘッドを低減できる。
As described above, while a certain task is being executed, the previous task is saved, and the next task is loaded, so that the task switching time can be minimized. That is, overhead when swapping task programs can be reduced.

【0021】[0021]

【0022】[0022]

【0023】[0023]

【0024】[0024]

【0025】[0025]

【発明の効果】この発明のマルチタスク処理システムに
よれば、マルチタスク処理において、タスク切替時のメ
モリスワップ時間が見かけ上ほとんどゼロとなり、シス
テムの性能を向上することが出来る。
According to the multitask processing system of the present invention, in the multitask processing, the memory swap time at the time of task switching apparently becomes almost zero, and the performance of the system can be improved.

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

【図1】この発明のマルチタスク処理システムのブロッ
ク図である。
FIG. 1 is a block diagram of a multitask processing system according to the present invention.

【図2】デュアルポートRAMのブロック図である。FIG. 2 is a block diagram of a dual port RAM.

【図3】図1のシステムにおけるプログラムロード手順
の説明図である。
FIG. 3 is an explanatory diagram of a program loading procedure in the system of FIG. 1;

【図4】図1のシステムにおけるプログラムロード手順
の説明図である。
FIG. 4 is an explanatory diagram of a program loading procedure in the system of FIG. 1;

【図5】図1のシステムにおけるプログラムロード手順
の説明図である。
FIG. 5 is an explanatory diagram of a program loading procedure in the system of FIG. 1;

【図6】図1のシステムにおけるプログラムロード手順
の説明図である。
FIG. 6 is an explanatory diagram of a program loading procedure in the system of FIG. 1;

【図7】図1のシステムにおけるプログラムロード手順
の説明図である。
FIG. 7 is an explanatory diagram of a program loading procedure in the system of FIG. 1;

【図8】図1のシステムにおけるプログラムロード手順
の説明図である。
FIG. 8 is an explanatory diagram of a program loading procedure in the system of FIG. 1;

【図9】ランダムポートとシリアルポートの状態を説明
するタイムチャートである。
FIG. 9 is a time chart illustrating states of a random port and a serial port.

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

1 メインプロセッサ 2 デュアルポートRAM 4 ディスク装置 9 ランダムポート 10 シリアルポート 11 メモリバンクA 12 メモリバンクB 13 タスクA 14 タスクB 15 タスクC DESCRIPTION OF SYMBOLS 1 Main processor 2 Dual port RAM 4 Disk device 9 Random port 10 Serial port 11 Memory bank A 12 Memory bank B 13 Task A 14 Task B 15 Task C

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 メインプロセッサと、そのメインプロセ
ッサにランダムポートを接されたデュアルポートポー
トラムと、そのデュアルポートポートラムのシリアルポ
ートに接続されたディスク装置と、そのディスク装置と
前記デュアルポートポートラムの間のデータ転送を制御
するデータ転送コントローラとを有するマルチタスク処
理システムであって、前記デュアルポートポートラムの
メモリセル部は論理的あるいは物理的に2以上のバンク
に分割されており、前記データ転送コントローラは、前
記バンクの一つに前記シリアルポートを介して前記ディ
スク装置側からマルチタスク処理を行うタスクプログラ
ロード、そのタスクプログラムに前記ランダムポ
ートを介して前記メインプロセッサ側がアクセスして当
該タスクプログラムを実行している間に他のバンクに前
記シリアルポートを介して前記ディスク装置側から次に
実行するマルチタスク処理を行うタスクプログラム
ードするものである、ことを特徴とするマルチタスク処
理システム。
1. A main processor, a dual-port port ram random port is connected to the main processor, and a disk device connected to the serial port of the dual port port RAM, and the disk device
Controls data transfer between the dual port ports
A multi-task processing system having a data transfer controller , wherein a memory cell portion of the dual port port ram is logically or physically divided into two or more banks, and the data transfer controller
Wherein the one of the serial bank via the serial port to load a task program for multitasking from the disk apparatus, executes the task program by the main processor side access through the random port in the task program multi next task program for multitasking to execute is to b <br/> over de, it is characterized from the disk apparatus via the serial port to the other bank while you are Task processing system.
JP4070682A 1992-03-27 1992-03-27 Multi-task processing system Expired - Lifetime JP2768121B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4070682A JP2768121B2 (en) 1992-03-27 1992-03-27 Multi-task processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4070682A JP2768121B2 (en) 1992-03-27 1992-03-27 Multi-task processing system

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP9272321A Division JPH1097470A (en) 1997-10-06 1997-10-06 Processor system

Publications (2)

Publication Number Publication Date
JPH05274154A JPH05274154A (en) 1993-10-22
JP2768121B2 true JP2768121B2 (en) 1998-06-25

Family

ID=13438669

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4070682A Expired - Lifetime JP2768121B2 (en) 1992-03-27 1992-03-27 Multi-task processing system

Country Status (1)

Country Link
JP (1) JP2768121B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10333977A (en) 1997-05-28 1998-12-18 Oki Electric Ind Co Ltd Micro controller
JP2005215994A (en) * 2004-01-29 2005-08-11 Mitsubishi Electric Corp Multimedia processing apparatus of mobile phone terminal
JP5419500B2 (en) * 2009-03-12 2014-02-19 キヤノン株式会社 Program and information processing apparatus
JP2013190893A (en) * 2012-03-13 2013-09-26 Rohm Co Ltd Multitask processing apparatus

Also Published As

Publication number Publication date
JPH05274154A (en) 1993-10-22

Similar Documents

Publication Publication Date Title
EP0637802A2 (en) Interrupt vector method and apparatus
JPH10187359A (en) System for storing data and method for transferring data applied to the same system
JP2531760B2 (en) Vector processor
JP2768121B2 (en) Multi-task processing system
US6134642A (en) Direct memory access (DMA) data transfer requiring no processor DMA support
JPH0656611B2 (en) Vector processor
JPS60204029A (en) Signal processing device
JP2004062449A (en) Microprocessor and its processing method
JP2702137B2 (en) Vector operation instruction processing method
JP3139310B2 (en) Digital signal processor
JP3168845B2 (en) Digital signal processor
JPS616747A (en) Memory device
JPH03182945A (en) Transfer system for data in main storage
JPH0247751A (en) Channel control system
JP3022848B2 (en) Multitask task switching method and real-time operating system
JPH04107634A (en) Memory data bypass control system
JPS63155254A (en) Information processor
JPH0713920A (en) Dma transferring method
JPH0844570A (en) System and method for program execution
JPH03218530A (en) High speed interruption processor
JPH05204813A (en) Information processor
JPS6386057A (en) Arithmetic processor
JPH0424733B2 (en)
JPS63201839A (en) Logical simulation device
JPS63132368A (en) Interrupting system for multiprocessor