JPH0969049A - Information processor and its control method - Google Patents

Information processor and its control method

Info

Publication number
JPH0969049A
JPH0969049A JP22333895A JP22333895A JPH0969049A JP H0969049 A JPH0969049 A JP H0969049A JP 22333895 A JP22333895 A JP 22333895A JP 22333895 A JP22333895 A JP 22333895A JP H0969049 A JPH0969049 A JP H0969049A
Authority
JP
Japan
Prior art keywords
instruction
processor
address
memory
information indicating
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.)
Granted
Application number
JP22333895A
Other languages
Japanese (ja)
Other versions
JP3147727B2 (en
Inventor
Minoru Okamoto
稔 岡本
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP22333895A priority Critical patent/JP3147727B2/en
Publication of JPH0969049A publication Critical patent/JPH0969049A/en
Application granted granted Critical
Publication of JP3147727B2 publication Critical patent/JP3147727B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To enable a CPU to easily start the processing of a DSP fast as to the information processor which includes the CPU and DSP provided on a single chip. SOLUTION: The control method for the information processor which has the CPU 140 and DSP 190 on the single chip includes a step for providing one of a plurality of instructions by the CPU 140, a step for deciding whether or not the instruction is a single start instruction (calldsp instruction), a step for stopping or continuing the operation of the CPU 140 and sending information showing its start instruction to the DSP 190 when it is decided that the instruction is the start instruction, and a step for receiving the information indicating the start instruction from the CPU 140 and controlling the operation of the DSP 190 according to the information indicating the start instruction.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、単一のチップ上に
設けられた中央演算処理装置(以下、「CPU」と略称
する)とディジタル信号処理プロセッサ(以下、「DS
P」と略称する)とを含む情報処理装置及びその制御方
法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a central processing unit (hereinafter abbreviated as "CPU") and a digital signal processor (hereinafter "DS") provided on a single chip.
And a control method thereof.

【0002】[0002]

【従来の技術】図7は、CPU720とDSP770と
を接続した従来の情報処理装置の構成を示す。CPU7
20とDSP770とは、それぞれ別々のチップ上に設
けられている。このような構成を有する従来の情報処理
装置では、CPU720は、入出力ポートを介してDS
P770を起動するのが一般的である。
2. Description of the Related Art FIG. 7 shows the configuration of a conventional information processing apparatus in which a CPU 720 and a DSP 770 are connected. CPU7
20 and DSP 770 are provided on different chips. In the conventional information processing device having such a configuration, the CPU 720 uses the DS
It is common to activate P770.

【0003】図7を参照して、CPU720は、CPU
720が実行すべき複数の命令を格納するメモリ711
と、メモリ711から出力される命令を解読し、解読さ
れた命令に応じて演算器、レジスタ等の被制御回路(不
図示)の動作を制御する制御回路712と、制御回路7
12の制御によりメモリ711が読み出すべき命令の番
地を出力する命令ポインタ713と、出力ポート714
とを含んでいる。出力ポート714は、複数ビット(例
えば16ビット)から構成され、そのうちの1ビット
(例えば最上位ビット)はDSP770に接続されてい
る。DSP770に接続される1ビットの値は、制御回
路712によって0または1に設定され、出力ポート7
14によって保持される。
Referring to FIG. 7, CPU 720 is a CPU
A memory 711 that stores a plurality of instructions that the 720 should execute.
And a control circuit 712 that decodes an instruction output from the memory 711 and controls the operation of a controlled circuit (not shown) such as an arithmetic unit or a register according to the decoded instruction.
And an output port 714 for outputting an address of an instruction to be read by the memory 711 under the control of 12
And The output port 714 is composed of a plurality of bits (for example, 16 bits), and one bit (for example, the most significant bit) among them is connected to the DSP 770. The 1-bit value connected to the DSP 770 is set to 0 or 1 by the control circuit 712, and the output port 7
Held by 14.

【0004】DSP770は、出力ポート714の1ビ
ット(例えば最上位ビット)を入力とする入力ポート7
60と、DSP770が実行すべき複数の命令を格納す
るメモリ761と、メモリ761から出力する命令を解
読し、解読された命令又は入力ポート760の値に応じ
て演算器、レジスタ等の被制御回路(不図示)の動作を
制御する制御回路762と、制御回路762の制御によ
りメモリ761が読み出すべき命令の番地を出力する命
令ポインタ763とを含んでいる。制御回路762は、
入力ポート760の値が「0」の場合には、命令ポイン
タ763に予め設定された番地を書き込む。
The DSP 770 has an input port 7 that receives 1 bit (for example, the most significant bit) of the output port 714 as an input.
60, a memory 761 for storing a plurality of instructions to be executed by the DSP 770, an instruction output from the memory 761 is decoded, and a controlled circuit such as an arithmetic unit or a register is read according to the decoded instruction or the value of the input port 760. A control circuit 762 for controlling the operation (not shown) and an instruction pointer 763 for outputting the address of the instruction to be read by the memory 761 under the control of the control circuit 762 are included. The control circuit 762 is
When the value of the input port 760 is “0”, the preset address is written in the instruction pointer 763.

【0005】以下、CPU720からDSP770によ
って実行される処理を起動する場合における従来の情報
処理装置の動作を説明する。
The operation of the conventional information processing apparatus when the CPU 720 activates the processing executed by the DSP 770 will be described below.

【0006】CPU720の出力ポート714の最上位
ビットがDSP770の入力ポート760に接続されて
いると仮定する。この場合、CPU720は、予め
「1」に設定されている最上位ビットの値を「0」に書
き換えることにより、DSP770に割り込み要求を出
力する。この最上位ビットの値の書き換えは、以下の3
つのステップを実行することにより達成される。すなわ
ち、(1)出力ポート714の内容をCPU720が内
蔵するレジスタ(不図示)に書き込み、(2)上記レジ
スタの最上位ビットを「0」に設定するため、CPU7
20に内蔵される算術論理演算回路(不図示)にて上記
レジスタとx’7FFF’(x’’は16進数を表わ
す)との論理積を計算し、その計算結果を上記レジスタ
に格納し、(3)上記レジスタの値を出力ポート714
に書き込む。
Assume that the most significant bit of output port 714 of CPU 720 is connected to input port 760 of DSP 770. In this case, the CPU 720 outputs an interrupt request to the DSP 770 by rewriting the value of the most significant bit preset to “1” to “0”. To rewrite the value of this most significant bit, use the following 3
It is achieved by performing one step. That is, (1) the contents of the output port 714 are written in a register (not shown) incorporated in the CPU 720, and (2) the most significant bit of the above register is set to "0".
An arithmetic logic operation circuit (not shown) built in 20 calculates the logical product of the above register and x'7FFF '(x''represents a hexadecimal number) and stores the calculation result in the above register. (3) Output the value of the above register to the output port 714
Write in.

【0007】この最上位ビットの値はDSP770の入
力ポート760に書き込まれ、入力ポート760はその
値を制御回路762に出力する。制御回路762は入力
ポート760の値が「0」のとき、命令ポインタに予め
設定された値、例えばx’FFF0’を強制的に書き込
む。このことにより、メモリのx’FFF0’番地への
分岐が実行され、DSP770は所定の処理を実行する
(割り込み処理の実行)。 このように、CPUからD
SPによって実行される処理の起動は割り込みの形式で
行われる。
The value of the most significant bit is written in the input port 760 of the DSP 770, and the input port 760 outputs the value to the control circuit 762. When the value of the input port 760 is “0”, the control circuit 762 forcibly writes a value set in the instruction pointer, for example, x′FFF0 ′. As a result, the branch to the address x'FFF0 'of the memory is executed, and the DSP 770 executes a predetermined process (execution of an interrupt process). Thus, from the CPU to D
The processing executed by the SP is activated in the form of an interrupt.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、上述し
た構成を有する情報処理装置では、割り込み要求を出力
するまでにCPU側で数ステップの処理を行う必要があ
り、また割り込み要求を受け取ったDSP側でも割り込
み処理を実行するまでには多くのマシンサイクルを必要
とすることから、DSP側の処理を高速に起動すること
ができないという問題点があった。また、割り込み要求
を実現するためには、複数の命令を所定の順序で組み合
わせなければならないため、割り込み要求を実現する手
順が複雑でありメモリ711に格納されるプログラムの
構造も複雑となる。このため、プログラム作成時のプロ
グラマーの負担が大きく、またプログラムの可読性が低
いことから、プログラム作成後のテスト、デバッグ等の
効率が悪いという問題点を有していた。
However, in the information processing apparatus having the above configuration, the CPU side needs to perform several steps of processing before the interrupt request is output, and the DSP side that receives the interrupt request also has to do so. Since many machine cycles are required until the interrupt processing is executed, there is a problem that the processing on the DSP side cannot be activated at high speed. Further, since a plurality of instructions must be combined in a predetermined order to realize the interrupt request, the procedure for realizing the interrupt request is complicated and the structure of the program stored in the memory 711 is also complicated. For this reason, there is a problem that the load of the programmer at the time of creating the program is large and the readability of the program is low, so that the efficiency of testing and debugging after the program is created is low.

【0009】さらに、近年のLSI微細加工技術の著し
い進歩に伴い、アーキテクチャの異なる複数のプロセッ
サ、例えばCPUとDSPとを単一のチップ上に集積す
ることが可能となってきた。しかし、このような新しい
構成を考慮して、CPUからDSPによって実行される
処理を起動する場合に好適な情報処理装置及びその制御
方法は提案されていなかった。
Further, with the recent remarkable progress in the LSI microfabrication technology, it has become possible to integrate a plurality of processors having different architectures, such as a CPU and a DSP, on a single chip. However, in consideration of such a new configuration, an information processing apparatus and a control method thereof suitable for activating the processing executed by the DSP from the CPU have not been proposed.

【0010】本発明は、単一のチップ上に設けられたC
PUとDSPとを含む情報処理装置において、CPUが
DSPの処理の起動を容易にかつ高速に実行することが
可能な情報処理装置及びその制御方法を提供することを
目的とする。
The present invention provides a C on a single chip.
It is an object of the present invention to provide an information processing apparatus including a PU and a DSP, in which a CPU can easily and rapidly execute processing of a DSP, and a control method thereof.

【0011】[0011]

【課題を解決するための手段】本発明の情報処理装置
は、単一のチップ上に設けられた第1プロセッサと第2
プロセッサとを有しており、第1プロセッサはあたかも
サブルーチンを呼び出すような手続きで第2プロセッサ
の処理を起動する。
An information processing apparatus according to the present invention includes a first processor and a second processor provided on a single chip.
The first processor activates the processing of the second processor by a procedure that calls a subroutine.

【0012】該第1プロセッサは、複数の命令を格納す
る第1メモリと、該第1メモリに格納された該複数の命
令のうち読み出すべき1つの命令の番地を指定する第1
命令ポインタ手段と、該第1命令ポインタ手段によって
指定された番地に対応する命令を該第1メモリから読み
出す第1読み出し手段と、該第1読み出し手段によって
読み出された命令の実行を制御する第1制御手段であっ
て、該命令が単一の起動命令である場合には、該第1命
令ポインタ手段の動作を停止又は継続させ、かつ、該起
動命令を示す情報を該第2プロセッサに送る第1制御手
段とを備えている。該第2プロセッサは、複数の命令を
格納する第2メモリと、該第2メモリに格納された該複
数の命令のうち読み出すべき1つの命令の番地を指定す
る第2命令ポインタ手段と、該第2命令ポインタ手段に
よって指定された番地に対応する命令を該第2メモリか
ら読み出す第2読み出し手段と、該第2読み出し手段に
よって読み出された命令の実行を制御する第2制御手段
であって、該第1プロセッサから該起動命令を示す情報
を受け取り、該起動命令を示す情報に応じて該第2命令
ポインタ手段によって指定される命令の番地を所定の番
地に設定する第2制御手段とを備えている。
The first processor designates a first memory for storing a plurality of instructions and a first memory for designating an address of one instruction to be read out of the plurality of instructions stored in the first memory.
Instruction pointer means, first reading means for reading an instruction corresponding to an address designated by the first instruction pointer means from the first memory, and controlling execution of the instruction read by the first reading means 1 control means, when the instruction is a single activation instruction, the operation of the first instruction pointer means is stopped or continued, and information indicating the activation instruction is sent to the second processor. And a first control means. The second processor includes a second memory for storing a plurality of instructions, a second instruction pointer unit for designating an address of one instruction to be read out of the plurality of instructions stored in the second memory, and the second processor. Second read means for reading an instruction corresponding to the address designated by the two instruction pointer means from the second memory, and second control means for controlling the execution of the instruction read by the second read means, Second control means for receiving information indicating the activation instruction from the first processor and setting the address of the instruction designated by the second instruction pointer means to a predetermined address in accordance with the information indicating the activation instruction. ing.

【0013】第2プロセッサの処理の起動後、第1プロ
セッサはその動作を停止してもよいし継続してもよい。
第2プロセッサの処理の起動後に第1プロセッサがその
動作を停止する場合には、第2プロセッサの処理終了後
に第1プロセッサはその動作を再開する。第2プロセッ
サの処理の起動後も第1プロセッサがその動作を継続す
る場合には、第2プロセッサの処理終了後に第1プロセ
ッサの処理が所定の番地に分岐するように第1プロセッ
サが制御される。
After the processing of the second processor is activated, the operation of the first processor may be stopped or continued.
When the first processor stops its operation after the processing of the second processor is started, the first processor restarts its operation after the processing of the second processor is completed. When the first processor continues its operation even after the processing of the second processor is started, the first processor is controlled so that the processing of the first processor branches to a predetermined address after the processing of the second processor ends. .

【0014】第2プロセッサの処理終了の通知は、第1
プロセッサに対して割り込み要求を送信することにより
行ってもよいし、第1プロセッサ内に設けられた所定の
レジスタに所定の値を書き込むことにより行ってもよ
い。第2プロセッサの処理終了の通知が後者により行わ
れる場合、第1プロセッサは、特定の分岐命令を実行し
た際にその所定のレジスタの内容を参照することによ
り、第2プロセッサの処理が終了したか否かを検知する
ことができる。
The notification of the end of processing by the second processor is the first notification.
It may be performed by transmitting an interrupt request to the processor, or may be performed by writing a predetermined value in a predetermined register provided in the first processor. When the notification of the end of processing by the second processor is issued by the latter, the first processor refers to the content of the predetermined register when executing the specific branch instruction, and thus the processing by the second processor is completed. Whether or not it can be detected.

【0015】第2プロセッサの処理の起動後の第1プロ
セッサの動作の停止/継続を所定のレジスタの内容に応
じて切り換えるようにしてもよい。
It is also possible to switch the operation / stoppage of the operation of the first processor after the activation of the processing of the second processor according to the contents of a predetermined register.

【0016】本発明の制御方法は、単一のチップ上に設
けられた第1プロセッサと第2プロセッサとを備えた情
報処理装置の制御方法であって、該第1プロセッサにお
いて複数の命令のうち1つの命令を提供するステップ
と、該命令が単一の起動命令であるか否かを判定するス
テップと、該命令が該起動命令であると判定された場合
には、該第1プロセッサの動作を停止又は継続させ、か
つ、該起動命令を示す情報を該第2プロセッサに送るス
テップと、該第1プロセッサから該起動命令を示す情報
を受け取り、該起動命令を示す情報に応じて該第2プロ
セッサの動作を制御するステップとを包含する。
A control method of the present invention is a control method of an information processing apparatus comprising a first processor and a second processor provided on a single chip, wherein the first processor has a plurality of instructions. Providing one instruction, determining whether the instruction is a single activation instruction, and, if the instruction is determined to be the activation instruction, the operation of the first processor Stopping or continuing, and sending information indicating the activation instruction to the second processor, receiving information indicating the activation instruction from the first processor, and receiving the second information according to the information indicating the activation instruction. Controlling the operation of the processor.

【0017】また、本発明の他の情報処理装置は、単一
のチップ上に設けられた第1プロセッサと第2プロセッ
サとを有しており、第1プロセッサは、第1プロセッサ
内の処理を起動するのと同一の起動命令を用いて、あた
かもサブルーチンを呼び出すような手続きで第2プロセ
ッサの処理を起動する。
Further, another information processing apparatus of the present invention has a first processor and a second processor provided on a single chip, and the first processor performs the processing in the first processor. Using the same start-up instruction that starts up, the process of the second processor is started up as if by calling a subroutine.

【0018】該第1プロセッサは、複数の命令を格納す
る第1メモリであって、第1の範囲の番地が割り当てら
れた第1メモリと、該第1メモリに格納された該複数の
命令のうち読み出すべき1つの命令の番地を指定する第
1命令ポインタ手段と、該第1命令ポインタ手段によっ
て指定された番地に対応する命令を該第1メモリから読
み出す第1読み出し手段と、該第1読み出し手段によっ
て読み出された命令の実行を制御する第1制御手段とを
備えている。該第2プロセッサは、複数の命令を格納す
る第2メモリであって、該第1の範囲とは異なる第2の
範囲の番地が割り当てられた第2メモリと、該第2メモ
リに格納された該複数の命令のうち読み出すべき1つの
命令の番地を指定する第2命令ポインタ手段と、該第2
命令ポインタ手段によって指定された番地に対応する命
令を該第2メモリから読み出す第2読み出し手段と、該
第2読み出し手段によって読み出された命令の実行を制
御する第2制御手段とを備えている。該第1制御手段
は、該第1読み出し手段によって読み出された命令が単
一の起動命令である場合には、該起動命令に対応する所
定の番地が該第1の範囲の番地と該第2の範囲の番地の
いずれに含まれるかを判定し、該起動命令に対応する該
所定の番地が該第1の範囲の番地に含まれる場合には該
第1命令ポインタ手段によって指定される命令の番地を
該起動命令に対応する該所定の番地に設定し、該起動命
令に対応する該所定の番地が該第2の範囲の番地に含ま
れる場合には該第1命令ポインタ手段の動作を停止又は
継続させ、かつ、該起動命令を示す情報を該第2プロセ
ッサに送る。該第2制御手段は、該第1プロセッサから
該起動命令を示す情報を受け取り、該起動命令を示す情
報に応じて該第2命令ポインタ手段によって指定される
命令の番地を該起動命令に対応する該所定の番地に設定
する。
The first processor is a first memory for storing a plurality of instructions, the first memory being assigned an address in a first range, and the plurality of instructions stored in the first memory. First instruction pointer means for designating an address of one instruction to be read, first reading means for reading an instruction corresponding to the address designated by the first instruction pointer means from the first memory, and the first reading First control means for controlling the execution of the instruction read by the means. The second processor is a second memory that stores a plurality of instructions, and a second memory to which an address in a second range different from the first range is assigned, and the second memory that is stored in the second memory. Second instruction pointer means for designating an address of one instruction to be read out of the plurality of instructions;
It is provided with second reading means for reading an instruction corresponding to the address designated by the instruction pointer means from the second memory, and second control means for controlling the execution of the instruction read by the second reading means. . When the instruction read by the first reading means is a single activation instruction, the first control means determines that the predetermined address corresponding to the activation instruction is the address in the first range and the first address. It is determined which of the addresses in the range 2 is included, and when the predetermined address corresponding to the activation instruction is included in the addresses in the first range, the instruction designated by the first instruction pointer means Is set to the predetermined address corresponding to the activation instruction, and when the predetermined address corresponding to the activation instruction is included in the addresses in the second range, the operation of the first instruction pointer means is performed. Stop or continue, and send information indicating the start instruction to the second processor. The second control means receives information indicating the activation instruction from the first processor, and the address of the instruction designated by the second instruction pointer means corresponds to the activation instruction in accordance with the information indicating the activation instruction. It is set to the predetermined address.

【0019】第2プロセッサの処理の起動後、第1プロ
セッサはその動作を停止してもよいし継続してもよい。
第2プロセッサの処理の起動後に第1プロセッサがその
動作を停止する場合には、第2プロセッサの処理終了後
に第1プロセッサはその動作を再開する。第2プロセッ
サの処理の起動後も第1プロセッサがその動作を継続す
る場合には、第2プロセッサの処理終了後に第1プロセ
ッサの処理が所定の番地に分岐するように第1プロセッ
サが制御される。
After the processing of the second processor is activated, the operation of the first processor may be stopped or continued.
When the first processor stops its operation after the processing of the second processor is started, the first processor restarts its operation after the processing of the second processor is completed. When the first processor continues its operation even after the processing of the second processor is started, the first processor is controlled so that the processing of the first processor branches to a predetermined address after the processing of the second processor ends. .

【0020】本発明の他の制御方法は、単一のチップ上
に設けられた第1プロセッサと第2プロセッサとを備え
た情報処理装置の制御方法であって、該第1プロセッサ
は、第1の範囲の番地が割り当てられた第1メモリを有
しており、該第2プロセッサは、該第1の範囲とは異な
る第2の範囲の番地が割り当てられた第2メモリを有し
ており、該第1メモリに格納された複数の命令のうち1
つの命令を提供するステップと、該命令が単一の起動命
令であるか否かを判定するステップと、該命令が該起動
命令であると判定された場合には、該起動命令に対応す
る所定の番地が該第1の範囲の番地と該第2の範囲の番
地のいずれに含まれるかを判定するステップと、該起動
命令に対応する所定の番地が該第1の範囲の番地に含ま
れると判定された場合には、該起動命令に応じて該第1
プロセッサの動作を制御するステップと、該起動命令に
対応する所定の番地が該第2の範囲の番地に含まれると
判定された場合には、該第1プロセッサの動作を停止又
は継続させ、かつ、該起動命令を示す情報を該第2プロ
セッサに送るステップと、該第1プロセッサから該起動
命令を示す情報を受け取り、該起動命令を示す情報に応
じて該第2プロセッサの動作を制御するステップとを包
含する。
Another control method of the present invention is a control method of an information processing apparatus comprising a first processor and a second processor provided on a single chip, wherein the first processor is a first processor. Has a first memory to which addresses in the range are assigned, and the second processor has a second memory to which addresses in a second range different from the first range are assigned. 1 out of a plurality of instructions stored in the first memory
A step of providing one instruction, a step of determining whether the instruction is a single start instruction, and a step corresponding to the start instruction when the instruction is determined to be the start instruction. Of the address of the first range and the address of the second range, and a predetermined address corresponding to the start command is included in the address of the first range. If it is determined that the first
Controlling the operation of the processor, stopping the operation of the first processor when it is determined that the predetermined address corresponding to the start instruction is included in the addresses of the second range, and Sending information indicating the activation instruction to the second processor, receiving information indicating the activation instruction from the first processor, and controlling operation of the second processor according to the information indicating the activation instruction Includes and.

【0021】本発明によれば、第1プロセッサに含まれ
る第1メモリから読み出された単一の起動命令(cal
ldsp命令)により、第2プロセッサに含まれる第2
メモリが読み出すべき命令の番地が所定の値に設定され
る。これにより、第1プロセッサ側から第2プロセッサ
側の処理を起動する場合にプログラマーは単一のcal
ldsp命令をコーディングするだけで済む。その結
果、プログラム作成の労力が大幅に削減される。また、
プログラムの可読性も向上するため、プログラムのテス
ト、デバッグ、再利用等が容易となる。さらに、第1プ
ロセッサと第2プロセッサとを接続するための入出力ポ
ートが不要であるため、第1プロセッサから第2プロセ
ッサの処理の起動を高速に行うことができる。
According to the present invention, a single activation instruction (cal) read from the first memory included in the first processor.
second instruction included in the second processor by the ldsp instruction).
The address of the instruction to be read by the memory is set to a predetermined value. As a result, when starting the processing on the second processor side from the first processor side, the programmer can use a single cal.
All you have to do is code the ldsp instruction. As a result, the programming effort is greatly reduced. Also,
Since the readability of the program is also improved, it is easy to test, debug, and reuse the program. Furthermore, since an input / output port for connecting the first processor and the second processor is not required, the processing of the first processor can be started up at high speed.

【0022】また、本発明によれば、第1プロセッサに
含まれる第1メモリから読み出された単一の起動命令
(call命令)に対応する番地に応じて、第1プロセ
ッサに含まれる第1メモリをアクセスすべきか第2プロ
セッサに含まれる第2メモリをアクセスすべきかが決定
される。第1プロセッサに含まれる第1メモリをアクセ
スすべき場合には、その起動命令により第1プロセッサ
に含まれる第1メモリが読み出すべき命令の番地が所定
の値に設定される。第2プロセッサに含まれる第2メモ
リをアクセスすべき場合には、その起動命令により、第
2プロセッサに含まれる第2メモリが読み出すべき命令
の番地が所定の値に設定される。これにより、プログラ
マーは実行すべきプログラムが第1プロセッサの第1メ
モリに格納されているか第2プロセッサの第2メモリに
格納されているかに応じて異なる起動命令を使い分ける
ことなく、単一の起動命令(call命令)を用いてコ
ーディングすることができる。その結果、プログラム作
成の労力が大幅に削減される。また、プログラムの可読
性も向上するため、プログラムのテスト、デバッグ、再
利用等が容易となる。さらに、第1プロセッサと第2プ
ロセッサとを接続するための入出力ポートが不要である
ため、第1プロセッサから第2プロセッサの処理の起動
を高速に行うことができる。
Further, according to the present invention, the first processor included in the first processor according to the address corresponding to the single start instruction (call instruction) read from the first memory included in the first processor. It is determined whether to access the memory or a second memory included in the second processor. When the first memory included in the first processor is to be accessed, the start instruction sets the address of the instruction to be read by the first memory included in the first processor to a predetermined value. When the second memory included in the second processor is to be accessed, the start instruction sets the address of the instruction to be read by the second memory included in the second processor to a predetermined value. As a result, the programmer does not have to use different start instructions depending on whether the program to be executed is stored in the first memory of the first processor or the second memory of the second processor, and does not use a single start instruction. (Call instruction) can be used for coding. As a result, the programming effort is greatly reduced. Further, since the readability of the program is improved, it is easy to test, debug and reuse the program. Furthermore, since an input / output port for connecting the first processor and the second processor is not required, the processing of the first processor can be started up at high speed.

【0023】[0023]

【発明の実施の形態】以下、本発明の実施の形態を説明
する。
Embodiments of the present invention will be described below.

【0024】(第1の実施例)図1は、本発明による第
1の実施例の情報処理装置の構成を示す。情報処理装置
は、CPU140とDSP190とを含んでいる。CP
U140とDSP190とは、単一のチップ100上に
設けられている。本実施例の情報処理装置では、CPU
140はあたかもサブルーチンを呼び出すような手続き
でDSP190への処理を起動する。すなわち、DSP
190の処理を起動後CPU140はその動作を停止
し、DSP190の処理終了後CPU140はその動作
を再開する。
(First Embodiment) FIG. 1 shows the arrangement of an information processing apparatus according to the first embodiment of the present invention. The information processing device includes a CPU 140 and a DSP 190. CP
The U 140 and the DSP 190 are provided on the single chip 100. In the information processing apparatus of this embodiment, the CPU
Reference numeral 140 activates the processing for the DSP 190 as if calling a subroutine. That is, DSP
After the processing of 190 is started, the CPU 140 stops its operation, and after the processing of the DSP 190 is completed, the CPU 140 restarts its operation.

【0025】CPU140は、メモリ111と命令ポイ
ンタ113と制御部112とを含んでいる。メモリ11
1には、実行すべき複数の命令が格納されている。メモ
リ111は、その複数の命令のうち命令ポインタ113
から出力されるアドレスに格納されている命令を読み出
す。メモリ111から読み出された命令は、制御部11
2に供給される。制御部112は、メモリ111から読
み出された命令の実行を制御する。命令ポインタ113
は、制御信号122に応じてメモリ111から読み出す
べき命令のアドレスを出力する。命令ポインタ113に
は、メモリ111から読み出すべき命令のアドレス値が
設定される。命令ポインタ113は、制御信号122が
「1」の場合にはその値を1ずつ加算することにより更
新し、制御信号122が「0」の場合にはその値の更新
を停止する。
The CPU 140 includes a memory 111, an instruction pointer 113 and a control section 112. Memory 11
1 stores a plurality of instructions to be executed. The memory 111 has an instruction pointer 113 out of the plurality of instructions.
The instruction stored in the address output from is read. The instruction read from the memory 111 is the control unit 11
2 is supplied. The control unit 112 controls the execution of the instruction read from the memory 111. Instruction pointer 113
Outputs the address of the instruction to be read from the memory 111 according to the control signal 122. The address value of the instruction to be read from the memory 111 is set in the instruction pointer 113. The instruction pointer 113 is updated by adding 1 to the value when the control signal 122 is “1”, and stops updating the value when the control signal 122 is “0”.

【0026】制御部112は、命令デコーダ115と制
御回路120とを含んでいる。命令デコーダ115は、
メモリ111から読み出される命令を解読し、入力され
た命令に応じて制御信号116とアドレス124とを生
成する。制御回路120は、制御信号116と制御信号
172とに応じて制御信号122と制御信号126と制
御信号群128とを生成する。制御信号群128は、演
算器、レジスタ等の被制御回路(不図示)の動作を制御
するために使用される。
The control unit 112 includes an instruction decoder 115 and a control circuit 120. The instruction decoder 115
The instruction read from the memory 111 is decoded, and the control signal 116 and the address 124 are generated according to the input instruction. The control circuit 120 generates the control signal 122, the control signal 126, and the control signal group 128 according to the control signal 116 and the control signal 172. The control signal group 128 is used to control the operation of controlled circuits (not shown) such as arithmetic units and registers.

【0027】DSP190は、メモリ161と命令ポイ
ンタ163と命令デコーダ170と制御回路180とを
含んでいる。メモリ161には、実行すべき複数の命令
が格納されている。メモリ161は、その複数の命令の
うち命令ポインタ163から出力されるアドレスに格納
されている命令を読み出す。メモリ161から読み出さ
れた命令は、命令デコーダ170に供給される。命令デ
コーダ170は、メモリ161から読み出された命令を
解読し、入力された命令が「処理の終了を指示する命令
(ret命令)」である場合には制御信号172に
「1」を出力し、そうでない場合には制御信号172に
「0」を出力する。制御回路180は、CPU140の
制御回路120から制御信号126を受け取り、制御信
号126の値が「1」のとき制御信号182を「1」と
する。命令ポインタ163は、メモリ161から読み出
す命令のアドレスを出力する。また、命令ポインタ16
3は、CPU140の命令デコーダ115からアドレス
124を受け取り、制御信号182が「1」のときアド
レス124を保持する。
The DSP 190 includes a memory 161, an instruction pointer 163, an instruction decoder 170, and a control circuit 180. The memory 161 stores a plurality of instructions to be executed. The memory 161 reads the instruction stored in the address output from the instruction pointer 163 among the plurality of instructions. The instruction read from the memory 161 is supplied to the instruction decoder 170. The instruction decoder 170 decodes the instruction read from the memory 161, and outputs “1” to the control signal 172 when the input instruction is an “instruction to terminate the processing (ret instruction)”. If not, "0" is output to the control signal 172. The control circuit 180 receives the control signal 126 from the control circuit 120 of the CPU 140, and sets the control signal 182 to “1” when the value of the control signal 126 is “1”. The instruction pointer 163 outputs the address of the instruction read from the memory 161. In addition, the instruction pointer 16
3 receives the address 124 from the instruction decoder 115 of the CPU 140, and holds the address 124 when the control signal 182 is “1”.

【0028】以下、上述した構成を有する本実施例の情
報処理装置の動作を説明する。
The operation of the information processing apparatus of this embodiment having the above configuration will be described below.

【0029】命令ポインタ113は通常はその保持する
値を1ずつ加算しメモリ111が読み出す命令の番地を
出力する。メモリ111から読み出された命令は命令デ
コーダ115によって解読される。命令デコーダ115
は、入力された命令が「DSP190の処理を起動する
命令(calldsp命令)」であるとき、制御信号1
16をアクティブにし、同時にアドレス124にDSP
190にて起動したいプログラムが格納されているメモ
リ161の先頭のアドレスを出力する。例えば、メモリ
111のx’0100’番地に格納されている命令がc
alldspx’0005’であるとき、アドレス12
4にx’0005’を出力する。制御回路120は制御
信号116がアクティブであれば、制御信号122に
「0」を出力し、同時に制御信号126に「1」を出力
する。命令ポインタ113は制御信号122が「0」で
あるから、更新を停止し、次に実行すべきアドレスを保
持し続ける。これによりCPU140内部の処理は停止
する。
The instruction pointer 113 normally adds the held values one by one and outputs the address of the instruction read by the memory 111. The instruction read from the memory 111 is decoded by the instruction decoder 115. Instruction decoder 115
Is a control signal 1 when the input instruction is an “instruction for activating the processing of the DSP 190 (callsp instruction)”.
16 active and DSP to address 124 at the same time
At 190, the head address of the memory 161 in which the program to be started is stored is output. For example, the instruction stored at the address x'0100 'of the memory 111 is c
If alldsspx is '0005', address 12
4 is output as x'0005 '. When the control signal 116 is active, the control circuit 120 outputs “0” to the control signal 122 and simultaneously outputs “1” to the control signal 126. Since the control signal 122 is "0", the instruction pointer 113 stops updating and continues to hold the address to be executed next. This stops the processing inside the CPU 140.

【0030】次に、DSP190内部の制御回路180
は制御信号126が「1」であると、命令ポインタ16
3にアドレス124の値を書き込むよう制御信号182
に「1」を出力する。命令ポインタ163は制御信号1
82が「1」であるのでアドレス124の値をその内容
とし、メモリ161に出力する。すなわち、このとき命
令ポインタ163はメモリ161にx’0005’を出
力する。以降、命令ポインタ163はその値を1ずつ加
算することによりメモリ161に格納されているプログ
ラムを実行する。
Next, the control circuit 180 inside the DSP 190
When the control signal 126 is "1", the instruction pointer 16
Control signal 182 to write the value of address 124 to
"1" is output to. The instruction pointer 163 is the control signal 1
Since 82 is "1", the value of the address 124 is taken as its content and output to the memory 161. That is, at this time, the instruction pointer 163 outputs x'0005 'to the memory 161. After that, the instruction pointer 163 executes the program stored in the memory 161 by incrementing the value by one.

【0031】メモリ161から読み出された命令が「処
理の終了を指示する命令(ret命令)」であるとき、
命令デコーダ170は制御信号172に「1」を出力
し、また、命令ポインタ163の動作を停止する指示を
出す。制御回路120は制御信号172が「1」である
と制御信号122に「1」を出力する。命令ポインタ1
13は制御信号122が「1」であるのでその値の更新
を再開する。
When the instruction read from the memory 161 is the "instruction for instructing the end of processing (ret instruction)",
The instruction decoder 170 outputs "1" to the control signal 172, and also issues an instruction to stop the operation of the instruction pointer 163. The control circuit 120 outputs “1” to the control signal 122 when the control signal 172 is “1”. Instruction pointer 1
In No. 13, since the control signal 122 is "1", the updating of the value is restarted.

【0032】以上の動作を図8に示す。上記によりCP
U140はあたかもサブルーチンを呼び出すような手続
きでDSP190への処理を起動する。またDSP19
0が動作中CPU140は停止し、DSP190の処理
終了後CPU140は動作を再開する。
The above operation is shown in FIG. CP by the above
The U140 activates the process to the DSP 190 as if by calling a subroutine. Also DSP19
When 0 is operating, the CPU 140 stops, and after the processing of the DSP 190 ends, the CPU 140 resumes operation.

【0033】(第2の実施例)第1の実施例の情報処理
装置では、CPUがDSPの処理を起動すると、その処
理が終了するまでCPUの動作を停止することとしてい
た。第2の実施例の情報処理装置は、DSPの処理を起
動した後もCPUが動作を継続することを可能として、
CPUとDSPとの並列処理を実現するものである。
(Second Embodiment) In the information processing apparatus of the first embodiment, when the CPU starts the processing of the DSP, the operation of the CPU is stopped until the processing is completed. The information processing apparatus according to the second embodiment enables the CPU to continue operating even after the DSP processing is activated,
It realizes parallel processing of the CPU and the DSP.

【0034】図2は、本発明による第2の実施例の情報
処理装置の構成を示す。情報処理装置は、CPU240
とDSP190とを含んでいる。CPU240とDSP
190とは、単一のチップ100上に設けられている。
FIG. 2 shows the configuration of the information processing apparatus of the second embodiment according to the present invention. The information processing device is a CPU 240.
And DSP 190. CPU240 and DSP
190 is provided on a single chip 100.

【0035】図2において、図1に示す情報処理装置の
構成要素と同一の構成要素には同一の番号を付してい
る。図1に示す情報処理装置の構成と異なる点は、命令
ポインタ113、命令デコーダ115及び制御回路12
0をそれぞれ命令ポインタ213、命令デコーダ215
及び制御回路220で置き換えた点である。
In FIG. 2, the same components as those of the information processing apparatus shown in FIG. 1 are designated by the same reference numerals. The difference from the configuration of the information processing apparatus shown in FIG. 1 is that an instruction pointer 113, an instruction decoder 115 and a control circuit 12 are provided.
0 is an instruction pointer 213 and an instruction decoder 215, respectively.
And the control circuit 220 is replaced.

【0036】CPU240は、メモリ111と命令ポイ
ンタ213と制御部212とを含んでいる。メモリ11
1から読み出された命令は、制御部212に供給され
る。制御部212は、メモリ111から読み出された命
令の実行を制御する。命令ポインタ213は、制御信号
222に応じてメモリ111から読み出すべき命令のア
ドレスを出力する。命令ポインタ213には、メモリ1
11から読み出すべき命令のアドレス値が設定される。
命令ポインタ213は、制御信号222が「1」の場合
にはアドレス228を保持し、制御信号222が「0」
の場合にはその値を1だけ加算することにより更新す
る。
The CPU 240 includes a memory 111, an instruction pointer 213 and a control section 212. Memory 11
The instruction read from 1 is supplied to the control unit 212. The control unit 212 controls the execution of the instruction read from the memory 111. The instruction pointer 213 outputs the address of the instruction to be read from the memory 111 according to the control signal 222. The instruction pointer 213 contains the memory 1
The address value of the instruction to be read from 11 is set.
The instruction pointer 213 holds the address 228 when the control signal 222 is “1”, and the control signal 222 is “0”.
In the case of, it is updated by adding 1 to the value.

【0037】制御部212は、命令デコーダ215と制
御回路220とを含んでいる。命令デコーダ215は、
メモリ111から読み出される命令を解読し、入力され
た命令に応じて制御信号216とアドレス124とを生
成する。制御回路220は、制御信号216と制御信号
172とに応じて制御信号222とアドレス228と制
御信号126と制御信号群128とを生成する。制御信
号群128は、演算器、レジスタ等の被制御回路(不図
示)の動作を制御するために使用される。
The control unit 212 includes an instruction decoder 215 and a control circuit 220. The instruction decoder 215
The instruction read from the memory 111 is decoded, and the control signal 216 and the address 124 are generated according to the input instruction. The control circuit 220 generates the control signal 222, the address 228, the control signal 126, and the control signal group 128 according to the control signal 216 and the control signal 172. The control signal group 128 is used to control the operation of controlled circuits (not shown) such as arithmetic units and registers.

【0038】以下、上述した構成を有する本実施例の情
報処理装置の動作を説明する。
The operation of the information processing apparatus of this embodiment having the above configuration will be described below.

【0039】図1に示す情報処理装置の動作と異なる点
は、DSP190の動作中における命令ポインタ213
の制御と、メモリ161から読み出された命令がret
命令である場合の命令ポインタ213の制御である。
The difference from the operation of the information processing apparatus shown in FIG. 1 is that the instruction pointer 213 during the operation of the DSP 190.
Control and the instruction read from the memory 161 is ret
This is control of the instruction pointer 213 in the case of an instruction.

【0040】メモリ111から読み出された命令はデコ
ーダ215によって解読される。命令デコーダ215
は、入力された命令が「DSP190の処理を起動し、
かつ、CPU240の動作を継続する命令(calld
sp2命令)」であるとき、制御信号216をアクティ
ブにし、同時にアドレス124にDSP190にて起動
したいプログラムが格納されているメモリ161の先頭
のアドレスを出力する。例えば、メモリ111のx’0
100’番地に格納されている命令がcalldsp2
x’0005’であるとき、アドレス124にx’0
005’を出力する。制御回路220は制御信号216
がアクティブであれば、制御信号222に「0」を出力
し続け、同時に制御信号126に「1」を出力する。命
令ポインタ213は制御信号222が「0」であるから
その値を更新し続ける。これによりCPU240は動作
し続ける。
The instruction read from the memory 111 is decoded by the decoder 215. Instruction decoder 215
The input instruction is "The processing of DSP190 is started,
And, an instruction (calld) for continuing the operation of the CPU 240.
sp2 instruction) ”, the control signal 216 is activated, and at the same time, the head address of the memory 161 in which the program to be activated by the DSP 190 is stored is output to the address 124. For example, x'0 of the memory 111
The instruction stored in the address 100 'is called callsp2
When it is x'0005 ', x'0 is assigned to the address 124.
005 'is output. The control circuit 220 receives the control signal 216
Is active, the control signal 222 continues to output “0”, and at the same time, the control signal 126 outputs “1”. Since the control signal 222 is "0", the instruction pointer 213 continues to update its value. This causes the CPU 240 to continue operating.

【0041】一方、メモリ161から読み出された命令
が「処理の終了を指示する命令(ret命令)」である
とき、命令デコーダ170は制御信号172に「1」を
出力し、また、命令ポインタ163の動作を停止する指
示を出す。制御回路220は制御信号172が「1」で
あると制御信号222に「1」を出力し、同時にアドレ
ス228に予め設定された値、例えばx’F000’を
出力する。命令ポインタ213は制御信号222が
「1」であるのでアドレス228を保持し、同時に図示
しない記憶手段にアドレス228を保持する以前の値を
退避する。制御回路220は命令ポインタ213がアド
レス228を保持した後、制御信号222に「0」を出
力する。その結果、命令ポインタ213はアドレス22
8の値を保持した後、その値を1だけ加算することによ
り更新する。これにより、メモリ111内の予め設定さ
れたアドレス228(例えばx’F000’)から処理
が実行される。
On the other hand, when the instruction read from the memory 161 is the "instruction to terminate the processing (ret instruction)", the instruction decoder 170 outputs "1" to the control signal 172, and the instruction pointer It issues an instruction to stop the operation of 163. When the control signal 172 is "1", the control circuit 220 outputs "1" to the control signal 222, and at the same time, outputs a preset value to the address 228, for example, x'F000 '. Since the control signal 222 is "1", the instruction pointer 213 holds the address 228 and at the same time saves the value before holding the address 228 in the storage means (not shown). The control circuit 220 outputs “0” to the control signal 222 after the instruction pointer 213 holds the address 228. As a result, the instruction pointer 213 has the address 22
After holding the value of 8, the value is updated by adding 1 to it. As a result, the process is executed from the preset address 228 (for example, x'F000 ') in the memory 111.

【0042】以上の動作を図9に示す。上記によりCP
U240はあたかもサブルーチンを呼び出すような手続
きでDSP190への処理を起動する。またDSP19
0が動作中においてもCPU240は動作しており、D
SP190の処理終了後CPU240は予め設定された
アドレス228に分岐することによりDSP190にお
ける処理の終了を認識する。
The above operation is shown in FIG. CP by the above
The U240 activates the process for the DSP 190 as if by calling a subroutine. Also DSP19
Even when 0 is operating, the CPU 240 is operating and D
After the processing of SP190 is completed, the CPU 240 recognizes the completion of the processing of DSP190 by branching to a preset address 228.

【0043】(第3の実施例)第3の実施例の情報処理
装置では、DSPの処理が終了したか否かを監視するた
めに使用されるレジスタがCPUに設けられている。D
SPの処理が終了した場合には、そのレジスタに所定の
値が書き込まれる。CPUは、メモリから読み出された
命令が特定の分岐命令(jmpreg命令)である場合
には、そのレジスタの値を参照する。このようにして、
CPUは、jmpreg命令の実行によりDSPの処理
が終了したか否かを監視する。そのレジスタの値が所定
の値である場合には、CPUの処理がjmpreg命令
によって指定されたアドレスに分岐する。これにより、
CPUはDSPにおける処理の終了を認識する。
(Third Embodiment) In the information processing apparatus of the third embodiment, the CPU is provided with a register used for monitoring whether or not the processing of the DSP is completed. D
When the processing of SP is completed, a predetermined value is written in the register. When the instruction read from the memory is a specific branch instruction (jmpreg instruction), the CPU refers to the value of the register. In this way,
The CPU monitors whether or not the processing of the DSP has been completed by executing the jmpreg instruction. If the value of the register is a predetermined value, the CPU processing branches to the address designated by the jmpreg instruction. This allows
The CPU recognizes the end of processing in the DSP.

【0044】図3は、本発明による第3の実施例の情報
処理装置の構成を示す。情報処理装置は、CPU340
とDSP190とを含んでいる。CPU340とDSP
190とは、単一のチップ100上に設けられている。
FIG. 3 shows the configuration of an information processing apparatus according to the third embodiment of the present invention. The information processing device is a CPU 340.
And DSP 190. CPU340 and DSP
190 is provided on a single chip 100.

【0045】図3において、図2に示す情報処理装置の
構成要素と同一の構成要素には同一の番号を付してい
る。図2に示す情報処理装置の構成と異なる点は、命令
デコーダ215及び制御回路220をそれぞれ命令デコ
ーダ315及び制御回路320で置き換え、レジスタ3
30を追加した点である。
In FIG. 3, the same components as those of the information processing apparatus shown in FIG. 2 are designated by the same reference numerals. The difference from the configuration of the information processing apparatus shown in FIG. 2 is that the instruction decoder 215 and the control circuit 220 are replaced with the instruction decoder 315 and the control circuit 320, respectively, and the register 3
This is the point where 30 is added.

【0046】CPU340は、メモリ111と命令ポイ
ンタ213と制御部312とを含んでいる。メモリ11
1から読み出された命令は、制御部312に供給され
る。制御部312は、メモリ111から読み出された命
令の実行を制御する。命令ポインタ213は、制御信号
322に応じてメモリ111から読み出すべき命令のア
ドレスを出力する。命令ポインタ213には、メモリ1
11から読み出すべき命令のアドレス値が設定される。
命令ポインタ213は、制御信号322が「1」の場合
にはアドレス328を保持し、制御信号322が「0」
の場合にはその値を1だけ加算することにより更新す
る。
The CPU 340 includes a memory 111, an instruction pointer 213 and a control unit 312. Memory 11
The instruction read from 1 is supplied to the control unit 312. The control unit 312 controls the execution of the instruction read from the memory 111. The instruction pointer 213 outputs the address of the instruction to be read from the memory 111 according to the control signal 322. The instruction pointer 213 contains the memory 1
The address value of the instruction to be read from 11 is set.
The instruction pointer 213 holds the address 328 when the control signal 322 is “1”, and the control signal 322 is “0”.
In the case of, it is updated by adding 1 to the value.

【0047】制御部312は、命令デコーダ315と制
御回路320とを含んでいる。命令デコーダ315は、
メモリ111から読み出される命令を解読し、入力され
た命令に応じて制御信号316と制御信号317とアド
レス124とを生成する。制御回路320は、制御信号
316と制御信号317とレジスタ330の値とに応じ
て制御信号322とアドレス328と制御信号126と
制御信号群128とを生成する。制御信号群128は、
演算器、レジスタ等の被制御回路(不図示)の動作を制
御するために使用される。
The control unit 312 includes an instruction decoder 315 and a control circuit 320. The instruction decoder 315 is
The instruction read from the memory 111 is decoded, and the control signal 316, the control signal 317, and the address 124 are generated according to the input instruction. The control circuit 320 generates the control signal 322, the address 328, the control signal 126, and the control signal group 128 according to the control signal 316, the control signal 317, and the value of the register 330. The control signal group 128 is
It is used to control the operation of controlled circuits (not shown) such as arithmetic units and registers.

【0048】以下、上述した構成を有する本実施例の情
報処理装置の動作を説明する。
The operation of the information processing apparatus of this embodiment having the above configuration will be described below.

【0049】図2に示す情報処理装置の動作と異なる点
は、メモリ161から読み出された命令がret命令で
ある場合の命令ポインタ213の制御である。
The difference from the operation of the information processing apparatus shown in FIG. 2 is the control of the instruction pointer 213 when the instruction read from the memory 161 is a ret instruction.

【0050】メモリ111から読み出された命令はデコ
ーダ315によって解読される。命令デコーダ315
は、入力された命令が「DSP190の処理を起動し、
かつ、CPU340の動作を継続する命令(calld
sp2命令)」であるとき、制御信号316をアクティ
ブにし、同時にアドレス124にDSP190にて起動
したいプログラムが格納されているメモリ161の先頭
のアドレスを出力する。例えば、メモリ111のx’0
100’番地に格納されている命令がcalldsp2
x’0005’であるとき、アドレス124にx’0
005’を出力する。制御回路320は制御信号216
がアクティブであれば、制御信号322に「0」を出力
し続け、同時に制御信号126に「1」を出力する。命
令ポインタ213は制御信号322が「0」であるから
その値を更新し続ける。これによりCPU340は動作
し続ける。
The instruction read from the memory 111 is decoded by the decoder 315. Instruction decoder 315
The input instruction is "The processing of DSP190 is started,
In addition, an instruction (calld) for continuing the operation of the CPU 340
sp2 instruction) ”, the control signal 316 is activated, and at the same time, the head address of the memory 161 in which the program to be activated by the DSP 190 is stored is output to the address 124. For example, x'0 of the memory 111
The instruction stored in the address 100 'is called callsp2
When it is x'0005 ', x'0 is assigned to the address 124.
005 'is output. The control circuit 320 outputs the control signal 216
Is active, the control signal 322 continues to output “0”, and at the same time, the control signal 126 outputs “1”. Since the control signal 322 is "0", the instruction pointer 213 continues to update its value. This causes the CPU 340 to continue operating.

【0051】一方、メモリ161から読み出された命令
が「処理の終了を指示する命令(ret命令)」である
とき、命令デコーダ170は制御信号172に「1」を
出力し、また、命令ポインタ163の動作を停止する指
示を出す。制御信号172が「1」のときレジスタ33
0は「1」に設定される。命令デコーダ315は、メモ
リ111から読み出された命令が「レジスタ330の状
態を調べ、レジスタ330の値が「1」のとき特定のア
ドレスに分岐する命令(jmpreg命令)」であると
き、制御信号317をアクティブにする。制御回路32
0は制御信号317がアクティブであれば、レジスタ3
30の内容を読み出し、その値が「1」のとき制御信号
322に「1」を出力し、同時にアドレス328にjm
preg命令で指定される分岐先アドレスを出力する。
例えばメモリ111から読み出された命令がjmpre
g x’0300’命令のとき、アドレス328にx’
0300’を出力する。命令ポインタ213は制御信号
322が「1」であるのでアドレス328を(x’03
00’)保持する。制御回路320は命令ポインタ21
3がアドレス328を保持した後、制御信号322に
「0」を出力する。その結果、命令ポインタ213はア
ドレス328の値を保持した後、その値を1だけ加算す
ることにより更新する。これにより、メモリ111のア
ドレス328(x’0300’)から処理が実行され
る。
On the other hand, when the instruction read from the memory 161 is the “instruction to terminate the processing (ret instruction)”, the instruction decoder 170 outputs “1” to the control signal 172, and the instruction pointer It issues an instruction to stop the operation of 163. Register 33 when control signal 172 is "1"
0 is set to "1". The instruction decoder 315 outputs a control signal when the instruction read from the memory 111 is “an instruction that checks the state of the register 330 and branches to a specific address when the value of the register 330 is“ 1 ”(jmpreg instruction)”. Activate 317. Control circuit 32
0 means register 3 if control signal 317 is active
When the content of 30 is read and the value is "1", "1" is output to the control signal 322, and at the same time, jm is output to the address 328.
The branch destination address specified by the preg instruction is output.
For example, the instruction read from the memory 111 is jpre
g x'0300 'instruction, x'at address 328
It outputs 0300 '. Since the control signal 322 is "1", the instruction pointer 213 sets the address 328 to (x'03
00 ') Hold. The control circuit 320 uses the instruction pointer 21
3 holds the address 328, and then outputs “0” to the control signal 322. As a result, the instruction pointer 213 holds the value of the address 328 and then updates the value by adding 1 to the value. As a result, the process is executed from the address 328 (x'0300 ') of the memory 111.

【0052】以上の動作を図10に示す。上記によりC
PU340はあたかもサブルーチンを呼び出すような手
続きでDSP190への処理を起動する。またDSP1
90が動作中においてもCPU340は動作しており、
DSP190の処理終了後CPU340はメモリ111
に格納したプログラムの命令(jmpreg命令)でレ
ジスタ330の値、すなわちDSP190の処理が終了
したか否かを監視し、DSP190の処理終了後、jm
preg命令で指定されたアドレスに分岐することによ
りDSP190における処理の終了を認識する。
The above operation is shown in FIG. From the above, C
The PU 340 activates the process to the DSP 190 as if by calling a subroutine. Also DSP1
The CPU 340 is operating even when 90 is operating,
After the processing of the DSP 190 is completed, the CPU 340 stores the memory 111
The value of the register 330, that is, whether the processing of the DSP 190 is completed, is monitored by the instruction of the program stored in (jmpreg instruction), and after the processing of the DSP 190 is completed, jm
The end of processing in the DSP 190 is recognized by branching to the address specified by the preg instruction.

【0053】(第4の実施例)第4の実施例の情報処理
装置では、DSPの動作中にCPUの動作を停止させる
か継続されるかを示す情報を格納するレジスタがCPU
に設けられている。CPUは、そのレジスタの内容に応
じてDSPの動作中におけるCPUの動作の停止/継続
を切り換える。この切り換えは、第1の実施例で言及し
たcalldsp命令の機能と第2の実施例で言及した
calldsp2命令の機能とを1つの命令(call
dsp3命令)で実現することを可能にする。
(Fourth Embodiment) In the information processing apparatus of the fourth embodiment, a register for storing information indicating whether the CPU operation is stopped or continued while the DSP is operating is a CPU.
It is provided in. The CPU switches between stopping and continuing the operation of the CPU during the operation of the DSP according to the contents of the register. This switching combines the function of the calldsp instruction mentioned in the first embodiment and the function of the calldsp2 instruction mentioned in the second embodiment into one instruction (call).
dsp3 instruction).

【0054】図4は、本発明による第4の実施例の情報
処理装置の構成を示す。情報処理装置は、CPU440
とDSP190とを含んでいる。CPU440とDSP
190とは、単一のチップ100上に設けられている。
FIG. 4 shows the configuration of an information processing apparatus according to the fourth embodiment of the present invention. The information processing device is a CPU 440.
And DSP 190. CPU440 and DSP
190 is provided on a single chip 100.

【0055】図4において、図2に示す情報処理装置の
構成要素と同一の構成要素には同一の番号を付してい
る。図2に示す情報処理装置の構成と異なる点は、命令
ポインタ213、命令デコーダ215及び制御回路22
0をそれぞれ命令ポインタ4113、命令デコーダ41
5及び制御回路420で置き換え、レジスタ432を追
加した点である。
In FIG. 4, the same components as those of the information processing apparatus shown in FIG. 2 are designated by the same reference numerals. The difference from the configuration of the information processing apparatus shown in FIG. 2 is that the instruction pointer 213, the instruction decoder 215, and the control circuit 22.
0 is the instruction pointer 4113 and the instruction decoder 41, respectively.
5 and the control circuit 420, and a register 432 is added.

【0056】CPU440は、メモリ111と命令ポイ
ンタ413と制御部412とを含んでいる。メモリ11
1から読み出された命令は、制御部412に供給され
る。制御部412は、メモリ111から読み出された命
令の実行を制御する。命令ポインタ413は、制御信号
422及び423に応じてメモリ111から読み出すべ
き命令のアドレスを出力する。命令ポインタ413に
は、メモリ111から読み出すべき命令のアドレス値が
設定される。命令ポインタ413は、制御信号422の
値が「1」の場合に保持している値を1だけ加算するこ
とにより更新し、制御信号422の値が「0」の場合に
保持している値の更新を停止する。また、命令ポインタ
413は、制御信号423の値が「1」の場合にはアド
レス428を新たに保持する。
The CPU 440 includes the memory 111, an instruction pointer 413 and a control unit 412. Memory 11
The instruction read from 1 is supplied to the control unit 412. The control unit 412 controls the execution of the instruction read from the memory 111. The instruction pointer 413 outputs the address of the instruction to be read from the memory 111 according to the control signals 422 and 423. The address value of the instruction to be read from the memory 111 is set in the instruction pointer 413. The instruction pointer 413 is updated by adding 1 to the value held when the value of the control signal 422 is “1”, and the value held when the value of the control signal 422 is “0” is updated. Stop updating. Further, the instruction pointer 413 newly holds the address 428 when the value of the control signal 423 is “1”.

【0057】制御部412は、命令デコーダ415と制
御回路420とを含んでいる。命令デコーダ415は、
メモリ111から読み出される命令を解読し、入力され
た命令に応じて制御信号416とアドレス124とを生
成する。制御回路420は、制御信号416と制御信号
172とレジスタ432の内容とに応じて制御信号42
2と制御信号423とアドレス428と制御信号126
と制御信号群128とを生成する。制御信号群128
は、演算器、レジスタ等の被制御回路(不図示)の動作
を制御するために使用される。
The control unit 412 includes an instruction decoder 415 and a control circuit 420. The instruction decoder 415 is
The instruction read from the memory 111 is decoded, and the control signal 416 and the address 124 are generated according to the input instruction. The control circuit 420 controls the control signal 42 according to the control signal 416, the control signal 172, and the contents of the register 432.
2, control signal 423, address 428, and control signal 126
And a control signal group 128 are generated. Control signal group 128
Are used to control the operation of controlled circuits (not shown) such as arithmetic units and registers.

【0058】以下、上述した構成を有する本実施例の情
報処理装置の動作を説明する。
The operation of the information processing apparatus of this embodiment having the above-mentioned structure will be described below.

【0059】図2に示す情報処理装置の動作と異なる点
は、レジスタ432の内容に応じて命令ポインタ413
の制御が切り換えらえれる点である。その結果、レジス
タ432の内容に応じて、DSP190の動作中におけ
るCPU440の動作の停止/継続が切り換えられる。
The difference from the operation of the information processing apparatus shown in FIG. 2 is that the instruction pointer 413 is changed according to the contents of the register 432.
This is the point where the control of can be switched. As a result, the stop / continuation of the operation of the CPU 440 during the operation of the DSP 190 is switched according to the contents of the register 432.

【0060】レジスタ432には、図示しないデータバ
スを介して「0」又は「1」のいずれかの値が予め設定
される。
A value of "0" or "1" is preset in the register 432 via a data bus (not shown).

【0061】レジスタ432に予め設定された値が
「0」の場合の処理を説明する。メモリ111から読み
出された命令は命令デコーダ415によって解読され
る。命令デコーダ415は、入力された命令がcall
dsp3命令であるとき、制御信号416をアクティブ
にし、同時にアドレス124にDSP190にて起動し
たいプログラムが格納されているメモリ161の先頭の
アドレスを出力する。例えば、メモリ111のx’01
00’番地に格納されている命令がcalldsp3
x’0005’であるとき、アドレス124にx’00
05’を出力する。制御回路420は制御信号416が
アクティブであれば、制御信号422に「0」を出力
し、命令ポインタ413の更新を停止し、同時に制御信
号126に「1」を出力する。制御回路420は制御信
号172が「1」であると制御信号422に「1」を出
力する。命令ポインタ413は制御信号422が「1」
であるのでその値の更新を再開する。
The processing when the value preset in the register 432 is "0" will be described. The instruction read from the memory 111 is decoded by the instruction decoder 415. The instruction decoder 415 calls the input instruction to call.
When it is a dsp3 instruction, the control signal 416 is activated, and at the same time, the head address of the memory 161 in which the program to be activated by the DSP 190 is stored is output to the address 124. For example, x'01 of the memory 111
The instruction stored at address 00 'is call sp3
When it is x'0005 ', it is x'00 at the address 124.
05 'is output. When the control signal 416 is active, the control circuit 420 outputs "0" to the control signal 422, stops updating the instruction pointer 413, and simultaneously outputs "1" to the control signal 126. The control circuit 420 outputs “1” as the control signal 422 when the control signal 172 is “1”. The control signal 422 of the instruction pointer 413 is “1”.
Therefore, the update of the value is restarted.

【0062】レジスタ432に予め設定された値が
「1」の場合の処理を説明する。メモリ111から読み
出された命令は命令デコーダ415によって解読され
る。命令デコーダ415は、入力された命令がcall
dsp3命令であるとき、制御信号416をアクティブ
にし、同時にアドレス124にDSP190にて起動し
たいプログラムが格納されているメモリ161の先頭の
アドレスを出力する。例えば、メモリ111のx’01
00’番地に格納されている命令がcalldsp3
x’0005’であるとき、アドレス124にx’00
05’を出力する。制御回路420は制御信号416が
アクティブであれば、制御信号422に「1」を出力し
続け、同時に制御信号126に「1」を出力する。命令
ポインタ413は制御信号422が「1」であるからそ
の値を更新し続け、これによりCPU440は動作し続
ける。制御回路420は制御信号172が「1」である
と制御信号423に「1」を出力し、同時にアドレス4
28に予め設定された値、例えばx’F000’を出力
する。命令ポインタ413は制御信号423が「1」で
あるのでアドレス428を保持し、同時に図示しない記
憶手段にアドレス428を保持する以前の値を退避す
る。制御回路420は命令ポインタ413がアドレス4
28を保持した後、制御信号423に「0」を出力す
る。その結果、命令ポインタ413はアドレス428の
値を保持した後、その値を1だけ加算することにより更
新する。これにより、メモリ111内の予め設定された
アドレス428(例えばx’F000’)から処理が実
行される。
The processing when the value preset in the register 432 is "1" will be described. The instruction read from the memory 111 is decoded by the instruction decoder 415. The instruction decoder 415 calls the input instruction to call.
When it is a dsp3 instruction, the control signal 416 is activated, and at the same time, the head address of the memory 161 in which the program to be activated by the DSP 190 is stored is output to the address 124. For example, x'01 of the memory 111
The instruction stored at address 00 'is call sp3
When it is x'0005 ', it is x'00 at the address 124.
05 'is output. When the control signal 416 is active, the control circuit 420 continues to output “1” to the control signal 422 and simultaneously outputs “1” to the control signal 126. Since the control signal 422 is "1", the instruction pointer 413 continues to update its value, whereby the CPU 440 continues to operate. When the control signal 172 is "1", the control circuit 420 outputs "1" to the control signal 423, and at the same time, the address 4
A value preset to 28, for example, x'F000 'is output. Since the control signal 423 is "1", the instruction pointer 413 holds the address 428, and at the same time saves the value before holding the address 428 in the storage means (not shown). In the control circuit 420, the instruction pointer 413 has the address 4
After holding 28, “0” is output as the control signal 423. As a result, the instruction pointer 413 holds the value of the address 428 and then updates the value by adding 1 to the value. As a result, the process is executed from the preset address 428 (for example, x'F000 ') in the memory 111.

【0063】このようにして、レジスタ432に予め設
定された値に応じて、第1の実施例で言及したcall
dsp命令の機能と第2の実施例で言及したcalld
sp2命令の機能とを1つの命令(calldsp3命
令)で実現することができる。
In this way, according to the value preset in the register 432, the call mentioned in the first embodiment is called.
Function of dsp instruction and calld referred to in the second embodiment
The function of the sp2 instruction can be realized by one instruction (call sp3 instruction).

【0064】(第5の実施例)第1の実施例の情報処理
装置では、calldsp命令は常にDSPの処理を起
動するものであり、CPUのサブルーチンを実行すると
きには別の命令にて指示する必要があった。このため、
プログラマーは、使いたいプログラムがCPU内部のサ
ブルーチンであるかDSP内部のサブルーチンであるか
に応じて異なる命令を使い分ける必要があった。第5の
実施例の情報処理装置は、この点を改良するものであ
り、CPU内部のサブルーチンであるかDSP内部のサ
ブルーチンであるかにかかわりなく、統一された単一の
命令(call命令)だけでCPUでの処理の実行とD
SPへの処理の起動とを行うことを可能とするものであ
る。図5は、本発明による第5の実施例の情報処理装置
の構成を示す。情報処理装置は、CPU540とDSP
590とを含んでいる。CPU540とDSP590と
は、単一のチップ500上に設けられている。
(Fifth Embodiment) In the information processing apparatus of the first embodiment, the callsp command always activates the DSP process, and it is necessary to instruct it by another command when the CPU subroutine is executed. was there. For this reason,
The programmer has to use different instructions depending on whether the program he wants to use is a subroutine inside the CPU or a subroutine inside the DSP. The information processing apparatus of the fifth embodiment improves on this point, and has a unified single instruction (call instruction) regardless of whether it is a subroutine inside the CPU or a subroutine inside the DSP. And execute processing in the CPU and D
It is possible to activate processing to the SP. FIG. 5 shows the configuration of the information processing apparatus of the fifth embodiment according to the present invention. The information processing device includes a CPU 540 and a DSP.
590 and. The CPU 540 and the DSP 590 are provided on the single chip 500.

【0065】CPU540は、メモリ511と命令ポイ
ンタ513と制御部512とを含んでいる。メモリ51
1には、実行すべき複数の命令が格納されておりてい
る。また、メモリ511には、一定の範囲の番地が割り
当てられている。例えば、メモリ511には、0番地か
らx’3FF’番地の1024語が割り当てられる。メ
モリ511は、その複数の命令のうち命令ポインタ51
3から出力されるアドレスに格納されている命令を読み
出す。メモリ511から読み出された命令は、制御部5
12に供給される。制御部512は、メモリ511から
読み出された命令の実行を制御する。命令ポインタ51
3は、制御信号522及び523に応じてメモリ511
から読み出すべき命令のアドレスを出力する。命令ポイ
ンタ513には、メモリ511から読み出すべき命令の
アドレス値が設定される。命令ポインタ513は、制御
信号522が「1」の場合にはその値を1だけ加算する
ことにより更新し、制御信号522が「0」の場合には
その値の更新を停止する。また、命令ポインタ513
は、制御信号523が「1」の場合にはアドレス518
の内容を保持する。
The CPU 540 includes a memory 511, an instruction pointer 513 and a controller 512. Memory 51
1 stores a plurality of instructions to be executed. Further, the memory 511 is assigned with a certain range of addresses. For example, 1024 words from address 0 to address x'3FF 'are assigned to the memory 511. The memory 511 has an instruction pointer 51 among the plurality of instructions.
The instruction stored in the address output from 3 is read. The instruction read from the memory 511 is the control unit 5
12 are supplied. The control unit 512 controls the execution of the instruction read from the memory 511. Instruction pointer 51
3 is a memory 511 according to the control signals 522 and 523.
The address of the instruction to be read from is output. An address value of an instruction to be read from the memory 511 is set in the instruction pointer 513. The instruction pointer 513 is updated by adding 1 to the value when the control signal 522 is “1”, and stops updating the value when the control signal 522 is “0”. Also, the instruction pointer 513
Is the address 518 when the control signal 523 is "1".
Hold the contents of.

【0066】制御部512は、命令デコーダ515と制
御回路520とを含んでいる。命令デコーダ515は、
メモリ511から読み出される命令を解読し、入力され
た命令に応じて制御信号516とアドレス518とを生
成する。制御回路520は、制御信号516とアドレス
518と制御信号572とに応じて制御信号522と制
御信号523と制御信号526と制御信号群528とを
生成する。制御信号群528は、演算器、レジスタ等の
被制御回路(不図示)の動作を制御するために使用され
る。
The control unit 512 includes an instruction decoder 515 and a control circuit 520. The instruction decoder 515 is
The instruction read from the memory 511 is decoded, and the control signal 516 and the address 518 are generated according to the input instruction. The control circuit 520 generates a control signal 522, a control signal 523, a control signal 526, and a control signal group 528 according to the control signal 516, the address 518, and the control signal 572. The control signal group 528 is used to control the operation of a controlled circuit (not shown) such as an arithmetic unit and a register.

【0067】DSP590は、メモリ561と命令ポイ
ンタ563と命令デコーダ570と制御回路580とを
含んでいる。メモリ561には、実行すべき複数の命令
が格納されている。メモリ561には、メモリ511に
割り当てられた範囲とは異なる範囲の番地が割り当てら
れている。例えば、メモリ561には、x’400’番
地からx’7FF’番地の1024語が割り当てられ
る。メモリ561は、その複数の命令のうち命令ポイン
タ563から出力されるアドレスに格納されている命令
を読み出す。メモリ561から読み出された命令は、命
令デコーダ570に供給される。命令デコーダ570
は、メモリ561から読み出された命令を解読し、入力
された命令が「処理の終了を指示する命令(ret命
令)」である場合には制御信号572に「1」を出力
し、そうでない場合には制御信号572に「0」を出力
する。制御回路580は、CPU540の制御回路52
0から制御信号526を受け取り、制御信号526の値
が「1」のとき制御信号582を「1」とする。命令ポ
インタ563は、メモリ561から読み出す命令のアド
レスを出力する。また、命令ポインタ563は、CPU
540の命令デコーダ515からアドレス518を受け
取り、制御信号582が「1」のときアドレス518を
保持する。
The DSP 590 includes a memory 561, an instruction pointer 563, an instruction decoder 570 and a control circuit 580. The memory 561 stores a plurality of instructions to be executed. Addresses in a range different from the range assigned to the memory 511 are assigned to the memory 561. For example, the memory 561 is assigned 1024 words from the address x'400 'to the address x'7FF'. The memory 561 reads the instruction stored in the address output from the instruction pointer 563 among the plurality of instructions. The instruction read from the memory 561 is supplied to the instruction decoder 570. Instruction decoder 570
Decodes the instruction read from the memory 561 and outputs "1" to the control signal 572 when the input instruction is "instruction for instructing the end of processing (ret instruction)", and otherwise In that case, “0” is output as the control signal 572. The control circuit 580 is the control circuit 52 of the CPU 540.
The control signal 526 is received from 0, and when the value of the control signal 526 is "1", the control signal 582 is set to "1". The instruction pointer 563 outputs the address of the instruction read from the memory 561. The instruction pointer 563 is the CPU
The address 518 is received from the instruction decoder 515 of 540, and the address 518 is held when the control signal 582 is "1".

【0068】以下、上述した構成を有する本実施例の情
報処理装置の動作を説明する。
The operation of the information processing apparatus of this embodiment having the above configuration will be described below.

【0069】命令ポインタ513は通常はその保持する
値を1ずつ加算しメモリ511が読み出す命令の番地を
出力する。メモリ511から読み出された命令は命令デ
コーダ515で解読される。命令デコーダ515は、入
力された命令がサブルーチンへの分岐を指示する命令
(call命令)であるとき、制御信号516をアクテ
ィブにし、call命令とともに指示されるメモリ51
1またはメモリ561のサブルーチン先頭番地をアドレ
ス518に出力する。例えば、メモリ511のx’10
0’番地に格納される命令がcall x’200’命
令であるとき、アドレス518にx’200’を出力す
る。
The instruction pointer 513 normally increments the value held by it and outputs the address of the instruction read by the memory 511. The instruction read from the memory 511 is decoded by the instruction decoder 515. The instruction decoder 515 activates the control signal 516 when the input instruction is an instruction (call instruction) for instructing branch to a subroutine, and the memory 51 instructed together with the call instruction.
1 or the subroutine start address of the memory 561 is output to the address 518. For example, x'10 of the memory 511
When the instruction stored in the address 0'is the call x'200 'instruction, x'200' is output to the address 518.

【0070】制御回路520は制御信号516がアクテ
ィブであればアドレス518の値を調べ、それがメモリ
511の番地であれば制御信号523に「1」、制御信
号526に「0」を出力する。命令ポインタ513は制
御信号523が「1」であるのでアドレス518の内容
を保持する。また、制御回路580は制御信号526が
「0」であるから制御信号582に「0」を出力する。
例えば、メモリ511から読みだされた命令がcall
x’200’であるとき、x’200’番地はメモリ
511の領域であるので、命令ポインタ513はx’2
00’を保持し、命令ポインタ563はその保持内容を
更新しない。以上の動作を図11に示す。
The control circuit 520 checks the value of the address 518 when the control signal 516 is active, and outputs "1" to the control signal 523 and "0" to the control signal 526 if it is the address of the memory 511. Since the control signal 523 is "1", the instruction pointer 513 holds the content of the address 518. Further, the control circuit 580 outputs “0” as the control signal 582 because the control signal 526 is “0”.
For example, the instruction read from the memory 511 is called
When the address is x'200 ', since the address x'200' is the area of the memory 511, the instruction pointer 513 is x'2.
00 'is held and the instruction pointer 563 does not update the held content. The above operation is shown in FIG.

【0071】また、制御回路520は制御信号516が
アクティブであればアドレス518の値を調べ、それが
メモリ561の番地であれば制御信号522、523に
「0」、制御信号526に「1」を出力する。命令ポイ
ンタ513は制御信号522が「0」であるので更新を
停止する。また、制御回路580は制御信号526が
「1」であるから制御信号582に「1」を出力する。
例えば、メモリ511から読みだされた命令がcall
x’500’であるとき、x’500’番地はメモリ
561の領域であるので、命令ポインタ513はその値
の更新を停止し、命令ポインタ563はx’500’を
保持の後、その値に1だけ加算することで順次メモリ5
61にアドレスを出力し、メモリ561に格納されてい
る命令が実行される。以上の動作を図12に示す。
If the control signal 516 is active, the control circuit 520 checks the value of the address 518, and if it is the address of the memory 561, the control signals 522 and 523 are "0" and the control signal 526 is "1". Is output. The instruction pointer 513 stops updating because the control signal 522 is "0". Further, the control circuit 580 outputs “1” as the control signal 582 because the control signal 526 is “1”.
For example, the instruction read from the memory 511 is called
When it is x'500 ', the address x'500' is the area of the memory 561, so the instruction pointer 513 stops updating its value, and the instruction pointer 563 holds x'500 'and then changes to that value. Sequential memory 5 by adding 1
The address is output to 61, and the instruction stored in the memory 561 is executed. The above operation is shown in FIG.

【0072】メモリ561から読み出された命令が処理
の終了を指示する命令(ret命令)であるとき、命令
デコーダ570は制御信号572に「1」を出力し、ま
た、命令ポインタ563の動作を停止する指示を出す。
制御回路520は制御信号572が「1」であると制御
信号522に「1」を出力する。命令ポインタ513は
制御信号522が「1」であるのでその値の更新を再開
する。
When the instruction read from the memory 561 is an instruction (ret instruction) for instructing the end of processing, the instruction decoder 570 outputs "1" to the control signal 572, and the operation of the instruction pointer 563 is changed. Give instructions to stop.
The control circuit 520 outputs "1" as the control signal 522 when the control signal 572 is "1". Since the control signal 522 is "1", the instruction pointer 513 restarts updating its value.

【0073】このように、メモリ511とメモリ561
に異なる範囲の番地を割り付け、単一のcall命令で
示されるサブルーチンの先頭番地に応じて、メモリ51
1へのアクセスとメモリ561へのアクセスとを自動的
に切り換えることにより、CPU540内部のサブルー
チンの呼び出し手続きとDSP590内部のサブルーチ
ンの呼び出し手続きとを統一することができる。cal
l命令で示されるサブルーチンの先頭番地がメモリ51
1の領域である場合にはCPU540が動作し続ける。
call命令で示されるサブルーチンの先頭番地がメモ
リ561の領域である場合には、第1の実施例の情報処
理装置と同様の動作を行う。すなわち、DSP590の
処理を起動した後CPU540はその動作を停止し、D
SP590の処理終了後CPU540はその動作を再開
する。
As described above, the memory 511 and the memory 561
Addresses in different ranges are assigned to the memory 51 and the memory 51 depending on the start address of the subroutine indicated by a single call instruction.
By automatically switching the access to 1 and the access to the memory 561, it is possible to unify the calling procedure of the subroutine inside the CPU 540 and the calling procedure of the subroutine inside the DSP 590. cal
The start address of the subroutine indicated by the l instruction is the memory 51.
If the area is 1, the CPU 540 continues to operate.
When the start address of the subroutine indicated by the call instruction is the area of the memory 561, the same operation as the information processing apparatus of the first embodiment is performed. That is, after activating the processing of the DSP 590, the CPU 540 stops its operation and
After the processing of SP590 ends, the CPU 540 restarts its operation.

【0074】(第6の実施例)第6の実施例の情報処理
装置は、第5の実施例の情報処理装置と比較すると、c
all命令で示されるサブルーチンの先頭番地がメモリ
561の領域である場合の処理を変更したものである。
本実施例の情報処理装置では、call命令で示される
サブルーチンの先頭番地がDSPに含まれるメモリの領
域である場合には、第2の実施例の情報処理装置と同様
の動作を行う。すなわち、DSPの処理を起動した後も
CPUはその動作を継続し、DSPの処理終了後CPU
は予め設定されたアドレスに分岐することによりDSP
における処理の終了を認識する。図6は、本発明による
第6の実施例の情報処理装置の構成を示す。情報処理装
置は、CPU640とDSP590とを含んでいる。C
PU640とDSP590とは、単一のチップ500上
に設けられている。
(Sixth Embodiment) The information processing apparatus of the sixth embodiment is c when compared with the information processing apparatus of the fifth embodiment.
This is a modification of the processing when the start address of the subroutine indicated by the all instruction is the area of the memory 561.
The information processing apparatus of this embodiment performs the same operation as that of the information processing apparatus of the second embodiment when the start address of the subroutine indicated by the call instruction is the memory area included in the DSP. That is, the CPU continues its operation even after the DSP processing is started, and after the DSP processing is completed, the CPU
Is a DSP by branching to a preset address
Recognize the end of processing in. FIG. 6 shows the configuration of the information processing apparatus of the sixth embodiment according to the present invention. The information processing device includes a CPU 640 and a DSP 590. C
The PU 640 and the DSP 590 are provided on the single chip 500.

【0075】図6において、図5に示す情報処理装置の
構成要素と同一の構成要素には同一の番号を付してい
る。図5に示す情報処理装置の構成と異なる点は、命令
ポインタ513及び制御回路520をそれぞれ命令ポイ
ンタ613及び制御回路620で置き換えた点である。
In FIG. 6, the same components as those of the information processing apparatus shown in FIG. 5 are designated by the same reference numerals. The difference from the configuration of the information processing apparatus shown in FIG. 5 is that the instruction pointer 513 and the control circuit 520 are replaced by the instruction pointer 613 and the control circuit 620, respectively.

【0076】CPU640は、メモリ511と命令ポイ
ンタ613と制御部612とを含んでいる。メモリ51
1から読み出された命令は、制御部612に供給され
る。制御部612は、メモリ511から読み出された命
令の実行を制御する。命令ポインタ613は、制御信号
522、523及び623に応じてメモリ511から読
み出すべき命令のアドレスを出力する。命令ポインタ6
13には、メモリ511から読み出すべき命令のアドレ
ス値が設定される。命令ポインタ613は、制御信号5
22が「1」の場合にはその値を1だけ加算することに
より更新し、制御信号522が「0」の場合にはその値
の更新を停止する。また、制御信号523が「1」の場
合にはアドレス518の内容を保持し、制御信号623
が「1」の場合にはアドレス628の内容を保持する。
The CPU 640 includes a memory 511, an instruction pointer 613 and a control unit 612. Memory 51
The instruction read from 1 is supplied to the control unit 612. The control unit 612 controls the execution of the instruction read from the memory 511. The instruction pointer 613 outputs the address of the instruction to be read from the memory 511 according to the control signals 522, 523 and 623. Instruction pointer 6
In 13, an address value of an instruction to be read from the memory 511 is set. The instruction pointer 613 has the control signal 5
When 22 is "1", the value is updated by adding 1 and when the control signal 522 is "0", the updating of the value is stopped. When the control signal 523 is “1”, the content of the address 518 is held and the control signal 623 is held.
Is 1, the contents of the address 628 are retained.

【0077】制御部612は、命令デコーダ515と制
御回路620とを含んでいる。命令デコーダ515は、
メモリ511から読み出される命令を解読し、入力され
た命令に応じて制御信号516とアドレス518とを生
成する。制御回路620は、制御信号516とアドレス
518と制御信号572とに応じて制御信号522と制
御信号523と制御信号623とアドレス628と制御
信号526と制御信号群528とを生成する。制御信号
群528は、演算器、レジスタ等の被制御回路(不図
示)の動作を制御するために使用される。
Control unit 612 includes an instruction decoder 515 and a control circuit 620. The instruction decoder 515 is
The instruction read from the memory 511 is decoded, and the control signal 516 and the address 518 are generated according to the input instruction. The control circuit 620 generates the control signal 522, the control signal 523, the control signal 623, the address 628, the control signal 526, and the control signal group 528 according to the control signal 516, the address 518, and the control signal 572. The control signal group 528 is used to control the operation of a controlled circuit (not shown) such as an arithmetic unit and a register.

【0078】以下、上述した構成を有する本実施例の情
報処理装置の動作を説明する。
The operation of the information processing apparatus of this embodiment having the above-mentioned structure will be described below.

【0079】図5に示す情報処理装置の動作と異なる点
は、DSP590の動作中における命令ポインタ613
の制御と、メモリ561から読み出された命令がret
命令である場合の命令ポインタ613の制御である。
The difference from the operation of the information processing apparatus shown in FIG. 5 is that the instruction pointer 613 during the operation of the DSP 590.
Control and the instruction read from the memory 561 is ret
This is control of the instruction pointer 613 in the case of an instruction.

【0080】制御回路620は制御信号516がアクテ
ィブであればアドレス518の値を調べ、それがメモリ
511の番地であれば制御信号523に「1」、制御信
号526に「0」を出力する。命令ポインタ613は制
御信号523が「1」であるのでアドレス518の内容
を保持する。例えば、メモリ511から読みだされた命
令がcall x’200’であるとき、x’200’
番地はメモリ511の領域であるので、命令ポインタ6
13はx’200’を保持し、命令ポインタ563はそ
の保持内容を更新しない。
The control circuit 620 checks the value of the address 518 if the control signal 516 is active, and outputs "1" to the control signal 523 and "0" to the control signal 526 if it is the address of the memory 511. Since the control signal 523 is "1", the instruction pointer 613 holds the contents of the address 518. For example, when the instruction read from the memory 511 is call x'200 ', x'200'
Since the address is the area of the memory 511, the instruction pointer 6
13 holds x'200 ', and the instruction pointer 563 does not update the held content.

【0081】また、制御回路620は制御信号516が
アクティブであればアドレス518の値を調べ、それが
メモリ561の番地であれば制御信号522に「1」、
制御信号523に「0」、制御信号526に「1」を出
力する。命令ポインタ613は制御信号522が「1」
であるので動作し続ける。例えば、メモリ511のx’
100’番地の命令がcall x’500’であると
き、x’500’番地はメモリ561の領域であるの
で、命令ポインタ613はその値を更新し続け(x’1
01’、x’102’、...)、命令ポインタ563
はx’500’を保持の後、その値に1だけ加算するこ
とで順次メモリ561にアドレスを出力し、メモリ56
1に格納されている命令が実行される。
If the control signal 516 is active, the control circuit 620 checks the value of the address 518, and if it is the address of the memory 561, the control signal 522 is set to "1",
“0” is output to the control signal 523 and “1” is output to the control signal 526. The control signal 522 of the instruction pointer 613 is “1”
So keep working. For example, x ′ of the memory 511
When the instruction at address 100 'is call x'500', since the address at x'500 'is the area of the memory 561, the instruction pointer 613 keeps updating its value (x'1.
01 ', x'102' ,. . . ), Instruction pointer 563
Holds x'500 'and then adds 1 to that value to sequentially output addresses to the memory 561.
The instruction stored in 1 is executed.

【0082】また、制御回路620は制御信号572が
「1」であると制御信号623に「1」を出力し、同時
に予め設定したアドレス628(例えばx’3F0’)
を命令ポインタ613に出力する。命令ポインタ613
は制御信号623が「1」であるのでアドレス628を
その保持内容とする。
When the control signal 572 is "1", the control circuit 620 outputs "1" to the control signal 623, and at the same time, the preset address 628 (for example, x'3F0 ').
Is output to the instruction pointer 613. Instruction pointer 613
Since the control signal 623 is "1", the address 628 is used as its held content.

【0083】このように、メモリ511とメモリ561
に異なる範囲の番地を割り付け、単一のcall命令で
示されるサブルーチンの先頭番地に応じて、メモリ51
1へのアクセスとメモリ561へのアクセスとを自動的
に切り換えることにより、CPU540内部のサブルー
チンの呼び出し手続きとDSP590内部のサブルーチ
ンの呼び出し手続きとを統一することができる。cal
l命令で示されるサブルーチンの先頭番地がメモリ51
1の領域である場合にはCPU540が動作し続ける。
call命令で示されるサブルーチンの先頭番地がメモ
リ561の領域である場合には、第2の実施例の情報処
理装置と同様の動作を行う。すなわち、CPU640は
DSP590の処理を起動した後も動作を継続し、DS
P590の処理終了後CPU590は予め設定されたア
ドレスに分岐することによりDSP590における処理
の終了を認識する。
In this way, the memory 511 and the memory 561 are
Addresses in different ranges are assigned to the memory 51 and the memory 51 depending on the start address of the subroutine indicated by a single call instruction.
By automatically switching the access to 1 and the access to the memory 561, it is possible to unify the calling procedure of the subroutine inside the CPU 540 and the calling procedure of the subroutine inside the DSP 590. cal
The start address of the subroutine indicated by the l instruction is the memory 51.
If the area is 1, the CPU 540 continues to operate.
When the start address of the subroutine indicated by the call instruction is the area of the memory 561, the same operation as the information processing apparatus of the second embodiment is performed. That is, the CPU 640 continues the operation even after the processing of the DSP 590 is activated, and the DS
After the processing of P590 is completed, the CPU 590 recognizes the completion of the processing of the DSP 590 by branching to the preset address.

【0084】なお、上記実施例においてDSPのどの処
理を起動するかといった情報をメモリ161、561等
に格納されたプログラムの先頭アドレス124、518
としたが、これはDSP190、590にて実行したい
処理と一対一に対応するものであればよく先頭アドレス
に限るものではない。
Information such as which process of the DSP is to be activated in the above embodiment is stored in the memory 161, 561 or the like, and the program start addresses 124, 518 are stored.
However, this is not limited to the head address as long as it corresponds one-to-one with the process to be executed by the DSP 190, 590.

【0085】また、DSP190、590等に処理を起
動する命令として、calldsp命令等を用いたが、
上記実施例の表記に限るものではないことは言うまでも
ない。
Further, although the callsp instruction or the like is used as the instruction for starting the processing to the DSP 190, 590 or the like,
It goes without saying that the description in the above embodiment is not limited to this.

【0086】さらに、上述した実施例ではCPUとDS
Pを含む情報処理装置を説明したが、本発明は、CPU
とDSPとの組み合わせに限定されない。同一のタイプ
の又は異なるタイプの2以上のプロセッサを単一のチッ
プ上に集積する場合に本発明は有効に適用され得る。
Further, in the above-described embodiment, the CPU and the DS are
Although the information processing apparatus including the P has been described, the present invention is not limited to the CPU.
Is not limited to the combination of the DSP and the DSP. The present invention can be effectively applied when two or more processors of the same type or different types are integrated on a single chip.

【0087】[0087]

【発明の効果】本発明によれば、CPUに含まれる第1
メモリから読み出された単一の起動命令(callds
p命令)により、DSPに含まれる第2メモリが読み出
すべき命令の番地が所定の値に設定される。これによ
り、CPU側からDSP側の処理を起動する場合にプロ
グラマーは単一のcalldsp命令をコーディングす
るだけで済む。その結果、プログラム作成の労力が大幅
に削減される。また、プログラムの可読性も向上するた
め、プログラムのテスト、デバッグ、再利用等が容易と
なる。
According to the present invention, the first CPU included in the CPU
A single activation instruction (calls) read from memory
(p instruction) sets the address of the instruction to be read by the second memory included in the DSP to a predetermined value. This allows the programmer to code a single callsp instruction when activating the processing on the DSP side from the CPU side. As a result, the programming effort is greatly reduced. Further, since the readability of the program is improved, it is easy to test, debug and reuse the program.

【0088】図13は、CPUがDSPの処理を起動す
る手続きの例を示す。(a)は図7に示す従来の情報処
理装置による場合のコーディング例、(b)〜(e)は
本発明の各実施例の情報処理装置による場合のコーディ
ング例である。
FIG. 13 shows an example of a procedure in which the CPU activates the processing of the DSP. (A) is a coding example in the case of the conventional information processing apparatus shown in FIG. 7, and (b)-(e) is a coding example in the case of the information processing apparatus of each Example of this invention.

【0089】さらに、CPUとDSPとを接続するため
の入出力ポートが不要であるため、CPUからDSPの
処理の起動を高速に行うことができる。
Further, since the input / output port for connecting the CPU and the DSP is unnecessary, the CPU can start the processing of the DSP at high speed.

【0090】DSPの処理の起動後もCPUの動作を継
続させることができる。これにより、CPUとDSPと
が並列動作を行うのでさらに効率よく処理が実行され得
る。また、DSPの処理終了の通知を格納するレジスタ
を設け、そのレジスタの値を参照する命令を実行してD
SPの処理終了を監視することにより、任意の時点でD
SPの処理終了をCPU側で検知することが可能とな
る。
The operation of the CPU can be continued even after the processing of the DSP is activated. As a result, the CPU and the DSP operate in parallel, so that the processing can be executed more efficiently. In addition, a register for storing the notification of the end of processing of the DSP is provided, and an instruction for referring to the value of the register is executed to execute D
By monitoring the end of SP processing, D
It becomes possible for the CPU side to detect the end of the processing of the SP.

【0091】さらに、CPUの動作の継続/停止に関す
る情報を格納するレジスタを設け、そのレジスタの内容
に応じてCPUの動作の継続/停止を切り換えることに
より、1つの命令で2つの機能を実現することが可能と
なる。
Further, a register for storing information relating to continuation / stop of the CPU operation is provided, and the continuation / stop of the CPU operation is switched according to the contents of the register to realize two functions with one instruction. It becomes possible.

【0092】また、本発明によれば、CPUに含まれる
第1メモリから読み出された単一の起動命令(call
命令)に対応する番地に応じて、CPUに含まれる第1
メモリをアクセスすべきかDSPに含まれる第2メモリ
をアクセスすべきかが決定される。CPUに含まれる第
1メモリをアクセスすべき場合には、その起動命令によ
りCPUに含まれる第1メモリが読み出すべき命令の番
地が所定の値に設定される。DSPに含まれる第2メモ
リをアクセスすべき場合には、その起動命令により、D
SPに含まれる第2メモリが読み出すべき命令の番地が
所定の値に設定される。これにより、プログラマーは実
行すべきプログラムがCPUの第1メモリに格納されて
いるかDSPの第2メモリに格納されているかに応じて
異なる起動命令を使い分けることなく、単一の起動命令
(call命令)を用いてコーディングすることができ
る。その結果、プログラム作成の労力が大幅に削減され
る。また、プログラムの可読性も向上するため、プログ
ラムのテスト、デバッグ、再利用等が容易となる。さら
に、CPUとDSPとを接続するための入出力ポートが
不要であるため、CPUからDSPの処理の起動を高速
に行うことができる。
Further, according to the present invention, a single start instruction (call) read from the first memory included in the CPU is used.
1st included in the CPU according to the address corresponding to the (instruction)
It is determined whether to access the memory or the second memory included in the DSP. When the first memory included in the CPU is to be accessed, the start instruction sets the address of the instruction to be read by the first memory included in the CPU to a predetermined value. When the second memory included in the DSP is to be accessed, D
The address of the instruction to be read by the second memory included in the SP is set to a predetermined value. As a result, the programmer does not use a different start instruction depending on whether the program to be executed is stored in the first memory of the CPU or the second memory of the DSP, and a single start instruction (call instruction) is used. Can be coded with. As a result, the programming effort is greatly reduced. Further, since the readability of the program is improved, it is easy to test, debug and reuse the program. Further, since the input / output port for connecting the CPU and the DSP is not required, the CPU can start the processing of the DSP at high speed.

【0093】DSPの処理の起動後もCPUの動作を継
続させることができる。これにより、CPUとDSPと
が並列動作を行うのでさらに効率よく処理が実行され得
る。
The operation of the CPU can be continued even after the activation of the processing of the DSP. As a result, the CPU and the DSP operate in parallel, so that the processing can be executed more efficiently.

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

【図1】本発明による第1の実施例の情報処理装置の構
成を示す図である。
FIG. 1 is a diagram showing a configuration of an information processing apparatus according to a first embodiment of the present invention.

【図2】本発明による第2の実施例の情報処理装置の構
成を示す図である。
FIG. 2 is a diagram showing a configuration of an information processing apparatus according to a second embodiment of the present invention.

【図3】本発明による第3の実施例の情報処理装置の構
成を示す図である。
FIG. 3 is a diagram showing a configuration of an information processing apparatus according to a third embodiment of the present invention.

【図4】本発明による第4の実施例の情報処理装置の構
成を示す図である。
FIG. 4 is a diagram showing a configuration of an information processing apparatus according to a fourth exemplary embodiment of the present invention.

【図5】本発明による第5の実施例の情報処理装置の構
成を示す図である。
FIG. 5 is a diagram showing a configuration of an information processing apparatus according to a fifth exemplary embodiment of the present invention.

【図6】本発明による第6の実施例の情報処理装置の構
成を示す図である。
FIG. 6 is a block diagram showing the arrangement of an information processing apparatus according to the sixth embodiment of the present invention.

【図7】従来の情報処理装置の構成を示す図である。FIG. 7 is a diagram showing a configuration of a conventional information processing device.

【図8】本発明による第1の実施例の情報処理装置の動
作を示す図である。
FIG. 8 is a diagram showing an operation of the information processing apparatus according to the first embodiment of the present invention.

【図9】本発明による第2の実施例の情報処理装置の動
作を示す図である。
FIG. 9 is a diagram showing an operation of the information processing apparatus according to the second embodiment of the present invention.

【図10】本発明による第3の実施例の情報処理装置の
動作を示す図である。
FIG. 10 is a diagram showing an operation of the information processing apparatus according to the third embodiment of the present invention.

【図11】本発明による第5の実施例の情報処理装置の
動作を示す図である。
FIG. 11 is a diagram showing an operation of the information processing apparatus according to the fifth embodiment of the present invention.

【図12】本発明による第5の実施例の情報処理装置の
動作を示す図である。
FIG. 12 is a diagram showing an operation of the information processing apparatus according to the fifth embodiment of the present invention.

【図13】CPUがDSPの処理を起動する手続きのコ
ーディング例を示す図である。(a)は従来の情報処理
装置の場合のコーディング例、(b)は本発明の第1の
実施例の情報処理装置の場合のコーディング例、(c)
は本発明の第2および第3の実施例の情報処理装置の場
合のコーディング例、(d)は本発明の第4の実施例の
情報処理装置の場合のコーディング例、(e)は本発明
の第5および第6の実施例の情報処理装置の場合のコー
ディング例である。
FIG. 13 is a diagram showing a coding example of a procedure in which the CPU activates the processing of the DSP. (A) is a coding example in the case of a conventional information processing apparatus, (b) is a coding example in the case of the information processing apparatus of the first embodiment of the present invention, (c)
Is a coding example in the case of the information processing apparatus of the second and third embodiments of the present invention, (d) is a coding example in the case of the information processing apparatus of the fourth embodiment of the present invention, and (e) is the present invention. 13 is a coding example in the case of the information processing apparatus of the fifth and sixth embodiments of FIG.

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

111、161、511、561 メモリ 113、163、213、413、513 命令ポイン
タ 120、180、220、320、420、520、6
20 制御回路 170、515 命令デコーダ 140、240、340、540、640 CPU 190、590 DSP
111, 161, 511, 561 memory 113, 163, 213, 413, 513 instruction pointer 120, 180, 220, 320, 420, 520, 6
20 control circuit 170, 515 instruction decoder 140, 240, 340, 540, 640 CPU 190, 590 DSP

Claims (14)

【特許請求の範囲】[Claims] 【請求項1】 単一のチップ上に設けられた第1プロセ
ッサと第2プロセッサとを備えた情報処理装置であっ
て、 該第1プロセッサは、 複数の命令を格納する第1メモリと、 該第1メモリに格納された該複数の命令のうち読み出す
べき1つの命令の番地を指定する第1命令ポインタ手段
と、 該第1命令ポインタ手段によって指定された番地に対応
する命令を該第1メモリから読み出す第1読み出し手段
と、 該第1読み出し手段によって読み出された命令の実行を
制御する第1制御手段であって、該命令が単一の起動命
令である場合には、該第1命令ポインタ手段の動作を停
止又は継続させ、かつ、該起動命令を示す情報を該第2
プロセッサに送る第1制御手段とを備えており、 該第2プロセッサは、 複数の命令を格納する第2メモリと、 該第2メモリに格納された該複数の命令のうち読み出す
べき1つの命令の番地を指定する第2命令ポインタ手段
と、 該第2命令ポインタ手段によって指定された番地に対応
する命令を該第2メモリから読み出す第2読み出し手段
と、 該第2読み出し手段によって読み出された命令の実行を
制御する第2制御手段であって、該第1プロセッサから
該起動命令を示す情報を受け取り、該起動命令を示す情
報に応じて該第2命令ポインタ手段によって指定される
命令の番地を所定の番地に設定する第2制御手段とを備
えている情報処理装置。
1. An information processing apparatus comprising a first processor and a second processor provided on a single chip, wherein the first processor includes a first memory for storing a plurality of instructions, and First instruction pointer means for designating an address of one instruction to be read out of the plurality of instructions stored in the first memory, and an instruction corresponding to the address designated by the first instruction pointer means for the first memory. First read means for reading from the first read means and first control means for controlling the execution of the instruction read by the first read means, and if the instruction is a single start-up instruction, the first instruction The operation of the pointer means is stopped or continued, and the information indicating the start instruction is added to the second information.
A second memory for storing a plurality of instructions, and one instruction to be read out of the plurality of instructions stored in the second memory. Second instruction pointer means for designating an address, second reading means for reading an instruction corresponding to the address designated by the second instruction pointer means from the second memory, and instruction read by the second reading means A second control means for controlling execution of the instruction, receiving information indicating the activation instruction from the first processor, and determining an address of an instruction designated by the second instruction pointer means according to the information indicating the activation instruction. An information processing apparatus comprising: a second control unit that sets a predetermined address.
【請求項2】 前記第2制御手段は、前記第2読み出し
手段によって読み出された命令が単一の終了命令である
場合には、前記第2命令ポインタ手段の動作を停止さ
せ、かつ、該終了命令を示す情報を該第1プロセッサに
送り、 前記第1制御手段は、前記第2プロセッサから該終了命
令を示す情報を受け取り、該終了命令を示す情報に応じ
て前記第1命令ポインタ手段の動作を制御する、請求項
1に記載の情報処理装置。
2. The second control means stops the operation of the second instruction pointer means when the instruction read by the second reading means is a single end instruction, and Information indicating an end instruction is sent to the first processor, the first control means receives information indicating the end instruction from the second processor, and the first instruction pointer means of the first instruction pointer means receives the information indicating the end instruction. The information processing apparatus according to claim 1, which controls an operation.
【請求項3】 前記第1制御手段は、前記第1読み出し
手段によって読み出された前記命令が前記起動命令であ
る場合には、前記第1命令ポインタ手段の動作を停止さ
せ、かつ、前記終了命令を示す情報に応答して前記第1
命令ポインタ手段の動作を開始させる、請求項2に記載
の情報処理装置。
3. The first control means stops the operation of the first instruction pointer means when the instruction read by the first reading means is the activation instruction, and the end In response to the information indicating the command, the first
The information processing apparatus according to claim 2, wherein the operation of the instruction pointer means is started.
【請求項4】 前記第1制御手段は、前記第1読み出し
手段によって読み出された前記命令が前記起動命令であ
る場合には、前記第1命令ポインタ手段の動作を継続さ
せ、かつ、前記終了命令を示す情報に応じて前記第1命
令ポインタ手段によって指定される命令の番地を所定の
番地に設定する、請求項2に記載の情報処理装置。
4. The first control means continues the operation of the first instruction pointer means when the instruction read by the first reading means is the start-up instruction, and the end. The information processing apparatus according to claim 2, wherein the address of the instruction designated by the first instruction pointer means is set to a predetermined address according to information indicating the instruction.
【請求項5】 前記第1プロセッサは、前記第2プロセ
ッサから受け取った前記終了命令を示す情報を格納する
格納手段をさらに備えており、 前記第1制御手段は、前記第1読み出し手段によって読
み出された前記命令が単一の分岐命令である場合には、
該格納手段の内容に応じて前記第1命令ポインタ手段の
動作を制御する、請求項2に記載の情報処理装置。
5. The first processor further comprises storage means for storing information indicating the end instruction received from the second processor, and the first control means reads by the first reading means. If the executed instruction is a single branch instruction,
The information processing apparatus according to claim 2, wherein the operation of the first instruction pointer means is controlled according to the contents of the storage means.
【請求項6】 前記第1プロセッサは、前記第1制御手
段の動作を規定する情報を格納する格納手段をさらに備
えており、 前記第1制御手段は、該格納手段の内容に応じて前記第
1命令ポインタ手段の動作を制御する、請求項1に記載
の情報処理装置。
6. The first processor further comprises storage means for storing information defining the operation of the first control means, and the first control means is operable to store the first control means in accordance with the contents of the storage means. The information processing apparatus according to claim 1, which controls the operation of the 1-instruction pointer means.
【請求項7】 単一のチップ上に設けられた第1プロセ
ッサと第2プロセッサとを備えた情報処理装置であっ
て、 該第1プロセッサは、 複数の命令を格納する第1メモリであって、第1の範囲
の番地が割り当てられた第1メモリと、 該第1メモリに格納された該複数の命令のうち読み出す
べき1つの命令の番地を指定する第1命令ポインタ手段
と、 該第1命令ポインタ手段によって指定された番地に対応
する命令を該第1メモリから読み出す第1読み出し手段
と、 該第1読み出し手段によって読み出された命令の実行を
制御する第1制御手段とを備えており、 該第2プロセッサは、 複数の命令を格納する第2メモリであって、該第1の範
囲とは異なる第2の範囲の番地が割り当てられた第2メ
モリと、 該第2メモリに格納された該複数の命令のうち読み出す
べき1つの命令の番地を指定する第2命令ポインタ手段
と、 該第2命令ポインタ手段によって指定された番地に対応
する命令を該第2メモリから読み出す第2読み出し手段
と、 該第2読み出し手段によって読み出された命令の実行を
制御する第2制御手段とを備えており、 該第1制御手段は、該第1読み出し手段によって読み出
された命令が単一の起動命令である場合には、該起動命
令に対応する所定の番地が該第1の範囲の番地と該第2
の範囲の番地のいずれに含まれるかを判定し、該起動命
令に対応する該所定の番地が該第1の範囲の番地に含ま
れる場合には該第1命令ポインタ手段によって指定され
る命令の番地を該起動命令に対応する該所定の番地に設
定し、該起動命令に対応する該所定の番地が該第2の範
囲の番地に含まれる場合には該第1命令ポインタ手段の
動作を停止又は継続させ、かつ、該起動命令を示す情報
を該第2プロセッサに送り、 該第2制御手段は、該第1プロセッサから該起動命令を
示す情報を受け取り、該起動命令を示す情報に応じて該
第2命令ポインタ手段によって指定される命令の番地を
該起動命令に対応する該所定の番地に設定する情報処理
装置。
7. An information processing device comprising a first processor and a second processor provided on a single chip, wherein the first processor is a first memory for storing a plurality of instructions. A first memory to which addresses in a first range are assigned, first instruction pointer means for designating an address of one instruction to be read out of the plurality of instructions stored in the first memory, and the first memory It is provided with first reading means for reading the instruction corresponding to the address designated by the instruction pointer means from the first memory, and first control means for controlling the execution of the instruction read by the first reading means. The second processor is a second memory that stores a plurality of instructions, and a second memory to which an address in a second range different from the first range is assigned, and the second memory are stored in the second memory. He said Second instruction pointer means for designating an address of one instruction to be read out of the instruction, second reading means for reading out an instruction corresponding to the address designated by the second instruction pointer means from the second memory, Second control means for controlling the execution of the instruction read by the two reading means, and the instruction read by the first reading means is a single activation instruction in the first control means. In this case, the predetermined address corresponding to the start command is the address of the first range and the second address.
Which address is included in the range, and when the predetermined address corresponding to the start instruction is included in the address in the first range, the instruction designated by the first instruction pointer means The address is set to the predetermined address corresponding to the start instruction, and the operation of the first instruction pointer means is stopped when the predetermined address corresponding to the start instruction is included in the addresses in the second range. Alternatively, the information indicating the activation instruction is transmitted to the second processor, and the second control means receives the information indicating the activation instruction from the first processor, and in response to the information indicating the activation instruction. An information processing apparatus for setting an address of an instruction designated by the second instruction pointer means to the predetermined address corresponding to the activation instruction.
【請求項8】 前記第2制御手段は、前記第2読み出し
手段によって読み出された命令が単一の終了命令である
場合には、前記第2命令ポインタ手段の動作を停止さ
せ、かつ、該終了命令を示す情報を該第1プロセッサに
送り、 前記第1制御手段は、前記第2プロセッサから該終了命
令を示す情報を受け取り、該終了命令を示す情報に応じ
て前記第1命令ポインタ手段の動作を制御する、請求項
7に記載の情報処理装置。
8. The second control means stops the operation of the second instruction pointer means when the instruction read by the second reading means is a single end instruction, and Information indicating an end instruction is sent to the first processor, the first control means receives information indicating the end instruction from the second processor, and the first instruction pointer means of the first instruction pointer means receives the information indicating the end instruction. The information processing device according to claim 7, which controls an operation.
【請求項9】 前記第1制御手段は、前記第1読み出し
手段によって読み出された前記命令が前記起動命令であ
る場合には、前記第1命令ポインタ手段の動作を停止さ
せ、かつ、前記終了命令を示す情報に応答して前記第1
命令ポインタ手段の動作を開始させる、請求項8に記載
の情報処理装置。
9. The first control means stops the operation of the first instruction pointer means when the instruction read by the first reading means is the activation instruction, and the end operation. In response to the information indicating the command, the first
The information processing apparatus according to claim 8, wherein the operation of the instruction pointer means is started.
【請求項10】 前記第1制御手段は、前記第1読み出
し手段によって読み出された前記命令が前記起動命令で
ある場合には、前記第1命令ポインタ手段の動作を継続
させ、かつ、前記終了命令を示す情報に応じて前記第1
命令ポインタ手段によって指定される命令の番地を所定
の番地に設定する、請求項8に記載の情報処理装置。
10. The first control means continues the operation of the first instruction pointer means when the instruction read by the first reading means is the start-up instruction, and ends the operation. The first according to the information indicating the command
The information processing apparatus according to claim 8, wherein the address of the instruction designated by the instruction pointer means is set to a predetermined address.
【請求項11】 単一のチップ上に設けられた第1プロ
セッサと第2プロセッサとを備えた情報処理装置の制御
方法であって、 該第1プロセッサにおいて複数の命令のうち1つの命令
を提供するステップと、 該命令が単一の起動命令であるか否かを判定するステッ
プと、 該命令が該起動命令であると判定された場合には、該第
1プロセッサの動作を停止又は継続させ、かつ、該起動
命令を示す情報を該第2プロセッサに送るステップと、 該第1プロセッサから該起動命令を示す情報を受け取
り、該起動命令を示す情報に応じて該第2プロセッサの
動作を制御するステップとを包含する制御方法。
11. A method of controlling an information processing apparatus comprising a first processor and a second processor provided on a single chip, wherein the first processor provides one instruction out of a plurality of instructions. And a step of determining whether the instruction is a single activation instruction, and if the instruction is determined to be the activation instruction, stop or continue the operation of the first processor. And sending information indicating the activation instruction to the second processor, receiving information indicating the activation instruction from the first processor, and controlling the operation of the second processor according to the information indicating the activation instruction And a control method including a step of performing.
【請求項12】 前記制御方法は、 前記第2プロセッサにおいて複数の命令のうち1つの命
令を提供するステップと、 該命令が単一の終了命令であるか否かを判定するステッ
プと、 該命令が該終了命令であると判定された場合には、前記
第2プロセッサの動作を停止させ、かつ、該終了命令を
示す情報を前記第1プロセッサに送るステップと、 前記第2プロセッサから該終了命令を示す情報を受け取
り、該終了命令を示す情報に応じて前記第1プロセッサ
の動作を制御するステップとをさらに包含する、請求項
11に記載の制御方法。
12. The control method includes the steps of providing one instruction of a plurality of instructions in the second processor, determining whether the instruction is a single end instruction, and the instruction. Is determined to be the end instruction, the step of stopping the operation of the second processor and sending information indicating the end instruction to the first processor; and the end instruction from the second processor. 12. The control method according to claim 11, further comprising the step of receiving information indicating that the end instruction is received, and controlling the operation of the first processor according to the information indicating the end instruction.
【請求項13】 単一のチップ上に設けられた第1プロ
セッサと第2プロセッサとを備えた情報処理装置の制御
方法であって、 該第1プロセッサは、第1の範囲の番地が割り当てられ
た第1メモリを有しており、該第2プロセッサは、該第
1の範囲とは異なる第2の範囲の番地が割り当てられた
第2メモリを有しており、 該第1メモリに格納された複数の命令のうち1つの命令
を提供するステップと、 該命令が単一の起動命令であるか否かを判定するステッ
プと、 該命令が該起動命令であると判定された場合には、該起
動命令に対応する所定の番地が該第1の範囲の番地と該
第2の範囲の番地のいずれに含まれるかを判定するステ
ップと、 該起動命令に対応する所定の番地が該第1の範囲の番地
に含まれると判定された場合には、該起動命令に応じて
該第1プロセッサの動作を制御するステップと、 該起動命令に対応する所定の番地が該第2の範囲の番地
に含まれると判定された場合には、該第1プロセッサの
動作を停止又は継続させ、かつ、該起動命令を示す情報
を該第2プロセッサに送るステップと、 該第1プロセッサから該起動命令を示す情報を受け取
り、該起動命令を示す情報に応じて該第2プロセッサの
動作を制御するステップとを包含する制御方法。
13. A method of controlling an information processing apparatus comprising a first processor and a second processor provided on a single chip, wherein the first processor is assigned addresses in a first range. The second processor has a second memory to which addresses in a second range different from the first range are assigned, and the second processor is stored in the first memory. Providing one of the plurality of instructions, determining whether the instruction is a single start instruction, and determining that the instruction is the start instruction, A step of determining whether the predetermined address corresponding to the start command is included in the address of the first range or the address of the second range; and the predetermined address corresponding to the start command is set to the first address. If it is determined to be included in the address range of According to the step of controlling the operation of the first processor, and when it is determined that the predetermined address corresponding to the start instruction is included in the addresses of the second range, the operation of the first processor is performed. Stopping or continuing and sending information indicating the activation instruction to the second processor; receiving information indicating the activation instruction from the first processor, and the second processor according to the information indicating the activation instruction Controlling the operation of the.
【請求項14】 前記制御方法は、 前記第2メモリに格納された複数の命令のうち1つの命
令を提供するステップと、 該命令が単一の終了命令であるか否かを判定するステッ
プと、 該命令が該終了命令であると判定された場合には、前記
第2プロセッサの動作を停止させ、かつ、該終了命令を
示す情報を前記第1プロセッサに送るステップと、 前記第2プロセッサから該終了命令を示す情報を受け取
り、該終了命令を示す情報に応じて前記第1プロセッサ
の動作を制御するステップとをさらに包含する、請求項
13に記載の制御方法。
14. The control method comprises: providing one of a plurality of instructions stored in the second memory; determining whether the instruction is a single end instruction. If the instruction is determined to be the end instruction, the operation of the second processor is stopped, and information indicating the end instruction is sent to the first processor; The control method according to claim 13, further comprising the step of receiving information indicating the end instruction and controlling the operation of the first processor according to the information indicating the end instruction.
JP22333895A 1995-08-31 1995-08-31 Information processing apparatus and control method thereof Expired - Fee Related JP3147727B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22333895A JP3147727B2 (en) 1995-08-31 1995-08-31 Information processing apparatus and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22333895A JP3147727B2 (en) 1995-08-31 1995-08-31 Information processing apparatus and control method thereof

Publications (2)

Publication Number Publication Date
JPH0969049A true JPH0969049A (en) 1997-03-11
JP3147727B2 JP3147727B2 (en) 2001-03-19

Family

ID=16796600

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22333895A Expired - Fee Related JP3147727B2 (en) 1995-08-31 1995-08-31 Information processing apparatus and control method thereof

Country Status (1)

Country Link
JP (1) JP3147727B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017224342A (en) * 2012-09-27 2017-12-21 インテル・コーポレーション Processor and apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017224342A (en) * 2012-09-27 2017-12-21 インテル・コーポレーション Processor and apparatus
US10901748B2 (en) 2012-09-27 2021-01-26 Intel Corporation Processor having multiple cores, shared core extension logic, and shared core extension utilization instructions
US10963263B2 (en) 2012-09-27 2021-03-30 Intel Corporation Processor having multiple cores, shared core extension logic, and shared core extension utilization instructions
US11494194B2 (en) 2012-09-27 2022-11-08 Intel Corporation Processor having multiple cores, shared core extension logic, and shared core extension utilization instructions

Also Published As

Publication number Publication date
JP3147727B2 (en) 2001-03-19

Similar Documents

Publication Publication Date Title
JPH11306009A (en) Microcomputer equipped with buried flash memory having on-chip programming capability and method for programming data in buried flash memory
JPH0193837A (en) Microprocessor for debug
US5600807A (en) Programmable controller capable of updating a user program during operation by switching between user program memories
JPH02156334A (en) Information processor
JP3147727B2 (en) Information processing apparatus and control method thereof
JP3956305B2 (en) Nonvolatile semiconductor memory device and data processing device
JPH1011315A (en) In-circuit emulator device and in-circuit emulation method
KR100465610B1 (en) Microcomputer with embedded flash memory having on-chip programming capability and method of programming data into the embedded flash memory
KR20030007851A (en) Progammable controller
JP3097602B2 (en) Data processing device
JPH06324861A (en) System and method for controlling cpu
JP2000029508A (en) Programmable controller
JP2002312302A (en) Peripheral device
US5768554A (en) Central processing unit
JP2853647B2 (en) Function addition method to interpreter with debugger
JPH11259308A (en) Programmable controller
JPS5835648A (en) Program execution controlling system
JP2000137619A (en) Microcomputer
JPH1050086A (en) Microcomputer having eeprom and its rewriting method
JPS63157238A (en) Computer
JPH11316691A (en) Execution method for operating system and information processor using the method
JP3197045B2 (en) Extended central processing unit
JP2002132499A (en) Data processing apparatus and recording medium
JPH0793177A (en) Emulation chip and in-circuit emulator
JPH09160786A (en) Microprocessor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20001212

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

Free format text: PAYMENT UNTIL: 20080112

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090112

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090112

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100112

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110112

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110112

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120112

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees