JPS62232036A - Information processor - Google Patents

Information processor

Info

Publication number
JPS62232036A
JPS62232036A JP7698186A JP7698186A JPS62232036A JP S62232036 A JPS62232036 A JP S62232036A JP 7698186 A JP7698186 A JP 7698186A JP 7698186 A JP7698186 A JP 7698186A JP S62232036 A JPS62232036 A JP S62232036A
Authority
JP
Japan
Prior art keywords
instruction
coprocessor
in5t
cpu
instruction set
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
JP7698186A
Other languages
Japanese (ja)
Other versions
JPH0687221B2 (en
Inventor
Tamotsu Iwasaki
保 岩崎
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP61076981A priority Critical patent/JPH0687221B2/en
Publication of JPS62232036A publication Critical patent/JPS62232036A/en
Publication of JPH0687221B2 publication Critical patent/JPH0687221B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To eliminate necessity of correcting a large quantity of software so far used when adopting a new instruction set by making each instruction set include an alteration instruction that converts to execution of an instruction based on bother instruction set. CONSTITUTION:Two instruction sets are prepared respectively in instruction executing sections 107, 108 of a CPU103 and a coprocessor 104, and mode change instructions Inst.F. Inst.F' that instruct change of execution (mode 0) of an instruction based on the instruction set to execution (mode 1) of an instruction based on other instruction set are included in each instruction set of the CPU103. Instructions executed respectively by the CPU103 and coprocessor 104 constitute instruction queues 109, 110. The coprocessor 104 has a pre-decoder 111 that judges whether instructions fetched to constitute the instruction queue 10 are mode change instructions Inst.F, Inst.F' or not, and outputs an identification information [1] in the case of mode change instructions and outputs [0] in other cases.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置、詳しくは、中央処理袋f(以下
、CPUという)に割当てられた命令キューと同じ大き
さの命令キューを保持し、CPUから出力されるステー
タスによってCPUと同期してフェッチを行うと共に、
CPUの有する命令セットに含まれる命令を実行するス
レーブフロセブサ(以下、コプロセッサという)を含む
情報処理装置に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention is an information processing device, specifically, an information processing device that maintains an instruction queue of the same size as an instruction queue assigned to a central processing unit f (hereinafter referred to as a CPU). , performs fetching in synchronization with the CPU according to the status output from the CPU, and
The present invention relates to an information processing device including a slave processor (hereinafter referred to as a coprocessor) that executes instructions included in an instruction set of a CPU.

〔従来の技術〕[Conventional technology]

従来この種のコプロセッサはマスタープロセッサと共に
使用される。かか、kcPUとコブロセッサとを使用し
たシステム例が第3図に示されてSす、この第3図のシ
ステムで301と302とはそれぞれのアドレスバスと
データバスとを示している。CI’U303のバス・f
ンタフェース部305とコプロセッサ304のバスイン
タフェース部306とはアドレスバス301とデータバ
ス302を介して図示していないプログラムメモリSよ
びワーキングメモリと命令あるいはデータの授受を行な
う。例えば、命令はCPU303の単一命令セットを有
する命令実行部307とコプロセッサ304のCPUと
対応する命令セットを有する命令実行部308とで実行
されるのであるが、命令実行部307,308での実行
に先立ち命令キュ−309,310’にそれぞれ形成し
、内部データバス311,312Yそれぞれ介して順次
命令実行部307,308に供給される。313.31
4はCPU303の命令キュー309の状態(以下。
Traditionally, this type of coprocessor is used in conjunction with a master processor. An example of a system using a kcPU and a coprocessor is shown in FIG. 3. In the system shown in FIG. 3, 301 and 302 indicate an address bus and a data bus, respectively. CI'U303 bus f
The interface unit 305 and the bus interface unit 306 of the coprocessor 304 exchange instructions or data with a program memory S and a working memory (not shown) via an address bus 301 and a data bus 302. For example, an instruction is executed by the instruction execution unit 307 of the CPU 303 having a single instruction set and the instruction execution unit 308 of the coprocessor 304 having an instruction set corresponding to the CPU. Prior to execution, the commands are formed in instruction queues 309 and 310', respectively, and sequentially supplied to instruction execution units 307 and 308 via internal data buses 311 and 312Y, respectively. 313.31
4 is the state of the instruction queue 309 of the CPU 303 (see below).

キューステータスQSTt 、QSToという)をコプ
ロセッサ304に送る信号線であり、3.15゜316
.317は起動しているバスサイクルの種類を示す情報
(以下、バスステータスBST2 。
This is a signal line that sends the queue status QSTt (referred to as QSTo) to the coprocessor 304, and is 3.15°316
.. Information 317 indicates the type of active bus cycle (hereinafter referred to as bus status BST2).

B5T1.BAT□という)をCPU303からコプロ
セッサ304に送るための信号線である。
B5T1. This is a signal line for sending a signal (referred to as BAT□) from the CPU 303 to the coprocessor 304.

次に、CPU303がコプロセッサ304 ト共慟して
命令A−B(以下、 Ins t、 A〜E トイう)
を実行する手順を第4図に示された命令キューの状態図
と別表1の解説を参照しつつ説明する。
Next, the CPU 303 and the coprocessor 304 execute instructions A-B (hereinafter referred to as Inst, A to E).
The procedure for executing will be explained with reference to the instruction queue state diagram shown in FIG. 4 and the explanation in Appendix 1.

第4図は、第3図に示したCPO303とコプロセッサ
304の命令キューの内容と、CPU303、コプロセ
ッサ304の状態及びCPU303が信号路305,3
06を通してコプロセッサ304に出力する情報と、同
じく信号路307゜308.309を通して出力する情
報を時間を追って示している。簡単の為にキューは、4
Byteであり、各命令の実行に伴うメモリアクセスは
ないものとする。まりIn5t、AzEは1Byte長
の命令であり、In5t、C−EはCPU303の命令
FIG. 4 shows the contents of the instruction queues of the CPO 303 and coprocessor 304 shown in FIG.
The information output to the coprocessor 304 through 06 and the information output through signal paths 307, 308, and 309 are shown over time. For simplicity, the queue is 4.
Byte, and it is assumed that there is no memory access associated with the execution of each instruction. In5t and AzE are 1-byte long instructions, and In5t and CE are instructions from the CPU 303.

In5t、Bはコプロセッサ304の命令である。In5t,B is an instruction of the coprocessor 304.

いまCPU303の命令キュー309とコプロセッサ3
04の命令キ3−310には、In5t、A〜Dが入っ
ている(第4図のステップ1)。
Now the instruction queue 309 of the CPU 303 and the coprocessor 3
The command key 3-310 of No. 04 contains In5t, A to D (step 1 in FIG. 4).

CPU303は、命令キ、−309からIn5t。The CPU 303 receives instructions from -309 to In5t.

Aを取り出す。CI’U303は、同時に信号路313
.314を通してキュースタータスをコプロセッサ30
4に送る。コプロセッサ304は。
Take out A. CI'U303 simultaneously connects signal path 313.
.. 314 to the coprocessor 30
Send to 4. The coprocessor 304 is.

このキューステータスを受げて命令キュ−310からl
:nst、Aを取り出丁。命令キューがら取り出されy
、zInst、Aは、CPU303では、内部データバ
ス311を通して命令実行部307へ送られデコードさ
れる。コプロセッサ304では、内部データバス312
を通して命令実行部308へ送うtty”:+ −トサ
h7:、。In5t、Aは、CPU303の命令であり
、各デコードの結果CPU303はIn5t、Ag実行
し、コプロセッサ304はその、まま何も動作しない(
第4図のステップ2)。
In response to this queue status, l is sent from the instruction queue 310.
:nst, take out A. The instruction queue has been removed.
, zInst, A are sent to the instruction execution unit 307 via the internal data bus 311 in the CPU 303 and decoded. In coprocessor 304, internal data bus 312
In5t, A is an instruction of the CPU 303, and as a result of each decoding, the CPU 303 executes In5t and Ag, and the coprocessor 304 does nothing as it is. Do not work(
Step 2 in Figure 4).

CPU3Q 3は、 In5t、Aノ実行が終了スルト
CPU3Q3 is In5t, A has finished executing.

命令キュー309から工nst、Bを取り出す。同時に
CPU3Q3は、信号路313,314を通して命令コ
ードのIByte目の取り出しを示すキューステータス
を受けて、コプロセッサ304は命令キ、−310から
In5t、、Btt取り出す。Jnst。
The command nst, B is taken out from the instruction queue 309. At the same time, the CPU 3Q3 receives the queue status indicating the extraction of the IByte of the instruction code through the signal paths 313 and 314, and the coprocessor 304 extracts In5t, Btt from the instruction key -310. Jnst.

Bは、  Lnst、Aと同様にCLJ U 3 Q 
3の命令実行部307とコブロセッ・力304の命令実
行部308にRいてデコードされる。工nst、 Bは
、コプロセッサ304の命令であり、デコードの結果C
PU303は何も動作せず、コプロセッサ304はIn
5t、Bを実行−rる(第4図のステップ3)。
B is Lnst, CLJ U 3 Q as well as A
3 and the instruction execution unit 308 of the controller 304 are decoded. nst, B is an instruction of the coprocessor 304, and the decoding result C
The PU 303 does nothing, and the coprocessor 304
5t, execute B (step 3 in FIG. 4).

In5t、Bは、CPU303の命令ではないので。In5t,B is not an instruction of the CPU 303.

CPU303は、コプロセッサ304が命令を実行中で
あっても命令キュ−309からIn5t、Cを取9出’
t’o :Iグo−にッ+3t)4は、CPU303が
出力する命令コードの1 byte目の取り出しを示す
キューステータスによりIn5t、Bの実行と並行して
命令キュー310からJnst、(、ft取り出す。
The CPU 303 extracts In5t and C from the instruction queue 309 even when the coprocessor 304 is executing the instruction.
t'o: Igo-ni +3t) 4 reads Jnst, (, ft Take it out.

In5t、Cは、CPU303の命令であるから、CP
U303はIn5t、C−It実行する。コプロセッサ
304は、  In5t、Cのデコードによって何の影
響も受けず工nst、Bの実行をつづける(第4図のス
テップ4)。
Since In5t,C is an instruction of the CPU 303, CP
U303 executes In5t and C-It. Coprocessor 304 continues to execute Inst,B without being affected by the decoding of In5t,C (step 4 in FIG. 4).

ここでCPU303は、バスが使用されてぃないことと
、命令キ、−309内に命令コードが少な(なったこと
により1次のようなフェッチ動作を行う。
Here, the CPU 303 performs a primary fetch operation because the bus is not in use and there are fewer instruction codes in the instruction key -309.

CPU303は、命令キュ−309に入っている命令コ
ードの次のアドレス(こCではIn5t、Eが格納され
ているアドレス)がアドレスバス301に出力される。
The CPU 303 outputs the next address of the instruction code in the instruction queue 309 (in this case, the address where In5t and E are stored) to the address bus 301.

次に出力されたアドレスに対応した命令コードがメモリ
からデータバス302上に出力される。CPU303は
、このデータバス302に出力された命令コードを取込
み命令キュ=309に格納する。このフェッチ動作中、
CPU303は1M号絡路315,316,317通し
てフェッチ動作であることを示すパスステータスをコプ
ロセッサ304に出力している。このステータスを受け
てコプロセッサ304は、データバス302上の命令コ
ードVCPU303が命令キュー309に格納したのと
同様にして命令キュー310に格納する(第4図のステ
ップ5)。以上の動作をステップ1〜5ごとにまとめて
示したのが別表1である。
Next, the instruction code corresponding to the output address is output from the memory onto the data bus 302. The CPU 303 takes in the instruction code output to the data bus 302 and stores it in an instruction queue 309. During this fetch operation,
The CPU 303 outputs a path status indicating a fetch operation to the coprocessor 304 through 1M signal paths 315, 316, and 317. Upon receiving this status, the coprocessor 304 stores the instruction code on the data bus 302 in the instruction queue 310 in the same manner as the instruction code VCPU 303 was stored in the instruction queue 309 (step 5 in FIG. 4). Attached Table 1 shows the above operations in steps 1 to 5.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

一般に新規なCPUの開発に際しては、新機能の実現を
図れる命令セットが必要であるが、従来開発された大量
のソフトウェアをそのまま使用できろよう従来の命令セ
ットを承継することも要請されている。ところが、上記
従来のCPU303はコプロセッサ304と共通する命
令を含む1つの命令セットしか有していなかったので、
コプロセッサ304の支援を受けられるという利点に対
して従前のC,P Uに関して開発されていた大量のソ
フトウェアの修正を必要とするという問題点があった。
In general, when developing a new CPU, an instruction set that can realize new functions is required, but there is also a need to inherit the conventional instruction set so that a large amount of previously developed software can be used as is. However, since the conventional CPU 303 described above had only one instruction set that included instructions common to the coprocessor 304,
Despite the advantage of being able to receive support from the coprocessor 304, there is a problem in that a large amount of software that has been developed for the previous C and PU requires modification.

従って1本発明は新作な命令セットの採用に際して従前
のソフトウェアの修正を不要にできる情報処理装置に関
する。
Accordingly, one aspect of the present invention relates to an information processing apparatus that makes it unnecessary to modify previous software when adopting a new instruction set.

〔問題点を解決するための手段1作用Sよび効果〕本発
明に係わる情報処理装置にあっては、中央処理装置が実
行する複数の命令セットに対して。
[Means for Solving the Problems 1 Effects and Effects] In the information processing device according to the present invention, the following applies to a plurality of instruction sets executed by the central processing unit.

各命令セットに該命令セットに基づ命令の実行から他の
命令セットに基づく命令の実行の遷移させる変更命令を
含ませている。したがって、中央処理装置とコプロセッ
サとが同期して命令をフェッチし、中央処理装置がある
命令セットに基づき命令キューを順次実行しているとき
、上記変更命令が実行され、中央処理装置の命令セット
が他の命令セットに切換えられると、以後中央処理装置
は他の命令セットに基づき命令キュー中の命令を実行す
るようになる。したがって、中央処理装置の有する複数
の命令セットに、fr機能の実現を可能にする命令セッ
トと従前の命令セットを含ませてgゆば、従前の命令セ
ットに基づき開発されたソフトウェアを大幅に修正しな
くてもそのまま使用でき、しかも新機能の実現を可能に
することができる。
Each instruction set includes a change instruction that causes a transition from execution of instructions based on the instruction set to execution of instructions based on another instruction set. Therefore, when the central processing unit and the coprocessor are fetching instructions synchronously and the central processing unit is sequentially executing the instruction queue based on a certain instruction set, the above modification instruction is executed and the central processing unit's instruction set is When the instruction set is switched to another instruction set, the central processing unit thereafter executes instructions in the instruction queue based on the other instruction set. Therefore, by including the instruction set that enables the realization of the fr function and the previous instruction set in the multiple instruction sets of the central processing unit, the software developed based on the previous instruction set has to be significantly modified. It can be used as is even without it, and new functions can be realized.

〔実施例〕〔Example〕

以下1本発明の一実施例を図面に基づき説明する。 An embodiment of the present invention will be described below based on the drawings.

第1図は一実施例の構成を示すブロック図であり、アド
レスバス101.データバス102はCPUI O3と
コプロセッサ104のバスインターフェース部105,
106とプログラムメモリ等の周辺装置とのアドレス情
報、命令等の授受に使用されている。バスインターフェ
ース部105゜106′ft介して供給される命令は命
令実行部107゜108で命令セットに基づき実行され
る。CPU103とコプロセッサ104の命令実行部1
07゜108には2つの命令セットがそれぞれ用意され
−CM9.CPU103の各命令セットにはその命令セ
ットに基づく命令の実行(モード0)から他の命令セッ
トに基づく命令の実行(モード1)への変更を指示する
モード変更命令In5t、F、In5t。
FIG. 1 is a block diagram showing the configuration of one embodiment, in which address buses 101. The data bus 102 is a bus interface unit 105 between the CPUI O3 and the coprocessor 104,
It is used for exchanging address information, commands, etc. between the 106 and peripheral devices such as program memory. Instructions supplied via the bus interface units 105° and 106'ft are executed by instruction execution units 107 and 108 based on the instruction set. Instruction execution unit 1 of CPU 103 and coprocessor 104
Two instruction sets are prepared for each of 07°108 and CM9. Each instruction set of the CPU 103 has mode change instructions In5t, F, and In5t for instructing a change from execution of instructions based on that instruction set (mode 0) to execution of instructions based on another instruction set (mode 1).

F′が含まれている(第5図参照)。CPUI O3と
コプロセッサ104とでそれぞれ実行される命令は命令
キュ−109,110を構成し、コプロセッサ104は
命令キュ−110を構成するためにフェッチされる命令
がモード変更命令In5t、F。
F' is included (see Figure 5). Instructions executed by the CPUI O3 and the coprocessor 104 respectively constitute instruction queues 109 and 110, and the instructions fetched by the coprocessor 104 to constitute the instruction queue 110 are mode change instructions In5t and F.

In5t、li”であるか否かを判別しモード変更命令
の場合は識別情報「1」を、それ以外の場合は「0」を
出力するプリデコーダ111?有している。プリデコー
ダ111の出力は命令キュー110に対応するビット群
112に格納され、ビットTO〜T3は命令QO〜Q3
にそれぞれ対応している。
A predecoder 111 that determines whether or not it is "In5t,li" and outputs identification information "1" if it is a mode change command, and outputs "0" otherwise. have. The output of the predecoder 111 is stored in a bit group 112 corresponding to the instruction queue 110, and bits TO to T3 correspond to instructions QO to Q3.
corresponds to each.

114.115は命令キュー109,110内の命令を
命令実行部107,108にそれぞれ送出するための内
部データバスであり、ビット群112に格納されていた
情報「1」または「0」は1M号線116を介して命令
と同期して命令実行部108に送出され、命令実行部1
08はビット群112から出力された情報に基づき命令
セットの切換えt行なう。
114 and 115 are internal data buses for sending the instructions in the instruction queues 109 and 110 to the instruction execution units 107 and 108, respectively, and the information "1" or "0" stored in the bit group 112 is connected to the 1M line. 116 to the instruction execution unit 108 in synchronization with the instruction.
08 switches the instruction set based on the information output from the bit group 112.

次にCPU103がコプロセッサ104と共働して命令
(In5t、B、In5t、F、In5t、B’ )を
モードを切り換えつつ実行するときの作用を説明する。
Next, the operation when the CPU 103 cooperates with the coprocessor 104 to execute instructions (In5t, B, In5t, F, In5t, B') while switching modes will be described.

第2図は、第1図に示したCPU103とコプロセッサ
104の命令キエーの内容と、CPU103、コプロセ
ッサ104の状態及びCPU103が信号路117,1
18を通してコプロセッサ104に出力する情報と、同
じ(信号路119゜120.121を通して出力する情
報を時間を追って示している。簡単の為に各命令の実行
に伴うメモリアクセスはないものとする。また命令は1
Byte長の命令であり、CPU103の命令のうち“
 I“の付いた命令はモードlの命令であり。
FIG. 2 shows the contents of the instruction keys of the CPU 103 and coprocessor 104 shown in FIG.
The information outputted to the coprocessor 104 through 18 and the same information outputted through signal paths 119, 120, and 121 are shown over time.For simplicity, it is assumed that there is no memory access associated with the execution of each instruction. Also, the command is 1
This is a byte-long instruction, and among the instructions of the CPU 103, “
Instructions with "I" are mode I instructions.

付いていない命令はモードOの命令であるものとする。It is assumed that the commands not marked are mode O commands.

なgInst、Bは、コプロセッサ104の命令である
gInst,B is the coprocessor 104 instruction.

いま、CPU103及びコプロセッサ104は。Now, the CPU 103 and coprocessor 104.

モードOの状態であり、命令キエ−109と、コプロセ
ッサ104の命令キエーには空の状態であるとする。C
PUI O3は、7エツチを行い)nst、Bを命令キ
エ−109のPOに格納する。
It is assumed that the mode is O, and the instruction key 109 and the instruction key of the coprocessor 104 are empty. C
The PUI O3 performs 7 etches and stores nst, B in the PO of the instruction key 109.

コプロセッサ104は、CPU103が出力するバスス
テータスによってCPUI O3と同期してIn5t、
Bft7zッチし、命令キx−11(1)QOに格納す
る。このときプリデコーダ111は。
The coprocessor 104 synchronizes with the CPUI O3 according to the bus status output from the CPU 103, and
Bft7z and stores it in instruction key x-11(1) QO. At this time, the predecoder 111.

”0”を信号路113を通して、命令キュー110の工
nst、Bが格納されている場所に対応するビット群1
12のToに格納する。
“0” is passed through the signal path 113 to bit group 1 corresponding to the location where the instruction queue 110 is stored.
Store it in To of 12.

引続きcpυ103は、  In5t、F、 In5t
、B’。
Subsequently, cpυ103 is In5t, F, In5t
, B'.

In5t、C’q y z ツチし、命令キ、−109
0Pl。
In5t, C'q y z, command key, -109
0Pl.

p2.P3に格納する。同様にコプロセッサ104@、
 In5t、F、 In5t、B’、 In5t、c’
 Y命令キ1−110のQl、Q2.Q3に格納する。
p2. Store in P3. Similarly, coprocessor 104@,
In5t, F, In5t, B', In5t, c'
Y instruction key 1-110 Ql, Q2. Store in Q3.

ここでプリデコーダ111は、  In5t、Fがフェ
ッチされたことによって、命令実行モードを遷移させる
ことを示す言号″1”を信号路113を通して、命令キ
ー−110のIn5t、Fが格納されている場所に対応
するピット群1120ビット(すなわちTl)に格納す
る(第2図のステップl)。
Here, the pre-decoder 111 sends the word "1" indicating that the instruction execution mode is to be changed due to the fetching of In5t, F through the signal path 113, so that In5t, F of the instruction key 110 is stored. A pit group corresponding to the location is stored in 1120 bits (ie, Tl) (step l in FIG. 2).

CPU103は、命令*、−109のPOからIn5t
、Bを取り出す。コプロセッサ104では。
The CPU 103 executes In5t from PO of instruction *, -109.
, take out B. In the coprocessor 104.

CPUI O3が出力するキエーステータスにより。Based on the key status output by CPUI O3.

命令キ、−110+7)QOから工nst、Bが内部デ
ータバス115ft通して、ビット群112のTQから
O′″が信号路116を通して命令実行部10gへ送ら
れる。コプロセッサ104はモード0の状態であり、こ
の命令を実行する。一方CPU103は、続いて命令キ
エ−109のPlから1nst、Fを取り出丁(第2図
のステップ2)。
Instruction key, -110+7) QO to instruction nst, B are sent through the internal data bus 115ft, and bit group 112 TQ to O''' are sent to the instruction execution unit 10g through the signal path 116.The coprocessor 104 is in the mode 0 state. , and executes this command.Meanwhile, the CPU 103 then takes out 1nst and F from Pl of the command key 109 (step 2 in FIG. 2).

In5t、Fは、CPU103の命令実行モードを遷移
させる命令であり、CPU103では、この命令を実行
することにエリ命令実行モードがモードOからモード1
へと遷移する。同時にコプロセッサ104でも、命令キ
エ−110のQlからJnst、Fが内部データバス1
15を通して、ビット群112のT1から”1”が信号
路116を通して命令実行部108へ送られる。信号路
116を通して命令実行部108へ送られた信号が”1
゛。
In5t,F is an instruction that transitions the instruction execution mode of the CPU 103, and when executing this instruction, the CPU 103 changes the instruction execution mode from mode O to mode 1.
Transition to. At the same time, in the coprocessor 104, the internal data bus 1 from Ql to Jnst and F of the instruction key 110 is
15, "1" from T1 of bit group 112 is sent to instruction execution unit 108 through signal path 116. The signal sent to the instruction execution unit 108 through the signal path 116 is “1”.
゛.

であることにより、コプロセッサ104でも、命令実行
モーデがそ−ド0からモードlへと遷移する(第2図の
ステップ3)。
As a result, the instruction execution mode of the coprocessor 104 also transitions from mode 0 to mode 1 (step 3 in FIG. 2).

CPUI 03は、  In5t、B’9命令命令−1
090P2から取り出し実行する。コプロセッサ104
でも、CPU103が出力するキエーステータスに従り
て、 In5t、B’を命令キエ−110から取り出す
。In5t、B’は、モード0の命令In5t、Bと同
じコードであるが、コプロセッサ104の命令実行モー
ドは、モード1となっているために実行は行わない(第
2図のステップ)。
CPUI 03 is In5t, B'9 instruction -1
Extract from 090P2 and execute. Coprocessor 104
However, according to the key status outputted by the CPU 103, In5t, B' is extracted from the instruction key 110. In5t,B' is the same code as the instruction In5t,B in mode 0, but since the instruction execution mode of coprocessor 104 is mode 1, it is not executed (step in FIG. 2).

こCでCPU103は、再びフェッチを行い、In5t
、F’、 In5t、C,In5t、D f命令キュー
109のPOlPi、P2に格納する。同様にコプロセ
ッサ104も、In5t、F’、 In5t、C,In
5t、D Y命令キュー110のQO,Ql、Q2に格
納する。
At this point, the CPU 103 performs the fetch again and returns In5t.
, F', In5t, C, In5t, D f Store in POlPi, P2 of the instruction queue 109. Similarly, the coprocessor 104 also performs In5t, F', In5t, C, In
5t, D Store in QO, Ql, and Q2 of the Y instruction queue 110.

プリデコーダ111は、フェッチされたIn5tJ’を
検出し、命令実行モード?遷移させる命令であることを
示す信号″1″を信号路113を通して。
The predecoder 111 detects the fetched In5tJ' and enters the instruction execution mode? A signal "1" indicating that the command is to transition is passed through the signal path 113.

命令キュー110のJnst、Fが格納されている場所
に対応するビット群1120ビット(ずなわあTO)に
格納する(第2図のステップ5)。
It is stored in the bit group 1120 bits (Zunawa TO) corresponding to the location where Jnst and F are stored in the instruction queue 110 (step 5 in FIG. 2).

以下、コプロセッサ104は、CPU103と同期して
命令を実行し、 In5t、F’が命令キー−110か
ら取り出される時に、同時に取り出されるビット群11
2のTOの信号により再び命令実行モードをモード1か
らモードOへと遷移させる。
Hereinafter, the coprocessor 104 executes an instruction in synchronization with the CPU 103, and when In5t, F' is extracted from the instruction key-110, the bit group 11 that is simultaneously extracted is
The instruction execution mode is changed from mode 1 to mode O again by the TO signal of 2.

以上の各ステップ1〜5に?けるCPUI O13、コ
プロセッサ104等の機能をまとめたのが別表2であり
、別表3,4にはキス−ステータスとバスステータスと
が説明されている。
For each step 1 to 5 above? Attached Table 2 summarizes the functions of the CPU I O 13, coprocessor 104, etc., and Attached Tables 3 and 4 explain kiss-status and bus status.

〔効果の説明〕[Explanation of effects]

以上説明したように1本発明によれば新たな命令セット
の採用に際して、それまで用いられていた大量のソフト
ウェアを修正する必要がないという非常に優れた効果を
有している。
As explained above, the present invention has a very excellent effect in that when adopting a new instruction set, it is not necessary to modify a large amount of software that has been used up until then.

別  表  3Separate table 3

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

第1図は一実施例の構成を示すブロック図、第2図は一
実施例の命令キューの状態図、第3図は従来例のブロッ
ク図、第4図は従来例の命令キューの状態図、第5図は
命令実行モードの変更を示す概念図である。 103・・・・・・中央処理装置、104・・・・・・
コプロセ、f、 In5t、F 、 In5t、F’ 
・−−−−−変更命令、111・・・・・・命令識別手
段(プリデコーダ)、112・・・・・・識別情報格納
手段(ビット群)。 代理人 弁理士  内 原   晋1 ”””′〉・。
FIG. 1 is a block diagram showing the configuration of one embodiment, FIG. 2 is a state diagram of an instruction queue in one embodiment, FIG. 3 is a block diagram of a conventional example, and FIG. 4 is a state diagram of an instruction queue in a conventional example. , FIG. 5 is a conceptual diagram showing a change in instruction execution mode. 103...Central processing unit, 104...
Coprose, f, In5t, F, In5t, F'
----Change instruction, 111... Instruction identification means (predecoder), 112... Identification information storage means (bit group). Agent: Patent Attorney Susumu Uchihara 1 ”””′〉・.

Claims (2)

【特許請求の範囲】[Claims] (1)命令キューに格納された命令セットを順次実行可
能な中央処理装置と、該中央処理装置と同期して同一命
令のフェッチおよび実行を行なうコプロセッサとを含む
情報処理装置において、上記中央処理装置が実行する複
数の命令セットに対して各命令セットに該命令セットに
基づく命令の実行から他の命令セットに基づく命令の実
行に遷移させる変更命令を含ませたことを特徴とする情
報処理装置。
(1) In an information processing device that includes a central processing unit that can sequentially execute a set of instructions stored in an instruction queue, and a coprocessor that fetches and executes the same instruction in synchronization with the central processing unit, An information processing device characterized in that, for a plurality of instruction sets executed by the device, each instruction set includes a change instruction for transitioning from execution of an instruction based on the instruction set to execution of an instruction based on another instruction set. .
(2)上記コプロセッサは中央処理装置の有する命令セ
ットに対応する複数の命令セットと、命令のフェッチ時
に該命令が変更命令であるか否かを判別し上記フェッチ
された命令が変更命令のときには識別情報を出力する命
令識別情報を上記フェッチされた命令に対応させて格納
する識別情報格納手段とを有し、すでにフェッチされて
いる命令の実行時に該命令に対応する識別情報を識別情
報格納手段から読み出し命令セットの変更を行なうよう
にした特許請求の範囲第1項記載の情報処理装置。
(2) The coprocessor determines whether the instruction is a modification instruction when fetching a plurality of instruction sets corresponding to the instruction set of the central processing unit, and if the fetched instruction is a modification instruction. and an identification information storage means for storing instruction identification information for outputting identification information in correspondence with the fetched instruction, and the identification information storage means stores identification information corresponding to an instruction that has already been fetched when the instruction is executed. 2. The information processing apparatus according to claim 1, wherein the read instruction set is changed from the read command set.
JP61076981A 1986-04-02 1986-04-02 Information processing equipment Expired - Lifetime JPH0687221B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61076981A JPH0687221B2 (en) 1986-04-02 1986-04-02 Information processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61076981A JPH0687221B2 (en) 1986-04-02 1986-04-02 Information processing equipment

Publications (2)

Publication Number Publication Date
JPS62232036A true JPS62232036A (en) 1987-10-12
JPH0687221B2 JPH0687221B2 (en) 1994-11-02

Family

ID=13620953

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61076981A Expired - Lifetime JPH0687221B2 (en) 1986-04-02 1986-04-02 Information processing equipment

Country Status (1)

Country Link
JP (1) JPH0687221B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01166222A (en) * 1987-12-23 1989-06-30 Matsushita Electric Works Ltd Arithmetic circuit constitution for program controller
JPH01243121A (en) * 1988-03-25 1989-09-27 Hitachi Ltd Data processing unit
US6950923B2 (en) 1996-01-24 2005-09-27 Sun Microsystems, Inc. Method frame storage using multiple memory circuits
US7200741B1 (en) 1999-11-22 2007-04-03 Nec Electronics Corporation Microprocessor having main processor and co-processor

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS513743A (en) * 1974-06-28 1976-01-13 Hitachi Ltd

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS513743A (en) * 1974-06-28 1976-01-13 Hitachi Ltd

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01166222A (en) * 1987-12-23 1989-06-30 Matsushita Electric Works Ltd Arithmetic circuit constitution for program controller
JPH01243121A (en) * 1988-03-25 1989-09-27 Hitachi Ltd Data processing unit
US6950923B2 (en) 1996-01-24 2005-09-27 Sun Microsystems, Inc. Method frame storage using multiple memory circuits
US6961843B2 (en) 1996-01-24 2005-11-01 Sun Microsystems, Inc. Method frame storage using multiple memory circuits
US7200741B1 (en) 1999-11-22 2007-04-03 Nec Electronics Corporation Microprocessor having main processor and co-processor

Also Published As

Publication number Publication date
JPH0687221B2 (en) 1994-11-02

Similar Documents

Publication Publication Date Title
JPH0193837A (en) Microprocessor for debug
JPH1185512A (en) Data processor having instruction compression storage and instruction restoration function
JPS5914840B2 (en) Pattern generator for semiconductor memory testing
JPH01188950A (en) Execution control system for avoidance of deadlock
JPH04140880A (en) Vector processor
JPS62232036A (en) Information processor
JPH027097B2 (en)
JPS6049337B2 (en) Pipeline control method
JP3190945B2 (en) Micro program control circuit
KR950006585B1 (en) Micro program control apparatus and control method thereof
JPH0713758A (en) Instruction decoding method
JPH01116702A (en) Sequence controller
JPS6240737B2 (en)
JPH10326248A (en) Dma controller
JP3182796B2 (en) Central processing unit
JPH02277130A (en) Microprocessor
JPS638937A (en) Single chip microcomputer
JP2847729B2 (en) Information processing device
JPS62194545A (en) Program rewriting device for data flow type computer
JPH0330029A (en) Input/output simulation device of computer
JPH0290324A (en) Microprogram controller
JPH03214275A (en) Semiconductor integrated circuit
JPS60189043A (en) Processor
JPS61180346A (en) Microcomputer
JPS62231337A (en) Microprocessor