JPH02281365A - Information processor - Google Patents
Information processorInfo
- Publication number
- JPH02281365A JPH02281365A JP1104052A JP10405289A JPH02281365A JP H02281365 A JPH02281365 A JP H02281365A JP 1104052 A JP1104052 A JP 1104052A JP 10405289 A JP10405289 A JP 10405289A JP H02281365 A JPH02281365 A JP H02281365A
- Authority
- JP
- Japan
- Prior art keywords
- processor
- instruction
- dedicated
- instructions
- program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000010365 information processing Effects 0.000 claims description 16
- 230000002194 synthesizing effect Effects 0.000 claims description 2
- 238000012545 processing Methods 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 11
- 230000015572 biosynthetic process Effects 0.000 description 9
- 238000003786 synthesis reaction Methods 0.000 description 9
- 238000013519 translation Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 3
- 230000003213 activating effect Effects 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
Landscapes
- Multi Processors (AREA)
Abstract
Description
【発明の詳細な説明】
〈産業上の利用分野〉
本発明は、第1のプロセッサと第2のプロセッサとがプ
ログラム・メモリに格納されている翻訳型プログラム命
令に従って交互に動作する情報処理装置に関し、特に、
第1のプロセッサと第2のプロセッサの切り換え方式を
改善するものである。DETAILED DESCRIPTION OF THE INVENTION <Field of Industrial Application> The present invention relates to an information processing device in which a first processor and a second processor operate alternately according to translated program instructions stored in a program memory. ,especially,
This improves the switching method between the first processor and the second processor.
〈従来の技術〉
第1のプロセッサと第2のプロセッサが1個のプログラ
ム・メモリを交互に読み出して動作するような装置の例
を第7図に表わす。<Prior Art> FIG. 7 shows an example of an apparatus in which a first processor and a second processor operate by alternately reading one program memory.
この図に示す装置は、第1のプロセッサ1として一般的
な汎用プロセッサ(例えば16ピツト・マイクロプロセ
ッサeaooo等)と、第2のプロセッサ2として数値
演算または論理演算等を実行する専用プロセッサ(例え
ば68000フアミリー等)が情報バスbを介してプロ
グラム・メモリ3に接続される。The device shown in this figure includes a general-purpose processor (e.g., 16-pit microprocessor eaooo) as the first processor 1, and a dedicated processor (e.g., 68,000 microprocessor, etc.) that executes numerical or logical operations as the second processor 2. family, etc.) are connected to the program memory 3 via an information bus b.
プログラム・メモリ3には、通常、汎用プロセッサ1用
にプログラム命令としてマシン語命令が格納されており
、汎用プロセッサ1は、このマシン語命令を順次読み出
して処理を実行し、読み出した命令が専用プロセッサ2
にて実行すべき命令の時は専用プロセッサ2に動作指示
及びデータ準備等を行い、以後、プログラム・メモリ3
から読み出した命令を逐次専用プロセッサ2に供給し、
制御実行権を与える。The program memory 3 normally stores machine language instructions as program instructions for the general-purpose processor 1, and the general-purpose processor 1 sequentially reads these machine language instructions and executes the processing, and the read instructions are transferred to the dedicated processor. 2
When an instruction is to be executed in the program memory 3, it gives operation instructions and data preparation to the dedicated processor 2.
sequentially supplies the instructions read from the dedicated processor 2,
Grant control execution rights.
このような従来の情報処理装置では、汎用プロセッサ1
と専用プロセッサ2とを組み合わせて使用するため、プ
ログラム・メモリ3に格納するマシン語命令を予めプロ
セッサの設計段階で汎用プロセッサ1用、専用プロセッ
サ2用に振り分けて設定しなければならないという設計
上の煩わしさがあった。In such a conventional information processing device, a general-purpose processor 1
and dedicated processor 2, the design problem is that the machine language instructions to be stored in program memory 3 must be distributed and set in advance for general-purpose processor 1 and dedicated processor 2 at the processor design stage. It was annoying.
一方、最近では、ベーシック・インタ1す夕型命令等が
しばしば利用され、プログラム・メモリ3に汎用プロセ
ッサ1固有のマシン語命令とは独立に設計されたインタ
プリタ型命令(1駅型のプログラム命令)が格納される
ことが多くなってきた。On the other hand, recently, basic interpreter type instructions are often used, and interpreted type instructions (single station type program instructions) are stored in the program memory 3 independently of the machine language instructions specific to the general-purpose processor 1. are increasingly being stored.
このようなインタプリタ型命令を使用する装置にあって
は、汎用プロセッサ1で実行する命令の池に専用プロセ
ッサ2で実行する!用命令を自由に設定することができ
、汎用プロセッサ1の設計段階で汎用プロセッサ1用命
令、専用プロセッサ2用命令と振り分けて設定する必要
はなく、プログラム・メモリ3から読み出した命令の内
容により汎用プロセッサ1または専用プロセッサ2を指
定して実行するので、実用上効率が良く、また、専用プ
ロセッサ2に実行させる命令を拡張するご仁もできる。In a device that uses such interpreted instructions, a pool of instructions executed by the general-purpose processor 1 is executed by the dedicated processor 2! There is no need to set instructions for general-purpose processor 1 and instructions for dedicated processor 2 separately at the design stage of general-purpose processor 1. Since the processor 1 or the dedicated processor 2 is designated for execution, it is efficient in practice, and the instructions to be executed by the dedicated processor 2 can be expanded.
〈発明が解決しようとする課題〉
しかしながら、マシン語命令を使用する場合及びインタ
プリタ型命令を使用する場合で専用プロセッサが動作す
る際、汎用プロセッサ1が逐次プログラム・メモリ3か
らプログラム命令を読み出して専用プロセッサに供給す
るため、プログラム転送の無駄時間が発生するという問
題があっ゛た。<Problems to be Solved by the Invention> However, when a dedicated processor operates using machine language instructions or interpreted instructions, the general-purpose processor 1 sequentially reads program instructions from the program memory 3 and executes the dedicated processor. There was a problem in that there was wasted time in transferring the program to supply it to the processor.
また、インタプリタ型命令を使用する場合には、汎用プ
ロセッサ1にて読み出した命令を逐次翻訳しなければな
らず、特に、汎用プロセッサと専用プロセッサとが頻繁
に切り換わるような装置では余計な時間が発生していた
。In addition, when using interpreted instructions, the instructions read by the general-purpose processor 1 must be translated one by one, which takes extra time, especially in devices where the general-purpose processor and dedicated processor are frequently switched. It was occurring.
本発明は、以上のような問題を解決するためになされた
ものであり、汎用プロセッサと専用プロセッサとの切り
換え操作を簡易にし、かつ全体の処理時間の高速化を図
ることを目的とする。The present invention has been made to solve the above-mentioned problems, and aims to simplify the switching operation between a general-purpose processor and a dedicated processor, and to speed up the overall processing time.
く課題を解決するための手段〉 以上の課題を解決した本発明は、次の通りである。Means to solve problems〉 The present invention that solves the above problems is as follows.
(1)第1のプロセッサと、第2のプロセッサと、翻訳
型プログラム命令及び専用命令が格納されるプログラム
・メモリとを情報バスによって接続するとともに、前記
第1のプロセッサと前記第2のプロセッサとの間に双方
向に信号伝送する制御線を設け、実行中の一方のプロセ
ッサが他方のプロセッサが実行すべきプログラム命令と
判、断した際に、前記制御線を介して、他方のプロセッ
サに実行すべき前記プログラム・メモリのアドレスを遁
知するとともに起動をかけ、前記専用命令を実行する側
のプロセッサが前記プログラム・メモリから直接前記専
用命令を読み出して実行することを特徴とする情報処理
装置。(1) A first processor, a second processor, and a program memory in which translated program instructions and dedicated instructions are stored are connected by an information bus, and the first processor and the second processor are connected to each other by an information bus. A control line is provided for bidirectional signal transmission between the two processors, and when one of the executing processors determines that the program command should be executed by the other processor, the command is sent to the other processor via the control line. An information processing device characterized in that the processor that executes the dedicated instruction reads and executes the dedicated instruction directly from the program memory by suddenly knowing the address of the program memory to be executed and activating the program memory.
(2)第1のプロセッサが第1の情報バスを介して翻訳
型プログラム命令及び専用命令が格納されるプログラム
・メモリに接続され、第2のプロセッサが第2の情報バ
スを介して前記第1のプロセッサに接続され、前記第1
のプロセッサは自分が動作する際は前記プログラム・メ
モリからプログラム命令を読み出してこれを実行すると
ともに前記第2のプロセッサへ擬似命令を与え、前記第
1のプロセッサにて前記第2のプロセッサが実行すべき
プログラム命令と判断した際に、このプログラム命令を
前記擬似命令に代えて供給することを特徴とする情報処
理装置。(2) the first processor is connected via a first information bus to a program memory in which translated program instructions and dedicated instructions are stored; the first processor;
When the processor operates, it reads a program instruction from the program memory and executes it, and also gives a pseudo-instruction to the second processor, which is executed by the second processor in the first processor. An information processing apparatus characterized in that when determining that a program instruction is to be executed, the program instruction is supplied in place of the pseudo-instruction.
(3)第1のプロセッサと、この第1のプロセッサにて
実行するプログラム命令及び第2のプロセッサに実行を
指示する命令を格納する第1のプログラム・メモリ領域
と、第2のプロセッサと、この第2のプロセッサにて実
行するプログラム命令及び前記第1のプロセッサに実行
を指示する命令を格納する第2のプログラム・メモリ領
域と、前記第2のプロセッサに実行を指示する命令及び
前記第1のプロセッサに実行を指示する命令を入力して
一方のプロセッサに動作開始を指示し他方のプロセッサ
に動作停止を指示する信号合成手段とからなる情報処理
装置。(3) a first processor, a first program memory area that stores program instructions to be executed by the first processor and instructions to instruct a second processor to execute; a second program memory area that stores program instructions to be executed by a second processor and instructions to instruct the first processor to execute; An information processing device comprising a signal synthesizing means that inputs an instruction to the processors to execute an instruction, instructs one processor to start operating, and instructs the other processor to stop operating.
く作用〉
(1)専用命令を実行すべきと判断した際は、専用命令
を実行するプロセッサに情報バスとは別に設けた制御線
を用いてプログラム・メモリのアドレスを与えるととも
に起動をかけ、専用命令は専用命令を実行するプロセッ
サにより他方のプロセッサを介さずにプログラム・メモ
リより直接専用命令を読み出して実行する。(1) When it is determined that a dedicated instruction should be executed, the program memory address is given to the processor executing the dedicated instruction using a control line provided separately from the information bus, and the processor is started up. The processor that executes the dedicated instructions reads the dedicated instructions directly from the program memory and executes them without going through the other processor.
(2)第1のプロセッサ実行中は、第2のプロセッサへ
は擬似命令を供給し、第2のプロセッサが実行すべき命
令と判断した際は、プログラム・メモリから読み出した
命令を第2のプロセッサへ供給する。(2) While the first processor is executing, a pseudo-instruction is supplied to the second processor, and when the second processor determines that the instruction is to be executed, the instruction read from the program memory is sent to the second processor. supply to
(3)一方のプロセッサが自分のプログラム・メモリ領
域を読み出して実行中に他方のプロセッサに動作指示す
る命令を読み出すと、信号合成手段はこの命令に従って
一方のプロセッサに動作停止を指示し、他方のプロセッ
サに動作開始を指示する。(3) When one processor reads its own program memory area and reads out an instruction that instructs the other processor to operate during execution, the signal synthesis means instructs one processor to stop operating according to this instruction, and the other processor Instructs the processor to start operating.
〈実施例〉
第1図は本発明の情報処理装置の実施例の構成図である
。<Embodiment> FIG. 1 is a block diagram of an embodiment of an information processing apparatus of the present invention.
この実施例の特徴は、汎用プロセッサ1と専用プロセッ
サ2とを情報バスbとは別に制御線りを設置して相互に
信号授受できるようにしたことである。A feature of this embodiment is that a control line is installed between the general-purpose processor 1 and the dedicated processor 2, separate from the information bus b, so that they can exchange signals with each other.
この制御線を用いて2個のプロセッサ1.2は、相互に
、現在のプログラム・メモリ3の読み出しアドレス、起
動信号を通知し合う。Using this control line, the two processors 1.2 notify each other of the current read address of the program memory 3 and the activation signal.
尚、プログラム・メモリ3には前述したインタプリタ型
命令を格納するとともに、専用プロセッサ2用に専用命
令を格納する。Note that the program memory 3 stores the above-mentioned interpreted instructions and also stores dedicated instructions for the dedicated processor 2.
このような装置の動作を第2図のプログラム・メモリ3
の内部構成図を用いて説明する。The operation of such a device is described in the program memory 3 in Fig. 2.
This will be explained using an internal configuration diagram.
この図で、汎用命令1〜4は汎用プロセッサ用命令(イ
ンタプリタ型命令)、専用命令1〜4は専用プロセッサ
2用の専用命令である。In this figure, general-purpose instructions 1 to 4 are general-purpose processor instructions (interpreter-type instructions), and special-purpose instructions 1 to 4 are special-purpose instructions for a special-purpose processor 2.
汎用プロセッサ1は、矢印Aに従ってプログラム・メモ
リ3から順次汎用命令1、汎用命令2を読み出して翻訳
、実行する。General-purpose processor 1 sequentially reads general-purpose instruction 1 and general-purpose instruction 2 from program memory 3 according to arrow A, translates and executes them.
次に、汎用プロセッサ1はアドレスX1の専用命令1を
読み出しく矢印B)、これを翻訳して専用プロセッサ用
命令であると判断すると、制御線りを介して専用プロセ
ッサ2側に、プログラム・メモリ3における専用命令1
のアドレスX1を送信するとともに専用プロセッサ2を
起動する。Next, the general-purpose processor 1 reads the dedicated instruction 1 at the address Dedicated instruction 1 in 3
address X1, and activates the dedicated processor 2.
これによって専用プロセッサ2は情報バスbの使用権を
取得し、汎用プロセッサ1から受は取ったプログラム・
メモリ3のアドレスx1に従って矢印Cのように専用命
令1,2.3.4を実行する。As a result, the dedicated processor 2 acquires the right to use the information bus b, and receives the program from the general-purpose processor 1.
Dedicated instructions 1, 2, 3, 4 are executed as indicated by arrow C according to address x1 of memory 3.
この時専用プロセッサ2は、従来装置のように汎用プロ
セッサ1を介して専用命令を受は取るのではなく、自分
で直接プログラム・メモリ3から専用命令1.2.3.
4を読み出す。At this time, the dedicated processor 2 does not receive and receive the dedicated instructions via the general-purpose processor 1 as in the conventional device, but directly receives the dedicated instructions 1.2.3.
Read out 4.
また、専用命令は専用プロセッサ2の固有命令であり、
実行の際、専用プロセッサ2は翻訳動作を行わない。Further, the dedicated instruction is a specific instruction of the dedicated processor 2,
During execution, the dedicated processor 2 does not perform any translation operations.
さて、専用プロセッサ2がアドレスx2の汎用命令3を
読み出し、汎用プロセッサ1で実行すべき汎用命令であ
ると判断すると(矢印D)、今度は専用プロセッサ2が
制御線りを介して汎用プロセッサ1側に、プログラム・
メモリ3における汎用命令1のアドレスX2を送信する
とともに汎用プロセッサ1を起動する。Now, when the special-purpose processor 2 reads the general-purpose instruction 3 at address x2 and determines that it is a general-purpose instruction that should be executed by the general-purpose processor 1 (arrow D), the special-purpose processor 2 then transfers the general-purpose instruction 3 to the general-purpose processor 1 via the control line. The program
The address X2 of the general-purpose instruction 1 in the memory 3 is transmitted, and the general-purpose processor 1 is activated.
これにより、汎用プロセッサ1は、情報バスbの使用権
を取得した後、アドレスx2からプログラム・メモリ3
を読み出して動作を実行する(矢印E)。As a result, after acquiring the right to use the information bus b, the general-purpose processor 1 moves from the address x2 to the program memory 3.
is read and the operation is executed (arrow E).
以上のようにして、汎用プロセッサ1、専用プロセッサ
2はプログラム・メモリ3のアドレスと起動信号を制御
線りを介して送受信して交互に動作し、特に専用プロセ
ッサ2は汎用プロセッサ1を介さないでプログラム・メ
モリ3から直接命令を読み出すのでその分高速処理が可
能となる。As described above, the general-purpose processor 1 and the special-purpose processor 2 transmit and receive the address of the program memory 3 and the start signal via the control line, and operate alternately. Since instructions are read directly from the program memory 3, high-speed processing is possible.
また、前述したように、専用プロセッサ2は専用命令実
行の際に翻訳動作を必要とせず、この時間も省略するこ
とができる。Further, as described above, the dedicated processor 2 does not require a translation operation when executing a dedicated instruction, and this time can also be omitted.
第3図は本発明の情報処理装置の他の実施例である。FIG. 3 shows another embodiment of the information processing apparatus of the present invention.
この実施例では、汎用プロセッサ1を第1の情報バスb
1を用いて専用プロセッサ2に接続し、専用プロセッサ
2を第2の情報バスb2を用いてプログラム・メモリ3
に接続する。In this embodiment, the general-purpose processor 1 is connected to the first information bus b.
1 to the dedicated processor 2, and the dedicated processor 2 to the program memory 3 using the second information bus b2.
Connect to.
そして、専用プロセッサ2内に、プログラム・メモリ3
側の情報バスb2に接続するプログラム命令取込回路2
1を設置し、汎用プロセッサ1側の情報バスb1に接続
するプログラム命令続出回路22を設置し、汎用プロセ
ッサ1に対して“実行せず”を意味する擬似命令を保持
する擬似命令発生回路23を設置する。また、プログラ
ム命令続出回路22には、プログラム命令取込回路21
または擬似命令発生回路23を選択する切換回路24を
設置する。A program memory 3 is stored in the dedicated processor 2.
Program instruction acquisition circuit 2 connected to side information bus b2
1, a program instruction successive generation circuit 22 connected to the information bus b1 on the general-purpose processor 1 side, and a pseudo-instruction generation circuit 23 that holds a pseudo-instruction meaning "not executed" for the general-purpose processor 1. Install. The program instruction successive output circuit 22 also includes a program instruction acquisition circuit 21.
Alternatively, a switching circuit 24 for selecting the pseudo-instruction generation circuit 23 is installed.
この実施例にあっても、第1図に示した実施例と同様に
、プログラム・メモリ3にはインタ1す夕型命令を格納
するとともに、専用プロセッサ2用に専用命令を格納す
る。In this embodiment, as in the embodiment shown in FIG. 1, the program memory 3 stores interface type instructions and also stores dedicated instructions for the dedicated processor 2.
このように構成した本発明装置の動作を第4図(a)、
(b)を用いて説明する。The operation of the device of the present invention configured in this way is shown in FIG. 4(a).
This will be explained using (b).
第4図(a)は汎用プロセッサ1が命令を実行する場合
である。FIG. 4(a) shows a case where the general-purpose processor 1 executes an instruction.
専用プロセッサ2は、アドレスY1で読み出した命令l
が汎用プロセッサ1用であると判断し、専用プロセッサ
2内で切換回路24をプログラム命令取込回路21側に
切り換える。そして、読み出された命令1は専用プロセ
ッサ2を通過してプログラム命令続出回路22より汎用
プロセッサ1に与えられ、汎用プロセッサ1は動作する
。The dedicated processor 2 reads the instruction l read at address Y1.
is determined to be for the general-purpose processor 1, and switches the switching circuit 24 in the dedicated processor 2 to the program instruction import circuit 21 side. Then, the read instruction 1 passes through the dedicated processor 2 and is given to the general-purpose processor 1 by the program instruction successive output circuit 22, and the general-purpose processor 1 operates.
尚、汎用プロセッサ1動作中でもプログラム・メモリ3
に対する読み出しアドレスは専用プロセッサ2から発生
する。Note that even when the general-purpose processor 1 is operating, the program memory 3
The read address for is generated from the dedicated processor 2.
第4図(b)は専用プロセッサ2が命令を実行する場合
である。FIG. 4(b) shows a case where the dedicated processor 2 executes an instruction.
専用プロセッサ2は、アドレスY2で読み出した命令2
が自分で処理すべき命令であると判断し、切換回路24
を用いて擬似命令発生回路23とプログラム命令取込回
路22とを接続する。これにより、専用プロセッサ2は
自分で発生する読み出しアドレスに従ってプログラム・
メモリ3から命令を読み出して実行し、汎用プロセッサ
1は専用プロセッサ2から与えられる“実行せず”を意
味する擬似命令Nにより何もしない。Dedicated processor 2 reads instruction 2 at address Y2.
is a command that should be processed by itself, and the switching circuit 24
The pseudo-instruction generation circuit 23 and the program instruction acquisition circuit 22 are connected using the. As a result, the dedicated processor 2 executes the program according to the read address generated by itself.
An instruction is read from the memory 3 and executed, and the general-purpose processor 1 does nothing due to a pseudo-instruction N meaning "do not execute" given from the special-purpose processor 2.
このように、プログラム・メモリ3から読み出された命
令はその用途によって確実に汎用プロセッサ1または専
用プロセッサ2に与えられ、汎用プロセッサ1と専用プ
ロセッサ2との切り換えが無駄時間なく円滑に行われる
。In this way, the instructions read from the program memory 3 are reliably given to the general-purpose processor 1 or the special-purpose processor 2 depending on their purpose, and switching between the general-purpose processor 1 and the special-purpose processor 2 is performed smoothly without wasting time.
尚、第3図に示した例では、専用プロセッサ2を汎用プ
ロセッサ1とプログラム・メモリ3との中間に設置した
が、汎用プロセッサ1内にプログラム命令取込回路21
、プログラム命令続出回路22、擬似命令発生回路23
、切換回路24に相当する回路要素を設け、汎用プロセ
ッサ1を中間に設置するような構成でも同等である。In the example shown in FIG. 3, the dedicated processor 2 is installed between the general-purpose processor 1 and the program memory 3;
, program instruction successive generation circuit 22, pseudo-instruction generation circuit 23
, a configuration in which a circuit element corresponding to the switching circuit 24 is provided and the general-purpose processor 1 is placed in the middle is also equivalent.
また、この例では、中間部に設置したプロセッサがプロ
グラム・メモリ3に対するアドレスを発生するため、命
令を実行するプロセッサが切り換わってもプログラムの
進行状況を中間部のプロセッサが常時把握し、プログラ
ム・メモリ3に対するアドレスを送受信する時間を省く
ことができる。In addition, in this example, the processor installed in the intermediate section generates the address for the program memory 3, so even if the processor that executes the instruction is switched, the processor in the intermediate section always knows the progress status of the program, and the processor in the intermediate section always knows the progress status of the program. The time required to send and receive addresses to and from the memory 3 can be saved.
一方、第5図は第3図に示した実施例において、汎用プ
ロセッサ1@で発生するアドレスをプログラム・メモリ
3側へ与えることができるようにしたものである。On the other hand, FIG. 5 shows the embodiment shown in FIG. 3 in which the address generated by the general-purpose processor 1@ can be given to the program memory 3 side.
この例では、専用プロセッサ2内に、情報バスbl側に
汎用プロセッサ1で発生するアドレスを取り込むアドレ
ス読込回路25と、情報バスb2側にプログラム・メモ
リ3の読み出しアドレスを与えるアドレス送出回路26
と、切換回路27とを設ける。更に、切換回路27は、
アドレス送出口路26と、アドレス読込回路25または
専用プロセッサ2内部のアドレス発生回路28とを接続
する。In this example, in the dedicated processor 2, there is an address reading circuit 25 that takes in an address generated by the general-purpose processor 1 on the information bus bl side, and an address sending circuit 26 that gives a read address of the program memory 3 on the information bus b2 side.
and a switching circuit 27. Furthermore, the switching circuit 27
The address output path 26 and the address reading circuit 25 or the address generating circuit 28 inside the dedicated processor 2 are connected.
この実施例の動作を第6図(a)、(b)に従って説明
する。The operation of this embodiment will be explained with reference to FIGS. 6(a) and 6(b).
第6図(a)は、汎用プロセッサ1が命令を実行する場
合であり、専用プロセッサ2内の切換回路24はプログ
ラム命令取込回路21に接続されるとともに、切換回路
27はアドレス読込回路25に接続される。そして、汎
用プロセッサ1で発生するアドレスZ1は専用プロセッ
サ2を介してプログラム・メモリ3へ与えられ、対応す
る命令1が専用プロセッサ2を通過して汎用プロセッサ
1に与えられる。FIG. 6(a) shows a case where the general-purpose processor 1 executes an instruction, and the switching circuit 24 in the dedicated processor 2 is connected to the program instruction acquisition circuit 21, and the switching circuit 27 is connected to the address reading circuit 25. Connected. Then, the address Z1 generated by the general-purpose processor 1 is given to the program memory 3 via the special-purpose processor 2, and the corresponding instruction 1 is given to the general-purpose processor 1 through the special-purpose processor 2.
第6図(b)は、専用プロセッサ2が命令を実行する場
合であり、専用プロセッサ2内の切換回路24は擬似命
令発生回路23に接続されるとともに、切換回路27は
アドレス発生回路28に接続される。そして、専用プロ
セッサ2は内部で発生するアドレスY3により命令2を
読み出して実行し、汎用プロセッサ1は専用プロセッサ
2から擬似命令Nを読み出して何も実行しない。FIG. 6(b) shows a case where the dedicated processor 2 executes an instruction, and the switching circuit 24 in the dedicated processor 2 is connected to the pseudo-instruction generation circuit 23, and the switching circuit 27 is connected to the address generation circuit 28. be done. Then, the special-purpose processor 2 reads the instruction 2 using the internally generated address Y3 and executes it, and the general-purpose processor 1 reads the pseudo-instruction N from the special-purpose processor 2 and does not execute anything.
このような第5図に示した例は、特に、汎用プロセッサ
1がプログラム・メモリ3の任意の位置をアクセスでき
、ジャンプ命令等を実行するのに有利である。The example shown in FIG. 5 is particularly advantageous in that the general-purpose processor 1 can access any location in the program memory 3 and execute a jump instruction or the like.
以上のようにして、第3図または第5図に示した実施例
にあっても、汎用プロセッサ1、専用プロセッサ2はプ
ログラム・メモリ3から読み出された命令に従って交互
に動作し、特に専用プロセッサ2はプログラム・メモリ
3から直接命令を読み出すのでその分高速処理が可能と
なる。As described above, even in the embodiment shown in FIG. 3 or FIG. 5, the general-purpose processor 1 and the special-purpose processor 2 operate alternately according to instructions read from the program memory 3. 2 reads instructions directly from the program memory 3, which allows for faster processing.
また、専用命令は専用プロセッサ2の固有命令であるの
で、専用プロセッサ2による実行の際に翻訳動作を必要
とせず、この時間も省略することができる。Further, since the dedicated instruction is a unique instruction of the dedicated processor 2, no translation operation is required when the dedicated processor 2 executes it, and this time can also be omitted.
第7図は本発明の情報処理装置の他の実施例である。FIG. 7 shows another embodiment of the information processing apparatus of the present invention.
この実施例では、汎用プロセッサ1に、情報バスb1を
介して汎用命令のみが格納される第1のプログラム・メ
モリ領域31を接続し、専用プロセッサ2に情報バスb
2を介して専用命令のみが格納される第2のプログラム
・メモリ領域32を接続する。また、情報バスb1に第
1の出力ポート41を接続し、情報バスb2に第2の出
力ポート42を接続する。出力ポート41及び出力ポー
ト42の出力は信号合成部43に与えられ、信号合成部
43は汎用プロセッサ1及び専用プロセッサ2に動作開
始または動作停止を指示する。In this embodiment, a first program memory area 31 in which only general-purpose instructions are stored is connected to a general-purpose processor 1 via an information bus b1, and a first program memory area 31 in which only general-purpose instructions are stored is connected to a general-purpose processor 2 via an information bus b1.
2 to connect a second program memory area 32 in which only dedicated instructions are stored. Further, a first output port 41 is connected to the information bus b1, and a second output port 42 is connected to the information bus b2. The outputs of the output port 41 and the output port 42 are given to a signal synthesis section 43, and the signal synthesis section 43 instructs the general-purpose processor 1 and the special-purpose processor 2 to start or stop operation.
プログラム・メモリ領域31.32の内容は第8図(a
)、(b)に示す通りである。The contents of the program memory areas 31 and 32 are shown in Figure 8 (a).
) and (b).
プログラム・メモリ領域31には、汎用命令1〜5と専
用プロセッサ2に動作開始を指示する汎用命令OUTを
格納し、プログラム・メモリ領域32には、専用命令1
〜4と汎用プロセッサ1に動作開始を指示する専用命令
0tlTを格納する。The program memory area 31 stores general-purpose instructions 1 to 5 and the general-purpose instruction OUT that instructs the special-purpose processor 2 to start operation, and the program memory area 32 stores the special-purpose instructions 1 to 5.
.about.4 and a dedicated instruction 0tlT instructing the general-purpose processor 1 to start operation.
このような実施例の動作を次に説明する。The operation of such an embodiment will be explained next.
はじめに、汎用プロセッサ1が動作している場合を想定
する。First, assume that the general-purpose processor 1 is operating.
このとき、信号合成部43は汎用プロセッサ1に動作指
示をし、専用プロセッサ2には動作停止を指示している
。At this time, the signal synthesis unit 43 instructs the general-purpose processor 1 to operate, and instructs the dedicated processor 2 to stop operating.
汎用プロセッサ1は順次プログラム・メモリ領域31か
ら汎用命令1〜2を読み出して実行し、次に専用プロセ
ッサ2に動作を指示する汎用命令OUTを読み出すと、
これを出力ポート41に送出する。The general-purpose processor 1 sequentially reads general-purpose instructions 1 and 2 from the program memory area 31 and executes them, and then reads the general-purpose instruction OUT that instructs the dedicated processor 2 to operate.
This is sent to the output port 41.
信号合成部43は出力ポート41を読み出して汎用命令
OUTを認識すると、汎用プロセッサ1に動作停止指示
を与え、専用プロセッサ2に動作開始指示を与える。When the signal synthesis unit 43 reads the output port 41 and recognizes the general-purpose instruction OUT, it gives an instruction to the general-purpose processor 1 to stop operation, and gives an instruction to the special-purpose processor 2 to start operation.
これにより、今度は専用プロセッサ2が動作を開始し、
プログラム・メモリ領域32から専用命令を読み出して
実行する。専用命令2を実行し、次に専用命令OUTを
読み出すと、これを出力ポート42に送出する。As a result, the dedicated processor 2 starts operating,
A dedicated instruction is read from the program memory area 32 and executed. When the dedicated instruction 2 is executed and then the dedicated instruction OUT is read, it is sent to the output port 42.
信号合成部43は出力ポート42を読み出し、専用命令
OUTを認識すると、専用プロセッサ2に動作停止を指
示し、汎用プロセッサ1に動作開始を指示する。When the signal synthesis unit 43 reads the output port 42 and recognizes the dedicated instruction OUT, it instructs the dedicated processor 2 to stop its operation and instructs the general-purpose processor 1 to start its operation.
これにより、再び汎用プロセッサ1が動作を開始する。As a result, the general-purpose processor 1 starts operating again.
このように、汎用プロセッサ1と専用プロセッサ2との
切り換えが信号合成部43により円滑に行われる。In this way, switching between the general-purpose processor 1 and the dedicated processor 2 is smoothly performed by the signal synthesis section 43.
第9図(a)、(b)は、第7図に示した実施例にほぼ
同様で、1つの情報バスbに、出力ボート41.42、
信号合成部43を接続した例である。9(a) and 9(b) are almost the same as the embodiment shown in FIG. 7, and one information bus b includes output ports 41, 42,
This is an example in which a signal synthesis section 43 is connected.
この例において、プログラム・メモリ3の内容は、第9
図(b)のように、1個のプログラム・メモリ3内に、
汎用命令のみを格納する領域A1、専用命令のみを格納
する領域A2を予め設定する。In this example, the contents of program memory 3 are
As shown in figure (b), in one program memory 3,
An area A1 for storing only general-purpose instructions and an area A2 for storing only special-purpose instructions are set in advance.
この実施例の動作は第7図に示した装置と全く同様であ
る。The operation of this embodiment is exactly the same as the apparatus shown in FIG.
以上のようにして、第7図または第9図に示しノな実施
例にあっても、汎用プロセッサ1、専用プロセッサ2は
、プログラム・メモリ領域31.32またはプログラム
・メモリ3内の領域A1゜A2から読み出された命令に
従って交互に動作し、特に専用プロセッサ2は直接専用
命令を読み出すのでその分高速処理が可能となる。As described above, even in the embodiment shown in FIG. 7 or FIG. The dedicated processor 2 operates alternately in accordance with the instructions read from A2, and in particular, the dedicated processor 2 directly reads the dedicated instructions, which allows for faster processing.
また、専用命令は専用プロセッサ2の固有命令であるの
で、専用プロセッサ2による実行の際に翻訳動作を必要
とせず、この時間も省略することができる。Further, since the dedicated instruction is a unique instruction of the dedicated processor 2, no translation operation is required when the dedicated processor 2 executes it, and this time can also be omitted.
〈発明の効果〉
以上述べたように、本発明の情報処理装置によれば、汎
用プロセッサと専用プロセッサとの切り換え操作を簡易
にし、全体の処理時間の高速化を実現することができる
。<Effects of the Invention> As described above, according to the information processing apparatus of the present invention, it is possible to simplify the switching operation between a general-purpose processor and a dedicated processor, and to realize faster overall processing time.
第1図は本発明の情報処理装置の実施例の構成図、第2
図は第1図に示した装置の動作を説明するためプログラ
ム・メモリ3の内容を表わす図、第3図は本発明の情報
処理装置の他の実施例の構成図、第4図(a)、(b)
は第3図に示した装置の動作を表わす図、第5図は第3
図に示した実施例の構成の一部を変更した装置の構成図
、第6図(a)、(b)は第5図に示した装置の動作を
表わす図、第7図は本発明の情報処理装置の他の実施例
の構成図、第8図(a)、(b)は第7図に示した装置
における第1.第2のプログラム・メモリ領域31.3
2の内容を表わす図、第9図(a)、(b)は第7図に
示した実施例の構成の一部を変更した装置の構成図、第
10図は従来の情報処理装置の構成図である。
1・・・汎用プロセッサ、2・・・専用プロセッサ、2
1・・・プログラム命令取込回路、22・・・プログラ
ム命令続出回路、23・・・擬似命令発生回路、24・
・・切換回路、25・・・アドレス読込回路、26・・
・アドレス退出回路、27・・・切換回路、28・・・
アドレス発生回路、3・・・プログラム・メモリ、31
・・・第1のプログラム・メモリ領域、32・・・第2
のプログラム・メモリ領域、41・・・第1の出力ポー
ト、42・・・第2の出力ポート、43・・・信号合成
部、b・・1情報バス、bl・・・第1の情報バス、b
2・・・第2の情報バス、L・・・制御線。
第
図
−2図
第
図
第4図
(a)FIG. 1 is a configuration diagram of an embodiment of the information processing device of the present invention, and FIG.
The figure shows the contents of the program memory 3 to explain the operation of the device shown in FIG. 1, FIG. 3 is a block diagram of another embodiment of the information processing device of the present invention, and FIG. 4(a) ,(b)
is a diagram representing the operation of the device shown in Figure 3, and Figure 5 is a diagram representing the operation of the device shown in Figure 3.
6(a) and 6(b) are diagrams showing the operation of the device shown in FIG. 5, and FIG. 7 is a diagram showing the operation of the device shown in FIG. FIGS. 8(a) and 8(b) are block diagrams of other embodiments of the information processing apparatus. Second program memory area 31.3
2, FIGS. 9(a) and 9(b) are configuration diagrams of an apparatus in which a part of the configuration of the embodiment shown in FIG. 7 is changed, and FIG. 10 is a configuration of a conventional information processing apparatus. It is a diagram. 1... General-purpose processor, 2... Dedicated processor, 2
DESCRIPTION OF SYMBOLS 1... Program instruction acquisition circuit, 22... Program instruction successive output circuit, 23... Pseudo-instruction generation circuit, 24.
...Switching circuit, 25...Address reading circuit, 26...
・Address exit circuit, 27...Switching circuit, 28...
Address generation circuit, 3...program memory, 31
...first program memory area, 32...second
program memory area, 41...first output port, 42...second output port, 43...signal synthesis unit, b...1 information bus, bl...first information bus ,b
2...Second information bus, L...Control line. Figure-2 Figure-2 Figure 4 (a)
Claims (3)
型プログラム命令及び専用命令が格納されるプログラム
・メモリとを情報バスによって接続するとともに、前記
第1のプロセッサと前記第2のプロセッサとの間に双方
向に信号伝送する制御線を設け、実行中の一方のプロセ
ッサが他方のプロセッサが実行すべきプログラム命令と
判断した際に、前記制御線を介して、他方のプロセッサ
に実行すべき前記プログラム・メモリのアドレスを通知
するとともに起動をかけ、前記専用命令を実行する側の
プロセッサが前記プログラム・メモリから直接前記専用
命令を読み出して実行することを特徴とする情報処理装
置。(1) A first processor, a second processor, and a program memory in which translated program instructions and dedicated instructions are stored are connected by an information bus, and the first processor and the second processor are connected to each other by an information bus. A control line is provided for transmitting signals in both directions between the two processors, and when one of the executing processors determines that the program command is to be executed by the other processor, the command is sent to the other processor via the control line. An information processing device characterized in that an address of the program memory is notified and the processor is activated, and a processor executing the dedicated instruction directly reads and executes the dedicated instruction from the program memory.
型プログラム命令及び専用命令が格納されるプログラム
・メモリに接続され、第2のプロセッサが第2の情報バ
スを介して前記第1のプロセッサに接続され、前記第1
のプロセッサは自分が動作する際は前記プログラム・メ
モリからプログラム命令を読み出してこれを実行すると
ともに前記第2のプロセッサへ擬似命令を与え、前記第
1のプロセッサにて前記第2のプロセッサが実行すべき
プログラム命令と判断した際に、このプログラム命令を
前記擬似命令に代えて供給することを特徴とする情報処
理装置。(2) the first processor is connected via a first information bus to a program memory in which translated program instructions and dedicated instructions are stored; the first processor;
When the processor operates, it reads a program instruction from the program memory and executes it, and also gives a pseudo-instruction to the second processor, which is executed by the second processor in the first processor. An information processing apparatus characterized in that when determining that a program instruction is to be executed, the program instruction is supplied in place of the pseudo-instruction.
実行するプログラム命令及び第2のプロセッサに実行を
指示する命令を格納する第1のプログラム・メモリ領域
と、第2のプロセッサと、この第2のプロセッサにて実
行するプログラム命令及び前記第1のプロセッサに実行
を指示する命令を格納する第2のプログラム・メモリ領
域と、前記第2のプロセッサに実行を指示する命令及び
前記第1のプロセッサに実行を指示する命令を入力して
一方のプロセッサに動作開始を指示し他方のプロセッサ
に動作停止を指示する信号合成手段とからなる情報処理
装置。(3) a first processor, a first program memory area that stores program instructions to be executed by the first processor and instructions to instruct a second processor to execute; a second program memory area that stores program instructions to be executed by a second processor and instructions to instruct the first processor to execute; An information processing device comprising a signal synthesizing means that inputs an instruction to the processors to execute an instruction, instructs one processor to start operating, and instructs the other processor to stop operating.
Priority Applications (12)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1104052A JPH02281365A (en) | 1989-04-24 | 1989-04-24 | Information processor |
GB9006947A GB2232514B (en) | 1989-04-24 | 1990-03-28 | Programmable controller |
DE4011278A DE4011278A1 (en) | 1989-04-24 | 1990-04-06 | PROGRAMMABLE CONTROL UNIT |
CN90102324A CN1046987A (en) | 1989-04-24 | 1990-04-23 | Programmable Logic Controller |
FR9005138A FR2646254B1 (en) | 1989-04-24 | 1990-04-23 | PROGRAMMABLE CONTROL DEVICE |
KR1019900005768A KR940002324B1 (en) | 1989-04-24 | 1990-04-24 | Programmable controller |
NL9000984A NL9000984A (en) | 1989-04-24 | 1990-04-24 | PROGRAMMABLE CONTROLLER. |
GB9112247A GB2244828B (en) | 1989-04-24 | 1991-06-06 | Programmable controller |
US08/119,322 US5553297A (en) | 1989-04-24 | 1993-09-09 | Industrial control apparatus |
KR1019930022821A KR940002339B1 (en) | 1989-04-24 | 1993-10-30 | Programmable controller |
SG19294A SG19294G (en) | 1989-04-24 | 1994-01-29 | Programmable controller |
SG19394A SG19394G (en) | 1989-04-24 | 1994-01-29 | Programmable controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1104052A JPH02281365A (en) | 1989-04-24 | 1989-04-24 | Information processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH02281365A true JPH02281365A (en) | 1990-11-19 |
Family
ID=14370436
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1104052A Pending JPH02281365A (en) | 1989-04-24 | 1989-04-24 | Information processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH02281365A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007122318A (en) * | 2005-10-27 | 2007-05-17 | Seiko Epson Corp | Print control device |
-
1989
- 1989-04-24 JP JP1104052A patent/JPH02281365A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007122318A (en) * | 2005-10-27 | 2007-05-17 | Seiko Epson Corp | Print control device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR940002339B1 (en) | Programmable controller | |
JP2886856B2 (en) | Redundant bus connection method | |
US5101498A (en) | Pin selectable multi-mode processor | |
JPH02281365A (en) | Information processor | |
JPH1083367A (en) | Peripheral device controller | |
JPH10207824A (en) | Timing mode selector for direct memory access transmission system | |
JPH09297658A (en) | Analog-to-digital conversion device | |
KR900005284B1 (en) | Micro computer | |
JPH11249998A (en) | Lsi, control circuit of electronic equipment provided with the lsi and control method of the control circuit | |
JPH0322057A (en) | Information processor | |
JP3620181B2 (en) | Semiconductor device and read access method | |
JP2705955B2 (en) | Parallel information processing device | |
JP3442175B2 (en) | Central processing unit | |
JPH11175355A (en) | Device and method for processing information, operating system and computer readable medium | |
JP2006088330A (en) | Robot controller | |
JPS61246863A (en) | Data transfer method | |
JPH02307149A (en) | Direct memory access control method | |
JPH0559465B2 (en) | ||
KR100281121B1 (en) | Microprocessor | |
JP3208789B2 (en) | Information processing device | |
JPS5887612A (en) | Controlling and diagnosing device for input and output | |
JPH07234858A (en) | Processor with communication function | |
JPH0381854A (en) | Memory access system | |
JPS633346B2 (en) | ||
JPH04139564A (en) | Microprocessor system |