JP3531856B2 - Program control method and program control device - Google Patents

Program control method and program control device

Info

Publication number
JP3531856B2
JP3531856B2 JP00192798A JP192798A JP3531856B2 JP 3531856 B2 JP3531856 B2 JP 3531856B2 JP 00192798 A JP00192798 A JP 00192798A JP 192798 A JP192798 A JP 192798A JP 3531856 B2 JP3531856 B2 JP 3531856B2
Authority
JP
Japan
Prior art keywords
instruction
repeat
instructions
block
address
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
JP00192798A
Other languages
Japanese (ja)
Other versions
JPH11203137A (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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP00192798A priority Critical patent/JP3531856B2/en
Publication of JPH11203137A publication Critical patent/JPH11203137A/en
Application granted granted Critical
Publication of JP3531856B2 publication Critical patent/JP3531856B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、マイクロプロセッ
サ(MPU)、DSP(Digital Signal
Processor)等のプロセッサにおいて、命令
の並列的な実行制御を行なうプログラム制御方法及びそ
の実施に使用するプログラム制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microprocessor (MPU), DSP (Digital Signal).
The present invention relates to a program control method for controlling parallel execution of instructions in a processor such as a processor) and a program control device used for the execution.

【0002】[0002]

【従来の技術】近年、プログラムの高速実行、或いは命
令数の削減を目的としたプログラム制御装置が開発され
てきている。
2. Description of the Related Art In recent years, program control devices have been developed for the purpose of executing programs at high speed or reducing the number of instructions.

【0003】この種のプログラム制御装置の一従来例と
して、特公昭62−42301号公報に記載された、命
令を繰り返し実行するプログラム制御装置がある。図8
はこのプログラム制御装置のシステム構成を示す。
As a conventional example of this type of program control device, there is a program control device described in Japanese Patent Publication No. 62-42301 which repeatedly executes instructions. Figure 8
Shows the system configuration of this program control device.

【0004】図8に示すように、このプログラム制御装
置は、命令が格納されるメモリ(プログラムメモリ)1
02と、メモリ102ヘアドレス信号を与えるプログラ
ムカウンタ101と、メモリ102の出力を一時保持す
る命令レジスタ103と、命令レジスタ103の出力を
デコードし、各種制御信号を出力する制御部104と、
プログラム繰り返し実行回数をカウントするリピートカ
ウンタ105とを備えて構成されている。
As shown in FIG. 8, this program control device has a memory (program memory) 1 in which instructions are stored.
02, a program counter 101 for giving an address signal to the memory 102, an instruction register 103 for temporarily holding the output of the memory 102, a control unit 104 for decoding the output of the instruction register 103 and outputting various control signals,
A repeat counter 105 that counts the number of times the program is repeatedly executed is configured.

【0005】次に、上記構成の従来のプログラム制御装
置の動作について説明する。
Next, the operation of the conventional program control device having the above configuration will be described.

【0006】まず、メモリ102のn番地にリピートカ
ウンタセット命令を、n+1番地に命令Aを、n+2番
地に命令Bをそれぞれ格納しておく。この状態で、プロ
グラムカウンタ101のカウント数(カウント値)がn
になると、メモリ102のn番地に格納されたリピート
カウンタセット命令が制御部104によって読み出さ
れ、命令レジスタ103に命令コードとして格納され
る。
First, the repeat counter set instruction is stored in the address n of the memory 102, the instruction A is stored in the address n + 1, and the instruction B is stored in the address n + 2. In this state, the count number (count value) of the program counter 101 is n.
Then, the repeat counter set instruction stored in the address n of the memory 102 is read by the control unit 104 and stored in the instruction register 103 as an instruction code.

【0007】同時に、この命令コードに含まれるリピー
ト回数がリピートカウンタ105の出力を受け、次に命
令レジスタ103に格納される命令コードをリピートカ
ウンタ105のカウント数が零になるまで繰り返す制御
を行なう。
At the same time, the repeat count included in this instruction code receives the output of the repeat counter 105, and the instruction code stored in the instruction register 103 is repeatedly controlled until the count number of the repeat counter 105 becomes zero.

【0008】そして、プログラムカウンタ101のカウ
ント数がn+1になり、メモリ102のn+1番地に格
納された命令Aが制御部104によって読み出され、命
令レジスタ103に格納されると、命令Aが実行される
ことになる。
When the count number of the program counter 101 becomes n + 1 and the instruction A stored in the address n + 1 of the memory 102 is read by the control unit 104 and stored in the instruction register 103, the instruction A is executed. Will be.

【0009】このように、このプログラム制御装置は、
繰り返し演算が終了するのを待って、次の命令を実行し
ているため、以下に示す問題点を有する。
Thus, the program control device
Since the next instruction is executed after waiting for the completion of the repetitive operation, there are the following problems.

【0010】即ち、高速演算を目的とするMPU、DS
P等の制御装置では、繰り返し演算と並列して他の処理
を実行する必要があるところ、上記のプログラム制御装
置では、繰り返し演算を行っている期間に、他の処理を
並列して演算することができない。このため、上記のプ
ログラム制御装置を、MPU、DSP等の制御装置に搭
載すると、高速演算を目的とするこれらの制御装置の利
点が損なわれることになる。
That is, MPU, DS for high-speed calculation
In a control device such as P, it is necessary to execute another process in parallel with the repetitive operation. However, in the above-mentioned program control device, other process is operated in parallel while the repetitive operation is being performed. I can't. Therefore, if the above-mentioned program control device is installed in a control device such as an MPU or a DSP, the advantages of these control devices for high-speed calculation will be impaired.

【0011】このような問題点を解決せんとするプログ
ラム制御装置の他の従来例として、特開平5−1586
87号公報に記載されたものがある。このプログラム制
御装置は、ある命令の繰り返し実行処理と並列に別の命
令を実行することにより、高速演算を達成している。
As another conventional example of a program control device for solving such a problem, Japanese Patent Laid-Open No. 5-1586
There is one described in Japanese Patent Publication No. 87. This program control device achieves high-speed operation by executing another instruction in parallel with the repetitive execution processing of a certain instruction.

【0012】図9は特開平5−158687号公報に記
載されたプログラム制御装置のシステム構成を示す。こ
のプログラム制御装置は、命令が格納されるメモリ20
1と、メモリ201にアドレス信号を与え、クロックφ
1の立ち上がりで内容がインクリメントされるプログラ
ムカウンタ202と、メモリ201の出力をクロックφ
1の立ち上がりで取り込む命令レジスタ203と、命令
レジスタ203の出力をデコードするデコーダ204
と、演算を行なう演算器A205と、クロックφ1の立
ち上がりでデータを取り込むデコーダレジスタA206
と、演算を行なう演算器B207と、クロックφ1の立
ち上がりでデータを取り込むデコーダレジスタB208
と、リピート制御部209と、ラッチ211の出力を初
期値とし、クロックφ1の立ち上がりでカウントダウン
をするリピートカウンタ210と、リピートカウンタ2
10の初期値を保持するラッチ211と、更新禁止信号
を出力するシーケンス制御部212とを備えて構成され
ている。
FIG. 9 shows the system configuration of the program control device described in Japanese Patent Laid-Open No. 158687/1993. This program control device has a memory 20 in which instructions are stored.
1 and the address signal is given to the memory 201, and the clock φ
The program counter 202 whose contents are incremented at the rising edge of 1 and the output of the memory 201 are clock φ
An instruction register 203 fetched at the rising edge of 1 and a decoder 204 for decoding the output of the instruction register 203
And an arithmetic unit A205 for performing an arithmetic operation, and a decoder register A206 for fetching data at the rising edge of the clock φ1.
And an arithmetic unit B207 for performing an arithmetic operation and a decoder register B208 for fetching data at the rising edge of the clock φ1.
A repeat control unit 209, a repeat counter 210 that uses the output of the latch 211 as an initial value, and counts down at the rising edge of the clock φ1, and a repeat counter 2
A latch 211 that holds the initial value of 10 and a sequence controller 212 that outputs an update prohibition signal are provided.

【0013】このプログラム制御装置では、繰り返し実
行を指示するリピートセット命令がセットされるリピー
ト制御部209により、リピートカウンタ210のプリ
セットを行ない、メモリ201のリピートセット命令の
次番地に格納された繰り返し処理の対象となる命令の繰
り返し実行を行う。
In this program control device, a repeat control unit 209, to which a repeat set instruction for instructing repeated execution is set, presets the repeat counter 210, and repeat processing stored in the memory 201 at the next address of the repeat set instruction. The instruction that is the target of is repeatedly executed.

【0014】そして、命令が繰り返し実行される毎に、
リピートカウンタ210のカウントダウンを行なう。続
いて、メモリ201の繰り返し処理対象の命令が格納さ
れている番地以降に格納され、命令実行同期を行なうウ
ェイト命令がセットされると、リピート制御部209が
繰り返し処理対象の命令の繰り返し実行が終了したか否
かを判定する。命令の繰り返し実行が終了していないこ
とを確認した場合は、判定動作を継続する。これによ
り、繰り返し処理対象の命令と、これに続くウェイト命
令までの命令とを並列して実行することができる。
Then, each time the instruction is repeatedly executed,
The countdown of the repeat counter 210 is performed. Subsequently, when a wait instruction for storing instruction execution synchronization is stored after the address in which the instruction to be repeatedly processed is stored in the memory 201, the repeat control unit 209 ends the repeated execution of the instruction to be repeatedly processed. It is determined whether or not. If it is confirmed that the repeated execution of the instruction has not ended, the determination operation is continued. As a result, the instruction to be repeatedly processed and the following instructions up to the wait instruction can be executed in parallel.

【0015】このように、特開平5−158687号公
報に記載されたプログラム制御装置では、n番地のリピ
ート制御命令により、n+1番地の命令、即ち、n+1
番地に格納された1つの命令を指定された回数だけ繰り
返すという命令のみが並列して実行可能になっている。
As described above, in the program controller disclosed in Japanese Patent Laid-Open No. 158687/1993, the repeat control instruction at the address n causes the instruction at the address n + 1, that is, n + 1.
Only the instruction to repeat one instruction stored in the address a specified number of times can be executed in parallel.

【0016】[0016]

【発明が解決しようとする課題】ところで、繰り返し実
行には、しばしば複数の命令からなるブロック命令を繰
り返して実行するブロック繰り返し命令制御も要求さ
れ、この要求に応えたプログラム制御装置の開発が要請
されている。
By the way, the block execution instruction control for repeatedly executing a block instruction consisting of a plurality of instructions is often required for the repeated execution, and it is required to develop a program control device which meets this requirement. ing.

【0017】しかるに、特開平5−158687号公報
に記載されたプログラム制御装置では、上記のように、
1つの命令を指定された回数だけ繰り返すという命令の
みが並列して実行可能であり、ブロック繰り返し命令制
御を伴う演算との並列処理を行なうことはできない。こ
のような事情により、ブロック繰り返し命令制御を伴う
演算との並列処理を行えるプログラム制御方法及びプロ
グラム制御装置の開発が切に要請されているのが現状で
ある。
However, in the program control device disclosed in Japanese Patent Laid-Open No. 5-158687, as described above,
Only instructions that repeat one instruction a specified number of times can be executed in parallel, and parallel processing with operations involving block repeat instruction control cannot be performed. Under these circumstances, there is a great demand for the development of a program control method and a program control device capable of performing parallel processing with operations involving block repeat instruction control.

【0018】本発明は、このような現状に鑑みてなされ
たものであり、ブロック繰り返し命令とブロック繰り返
し命令に続く命令群とを並列して実行でき、高速演算可
能なプログラム制御装置を実現することができるプログ
ラム制御方法及びプログラム制御装置を提供することを
目的とする。
The present invention has been made in view of the above circumstances, and realizes a program control device capable of executing a block repeat instruction and a group of instructions following the block repeat instruction in parallel and capable of high-speed operation. It is an object of the present invention to provide a program control method and a program control device capable of performing the above.

【0019】また、本発明の他の目的は、ブロック繰り
返し命令を指示する命令を簡略化でき、命令数を削減す
ることができるプログラム制御方法及びプログラム制御
装置を提供することにある。
Another object of the present invention is to provide a program control method and a program control device which can simplify an instruction for a block repeat instruction and reduce the number of instructions.

【0020】[0020]

【課題を解決するための手段】本発明のプログラム制御
方法は、第1の演算器及び第2の演算器を備えたプログ
ラム制御装置のプログラム制御方法であって、インスト
ラクションメモリのn番地に格納された第1の命令に基
づき、n+1番地からn+x(xは1以上の正の整数)
番地に格納されたx個の第2の命令の繰り返し実行を該
第1の演算器に指示するステップと、該第2の命令の繰
り返し実行に並列して、該インストラクションメモリの
n+x+1番地以降の番地に格納された命令を順次実行
するように該第2の演算器に指示するステップとを包含
しており、そのことにより上記目的が達成される。
A program control method according to the present invention is a program control method for a program control device having a first arithmetic unit and a second arithmetic unit, and is stored in an n-th address of an instruction memory. Based on the first instruction, from the address n + 1 to n + x (x is a positive integer of 1 or more)
A step of instructing the first arithmetic unit to repeatedly execute x second instructions stored in the address, and addresses n + x + 1 and subsequent addresses of the instruction memory in parallel with the repeated execution of the second instruction. And instructing the second arithmetic unit to sequentially execute the instructions stored in, which achieves the above objectives.

【0021】また、本発明のプログラム制御方法は、第
1の演算器及び第2の演算器を備えたプログラム制御装
置のプログラム制御方法であって、インストラクション
メモリのn番地に格納された第1の命令に基づき、n+
1番地からn+x(xは1以上の正の整数)番地に格納
されたx個の第2の命令の繰り返し実行を該第1の演算
器に指示するステップと、該第2の命令の繰り返し実行
中に、該第2の命令と並列に実行され、該インストラク
ションメモリのn+x+1番地以降の番地に格納された
第3の命令であって、n+x+y(yは1以上の正の整
数)番地に格納された繰り返し実行命令を該第1の演算
器に指示するステップと、該インストラクションメモリ
のn+x+y+1番地からn+x+y+m(mは1以上
の正の整数)番地に格納されたm個の繰り返し実行を行
なう第4の命令があると、該第4の命令を繰り返し制御
メモリに格納し、該第2の命令による繰り返し実行が終
了した直後に該第4の命令の繰り返し実行を該第1の演
算器に指示するステップと、該第2の命令及び該第4の
命令と並列にn+x+y+m+1番地以降の番地に格納
された命令を順次実行するステップとを包含しており、
そのことにより上記目的が達成される。
Further, the program control method of the present invention is a program control method for a program control device having a first arithmetic unit and a second arithmetic unit, wherein the first program stored at address n of the instruction memory. Based on the command, n +
A step of instructing the first arithmetic unit to repeatedly execute x second instructions stored at addresses 1 to n + x (x is a positive integer of 1 or more), and repeatedly executing the second instruction A third instruction that is executed in parallel with the second instruction and is stored in the instruction memory at addresses n + x + 1 and subsequent addresses, and is stored in the address n + x + y (y is a positive integer of 1 or more). repeating the steps of instructing execution instruction to the first computing unit said, the instructions from the n + x + y + 1 address of the memory n + x + y + m ( m is a positive integer of 1 or more) of the m stored in the address 4 which performs repetitive execution of When there is an instruction, the fourth instruction is stored in the repetitive control memory, and immediately after the repetitive execution by the second instruction is completed, the instruction for repetitive execution of the fourth instruction is given to the first arithmetic unit. And-up, which includes the step of sequentially executing instructions stored in parallel with the instruction of said second instruction and said 4 to the address of n + x + y + m + 1 address and later,
Thereby, the above object is achieved.

【0022】また、本発明のプログラム制御方法は、第
1の演算器及び第2の演算器を備えたプログラム制御装
置のプログラム制御方法であって、インストラクション
メモリのn番地に格納された第1の命令に基づき、n+
1番地からn+x(xは1以上の正の整数)番地に格納
されたx個の第2の命令の繰り返し実行を該第1の演算
器に指示するステップと、該第2の命令の繰り返し実行
中に、該第2の命令と並列に実行され、該インストラク
ションメモリのn+x+1番地以降の番地に格納された
第3の命令であって、n+x+y(yは1以上の正の整
数)番地に格納された繰り返し実行命令を該第2の演算
器に指示するステップと、該インストラクションメモリ
のn+x+y+1番地からn+x+y+m番地に格納し
たm個の繰り返し実行を行なう第4の命令があると、該
第2の命令の繰り返し実行を処理していない該第2の演
算器により、該第4の命令の繰り返し処理を実行させる
ステップと、該第2の命令又は該第4の命令による繰り
返し処理が早く終了した該演算器を用いて、n+x+y
+m+1番地以降の番地に格納した命令を順次実行する
ステップとを包含しており、そのことにより上記目的が
達成される。
Further, the program control method of the present invention is a program control method of a program control device comprising a first arithmetic unit and a second arithmetic unit, wherein the first program stored in the n-th address of the instruction memory. Based on the command, n +
A step of instructing the first arithmetic unit to repeatedly execute x second instructions stored at addresses 1 to n + x (x is a positive integer of 1 or more), and repeatedly executing the second instruction A third instruction that is executed in parallel with the second instruction and is stored in the instruction memory at addresses n + x + 1 and subsequent addresses, and is stored in the address n + x + y (y is a positive integer of 1 or more). If there is a step of instructing the second execution unit of the repeated execution instruction, and a fourth instruction for executing the repeated execution of m pieces stored in addresses n + x + y + 1 to n + x + y + m of the instruction memory, the second instruction by the second operator for not processing repeatedly executed, the fourth and the step of executing the repetitive processing of the instruction, the second instruction or the fourth instruction repetition process quickly end by Using the said arithmetic unit, n + x + y
The step of sequentially executing the instructions stored in the addresses after + m + 1 is achieved, whereby the above object is achieved.

【0023】また、本発明のプログラム制御装置は、請
求項1記載のプログラム制御方法を実行するプログラム
制御装置であって、繰り返し実行を指示する第1の命令
及び該第1の命令の次番地以降にx個格納された第2の
命令を含む複数の命令が記憶されたインストラクション
メモリと、該第1の命令及び該第2の命令をデコード
し、各種制御信号を出力するデコーダと、該第1の命令
によりセットされ、繰り返し命令が実行される毎に繰り
返し命令数又はブロック繰り返し数の値を1つずつディ
クリメントするカウンタと、ブロック繰り返しを行なう
x個の繰り返し命令を記憶する繰り返し制御メモリと、
該第1の命令がデコードされると、該ブロック繰り返し
数及び該繰り返し命令数のセットを実行する一方、該第
2の命令が実行される毎に、該カウンタに対して該ブロ
ック繰り返し数及び繰り返し命令数を示すカウント値を
指示し、且つ繰り返し演算が終了した時点で、該第1の
演算器に命令の終了を指示する繰り返し制御装置とを備
えており、そのことにより上記目的が達成される。
Further, the program control device of the present invention is a program control device for executing the program control method according to claim 1, wherein a first instruction for instructing repetitive execution and the next and subsequent addresses of the first instruction are given. An instruction memory storing a plurality of instructions including x second instructions stored therein, a decoder that decodes the first instruction and the second instruction, and outputs various control signals; A counter for decrementing the value of the number of repeat instructions or the number of block repeats by one each time the repeat instruction is executed, and a repeat control memory for storing x repeat instructions for performing block repeat,
When the first instruction is decoded, the block repeat count and the set of repeat instruction counts are executed, while each time the second instruction is executed, the block repeat count and repeat count are sent to the counter. A repeat control device is provided for instructing a count value indicating the number of instructions, and for instructing the first arithmetic unit to end the instruction when the repetitive operation is completed, thereby achieving the above object. .

【0024】また、本発明のプログラム制御装置は、請
求項2記載のプログラム制御方法を実行するプログラム
制御装置であって、繰り返し実行を指示する第1の命
令、インストラクションメモリの該第1の命令の次番地
以降にx個格納された第2の命令、繰り返し実行を指示
する第3の命令及び該第3の命令に続く繰り返し処理を
実行するm個の第4の命令を含む複数の命令が記憶され
たインストラクションメモリと、これらの命令をデコー
ドし、各種制御信号を出力するデコーダと、該第1の命
令によりセットされ、繰り返し命令が実行される毎に繰
り返し命令数又はブロック繰り返し数の値を1つずつデ
ィクリメントするカウンタと、該ブロック繰り返しを行
なうx個の該第2の命令及び該m個の該第4の命令を記
憶する繰り返し制御メモリと、該第1の命令がデコード
されると、該ブロック繰り返し数及び該繰り返し命令数
を該カウンタにセットし、該第2の命令が実行される毎
に該カウンタに対して該該繰り返しブロック数及び該繰
り返し命令数を示すカウント値を指示し、繰り返し演算
が終了した時点で終了したことを該第1の演算器に指示
し、且つ該第3の命令がデコードされると、該第4の命
令を該繰り返し制御メモリに格納し、該第2の命令が終
了すると、引き続いて該第4の命令を実行することを該
第1の演算器に指示する繰り返し制御装置とを備えてお
り、そのことにより上記目的が達成される。
A program control device of the present invention is a program control device for executing the program control method according to claim 2, wherein the first command for instructing repeated execution and the first command in the instruction memory are executed. A plurality of instructions including a second instruction stored x times after the next address, a third instruction instructing repeated execution, and m fourth instructions for executing repetitive processing subsequent to the third instruction are stored. Instruction memory, a decoder for decoding these instructions and outputting various control signals, and a value of the repeat instruction number or block repeat number set by the first instruction and set to 1 each time the repeat instruction is executed. A counter that decrements by one, and an iterative control that stores the x second instructions and the m fourth instructions that perform the block iteration Mori and, when the instruction of the first is decoded, the block number of repetitions and the number of the repeat instruction is set in the counter,該該repetition block to said counter each time the instruction of the second is executed Number and a count value indicating the number of the repeated instructions, instructing the first arithmetic unit that the repeated operation is completed, and decoding the third instruction, the fourth operation is executed. And a repeat controller for instructing the first arithmetic unit to subsequently execute the fourth command when the second command is completed, Thereby, the above object is achieved.

【0025】また、本発明のプログラム制御装置は、請
求項3記載のプログラム制御方法を実行するプログラム
制御装置であって、繰り返し実行を指示する第1の命
令、インストラクションメモリの該第1の命令の次番地
以降にx個格納された第2の命令、繰り返し実行を指示
する第3の命令及び該第3の命令に続く繰り返し処理を
実行するm個の第4の命令を含む複数の命令が記憶され
たインストラクションメモリと、これらの命令をデコー
ドし、各種制御信号を出力するデコーダと、該第1の命
令によりセットされ、繰り返し命令が実行される毎に繰
り返し命令数又はブロック繰り返し数の値を1つずつデ
ィクリメントする第1のカウンタと、該第3の命令によ
りセットされ、繰り返し命令が実行される毎に繰り返し
命令数又はブロック繰り返し数の値を1つずつディクリ
メントする第2のカウンタと、ブロック繰り返しを行な
うx個の前記第2の命令及びm個の前記第4の命令を記
憶する繰り返し制御メモリと、該第1の命令がデコード
されると、該第1のカウンタに対して、該ブロック繰り
返し数及び該繰り返し命令数をセットし、該第2の命令
が実行される毎に該ブロック繰り返し数及び該繰り返し
命令数を示すカウント値を指示し、繰り返し演算が終了
した時点で終了したことを該第1の演算器に指示すると
共に、該第3の命令がデコードされると、該第2の演算
器に対して、該第3の命令により該第4の命令を行なう
ことを指示し、該第2のカウンタに対して、該第4の命
令のブロック繰り返し数及び該繰り返し命令数をセット
し、該第4の命令が実行される毎に該ブロック繰り返し
数及び該繰り返し命令数を示すカウント値を指示し、且
つ該第2の命令と該第4の命令が先に終了した演算器に
対して、該第4の命令以降の番地に格納された命令を順
次実行させる繰り返し制御装置とを備えており、そのこ
とにより上記目的が達成される。
Further, the program control device of the present invention is a program control device for executing the program control method according to claim 3, wherein the first command for instructing repetitive execution and the first command in the instruction memory are executed. A plurality of instructions including a second instruction stored x times after the next address, a third instruction instructing repeated execution, and m fourth instructions for executing repetitive processing subsequent to the third instruction are stored. Instruction memory, a decoder for decoding these instructions and outputting various control signals, and a value of the repeat instruction number or block repeat number set by the first instruction and set to 1 each time the repeat instruction is executed. The first counter, which decrements by one, and the third instruction,
Is set and repeated every time a repeat instruction is executed
Decrement the value of the number of instructions or block repetitions one by one
A second counter for placement, and repeated control memory for storing the x-number of the second instruction and m the fourth instruction for performing block repetition, the first instruction is decoded, the first The number of block repetitions and the number of repetition instructions are set to the counter of 1 , and the count value indicating the number of block repetitions and the number of repetition instructions is instructed every time the second instruction is executed, and the repetition calculation is performed. When the third instruction is decoded, the third instruction is decoded and the fourth instruction is issued to the second operator by the third instruction. instruction instructs to perform, with respect to the second counter, and sets the block number of repetitions and the number of the repeat instruction in the instruction of the fourth, repeating the block each time the instruction of the fourth is performed Number and repetition The count value indicating the number of instructions is instructed, and the arithmetic unit in which the second instruction and the fourth instruction have finished first sequentially execute the instructions stored in the addresses after the fourth instruction. And a repetitive control device, whereby the above object is achieved.

【0026】以下に、本発明の作用を説明する。The operation of the present invention will be described below.

【0027】前記第2の命令の繰り返し実行に並列し
て、インストラクションメモリのn+x+1番地以降の
番地に格納された命令を順次実行するように第2の演算
器に指示する構成によれば、ブロック繰り返し命令とブ
ロック繰り返し命令に続く命令群を並列して実行できる
ので、上記従来のプログラム制御装置に比べて高速演算
が可能になる。また、並列実行される命令の1つは、ブ
ロック繰り返し命令であるので、命令が簡略化でき、命
令数を削減することができる。
According to the configuration in which the second arithmetic unit is instructed to sequentially execute the instructions stored at addresses n + x + 1 and later of the instruction memory in parallel with the repeated execution of the second instruction, the block repetition is performed. Since the instruction and the instruction group following the block repeat instruction can be executed in parallel, a high-speed operation is possible as compared with the conventional program control device described above. Further, since one of the instructions executed in parallel is the block repeat instruction, the instructions can be simplified and the number of instructions can be reduced.

【0028】また、ブロック繰り返し命令の実行中に、
その命令と並列に実行される命令中にブロック繰り返し
命令があると、そのブロック繰り返し命令を繰り返し制
御メモリに格納する構成によれば、実行中のブロック繰
り返し実行の終了に続いて他のブロック繰り返し実行を
行うことができ、しかも、これらのブロック繰り返し命
令と並列して、繰り返し命令に続く命令群を実行できる
ので、上記従来のプログラム制御装置に比べて高速演算
が可能になる。加えて、この構成によれば、命令を更に
簡略化でき、命令数を一層削減することができる。
During execution of the block repeat instruction,
If a block repeat instruction is included in the instructions that are executed in parallel with that instruction, the block repeat instruction is stored in the repeat control memory, so that another block repeat execution is executed after the end of the block repeat execution being executed. In addition, since a group of instructions following the repeat instruction can be executed in parallel with these block repeat instructions, a high-speed operation can be performed as compared with the conventional program control device. In addition, with this configuration, the instructions can be further simplified and the number of instructions can be further reduced.

【0029】また、ブロック繰り返し命令の実行中に、
その命令と並列に処理を行なっている命令中にブロック
繰り返し命令があると、そのブロック繰り返し命令をブ
ロック繰り返し処理を行なっていない演算器で繰り返し
実行を行なう上記構成によれば、より一層の高速演算化
を図ることができるプログラム制御装置を実現できる。
更には、この構成においても、ブロック繰り返し命令実
行とその命令と並列に処理を行なっている命令中のブロ
ック繰り返し命令とそれに続く命令群の並列実行を行う
ことができるので、プログラム制御装置の一層の高速演
算化を図ることができる。
During execution of the block repeat instruction,
When a block repeat instruction is included in the instructions that are being processed in parallel with the instruction, the block repeat instruction is repeatedly executed by an arithmetic unit that is not performing the block repeat processing. It is possible to realize a program control device that can be realized.
Further, in this configuration as well, it is possible to execute a block repeat instruction and a block repeat instruction in an instruction that is processing in parallel with the instruction, and a subsequent instruction group in parallel, so that the program control device is further improved. High-speed calculation can be achieved.

【0030】[0030]

【発明の実施の形態】以下に本発明の実施の形態を図面
に基づき具体的に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be specifically described below with reference to the drawings.

【0031】(実施形態1)図1〜図3は本発明プログ
ラム制御装置の実施形態1を示す。まず、図1に基づ
き、このプログラム制御装置のシステム構成について説
明する。
(Embodiment 1) FIGS. 1 to 3 show Embodiment 1 of the program control apparatus of the present invention. First, the system configuration of the program control device will be described with reference to FIG.

【0032】このプログラム制御装置は、以下に説明す
る各装置に指示を与えるための命令が記憶されたインス
トラクションメモリ1と、インストラクションメメモリ
1からの出力をデコードし、各装置に指示を与える命令
を出力するインストラクションデコーダ2と、演算を行
なう演算器(演算装置)A6及び演算器B4にデータを
与えるデータメモリ3とを備えている。
This program control device decodes an instruction memory 1 in which an instruction for giving an instruction to each device described below is stored and an output from the instruction memory 1 and outputs an instruction to give an instruction to each device. The instruction decoder 2 and the data memory 3 for giving data to the arithmetic unit (arithmetic unit) A6 and the arithmetic unit B4 for performing arithmetic operations.

【0033】演算器B4はデータメモリ3からデータを
受けとり、このデータに基づき各種演算を行ない、演算
結果をレジスタB5に出力する。一方、演算器A6はデ
ータメモリ3及びレジスタA7からデータを受けとり、
このデータに基づき各種演算を行ない、演算結果をレジ
スタA7に出力する繰り返し演算(ブロック繰り返し演
算)を行なう。
The calculator B4 receives data from the data memory 3, performs various calculations based on this data, and outputs the calculation result to the register B5. On the other hand, the arithmetic unit A6 receives data from the data memory 3 and the register A7,
Various calculations are performed based on this data, and a repeat calculation (block repeat calculation) for outputting the calculation result to the register A7 is performed.

【0034】加えて、このプログラム制御装置には、ブ
ロック繰り返し制御を行なう繰り返し制御装置8、ブロ
ック繰り返しカウンタ9及び繰り返し制御メモリ10が
搭載されている。
In addition, the program controller is equipped with a repeat controller 8 for performing block repeat control, a block repeat counter 9 and a repeat control memory 10.

【0035】繰り返し制御装置8は、インストラクショ
ンデコーダ2より出力されるブロック繰り返し命令に基
づき、ブロック繰り返し数及び繰り返し命令数を指示す
る。より具体的には、繰り返し制御メモリ10に繰り返
し命令を格納し、繰り返し制御メモリ3からの読み出し
を指示する。そして、演算が終了すると、演算が終了し
たことを演算器A6に指示する。
The repeat controller 8 indicates the number of block repeats and the number of repeat commands based on the block repeat command output from the instruction decoder 2. More specifically, the repeat instruction is stored in the repeat control memory 10 and the reading from the repeat control memory 3 is instructed. When the calculation is completed, the calculator A6 is instructed that the calculation is completed.

【0036】ブロック繰り返しカウンタ9は、繰り返し
制御装置8からの指示により、ブロック繰り返し数及び
繰り返し命令数をセットし、繰り返し演算が行われる毎
にブロック繰り返し数又は繰り返し命令数のカウント値
を1つディクリメントする。
The block repeat counter 9 sets the number of block repeats and the number of repeat instructions according to an instruction from the repeat controller 8 and outputs one count value of the number of block repeats or the number of repeat instructions each time a repeat operation is performed. Clement.

【0037】次に、図2に基づき繰り返し制御装置8の
状態遷移について説明する。同図に示すように、繰り返
し制御装置8は、ブロック繰り返し処理を行なっていな
い待機状態(ウエイト状態)41と、ブロック繰り返し
数及び繰り返し命令数のブロック繰り返しカウンタ9に
対するセットを行ない、演算器A6に対して繰り返し演
算実行を指示し、これと同時に繰り返し制御メモリ10
に繰り返し演算命令を書き込む繰り返しセット状態42
と、繰り返し制御メモリ10から繰り返し演算命令を読
み出し、繰り返し演算を行なう繰り返し状態43との3
つの状態を有し、この状態間を移行する。
Next, the state transition of the repetitive control device 8 will be described with reference to FIG. As shown in the figure, the iterative control device 8 sets a standby state (wait state) 41 in which no block iterative processing is being performed and a block iterative counter 9 for the number of block iteratives and the number of repetitive instructions, and sets them in the arithmetic unit A6. Instructed to repeatedly execute the calculation, and at the same time, the repeated control memory 10
Repetitive set state 42 in which a repetitive operation command is written to
And a repeat state 43 in which a repeat operation command is read from the repeat control memory 10 and a repeat operation is performed.
It has two states and transitions between these states.

【0038】次に、図3に基づき本実施形態1に係るプ
ログラム制御装置の動作を説明する。この動作は、図3
に示すサイクル1〜サイクル13を経て行われる。以下
に各サイクル中の動作について説明する。
Next, the operation of the program control device according to the first embodiment will be described with reference to FIG. This operation is shown in FIG.
The cycle 1 to the cycle 13 shown in FIG. The operation during each cycle will be described below.

【0039】〈サイクル1〉まず、サイクル1では、イ
ンストラクションメモリ1のn−1番地に格納されたイ
ンストラクション(命令n−1)がインストラクション
メモリ1からインストラクションデコーダ2に送出され
る。次サイクル以降も同様に、各々の番地の命令がイン
ストラクションメモリ1からインストラクションデコー
ダ2に送出される。
<Cycle 1> First, in cycle 1, the instruction (instruction n-1) stored in the address n-1 of the instruction memory 1 is sent from the instruction memory 1 to the instruction decoder 2. Similarly, in the subsequent cycles, the instruction at each address is sent from the instruction memory 1 to the instruction decoder 2.

【0040】〈サイクル2〉サイクル2では、演算器B
4によって、インストラクションメモリ1のn−1番地
に格納されたインストラクションによる命令n−1が処
理される。このとき、繰り返し制御装置8は待機状態4
1から繰り返しセット状態42に移行する。
<Cycle 2> In cycle 2, the arithmetic unit B
4, the instruction n-1 by the instruction stored in the address n-1 of the instruction memory 1 is processed. At this time, the repetitive control device 8 is in the standby state 4
A transition from 1 to the repeated set state 42 is made.

【0041】〈サイクル3〉サイクル3では、インスト
ラクションメモリ1のn番地に格納されたブロック繰り
返し命令nに基づき、繰り返し制御装置8がブロック繰
り返しカウンタ9の繰り返し命令数及びブロック繰り返
し数をセットする。ここでは、繰り返しカウンタ9に繰
り返し命令数=2(3個の命令)及びブロック繰り返し
数=2(3回のループ)がセットされる。
<Cycle 3> In cycle 3, the repeat controller 8 sets the number of repeat instructions and the number of block repeats of the block repeat counter 9 based on the block repeat instruction n stored in the address n of the instruction memory 1. Here, the number of repeat instructions = 2 (three instructions) and the number of block repeats = 2 (three loops) are set in the repeat counter 9.

【0042】そして、繰り返し制御装置8は繰り返し演
算終了フラグを“0”にセットする。
Then, the iterative control device 8 sets the iterative operation end flag to "0".

【0043】〈サイクル4,5〉サイクル4,5では、
演算器A6によって、繰り返し命令n+1、n+2(ブ
ロック繰り返し1回目)が順次実行され、繰り返し命令
n+1、n+2が繰り返し制御メモリ10に順次書き込
まれる。
<Cycles 4,5> In cycles 4,5,
The repetitive instructions n + 1 and n + 2 (first block repetition) are sequentially executed by the arithmetic unit A6, and the repetitive instructions n + 1 and n + 2 are sequentially written to the repetitive control memory 10.

【0044】そして、ブロック繰り返しカウンタ9によ
り繰り返し命令数が1つディクリメントされる。
Then, the block repeat counter 9 decrements the number of repeat instructions by one.

【0045】〈サイクル6〉サイクル6では、演算器A
6によって、繰り返し命令n+3(ブロック繰り返し1
回目)が実行され、繰り返し命令n+3が繰り返し制御
メモリ10に書き込まれる。
<Cycle 6> In cycle 6, the arithmetic unit A
6, the repeat instruction n + 3 (block repeat 1
The second time) is executed, and the repeat instruction n + 3 is written in the repeat control memory 10.

【0046】ここでは、繰り返し命令数が0であるが、
ブロック繰り返し数が2であるので、ブロック繰り返し
数が1つディクリメントされ、繰り返し命令数は2にセ
ットされる。このとき、繰り返し制御装置8は、繰り返
しセット状態42から繰り返し状態43に移行する。
Here, the number of repeated instructions is 0,
Since the block repeat count is 2, the block repeat count is decremented by 1 and the repeat instruction count is set to 2. At this time, the repeat control device 8 shifts from the repeat set state 42 to the repeat state 43.

【0047】〈サイクル7,8〉サイクル7,8では、
演算器A6によって、繰り返し制御メモリ10から繰り
返し命令n+1、n+2(ブロック繰り返し2回目)が
順次呼び出され実行される。また、演算器B4によっ
て、命令n+4、n+5が順次実行される。そして、繰
り返し制御装置8の指示によりブロック繰り返しカウン
タ9の繰り返し命令数が1つディクリメントされる。
<Cycles 7 and 8> In cycles 7 and 8,
The repetitive instructions n + 1 and n + 2 (second block repetition) are sequentially called from the repetitive control memory 10 and executed by the arithmetic unit A6. Further, the arithmetic unit B4 sequentially executes the instructions n + 4 and n + 5. Then, in accordance with an instruction from the repeat controller 8, the number of repeat instructions in the block repeat counter 9 is decremented by one.

【0048】〈サイクル9〉サイクル9では、演算器A
6によって、繰り返し制御メモリ10から繰り返し命令
n+3(ブロック繰り返し2回目)が呼び出されて実行
される。また、演算器B4によって、命令n+6が実行
される。
<Cycle 9> In cycle 9, the arithmetic unit A
6, the repeat instruction n + 3 (second block repeat) is called from the repeat control memory 10 and executed. Further, the instruction n + 6 is executed by the arithmetic unit B4.

【0049】ここでは、繰り返し命令数が0であるが、
ブロック繰り返し数が1であるので、ブロック繰り返し
カウンタ9のブロック繰り返し数が1つディクリメント
され、繰り返し命令数は2にセットされる。
Here, the number of repeated instructions is 0,
Since the block repeat count is 1, the block repeat count of the block repeat counter 9 is decremented by 1 and the repeat instruction count is set to 2.

【0050】〈サイクル10,11〉サイクル10,1
1では、演算器A6によって、繰り返し制御メモリ10
から繰り返し命令n+1、n+2(ブロック繰り返し3
回目)が順次呼び出されて実行される。また、演算器B
4によって、命令n+7、n+8が順次実行される。そ
して、繰り返し制御装置8の指示によりブロック繰り返
しカウンタ9の繰り返し命令数が1つディクリメントさ
れる。
<Cycle 10, 11> Cycle 10, 1
1, the repetitive control memory 10 is operated by the arithmetic unit A6.
To repeat instructions n + 1, n + 2 (block repeat 3
The second time) is sequentially called and executed. Also, the computing unit B
4, instructions n + 7 and n + 8 are sequentially executed. Then, in accordance with an instruction from the repeat controller 8, the number of repeat instructions in the block repeat counter 9 is decremented by one.

【0051】〈サイクル12〉サイクル12では、演算
器A6によって、繰り返し制御メモリ10から繰り返し
命令n+3(ブロック繰り返し3回目)が呼び出されて
実行される。また、演算器B4によって、命令n+9が
実行される。
<Cycle 12> In cycle 12, the arithmetic unit A6 calls the repetitive instruction n + 3 (third block repetition) from the repetitive control memory 10 and executes it. Further, the instruction B + 4 executes the instruction n + 9.

【0052】ここでは、繰り返し命令数が0であり、且
つブロック繰り返し数が0であるので、ブロック繰り返
しカウンタ9は停止し、繰り返し制御装置8によって繰
り返し終了フラグが“1”にセットされる。
Here, since the number of repeat instructions is 0 and the number of block repeats is 0, the block repeat counter 9 is stopped and the repeat controller 8 sets the repeat end flag to "1".

【0053】このとき、繰り返し制御装置8は繰り返し
状態43から待機状態41に移行する。
At this time, the repeat control device 8 shifts from the repeat state 43 to the standby state 41.

【0054】〈サイクル13〉サイクル13では、演算
器B4によって、命令n+10が処理される。
<Cycle 13> In cycle 13, the arithmetic unit B4 processes the instruction n + 10.

【0055】このように、本実施形態1のプログラム制
御装置によれば、演算器A6による繰り返し命令の実行
と、この繰り返し命令に続く、演算器B4による複数の
命令実行とを並列して行うことができる。即ち、ブロッ
ク繰り返し命令とブロック繰り返し命令に続く命令群と
を並列して実行できるので、高速演算可能なプログラ並
列実行される命令の1つは、ブロック繰り返し命令であ
るので、命令が簡略化でき、命令数を削減できる。
As described above, according to the program control device of the first embodiment, the execution of the repetitive instruction by the arithmetic unit A6 and the execution of a plurality of instructions by the arithmetic unit B4 following the repetitive instruction are performed in parallel. You can That is, since the block repeat instruction and the instruction group following the block repeat instruction can be executed in parallel, one of the instructions executed in parallel in the program capable of high-speed operation is the block repeat instruction, so the instruction can be simplified. The number of instructions can be reduced.

【0056】(実施形態2)図4及び図5は本発明プロ
グラム制御装置の実施形態2を示す。本実施形態2のプ
ログラム制御装置のシステム構成は、図1と同様である
ので、以下では同様の符号を用いて説明する。
(Second Embodiment) FIGS. 4 and 5 show a second embodiment of the program control apparatus of the present invention. The system configuration of the program control device according to the second embodiment is the same as that in FIG. 1, and therefore the same reference numerals are used in the following description.

【0057】図4は繰り返し制御装置8の内部状態、つ
まり、状態遷移を示しており、ブロック繰り返し処理を
行なっていない待機状態51と、ブロック繰り返し数及
び繰り返し命令数のセットを行ない、繰り返し演算実行
を指示し、同時に繰り返し制御メモリ10に繰り返し演
算命令を書き込む繰り返しセット状態52と、繰り返し
制御メモリ10から繰り返し演算命令を読み出し、繰り
返し演算を行なう繰り返し状態53との3つの状態を有
し、この状態間を移行する。
FIG. 4 shows the internal state of the repetitive control device 8, that is, the state transition. The standby state 51 in which the block repetitive processing is not performed, the block repetitive number and the repetitive instruction number are set, and the repetitive operation is executed. And a repeat set state 52 in which a repeat operation command is written in the repeat control memory 10 at the same time, and a repeat state 53 in which the repeat operation instruction is read from the repeat control memory 10 and repeat operation is performed. Transition between.

【0058】本実施形態2の繰り返し制御装置8の状態
遷移は、以下の点で実施形態1の繰り返し制御装置8の
状態遷移とは異なっている。即ち、本実施形態2におい
ては、繰り返し制御装置8は、繰り返し演算終了に引続
き、次の繰り返し演算を行なう構成をとるため、待機状
態51を経ずに、次の繰り返し演算の繰り返しセット状
態52に移行する。
The state transition of the repetitive control device 8 of the second embodiment differs from the state transition of the repetitive control device 8 of the first embodiment in the following points. That is, in the second embodiment, since the iterative control device 8 is configured to perform the next iterative operation subsequent to the end of the iterative operation, the repetitive set state 52 of the next iterative operation is set without the waiting state 51. Transition.

【0059】次に、図5に基づき本実施形態2に係るプ
ログラム制御装置の動作を説明する。この動作は、図5
に示すサイクル1〜サイクル14を経て行われる。以下
に各サイクル中の動作について説明する。
Next, the operation of the program control apparatus according to the second embodiment will be described with reference to FIG. This operation is shown in FIG.
The cycle 1 to the cycle 14 shown in FIG. The operation during each cycle will be described below.

【0060】〈サイクル1〜7〉サイクル1〜7中は、
実施形態1同様のインストラクションにより、実施形態
1と同様の動作を行なうので、ここでは、説明を省略す
る。
<Cycles 1-7> During cycles 1-7,
Since the same operation as that of the first embodiment is performed by the same instruction as that of the first embodiment, the description thereof is omitted here.

【0061】〈サイクル8〉サイクル8では、まず、イ
ンストラクションメモリ1のn+6番地に格納されたイ
ンストラクション(ブロック繰り返し命令n+6)がイ
ンストラクションデコーダ2に送出される。
<Cycle 8> In cycle 8, first, the instruction (block repeat instruction n + 6) stored in the address n + 6 of the instruction memory 1 is sent to the instruction decoder 2.

【0062】すると、演算器A6によって、繰り返し制
御メモリ10から繰り返し命令n+2(ブロック繰り返
し2回目)が呼び出されて実行される。また、演算器B
4によって、命令n+5が実行される。そして、繰り返
し制御装置8の指示によりブロック繰り返しカウンタ9
の繰り返し命令数が1つディクリメントされる。また、
繰り返し制御装置8は未処理のブロック繰り返し命令数
を示す繰り返し演算待ち数を1にセットする。
Then, the repetitive instruction n + 2 (second block repetition) is called from the repetitive control memory 10 and executed by the arithmetic unit A6. Also, the computing unit B
4 causes the instruction n + 5 to be executed. Then, the block repeat counter 9 is instructed by the repeat controller 8.
The number of repeated instructions of is decremented by one. Also,
The repetitive control unit 8 sets the number of repetitive operation waits, which indicates the number of unprocessed block repetitive instructions, to 1.

【0063】〈サイクル9〉サイクル9では、演算器A
6によって、繰り返し制御メモリ10から繰り返し命令
n+3(ブロック繰り返し2回目)が呼び出されて実行
される。
<Cycle 9> In cycle 9, the arithmetic unit A
6, the repeat instruction n + 3 (second block repeat) is called from the repeat control memory 10 and executed.

【0064】ここでは、繰り返し命令数が0であるが、
ブロック繰り返し数が1であるので、ブロック繰り返し
数が1つディクリメントされ、繰り返し命令数は2にセ
ットされる。
Although the number of repeated instructions is 0 here,
Since the block repeat count is 1, the block repeat count is decremented by 1 and the repeat instruction count is set to 2.

【0065】そして、n+6番地のブロック繰り返し命
令n+6により、繰り返し命令数=1(2個の命令)及
びブロック繰り返し数=2(3回のループ))が繰り返
し制御メモリ10に書き込まれる。
Then, the number of repeat instructions = 1 (two instructions) and the number of block repeats = 2 (three loops) are written in the repeat control memory 10 by the block repeat instruction n + 6 at address n + 6.

【0066】〈サイクル10,11〉サイクル10,1
1では、演算器A6によって、繰り返し制御メモリ10
から繰り返し命令n+1、n+2(ブロック繰り返し3
回目)が順次呼び出されて実行される。そして、ブロッ
ク繰り返しカウンタ9により繰り返し命令数が1つディ
クリメントされ、続いて、繰り返し命令n+7、n+8
が繰り返し制御メモリ10に順次書き込まれる。
<Cycles 10, 11> Cycles 10, 1
1, the repetitive control memory 10 is operated by the arithmetic unit A6.
To repeat instructions n + 1, n + 2 (block repeat 3
The second time) is sequentially called and executed. Then, the block repeat counter 9 decrements the number of repeat instructions by one, and then repeat instructions n + 7 and n + 8.
Are sequentially written in the control memory 10.

【0067】〈サイクル12〉サイクル12では、演算
器A6によって、繰り返し制御メモリ10から繰り返し
命令n+3(ブロック繰り返し3回目)が呼び出されて
実行される。また、演算器B4によって、命令n+9が
実行される。
<Cycle 12> In cycle 12, the arithmetic unit A6 calls the repetitive instruction n + 3 (third block repetition) from the repetitive control memory 10 and executes it. Further, the instruction B + 4 executes the instruction n + 9.

【0068】ここでは、繰り返し命令数が0であり、ブ
ロック繰り返し数が0であるが、繰り返し演算待ち数が
1であるので、ブロック繰り返しカウンタ9に繰り返し
命令数及びブロック繰り返し数がセットされる。このと
き、繰り返し制御装置8は繰り返し状態53から繰り返
しセット状態52に移行する。
Here, the number of repeat instructions is 0 and the number of block repeats is 0. However, since the number of waits for repeat operation is 1, the number of repeat instructions and the number of block repeats are set in the block repeat counter 9. At this time, the repeat controller 8 shifts from the repeat state 53 to the repeat set state 52.

【0069】〈サイクル13〉サイクル13では、演算
器A6によって、繰り返し制御メモリ10から繰り返し
命令n+7(ブロック繰り返し1回目)が呼び出されて
実行される。また、演算器B4によって、命令n+10
が実行される。そして、ブロック繰り返しカウンタ9に
より繰り返し命令数が1つディクリメントされる。
<Cycle 13> In cycle 13, the arithmetic unit A6 calls and executes the repeat instruction n + 7 (first block repeat) from the repeat control memory 10. In addition, by the arithmetic unit B4, the instruction n + 10
Is executed. Then, the block repeat counter 9 decrements the number of repeat instructions by one.

【0070】このとき、すでに繰り返し命令は繰り返し
制御メモリ10に格納されているので、繰り返し制御装
置8は繰り返しセット状態52から繰り返し状態53に
移行する。
At this time, since the repeat instruction is already stored in the repeat control memory 10, the repeat controller 8 shifts from the repeat set state 52 to the repeat state 53.

【0071】〈サイクル14〉サイクル14では、演算
器A6によって、繰り返し制御メモリ10から繰り返し
命令n+8(ブロック繰り返し1回目)が呼び出されて
実行される。また、演算器B4によって、命令n+11
が実行される。
<Cycle 14> In cycle 14, the arithmetic unit A6 calls and executes the repeat instruction n + 8 (the first block repeat) from the repeat control memory 10. In addition, the arithmetic unit B4 causes the instruction n + 11
Is executed.

【0072】ここでは、繰り返し命令数が0であるが、
ブロック繰り返し数が1であるので、ブロック繰り返し
数が1つディクリメントされ、繰り返し命令数は1にセ
ットされる。
Here, the number of repeated instructions is 0,
Since the block repeat count is 1, the block repeat count is decremented by 1 and the repeat instruction count is set to 1.

【0073】本実施形態2のプログラム制御装置によっ
ても、実施形態1のプログラム制御装置同様の効果を奏
することができる。加えて、本実施形態2のプログラム
制御装置によれば、命令を更に簡略化でき、命令数を一
層削減できる利点がある。
The program control device of the second embodiment can also achieve the same effects as the program control device of the first embodiment. In addition, the program control device according to the second embodiment has the advantages that the instructions can be further simplified and the number of instructions can be further reduced.

【0074】(実施形態3)図6及び図7は本発明プロ
グラム制御装置の実施形態3を示す。まず、図6に基づ
き本実施形態3に係るプログラム制御装置のシステム構
成について説明する。
(Third Embodiment) FIGS. 6 and 7 show a third embodiment of the program control apparatus of the present invention. First, the system configuration of the program control device according to the third embodiment will be described with reference to FIG.

【0075】このプログラム制御装置は、次に説明する
各装置に指示を与えるための命令が記憶されたインスト
ラクションメモリ21と、インストラクションメモリ2
1からの出力をデコードし、各装置に指示を与えるイン
ストラクションデコーダ22と、演算器A26及び演算
器B24にデータを与えるデータメモリ23とを備えて
いる。
The program control device includes an instruction memory 21 in which an instruction for giving an instruction to each device described below is stored, and an instruction memory 2
An instruction decoder 22 which decodes the output from 1 and gives an instruction to each device, and a data memory 23 which gives data to the arithmetic unit A26 and the arithmetic unit B24 are provided.

【0076】演算器B24はデータメモリ23からデー
タを受けとり、各種演算を行ない、演算結果をレジスタ
B25に出力する繰り返し演算を実行する。演算器A2
6はデータメモリ23及びレジスタA27からデータを
受けとり、各種演算を行ない、演算結果をレジスタA7
に出力する繰り返し演算を行なう。このように、本実施
形態3の演算器A26及び演算器B24は、いずれも繰
り返し演算を行う。
The arithmetic unit B24 receives the data from the data memory 23, performs various arithmetic operations, and outputs the arithmetic result to the register B25 to execute repetitive arithmetic operations. Arithmetic unit A2
6 receives the data from the data memory 23 and the register A27, performs various calculations, and outputs the calculation result to the register A7.
Repeated operation is output to. In this way, the implementation
The arithmetic unit A26 and the arithmetic unit B24 in the form 3 both perform repetitive arithmetic operations.

【0077】加えて、このプログラム制御装置には、ブ
ロック繰り返し制御を行なう繰り返し制御装置28、ブ
ロック繰り返しカウンタA29,B30及び及びブロッ
ク繰り返し制御メモリA31,B32が搭載されてい
る。即ち、本実施形態3のプログラム制御装置では、繰
り返し制御メモリ及びブロック繰り返しカウンタがそれ
ぞれ2個ずつ設けられている点が、実施形態1のプログ
ラム制御装置のシステム構成と異なっている。
In addition, the program controller is equipped with a repeat controller 28 for performing block repeat control, block repeat counters A29, B30, and block repeat control memories A31, B32. That is, the program control device of the third embodiment is different from the system configuration of the program control device of the first embodiment in that two repeat control memories and two block repeat counters are provided.

【0078】上記繰り返し制御装置28は、インストラ
クションデコーダ22より出力されたブロック繰り返し
命令により、演算器A26、演算器B24にブロック繰
り返し数及び繰り返し命令数を指示し、且つ繰り返し命
令を繰り返し制御メモリA31,B32に格納する。ま
た、繰り返し制御メモリA31、B32からの読み出し
を指示する。そして、演算が終了すると、演算が終了し
たことを演算器A26及び演算器B24に指示する。
The repetitive control unit 28 instructs the arithmetic unit A 26 and the arithmetic unit B 24 about the block repetition number and the repetition instruction number by the block repetition instruction output from the instruction decoder 22, and the repetition instruction is stored in the repetition control memory A 31, Store in B32. Further, it instructs to read from the repetitive control memories A31 and B32. When the calculation is completed, the calculator A26 and the calculator B24 are instructed that the calculation is completed.

【0079】ブロック繰り返しカウンタA29は、ブロ
ック繰り返し制御装置28の指示により、演算器A26
で行われる演算のブロック繰り返し数及び繰り返し命令
数をセットし、繰り返し演算を行なう毎にブロック繰り
返し数又は繰り返し命令数のカウント値を1つディクリ
メントする。また、ブロック繰り返しカウンタB30
は、ブロック繰り返し制御装置28の指示により、演算
器B24で行われる演算のブロック繰り返し数及び繰り
返し命令数をセットし、繰り返し演算を行なう毎にブロ
ック繰り返し数又は繰り返し命令数のカウント値を1つ
ディクリメントする。
The block repeat counter A29 is instructed by the block repeat controller 28 to operate the calculator A26.
The number of block repeats and the number of repeat instructions for the operation performed in step S1 are set, and the count value of the number of block repeats or the number of repeat instructions is decremented by one each time a repeat operation is performed. Also, the block repeat counter B30
Sets the block repeat count and the repeat instruction count of the calculation performed by the calculator B24 according to an instruction from the block repeat control device 28, and the block repeat count or the count value of the repeat instruction count is incremented by one each time the repeat calculation is performed. Clement.

【0080】繰り返し制御メモリA31は、繰り返し制
御装置28の指示により、演算器A26でのブロック繰
り返し命令を格納し、或いは読み出しをするためのもの
である。繰り返し制御メモリB32は、繰り返し制御装
置28の指示により、演算器B24でのブロック繰り返
し命令を格納し、或いは読み出しをするためのものであ
る。
The repeat control memory A31 is for storing or reading a block repeat instruction in the arithmetic unit A26 according to an instruction from the repeat controller 28. The repetitive control memory B32 is for storing or reading a block repetitive command in the arithmetic unit B24 according to an instruction from the repetitive control device 28.

【0081】本実施形態3の繰り返し制御装置28は、
内部状態として演算器26A、24Bそれぞれに対して
図2の状態を持つ。
The repetitive control device 28 of the third embodiment is
The internal states have the states of FIG. 2 for the computing units 26A and 24B, respectively.

【0082】次に、図7に基づき本実施形態3に係るプ
ログラム制御装置の動作を説明する。この動作は、図7
に示すサイクル1〜サイクル13を経て行われる。以下
に各サイクル中の動作について説明する。
Next, the operation of the program control device according to the third embodiment will be described with reference to FIG. This operation is shown in FIG.
The cycle 1 to the cycle 13 shown in FIG. The operation during each cycle will be described below.

【0083】〈サイクル1〜7〉サイクル1〜7中は、
実施形態1同様のインストラクションにより、実施形態
1と同様の動作を行なうので、ここでは説明を省略す
る。
<Cycles 1 to 7> During cycles 1 to 7,
Since the same operation as that of the first embodiment is performed by the same instruction as that of the first embodiment, the description thereof is omitted here.

【0084】〈サイクル8〉まず、サイクル8では、イ
ンストラクションメモリ21のn+6番地に格納された
インストラクション(ブロック繰り返し命令n+6)が
インストラクションデコーダ22に送出される。
<Cycle 8> First, in cycle 8, the instruction (block repeat instruction n + 6) stored in the address n + 6 of the instruction memory 21 is sent to the instruction decoder 22.

【0085】すると、演算器A26によって、繰り返し
制御メモリA31から繰り返し命令n+2(ブロック繰
り返し2回目)が呼び出されて実行される。また、演算
器B24によって、命令n+5が実行される。そして、
ブロック繰り返しカウンタA29により繰り返し命令数
Aが1つディクリメントされる。
Then, the arithmetic unit A26 calls and executes the repeat instruction n + 2 (second block repeat) from the repeat control memory A31. Further, the instruction B + 24 executes the instruction n + 5. And
The block repeat counter A29 decrements the repeat command number A by one.

【0086】このとき、繰り返し制御装置28の演算器
B24に対する繰り返し制御は待機状態41から繰り返
しセット状態42に移行する。
At this time, the repetitive control of the arithmetic unit B24 of the repetitive controller 28 shifts from the standby state 41 to the repetitive set state 42.

【0087】〈サイクル9〉サイクル9では、演算器A
26によって、繰り返し制御メモリA31から繰り返し
命令n+3(ブロック繰り返し2回目)が呼び出されて
実行される。
<Cycle 9> In cycle 9, the arithmetic unit A
26, the repeat instruction n + 3 (second block repeat) is called from the repeat control memory A31 and executed.

【0088】ここでは、繰り返し命令数Aが0である
が、ブロック繰り返し数Aが1であるので、ブロック繰
り返し数Aが1つディクリメントされ、繰り返し命令数
Aは2にセットされる。
Here, the number of repeat instructions A is 0, but since the number of block repeats A is 1, the number of block repeats A is decremented by 1 and the number of repeat instructions A is set to 2.

【0089】続いて、繰り返し制御装置28はインスト
ラクションメモリ21のn+6番地に格納されたブロッ
ク繰り返し命令n+6に基づき、繰り返し命令数B=1
(2個の命令)及びブロック繰り返し数B=2(3回の
ループ)を演算器24Bの繰り返し制御のためにセット
する。そして、繰り返し演算終了フラグBを“0”にセ
ットする。
Subsequently, the repeat controller 28 determines the number of repeat instructions B = 1 based on the block repeat instruction n + 6 stored in the address n + 6 of the instruction memory 21.
(2 instructions) and the block repetition number B = 2 (loop of 3 times) are set for the repetition control of the arithmetic unit 24B. Then, the repetition calculation end flag B is set to "0".

【0090】〈サイクル10〉サイクル10では、演算
器A26によって、繰り返し制御メモリA31から繰り
返し命令n+1(ブロック繰り返し3回目)が呼び出さ
れて実行される。そして、ブロック繰り返しカウンタA
29により繰り返し命令数Aが1つディクリメントされ
る。
<Cycle 10> In cycle 10, the arithmetic unit A26 calls and executes the repeat instruction n + 1 (the third block repeat) from the repeat control memory A31. Then, the block repeat counter A
The number of repeated instructions A is decremented by 29 by 29.

【0091】また、演算器B24によって、インストラ
クションメモリ21のn+7番地に格納された繰り返し
命令n+7(ブロック繰り返し1回目)が実行される。
そして、繰り返し制御装置28の指示により、繰り返し
命令n+7が繰り返し制御メモリB32に書き込まれ、
且つブロック繰り返しカウンタB30の繰り返し命令数
Bが1つディクリメントされる。
Further, the arithmetic unit B24 executes the repetitive instruction n + 7 (first block repetition) stored in the address n + 7 of the instruction memory 21.
Then, the repeat instruction n + 7 is written in the repeat control memory B32 according to an instruction from the repeat controller 28,
In addition, the number of repeat instructions B of the block repeat counter B30 is decremented by one.

【0092】〈サイクル11〉サイクル11では、演算
器A26及び演算器B24は共に繰り返し演算フラグが
“0”であるので、インストラクションデコーダ22か
らの次の命令は演算器A26、B24では実行されな
い。
<Cycle 11> In cycle 11, the arithmetic unit A26 and the arithmetic unit B24 both have the repetitive arithmetic flag "0", and therefore the next instruction from the instruction decoder 22 is not executed by the arithmetic units A26 and B24.

【0093】続いて、演算器A26によって、繰り返し
制御メモリA31から繰り返し命令n+2(ブロック繰
り返し3回目)が呼び出されて実行される。そして、繰
り返し制御装置28の指示により、ブロック繰り返しカ
ウンタA29の繰り返し命令数Aが1つディクリメント
される。
Then, the arithmetic unit A26 calls the repetitive instruction n + 2 (third block repetition) from the repetitive control memory A31 and executes it. Then, in accordance with an instruction from the repeat controller 28, the number of repeat instructions A of the block repeat counter A29 is decremented by one.

【0094】また、演算器B24によって、n+8番地
の繰り返し命令n+8(ブロック繰り返し1回目)が実
行される。そして、繰り返し命令n+8が繰り返し制御
メモリB32に書き込まれる。
Further, the repetitive instruction n + 8 (first block repetition) at the address n + 8 is executed by the arithmetic unit B24. Then, the repeat instruction n + 8 is written to the repeat control memory B32.

【0095】ここでは、繰り返し命令数Bは0である
が、ブロック繰り返し数Bが2であるので、ブロック繰
り返し数Bが1つディクリメントされ、繰り返し命令数
Bは1にセットされる。
Here, the number of repeat instructions B is 0, but since the number of block repeats B is 2, the number of block repeats B is decremented by 1 and the number of repeat instructions B is set to 1.

【0096】繰り返し制御装置28の演算器Bの繰り返
し制御が繰り返しセット状態42から繰り返し状態43
になる。
The repetitive control of the computing unit B of the repetitive controller 28 is performed from the repetitive set state 42 to the repetitive state 43.
become.

【0097】〈サイクル12〉サイクル12では、演算
器A26及び演算器B24は共に繰り返し演算フラグが
“0”であるので、インストラクションデコーダ22か
らの次の命令は演算器A26及び24Bでは実行されな
い。
<Cycle 12> In cycle 12, since the arithmetic operation unit A26 and the arithmetic operation unit B24 both have the repetitive operation flag of "0", the next instruction from the instruction decoder 22 is not executed by the arithmetic operation units A26 and 24B.

【0098】続いて、演算器A26によって、繰り返し
制御メモリA31から繰り返し命令n+3(ブロック繰
り返し3回目)が呼び出されて実行される。また、演算
器B24によって、繰り返し制御メモリB32から繰り
返し命令n+7(ブロック繰り返し2回目)が呼び出さ
れて実行される。
Then, the repetitive instruction n + 3 (third block repetition) is called from the repetitive control memory A31 and executed by the arithmetic unit A26. Further, the repetitive instruction n + 7 (second block repetition) is called from the repetitive control memory B32 and executed by the arithmetic unit B24.

【0099】ここでは、繰り返し命令数Aが0であり、
ブロック繰り返し数Aが0であるので、ブロック繰り返
しカウンタA29、B30は停止し、繰り返し終了フラ
グAは“1”となる。
Here, the number of repeat instructions A is 0,
Since the block repeat count A is 0, the block repeat counters A29 and B30 are stopped and the repeat end flag A becomes "1".

【0100】このとき、繰り返し制御装置28の演算器
Aに対する繰り返し制御は繰り返し状態43から待機状
態41に移行する。また、ブロック繰り返しカウンタB
30により繰り返し命令数Bが1つディクリメントされ
る。
At this time, the repetitive control of the arithmetic unit A of the repetitive controller 28 shifts from the repetitive state 43 to the standby state 41. Also, the block repeat counter B
The number of repeated instructions B is decremented by 30.

【0101】〈サイクル13〉サイクル13では、演算
器B24によって、繰り返し制御メモリB32から繰り
返し命令n+8(ブロック繰り返し2回目)が呼び出さ
れて実行される。
<Cycle 13> In cycle 13, the arithmetic unit B24 calls and executes the repeat instruction n + 8 (the second block repeat) from the repeat control memory B32.

【0102】ここでは、繰り返し命令数Bが0である
が、ブロック繰り返し数Bが1であるので、ブロック繰
り返し数Bが1つディクリメントされ、繰り返し命令数
Bは1にセットされる。
Here, the number of repeat instructions B is 0, but since the number of block repeats B is 1, the number of block repeats B is decremented by 1 and the number of repeat instructions B is set to 1.

【0103】本実施形態3のプログラム制御装置によれ
ば、ブロック繰り返し命令の実行中に、その命令と並列
に処理を行なっている命令中にブロック繰り返し命令が
あると、そのブロック繰り返し命令をブロック繰り返し
処理を行なっていない演算器A26(又は演算器B2
4)が繰り返し実行するので、より一層の高速演算化を
図ることができるプログラム制御装置を実現できる。
According to the program control device of the third embodiment, if a block repeat instruction is present in an instruction which is being processed in parallel with the block repeat instruction during execution of the block repeat instruction, the block repeat instruction is block repeated. The arithmetic unit A26 (or the arithmetic unit B2) which has not been processed
Since step 4) is repeatedly executed, it is possible to realize a program control device capable of further increasing the speed of calculation.

【0104】[0104]

【発明の効果】請求項1又は請求項4記載の本発明によ
れば、第2の命令の繰り返し実行に並列して、インスト
ラクションメモリのn+x+1番地以降の番地に格納さ
れた命令を順次実行するように第2の演算器に指示する
構成をとるので、ブロック繰り返し命令とブロック繰り
返し命令に続く命令群を並列して実行することができ
る。このため、上記従来のプログラム制御装置に比べて
高速演算が可能になる。また、並列実行される命令の1
つは、ブロック繰り返し命令であるので、命令が簡略化
でき、命令数を削減することができる。
According to the present invention as set forth in claim 1 or 4, in parallel with the repeated execution of the second instruction, the instructions stored at the addresses n + x + 1 and subsequent addresses of the instruction memory are sequentially executed. Since the second arithmetic unit is instructed, the block repeat instruction and the instruction group following the block repeat instruction can be executed in parallel. Therefore, it is possible to perform high-speed calculation as compared with the conventional program control device described above. Also, one of the instructions executed in parallel
Second, since it is a block repeat instruction, the instruction can be simplified and the number of instructions can be reduced.

【0105】また、特に請求項2又は請求項5記載の本
発明によれば、ブロック繰り返し命令の実行中に、その
命令と並列に実行される命令中にブロック繰り返し命令
があると、そのブロック繰り返し命令を繰り返し制御メ
モリに格納する構成をとるので、実行中のブロック繰り
返し実行の終了に続いて他のブロック繰り返し実行を行
うことができる。しかも、これらのブロック繰り返し命
令と並列して、繰り返し命令に続く命令群を実行できる
ので、上記従来のプログラム制御装置に比べて高速演算
が可能になる。加えて、この構成によれば、命令を更に
簡略化でき、命令数を一層削減することができる。
According to the present invention as defined in claim 2 or claim 5, when a block repeat instruction is included in an instruction executed in parallel with the block repeat instruction during execution of the block repeat instruction, the block repeat instruction is executed. Since the instruction is stored in the repetitive control memory, another block repetitive execution can be performed subsequent to the end of the block repetitive execution being executed. Moreover, since the instruction group following the repeat instruction can be executed in parallel with these block repeat instructions, high-speed operation becomes possible as compared with the conventional program control device. In addition, with this configuration, the instructions can be further simplified and the number of instructions can be further reduced.

【0106】また、特に請求項3又は請求項6記載の本
発明によれば、ブロック繰り返し命令の実行中に、その
命令と並列に処理を行なっている命令中にブロック繰り
返し命令があると、そのブロック繰り返し命令をブロッ
ク繰り返し処理を行なっていない演算器で繰り返し実行
を行なう構成をとるので、より一層の高速演算化を図る
ことができるプログラム制御装置を実現できる。
In particular, according to the present invention as defined in claim 3 or claim 6, during execution of a block repeat instruction, if there is a block repeat instruction in an instruction that is processing in parallel with the instruction, Since the block repeat instruction is repeatedly executed by the arithmetic unit that is not performing the block repeat processing, it is possible to realize a program control device capable of further increasing the speed of calculation.

【0107】加えて、この構成においても、ブロック繰
り返し命令実行とその命令と並列に処理を行なっている
命令中のブロック繰り返し命令とそれに続く命令群の並
列実行を行うことができるので、この点においても、プ
ログラム制御装置の一層の高速演算化を図ることができ
る。
In addition, even in this configuration, it is possible to execute the block repeat instruction and the block repeat instruction in the instruction which is processing in parallel with the instruction and the instruction group following the block repeat instruction in parallel. Also, the program control device can be operated at a higher speed.

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

【図1】実施形態1に係るプログラム処理装置のシステ
ム構成を示すブロック図。
FIG. 1 is a block diagram showing a system configuration of a program processing device according to a first embodiment.

【図2】実施形態1において使用する繰り返し制御装置
の状態遷移を示す図。
FIG. 2 is a diagram showing state transitions of the repetitive control device used in the first embodiment.

【図3】実施形態1に係るプログラム処理装置の動作手
順を示す図。
FIG. 3 is a diagram showing an operation procedure of the program processing device according to the first embodiment.

【図4】実施形態2において使用する繰り返し制御装置
の状態遷移を示す図。
FIG. 4 is a diagram showing state transitions of the repetitive control device used in the second embodiment.

【図5】実施形態2に係るプログラム処理装置の動作手
順を示す図。
FIG. 5 is a diagram showing an operation procedure of the program processing device according to the second embodiment.

【図6】実施形態3に係るプログラム処理装置のシステ
ム構成を示すブロック図。
FIG. 6 is a block diagram showing a system configuration of a program processing device according to a third embodiment.

【図7】実施形態2に係るプログラム処理装置の動作手
順を示す図。
FIG. 7 is a diagram showing an operation procedure of the program processing device according to the second embodiment.

【図8】従来のプログラムリピート処理装置のシステム
構成を示すブロック図。
FIG. 8 is a block diagram showing a system configuration of a conventional program repeat processing device.

【図9】従来のプログラムリピート並列処理装置のシス
テム構成を示すブロック図。
FIG. 9 is a block diagram showing a system configuration of a conventional program repeat parallel processing device.

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

1,21 インストラクションメモリ 2,22 インストラクションデコーダ 3,23 データメモリ 4,24 演算器B 5,25 レジスタB 6,26 演算器A 7,27 レジスタA 8,28 繰り返し制御装置 9 ブロック繰り返しカウンタ 10 繰り返し制御メモリ 29 ブロック繰り返しカウンタA 30 ブロック繰り返しカウンタB 31 繰り返し制御メモリA 32 繰り返し制御メモリB 1,21 Instruction memory 2,22 Instruction Decoder 3,23 data memory 4,24 Operation unit B 5,25 register B 6,26 Operation unit A 7,27 Register A 8,28 Repetitive control device 9 block repeat counter 10 Repeat control memory 29 block repeat counter A 30 block repeat counter B 31 Repeat control memory A 32 Repeat control memory B

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 9/38 ─────────────────────────────────────────────────── ─── Continuation of front page (58) Fields surveyed (Int.Cl. 7 , DB name) G06F 9/38

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 第1の演算器及び第2の演算器を備えた
プログラム制御装置のプログラム制御方法であって、 インストラクションメモリのn番地に格納された第1の
命令に基づき、n+1番地からn+x(xは1以上の正
の整数)番地に格納されたx個の第2の命令の繰り返し
実行を該第1の演算器に指示するステップと、 該第2の命令の繰り返し実行に並列して、該インストラ
クションメモリのn+x+1番地以降の番地に格納され
た命令を順次実行するように該第2の演算器に指示する
ステップとを包含するプログラム制御方法。
1. A program control method for a program control device comprising a first arithmetic unit and a second arithmetic unit, wherein n + 1 to n + x are assigned based on a first instruction stored in address n of an instruction memory. A step of instructing the first arithmetic unit to repeatedly execute x second instructions stored in the address (where x is a positive integer of 1 or more); and in parallel with the repeated execution of the second instruction. , A step of instructing the second arithmetic unit to sequentially execute the instructions stored at addresses n + x + 1 and subsequent addresses of the instruction memory.
【請求項2】 第1の演算器及び第2の演算器を備えた
プログラム制御装置のプログラム制御方法であって、 インストラクションメモリのn番地に格納された第1の
命令に基づき、n+1番地からn+x(xは1以上の正
の整数)番地に格納されたx個の第2の命令の繰り返し
実行を該第1の演算器に指示するステップと、 該第2の命令の繰り返し実行中に、該第2の命令と並列
に実行され、該インストラクションメモリのn+x+1
番地以降の番地に格納された第3の命令であって、n+
x+y(yは1以上の正の整数)番地に格納された繰り
返し実行命令を該第1の演算器に指示するステップと、 該インストラクションメモリのn+x+y+1番地から
n+x+y+m(mは1以上の正の整数)番地に格納さ
れたm個の繰り返し実行を行なう第4の命令があると、
該第4の命令を繰り返し制御メモリに格納し、該第2の
命令による繰り返し実行が終了した直後に該第4の命令
の繰り返し実行を該第1の演算器に指示するステップ
と、 該第2の命令及び該第4の命令と並列にn+x+y+m
+1番地以降の番地に格納された命令を順次実行するス
テップとを包含するプログラム制御方法。
2. A program control method for a program control device comprising a first arithmetic unit and a second arithmetic unit, wherein addresses n + 1 to n + x are generated based on a first instruction stored in address n of an instruction memory. A step of instructing the first arithmetic unit to repeatedly execute x second instructions stored in an address (where x is a positive integer of 1 or more); and during the repeated execution of the second instruction, N + x + 1 of the instruction memory executed in parallel with the second instruction
The third instruction stored in the address after the address and n +
x + y (y is a positive integer of 1 or more) comprising the steps of repeating execution instruction stored at the address and instructs the first computing element the, n + x + y + m from the n + x + y + 1 address of the instruction memory (the m 1 or more positive integer) If there is a fourth instruction that executes repeatedly m times stored in the address,
Storing the fourth instruction in a repeat control memory and instructing the first arithmetic unit to repeat execution of the fourth instruction immediately after the repeated execution of the second instruction is completed; Instruction and the fourth instruction in parallel with n + x + y + m
A program control method including a step of sequentially executing instructions stored in addresses +1 and subsequent addresses.
【請求項3】 第1の演算器及び第2の演算器を備えた
プログラム制御装置のプログラム制御方法であって、 インストラクションメモリのn番地に格納された第1の
命令に基づき、n+1番地からn+x(xは1以上の正
の整数)番地に格納されたx個の第2の命令の繰り返し
実行を該第1の演算器に指示するステップと、 該第2の命令の繰り返し実行中に、該第2の命令と並列
に実行され、該インストラクションメモリのn+x+1
番地以降の番地に格納された第3の命令であって、n+
x+y(yは1以上の正の整数)番地に格納された繰り
返し実行命令を該第2の演算器に指示するステップと、 該インストラクションメモリのn+x+y+1番地から
n+x+y+m番地に格納したm個の繰り返し実行を行
なう第4の命令があると、該第2の命令の繰り返し実行
を処理していない該第2の演算器により、該第4の命令
の繰り返し処理を実行させるステップと、 該第2の命令又は該第4の命令による繰り返し処理が早
く終了した該演算器を用いて、n+x+y+m+1番地
以降の番地に格納した命令を順次実行するステップとを
包含するプログラム制御方法。
3. A program control method for a program control device comprising a first arithmetic unit and a second arithmetic unit, wherein addresses n + 1 to n + x are generated based on a first instruction stored in address n of an instruction memory. A step of instructing the first arithmetic unit to repeatedly execute x second instructions stored in an address (where x is a positive integer of 1 or more); and during the repeated execution of the second instruction, N + x + 1 of the instruction memory executed in parallel with the second instruction
The third instruction stored in the address after the address and n +
a step of instructing the second arithmetic unit of a repetitive execution instruction stored in the address x + y (y is a positive integer of 1 or more); If there is a fourth instruction for performing, by the second operator that is not handling the repeated execution of the instruction of the second, and the step of executing the iterative process of the fourth instruction, the second instruction or the fourth instruction using the arithmetic unit where repetition processing is completed earlier by the, n + x + y + m + program control method comprising the steps of sequentially executing instructions stored in first address after the address.
【請求項4】 請求項1記載のプログラム制御方法を実
行するプログラム制御装置であって、 繰り返し実行を指示する第1の命令及び該第1の命令の
次番地以降にx個格納された第2の命令を含む複数の命
令が記憶されたインストラクションメモリと、 該第1の命令及び該第2の命令をデコードし、各種制御
信号を出力するデコーダと、 該第1の命令によりセットされ、繰り返し命令が実行さ
れる毎に繰り返し命令数又はブロック繰り返し数の値を
1つずつディクリメントするカウンタと、 ブロック繰り返しを行なうx個の繰り返し命令を記憶す
る繰り返し制御メモリと、 該第1の命令がデコードされると、該ブロック繰り返し
数及び該繰り返し命令数のセットを実行する一方、該第
2の命令が実行される毎に、該カウンタに対して該ブロ
ック繰り返し数及び繰り返し命令数を示すカウント値を
指示し、且つ繰り返し演算が終了した時点で、該第1の
演算器に命令の終了を指示する繰り返し制御装置とを備
えたプログラム制御装置。
4. A program control apparatus for executing the program control method according to claim 1, wherein a first instruction for instructing repetitive execution and x second pieces stored after the next address of the first instruction. Instruction memory including a plurality of instructions, a decoder that decodes the first instruction and the second instruction and outputs various control signals, and a repeat instruction set by the first instruction A counter for decrementing the value of the number of repeat instructions or the number of block repeats each time is executed, a repeat control memory for storing x repeat instructions for block repeat, and the first instruction decoded. Then, the block repeat count and the set of the repeat instruction count are executed, while the block is sent to the counter every time the second instruction is executed. Indicates the count value indicating click repetition rate and the number of repeat instruction, and repeated at the time the operation is completed, the program controller having a repetitive control unit for instructing the end of the instruction to the first computing unit.
【請求項5】 請求項2記載のプログラム制御方法を実
行するプログラム制御装置であって、 繰り返し実行を指示する第1の命令、インストラクショ
ンメモリの該第1の命令の次番地以降にx個格納された
第2の命令、繰り返し実行を指示する第3の命令及び該
第3の命令に続く繰り返し処理を実行するm個の第4の
命令を含む複数の命令が記憶されたインストラクション
メモリと、 これらの命令をデコードし、各種制御信号を出力するデ
コーダと、 該第1の命令によりセットされ、繰り返し命令が実行さ
れる毎に繰り返し命令数又はブロック繰り返し数の値を
1つずつディクリメントするカウンタと、 該ブロック繰り返しを行なうx個の該第2の命令及び該
m個の該第4の命令を記憶する繰り返し制御メモリと、 該第1の命令がデコードされると、該ブロック繰り返し
数及び該繰り返し命令数を該カウンタにセットし、該第
2の命令が実行される毎に該カウンタに対して該該繰り
返しブロック数及び該繰り返し命令数を示すカウント値
を指示し、繰り返し演算が終了した時点で終了したこと
を該第1の演算器に指示し、且つ該第3の命令がデコー
ドされると、該第4の命令を該繰り返し制御メモリに格
納し、該第2の命令が終了すると、引き続いて該第4の
命令を実行することを該第1の演算器に指示する繰り返
し制御装置とを備えたプログラム制御装置。
5. A program control apparatus for executing the program control method according to claim 2, wherein x instructions are stored after a first instruction for instructing repetitive execution and after the next address of the first instruction in the instruction memory. An instruction memory storing a plurality of instructions including a second instruction, a third instruction for instructing repeated execution, and m fourth instructions for executing an iterative process subsequent to the third instruction; A decoder that decodes an instruction and outputs various control signals; a counter that is set by the first instruction and that decrements the value of the repeat instruction number or the block repeat number by one each time the repeat instruction is executed; A repeat control memory for storing the x second instructions and the m fourth instructions for performing the block iteration, and the first instruction decoded Once, the block number of repetitions and the number of the repeat instruction is set in the counter, a count value indicating the該該repetition number of blocks and the number of the repeat instruction to said counter each time the instruction of the second is executed And instructing the first arithmetic unit that the end of the repetitive operation is completed, and storing the fourth instruction in the repetitive control memory when the third instruction is decoded, A program controller comprising: a repetitive controller for instructing the first arithmetic unit to subsequently execute the fourth instruction upon completion of the second instruction.
【請求項6】 請求項3記載のプログラム制御方法を実
行するプログラム制御装置であって、 繰り返し実行を指示する第1の命令、インストラクショ
ンメモリの該第1の命令の次番地以降にx個格納された
第2の命令、繰り返し実行を指示する第3の命令及び該
第3の命令に続く繰り返し処理を実行するm個の第4の
命令を含む複数の命令が記憶されたインストラクション
メモリと、 これらの命令をデコードし、各種制御信号を出力するデ
コーダと、 該第1の命令によりセットされ、繰り返し命令が実行さ
れる毎に繰り返し命令数又はブロック繰り返し数の値を
1つずつディクリメントする第1のカウンタと、該第3の命令によりセットされ、繰り返し命令が実行さ
れる毎に繰り返し命令数又はブロック繰り返し数の値を
1つずつディクリメントする第2のカウンタと、 ブロック繰り返しを行なうx個の前記第2の命令及びm
個の前記第4の命令を記憶する繰り返し制御メモリと、 該第1の命令がデコードされると、該第1のカウンタに
対して、該ブロック繰り返し数及び該繰り返し命令数を
セットし、該第2の命令が実行される毎に該ブロック繰
り返し数及び該繰り返し命令数を示すカウント値を指示
し、繰り返し演算が終了した時点で終了したことを該第
1の演算器に指示すると共に、該第3の命令がデコード
されると、該第2の演算器に対して、該第3の命令によ
り該第4の命令を行なうことを指示し、該第2のカウン
タに対して、該第4の命令のブロック繰り返し数及び該
繰り返し命令数をセットし、該第4の命令が実行される
毎に該ブロック繰り返し数及び該繰り返し命令数を示す
カウント値を指示し、且つ該第2の命令と該第4の命令
が先に終了した演算器に対して、該第4の命令以降の番
地に格納された命令を順次実行させる繰り返し制御装置
とを備えたプログラム制御装置。
6. A program control device for executing the program control method according to claim 3, wherein x instructions are stored after the first address of the first instruction for instructing repeated execution and after the next address of the first instruction of the instruction memory. An instruction memory storing a plurality of instructions including a second instruction, a third instruction for instructing repeated execution, and m fourth instructions for executing an iterative process subsequent to the third instruction; A decoder that decodes an instruction and outputs various control signals; and a first instruction that is set by the first instruction and that decrements the value of the number of repeat instructions or the number of block repeats by one each time a repeat instruction is executed . The counter is set by the third instruction and the repeat instruction is executed.
The number of repeat instructions or block repeat count
A second counter that decrements by one, and x second instructions and m that perform block repetition
And repetitive control memory for storing pieces of the fourth instruction, when the instruction of the first is decoded, relative to the first counter, and sets the block number of repetitions and the number of the repeat instruction, said Each time the second instruction is executed, the block repeat count and the count value indicating the repeat instruction count are instructed, the end of the iterative operation is instructed to the first arithmetic unit, and When 3 instruction is decoded, relative to the second computing unit, the instruction of the third instructs to perform instructions fourth, with respect to the second counter <br/> data Setting a block repeat count of the fourth instruction and the repeat instruction count, designating a count value indicating the block repeat count and the repeat instruction count each time the fourth instruction is executed, and The second command and the fourth command are finished first Respect calculator, a program controller having a repetitive control unit for sequentially executing instructions stored in the address of the instructions after the fourth.
JP00192798A 1998-01-07 1998-01-07 Program control method and program control device Expired - Lifetime JP3531856B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP00192798A JP3531856B2 (en) 1998-01-07 1998-01-07 Program control method and program control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00192798A JP3531856B2 (en) 1998-01-07 1998-01-07 Program control method and program control device

Publications (2)

Publication Number Publication Date
JPH11203137A JPH11203137A (en) 1999-07-30
JP3531856B2 true JP3531856B2 (en) 2004-05-31

Family

ID=11515248

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00192798A Expired - Lifetime JP3531856B2 (en) 1998-01-07 1998-01-07 Program control method and program control device

Country Status (1)

Country Link
JP (1) JP3531856B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004515856A (en) * 2000-12-07 2004-05-27 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Digital signal processor

Also Published As

Publication number Publication date
JPH11203137A (en) 1999-07-30

Similar Documents

Publication Publication Date Title
JP2943464B2 (en) Program control method and program control device
JP3237858B2 (en) Arithmetic unit
JPH0348537B2 (en)
JP3531856B2 (en) Program control method and program control device
JPH0363092B2 (en)
KR100188374B1 (en) Central processing unit and an arithmetic operation processing unit
JP2553200B2 (en) Information processing device
JPS63113634A (en) Relative address calculation system for program counter
JP2812610B2 (en) Pipeline control method
JPS6242301B2 (en)
JP3211791B2 (en) Loop processing method
JP2504263B2 (en) Data processing device
JP3379744B2 (en) Program control unit
JP2825315B2 (en) Information processing device
JPH04346129A (en) Method and device for program repeat control
JPH06161778A (en) Multi-flow instruction control method and instruction processor
JP2675226B2 (en) Timing adjustment method
JP3063593B2 (en) Programmable controller
JPH0887411A (en) Method and device for pipeline operation
JPS5896346A (en) Hierarchical arithmetic system
JPH05250156A (en) Risc processor
JPH01284926A (en) Instruction reading system for arithmetic unit
JPH0512009A (en) Digital signal processing device
JPS63208124A (en) Microprogram controller
JPH03164945A (en) Data processor

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20031128

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20031212

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040203

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040227

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040227

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080312

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090312

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100312

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100312

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110312

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120312

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120312

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130312

Year of fee payment: 9