JPH02150923A - Program dividing controller - Google Patents

Program dividing controller

Info

Publication number
JPH02150923A
JPH02150923A JP30449988A JP30449988A JPH02150923A JP H02150923 A JPH02150923 A JP H02150923A JP 30449988 A JP30449988 A JP 30449988A JP 30449988 A JP30449988 A JP 30449988A JP H02150923 A JPH02150923 A JP H02150923A
Authority
JP
Japan
Prior art keywords
task
program
address
memory
tasks
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP30449988A
Other languages
Japanese (ja)
Inventor
Satoshi Yoshida
聡 吉田
Shigeru Omori
茂 大森
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom 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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP30449988A priority Critical patent/JPH02150923A/en
Publication of JPH02150923A publication Critical patent/JPH02150923A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To assure the real time property of the processing and at the same time to design a program regardless of the limitation of the memory capacity by dividing a program into the independent tasks to hold them in a ROM and switching these tasks via an execution register. CONSTITUTION:A program is divided into the independent tasks TSK and stored in a program ROM 2 together with the task numbers. A high speed signal processor MPU 1 processes the task of the number designated for switch based on a sequence table ST held by an execution register EXCR 4. Then a job is started by a host to an EXCR controller 5, and the controller 5 increases the sequence numbers of the EXCR 4. Thus the MPU 1 outputs an end report to the host when the execution is through with the task of the final sequence number of the table ST. Thus it is possible to assure the real time property of the processing and also to design the program with no limitation of the memory capacity.

Description

【発明の詳細な説明】[Detailed description of the invention] 【産業上の利用分野】[Industrial application field]

本発明は高速信号処理プロセッサを用い、そのプロセッ
サのメモリ空間を越える多種大容量のプログラムを実時
間処理するために、このプログラムを分割制御する装置
に関する。 なお以下各図において同一の符号は同一もしくは相当部
分を示す。
The present invention relates to a device that uses a high-speed signal processing processor and divides and controls a variety of large-capacity programs that exceed the memory space of the processor in order to process these programs in real time. Note that in the following figures, the same reference numerals indicate the same or corresponding parts.

【従来の技術】[Conventional technology]

従来、高速信号処理プロセッサ(以下MPUと称する)
がアクセス可能なアドレス範囲内に収まるように、それ
ぞれのプログラム容量をまとめてなる複数のプログラム
をこのMPUに処理させる方法としては、前記の複数の
プログラムをホスト側で保持し、処理要求のある毎に、
ホスト側からこのMPUのプログラムメモリへその処理
要求に対応するプログラムをロードし実行させる方法が
用いられている。
Conventionally, high-speed signal processing processors (hereinafter referred to as MPUs)
One way to have this MPU process multiple programs, each of which has its own program capacity, so that it falls within the accessible address range is to hold the aforementioned multiple programs on the host side, and then process them every time a processing request is made. To,
A method is used in which a program corresponding to a processing request is loaded from the host side into the program memory of the MPU and executed.

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

しかしながらこのような従来の方法では、プログラムの
ロードのたびにMPUを停止することになり、実時間処
理が必要な場合に問題となった。 そこで本発明は、プログラムを独立したタスクに分割し
て、全プログラムを格納できるプログラムROMへ保持
し、タスクを実行するプログラムをエグゼキュートレジ
スタ(EXCRと呼ぶ)内のシーケンス番号順に切換え
るプログラム分割制御装置を提供することにより実時間
でMPUに多種大容量のプログラムの処理を行わせるこ
とを課題とする。
However, in such a conventional method, the MPU is stopped every time a program is loaded, which poses a problem when real-time processing is required. Therefore, the present invention provides a program division control device that divides a program into independent tasks, stores the entire program in a program ROM, and switches programs for executing tasks in order of sequence numbers in an execute register (EXCR). The object of the present invention is to enable the MPU to process a variety of large-capacity programs in real time by providing the following.

【課題を解決するための手段】 前記の課題を解決するために本発明の装置は、rそれぞ
れCPU (MPUIなど)のアクセス可能な所定のア
ドレス空間を備えた所定の下位桁分のアドレス(AO−
Allなど、以下下位アドレスという)の領域ごとに個
別のプログラム(TSKなど、以下タスクという)を格
納された第1のメモリ(プログラムROM2など)と、 前記タスクのうち連続して順次実行すべきタスクの番号
を(シーケンステーブルSTなどの形式で)この実行の
順(シーケンス番号順など)に格納された第2のメモリ
(エグゼキュートレジスタ4など)と、 (上位計算機などからの)処理開始指令に基づいて前記
第2のメモリ内のタスク番号をその格納の順に読取り、
この読取のつど、前記第1のメモリにおける当該のタス
クの格納されたアドレス領域の位置を示すアドレスとし
ての、前記下位桁に対応する上位桁側のアドレス(A1
2〜A15など、以下上位アドレスという)を出力する
上位アドレス出力手段(EXCRコントローラ5.マル
チプレクサ3など)と、 前記上位アドレスの出力ごとにこの上位アドレスで前記
第1のメモリをアクセスすると共に、(MPUリセット
信号R3Tなどを介し)前記CPUのプログラムカウン
タをリセットさせ、前記第1のメモリの下位アドレスを
順次前記CPUにアクセスさせて当該のタスクを実行さ
せ、この実行の終了を(MPUIの処理要求などを介し
)判別して、前記上位アドレス出力手段に次の順番のタ
スク番号を前記のように読取らせるタスク実行制御手段
(EXCRコントローラ5など)と、を備えた1ものと
する。
[Means for Solving the Problems] In order to solve the above-mentioned problems, the device of the present invention provides addresses for predetermined lower digits (AO −
A first memory (such as program ROM 2) that stores individual programs (such as TSK, hereinafter referred to as tasks) for each area (such as All, hereinafter referred to as lower addresses), and tasks that should be executed continuously and sequentially among the tasks. (in the form of a sequence table ST, etc.) in the second memory (execute register 4, etc.) stored in this execution order (sequence number order, etc.) and in the processing start command (from a host computer, etc.) reading the task numbers in the second memory based on the order of storage;
Each time this reading is performed, the upper digit address corresponding to the lower digit (A1
an upper address output means (EXCR controller 5, multiplexer 3, etc.) that outputs an upper address such as 2 to A15 (hereinafter referred to as upper address); The CPU resets the program counter of the CPU (via the MPU reset signal R3T, etc.), causes the CPU to sequentially access the lower addresses of the first memory to execute the task, and ends the execution (via the MPUI processing request). and a task execution control means (such as the EXCR controller 5) which causes the upper address output means to read the next task number as described above.

【作 用】[For use]

プログラムメモリのアドレス領域を、MPUのアクセス
可能な下位アドレス領域ごとに区分してこの区分領域内
に個別プログラム(タスク)を格納し、 他方、連続して実行すべきタスク番号をその実行順にエ
グゼキュートレジスタ(EXCR)に格納する。 そしてEXCRコントローラが順次EXCR内のタスク
番号を読取りながら、この読取のつとこのタスクの格納
されている上位アドレスでプログラムメモリをアクセス
すると共に、MPUにプログラムメモリの下位アドレス
領域を先頭アドレスから順次アクセスさせて当該タスク
を実行させる。 このようにしてMPUのアドレス空間を越える多種大容
量のプログラムを連続的に実行させる。
The address area of the program memory is divided into lower address areas that can be accessed by the MPU, and individual programs (tasks) are stored in these divided areas, and task numbers to be executed consecutively are executed in the order of their execution. Store in register (EXCR). Then, while the EXCR controller sequentially reads the task number in EXCR, it accesses the program memory at the upper address where this task is stored during this reading, and also causes the MPU to sequentially access the lower address area of the program memory from the first address. and execute the task. In this way, various large-capacity programs exceeding the address space of the MPU are continuously executed.

【実施例】【Example】

以下第1図ないし第3図に基づいて本発明の詳細な説明
する。第1図は本発明の一実施例としての構成を示すブ
ロック図、第2図は第1図の要部の細部構成図、第3図
は第1図の動作の流れを示す図である。 第1図において、1は高速信号処理プロセッサ(MPU
)、2はプログラムROM、4はプログラムROM2の
タスクを管理するためのシーケンステーブルSTを保持
したエグゼキュートレジスタ(EXCR) 、5はこの
E X CR4のコントローラ、3はプログラムROM
2に対しタスクを指定するマルチプレクサ、8は内部バ
ス、9は外部バス、6はこの内部バス8と外部バス9を
接続するバスインタフェース、7はMPUIのデータR
AMである。 プログラムROM2には独立したタスクTSKに分割さ
れ、それぞれタスク番号が付されたタスクとしてのプロ
グラムが保持されており、MPU1はE X CR4に
保持されたシーケンステーブルSTに従い、切換え指定
されたタスク番号のタスクTSKの処理を実行する。こ
こでシーケンステーブルSTとは起動されるべきタスク
TSKの順番に(つまりシーケンス番号の順に)そのタ
スク番号を並べたテーブルである。シーケンステーブル
STは図外のホストにより作られ、外部バス9とEXC
Rコントローラ5とを介してE X CR4にロードさ
れる。ジョブの起動はホストによりEXCRコントロー
ラ5に対して行われ、一つのタスクが終了するとMPU
Iにより次の処理要求がEXCRコントローラ5に出さ
れる。これによりコントローラ5はEXCR4のシーケ
ンス番号をインクリメントする。このようにしてシーケ
ンステーブルSTの最終のシーケンス番号のタスクの実
行が終るとMPUIからホストへ終了通知を出すように
構成している。 第1図の構成の詳細例を第2図に、また第1図の動作の
流れを第3図に示す。第2図、第3図を説明すると、M
PUIはこの例ではdKW分のプログラムメモリ空間を
持ち、プログラムROM2には、dKW毎、つまりタス
ク番号値0〜15の16個のタスクTSKに分けてプロ
グラムが保持されているものとする。ここでプログラム
ROM2のアドレスの下位12ビツト(AO−All)
はMPU1のアドレスラインALIに接続し、上位4ビ
ツト(A12〜A15)については、マルチプレクサ3
のアドレスラインAL2に接続してタスク指定に当て、
全16ビツトでROM2のアドレスを決定する。タスク
TSKの指定は、ホストから外部バス9を通じてEXC
Rコントローラ5にシーケンス起動命令を与えることに
より先ずEXCR4のシーケンステーブルSTにおける
シーケンス番号1の領域に格納されたタスク番号(この
例では値0)を示す信号TNOがEXCR4からEXC
Rコントローラ5を介してマルチプレクサ3に出力され
る。 そこでマルチプレクサ3はアドレスラインAL2を介し
て当該タスク番号を指定する上位アドレス(A12〜A
15)をROM2に与え、実行すべきタスクが定められ
る。また同時にEXCRコントローラ5からMPUリセ
ット信号R3TがMPU1へ与えられ、MPUI内のプ
ログラムカウンタ(図外)が初期化される。 このようにして指定されたタスクの処理が終了すると、
MPUIから内部バス8を通じEXCRコントローラ5
へ次のシーケンスの起動要求を出し、E X CR4の
シーケンス番号をインクリメントする。全シーケンスを
終了するとEXCRコントローラ5よりホスト側へ終了
通知を出力し、処理を終える。
The present invention will be described in detail below with reference to FIGS. 1 to 3. FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a detailed configuration diagram of the main part of FIG. 1, and FIG. 3 is a diagram showing the flow of the operation of FIG. 1. In FIG. 1, 1 is a high-speed signal processing processor (MPU).
), 2 is a program ROM, 4 is an execute register (EXCR) that holds a sequence table ST for managing tasks in program ROM 2, 5 is a controller for this EXCR4, 3 is a program ROM
2 is a multiplexer that specifies a task, 8 is an internal bus, 9 is an external bus, 6 is a bus interface that connects this internal bus 8 and external bus 9, and 7 is MPUI data R.
It is AM. The program ROM 2 holds a program divided into independent tasks TSK, each assigned a task number, and the MPU 1 performs switching according to the sequence table ST held in the EXCR 4 of the designated task number. Executes task TSK processing. Here, the sequence table ST is a table in which task numbers are arranged in the order of the tasks TSK to be activated (that is, in the order of sequence numbers). Sequence table ST is created by a host not shown, and is connected to external bus 9 and EXC.
The data is loaded into the EXCR 4 via the R controller 5. Job startup is performed by the host on the EXCR controller 5, and when one task is completed, the MPU
I issues the next processing request to the EXCR controller 5. As a result, the controller 5 increments the sequence number of EXCR4. In this way, when the execution of the task with the final sequence number in the sequence table ST is completed, the MPUI is configured to issue a completion notification to the host. A detailed example of the configuration shown in FIG. 1 is shown in FIG. 2, and the flow of the operation shown in FIG. 1 is shown in FIG. To explain Figures 2 and 3, M
In this example, the PUI has a program memory space for dKW, and the program ROM 2 holds programs divided into dKW units, that is, 16 tasks TSK with task number values 0 to 15. Here, the lower 12 bits of the address of program ROM2 (AO-All)
is connected to the address line ALI of MPU1, and the upper 4 bits (A12 to A15) are connected to the multiplexer 3.
Connect to the address line AL2 of the address line AL2 for task designation,
The address of ROM2 is determined using all 16 bits. Task TSK is specified by EXC from the host via external bus 9.
By giving a sequence start command to the R controller 5, the signal TNO indicating the task number (value 0 in this example) stored in the area of sequence number 1 in the sequence table ST of EXCR4 is changed from EXCR4 to EXC.
It is output to the multiplexer 3 via the R controller 5. Therefore, the multiplexer 3 sends an upper address (A12 to A
15) to the ROM 2, and the task to be executed is determined. At the same time, an MPU reset signal R3T is applied from the EXCR controller 5 to the MPU 1, and a program counter (not shown) in the MPUI is initialized. When the specified task finishes processing in this way,
EXCR controller 5 via internal bus 8 from MPUI
It issues a request to start the next sequence to and increments the sequence number of EXCR4. When all sequences are completed, the EXCR controller 5 outputs a completion notification to the host side, and the process ends.

【発明の効果】【Effect of the invention】

本発明によれば、高速信号処理プロセッサを用い、その
プロセッサのメモリ空間を越える多種大容量のプログラ
ムを実時間処理するために、プログラムを独立したタス
クに分割してROMに保持し、エグゼキュートレジスタ
によりタスクの切換えを行ないプログラムを処理するよ
うにしたので、全プログラムがプログラムROMに保持
されており、そのタスクはEXCRのシーケンスにより
実時間で変更されるため、処理の実時間性が保証される
ほか、メモリ容量に制約されずにプログラム設計を行う
ことが可能となる。
According to the present invention, in order to use a high-speed signal processing processor to process in real time a variety of large-capacity programs that exceed the memory space of the processor, the program is divided into independent tasks and held in the ROM, and the execution register is Since the program is processed by switching tasks, the entire program is held in the program ROM, and the task is changed in real time by the EXCR sequence, so real-time processing is guaranteed. In addition, it becomes possible to design programs without being restricted by memory capacity.

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

第1図は本発明の一実施例としての構成を示すブロック
図、第2図1第1図の要部の詳細構成を示す図、第3図
は第1図の動作の流れの説明図である。 l:高速信号処理プロセッサ(MPU) 、2 ニブロ
グラムROM、3 :マルチプレクサ、4:エグゼキュ
ートレジスタ(EXCR) 、5 : EXCRコント
ローラ、6:バスインタフェース、7:RAM、8:内
部バス、9:外部バス、TSK:タスク、STニジ−l
ンステーブル、TNO:タスク番号信号、R3T : 
MPUリセット信号、ALl ス、 L2 ニアドレスライン、 DB:データバ 〜A11:下位ピン ト、 AI2〜A15:上位 ビット。 浄 2図
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a diagram showing the detailed configuration of the main parts of FIG. be. l: High-speed signal processing processor (MPU), 2 Niprogram ROM, 3: Multiplexer, 4: Execute register (EXCR), 5: EXCR controller, 6: Bus interface, 7: RAM, 8: Internal bus, 9: External bus ,TSK:Task,STNIJ-l
Stable, TNO: Task number signal, R3T:
MPU reset signal, AL1, L2 near address line, DB: data bar to A11: lower focus, AI2 to A15: upper bit. Jo 2 diagram

Claims (1)

【特許請求の範囲】 1)それぞれCPUのアクセス可能な所定のアドレス空
間を備えた所定の下位桁分のアドレス(以下下位アドレ
スという)の領域ごとに個別のプログラム(以下タスク
という)を格納された第1のメモリと、 前記タスクのうち連続して順次実行すべきタスクの番号
をこの実行の順に格納された第2のメモリと、 処理開始指令に基づいて前記第2のメモリ内のタスク番
号をその格納の順に読取り、この読取のつど、前記第1
のメモリにおける当該のタスクの格納されたアドレス領
域の位置を示すアドレスとしての、前記下位桁に対応す
る上位桁側のアドレス(以下上位アドレスという)を出
力する上位アドレス出力手段と、 前記上位アドレスの出力ごとにこの上位アドレスで前記
第1のメモリをアクセスすると共に、前記CPUのプロ
グラムカウンタをリセットさせ、前記第1のメモリの下
位アドレスを順次前記CPUにアクセスさせて当該のタ
スクを実行させ、この実行の終了を判別して、前記上位
アドレス出力手段に次の順番のタスク番号を前記のよう
に読取らせるタスク実行制御手段と、を備えたことを特
徴とする。プログラム分割制御装置。
[Scope of Claims] 1) Individual programs (hereinafter referred to as tasks) are stored in each area of addresses for prescribed lower digits (hereinafter referred to as lower addresses) each having a prescribed address space accessible by the CPU. a first memory; a second memory storing the numbers of the tasks to be executed sequentially among the tasks in the order of execution; and a second memory storing the task numbers in the second memory based on a processing start command. They are read in the order of storage, and each time the first
an upper address output means for outputting an address on the upper digit side corresponding to the lower digit (hereinafter referred to as the upper address) as an address indicating the position of the address area in which the task is stored in the memory; For each output, the first memory is accessed using this upper address, the program counter of the CPU is reset, and the lower addresses of the first memory are sequentially accessed by the CPU to execute the corresponding task. The present invention is characterized by comprising task execution control means that determines the end of execution and causes the upper address output means to read the next task number in the order as described above. Program division control device.
JP30449988A 1988-12-01 1988-12-01 Program dividing controller Pending JPH02150923A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30449988A JPH02150923A (en) 1988-12-01 1988-12-01 Program dividing controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30449988A JPH02150923A (en) 1988-12-01 1988-12-01 Program dividing controller

Publications (1)

Publication Number Publication Date
JPH02150923A true JPH02150923A (en) 1990-06-11

Family

ID=17933767

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30449988A Pending JPH02150923A (en) 1988-12-01 1988-12-01 Program dividing controller

Country Status (1)

Country Link
JP (1) JPH02150923A (en)

Similar Documents

Publication Publication Date Title
US4414627A (en) Main memory control system
JPH02267634A (en) Interrupt system
JPS6027964A (en) Memory access control circuit
JP2513462B2 (en) Micro computer
JPH02150923A (en) Program dividing controller
JPS6349945A (en) Process roll-in system for data processor
JP2672599B2 (en) Computer system
JPH04175924A (en) Multi-os execution system
JP3127737B2 (en) Digital signal processor
JPH06161781A (en) Method and processor for information processing
JPS63118852A (en) Control system for virtual memory
JPS607295B2 (en) data processing equipment
JPH03191449A (en) Information processor
JPS6330946A (en) Paging system for multitask
JPS61267149A (en) Data processor
JPS61133437A (en) One chip microcomputer
JPH11212858A (en) Method and device for managing memory pool area
JPS62284443A (en) Blank area retrieving and controlling system
JPH0354665A (en) Vector processor
JPH08115213A (en) Digital signal processing and direct memory access control method therefor
JPH05735B2 (en)
JPH03231343A (en) Memory space expansion system for microprocessor
JPS60214039A (en) Data processor
JPS63180171A (en) Information processor
JPH0481934A (en) Information processor