JPH04311225A - System for executing microprocessor instruction - Google Patents

System for executing microprocessor instruction

Info

Publication number
JPH04311225A
JPH04311225A JP7643491A JP7643491A JPH04311225A JP H04311225 A JPH04311225 A JP H04311225A JP 7643491 A JP7643491 A JP 7643491A JP 7643491 A JP7643491 A JP 7643491A JP H04311225 A JPH04311225 A JP H04311225A
Authority
JP
Japan
Prior art keywords
instruction
microprocessor
local memory
address
function
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.)
Withdrawn
Application number
JP7643491A
Other languages
Japanese (ja)
Inventor
Yuji Takeya
竹谷 有二
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 Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP7643491A priority Critical patent/JPH04311225A/en
Publication of JPH04311225A publication Critical patent/JPH04311225A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To perform execution control so as to prevent the runaway of a microprocessor for controlling a peripheral device without using a program during the period until the program is stored in a local memory. CONSTITUTION:A microprocessor 6 is provided with a function which can interpret an NOP or jump instruction irrespective of an instruction fetched from a local memory 7 and can output an arbitrary fetching address and is made to operate in accordance with its proper instruction by stopping the function by means of a cancel signal from the outside. Therefore, the need of an external circuit for stopping the start of operations of the microprocessor 6 until a program is stored in the local memory 7 can be eliminated.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、マイクロプロセッサの
命令実行方式に関し、特にローカルメモリにプログラム
が格納されていない状態での命令実行方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an instruction execution method for a microprocessor, and more particularly to an instruction execution method when no program is stored in a local memory.

【0002】0002

【従来の技術】従来この種のマイクロプロセッサでは、
ローカルメモリにプログラムが格納されていない状態で
のマイクロプロセッサ命令実行方式は無く、ローカルメ
モリにプログラムが格納されるまで、マイクロプロセッ
サの動作開始を停止させることが必要であった。
[Prior Art] Conventionally, in this type of microprocessor,
There is no method for executing microprocessor instructions in a state where a program is not stored in local memory, and it is necessary to stop the microprocessor from starting operation until the program is stored in local memory.

【0003】0003

【発明が解決しようとする課題】上述した従来の技術で
は、ローカルメモリにプログラムが格納されるまでマイ
クロプロセッサの動作開始を停止させるための外部回路
が必要となる欠点があった。
The above-mentioned conventional technology has the disadvantage that an external circuit is required to stop the microprocessor from starting operation until the program is stored in the local memory.

【0004】それ故、本発明の課題は上記欠点を解消し
たマイクロプロセッサ命令実行方式を提供することにあ
る。
SUMMARY OF THE INVENTION Therefore, it is an object of the present invention to provide a microprocessor instruction execution system that eliminates the above-mentioned drawbacks.

【0005】[0005]

【課題を解決するための手段】本発明のマイクロプロセ
ッサ命令実行方式は、情報処理装置に搭載され、周辺装
置制御用のマイクロプロセッサと該マイクロプロセッサ
で実行されるプログラムを格納するローカルメモリを備
えて、外部から前記ローカルメモリにプログラム格納処
理が行われる周辺装置制御部において、前記マイクロプ
ロセッサに、前記ローカルメモリからフェッチした命令
コードに関係なく、NOP命令として解釈する機能を有
する命令変換部を備え、該命令変換部のNOP命令とし
て解釈する機能を外部からの解除信号によって停止する
ことで、前記ローカルメモリからフェッチした命令を解
釈するように戻せるようにしたことを特徴とする。。
[Means for Solving the Problems] A microprocessor instruction execution system of the present invention is installed in an information processing device and includes a microprocessor for controlling peripheral devices and a local memory for storing programs to be executed by the microprocessor. , in a peripheral device control unit in which a program storage process is performed from the outside to the local memory, the microprocessor includes an instruction conversion unit having a function of interpreting the instruction code as a NOP instruction regardless of the instruction code fetched from the local memory; The present invention is characterized in that by stopping the function of the instruction converter to interpret the instruction as a NOP instruction by an external release signal, it is possible to return to interpreting the instruction fetched from the local memory. .

【0006】本発明によればまた、前記マイクロプロセ
ッサに、前記ローカルメモリからフェッチした命令コー
ドに関係なく、任意な命令アドレスへのジャンプ命令と
して解釈する機能を有する命令変換部を備え、該命令変
換部の任意な命令アドレスへのジャンプ命令として解釈
する機能を外部からの解除信号によって停止することで
、前記ローカルメモリからフェッチした命令を解釈する
ように戻せるようにしたことを特徴とするマイクロプロ
セッサ命令実行方式が得られる。
According to the present invention, the microprocessor further includes an instruction converter having a function of interpreting the instruction code as a jump instruction to an arbitrary instruction address regardless of the instruction code fetched from the local memory, The microprocessor instruction is characterized in that by stopping the function of interpreting the instruction as a jump instruction to an arbitrary instruction address of the section by an external release signal, the instruction can be returned to being interpreted as an instruction fetched from the local memory. An execution method is obtained.

【0007】本発明によれば更に、前記マイクロプロセ
ッサに、前記ローカルメモリからフェッチした命令コー
ドによる命令フェッチアドレスに関係なく、任意な命令
フェッチアドレスを出力する機能を有するアドレス変換
部を備え、該アドレス変換部の任意な命令フェッチアド
レスを出力する機能を外部からの解除信号によって停止
することで、前記ローカルメモリからフェッチした命令
コードによる命令フェッチアドレスを出力するように戻
せるようにしたことを特徴とするマイクロプロセッサ命
令実行方式が得られる。
According to the present invention, the microprocessor further includes an address converter having a function of outputting an arbitrary instruction fetch address regardless of the instruction fetch address according to the instruction code fetched from the local memory, The converter is characterized in that by stopping the function of outputting an arbitrary instruction fetch address of the conversion unit by an external release signal, it is possible to return to outputting an instruction fetch address according to an instruction code fetched from the local memory. A microprocessor instruction execution method is obtained.

【0008】[0008]

【実施例】図1は本発明の第1から第3の発明に共通す
る情報処理装置のブロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram of an information processing apparatus common to the first to third aspects of the present invention.

【0009】図1において、情報処理装置1は、中央処
理装置2とメインメモリ3と周辺装置制御部5とこれら
を互いに接続するシステムバス4と、周辺装置制御部5
に接続されている周辺装置8とから構成されている。
In FIG. 1, an information processing device 1 includes a central processing unit 2, a main memory 3, a peripheral device control unit 5, a system bus 4 that connects these to each other, and a peripheral device control unit 5.
and a peripheral device 8 connected to.

【0010】周辺装置制御部5には、マイクロプロセッ
サ6とこれに接続されているローカルメモリ7が搭載さ
れている。マイクロプロセッサ6で実行されるプログラ
ムは、中央処理装置2によってローカルメモリ7に格納
され、マイクロプロセッサ6にロードされる。
The peripheral device control section 5 is equipped with a microprocessor 6 and a local memory 7 connected thereto. A program executed by the microprocessor 6 is stored in the local memory 7 by the central processing unit 2 and loaded into the microprocessor 6.

【0011】図2は、上述の構成の情報処理装置1にお
いて、第1、第2の発明を実施するために必要なマイク
ロプロセッサの機能ブロック図である。
FIG. 2 is a functional block diagram of a microprocessor necessary for carrying out the first and second inventions in the information processing apparatus 1 having the above-described configuration.

【0012】以下、図2を参照して第1の発明の実施例
を説明する。マイクロプロセッサ6にはローカルメモリ
7からのフェッチ命令23を記憶する命令コードレジス
タ20があり、フェッチされた命令コードはここから命
令変換部21に送られる。命令変換部21では、中央処
理装置2からの解除信号25が無効の間は、命令コード
レジスタ20からの命令コードに関係無く、NOP命令
が命令実行部22に送出される。
An embodiment of the first invention will be described below with reference to FIG. The microprocessor 6 has an instruction code register 20 that stores the fetch instruction 23 from the local memory 7, and the fetched instruction code is sent from there to the instruction converter 21. In the instruction conversion section 21, while the release signal 25 from the central processing unit 2 is invalid, the NOP instruction is sent to the instruction execution section 22 regardless of the instruction code from the instruction code register 20.

【0013】命令実行部22では、NOP命令によって
マイクロプロセッサ内部では何も動作しないし、命令ア
ドレス24には現在アドレスの次アドレスが出力される
。そして、フェッチされた命令がどのような命令コード
であろうと、解除信号25が無効の間はこの動作を繰り
返す。
In the instruction execution unit 22, the NOP instruction causes no operation within the microprocessor, and the next address of the current address is output to the instruction address 24. This operation is repeated as long as the release signal 25 is invalid, regardless of the instruction code of the fetched instruction.

【0014】解除信号25が有効になると、命令変換部
21は命令コードレジスタ20からの命令コードを命令
実行部22に送り出し、命令実行部22は本来のフェッ
チされた命令コードに従ってマイクロプロセッサ内の制
御を行う。当然、命令アドレス24には、命令コードに
合ったアドレスが出力される。
When the release signal 25 becomes valid, the instruction conversion unit 21 sends the instruction code from the instruction code register 20 to the instruction execution unit 22, and the instruction execution unit 22 performs control within the microprocessor according to the original fetched instruction code. I do. Naturally, an address matching the instruction code is output as the instruction address 24.

【0015】同様に、図2を参照して第2の発明の実施
例を説明する。
Similarly, a second embodiment of the invention will be described with reference to FIG.

【0016】命令変換部21に命令コードが送られるま
では、上述の説明と同じである。それ故、命令変換部2
1では、中央処理装置2からの解除信号25が無効の間
は、命令コードレジスタ20からの命令コードに関係無
く、任意な命令アドレスへのジャンプ命令が命令実行部
22に送出される。
The process until the instruction code is sent to the instruction conversion section 21 is the same as the above explanation. Therefore, the instruction converter 2
1, while the release signal 25 from the central processing unit 2 is invalid, a jump instruction to an arbitrary instruction address is sent to the instruction execution unit 22 regardless of the instruction code from the instruction code register 20.

【0017】この場合、任意な命令アドレスは、周辺装
置制御部5にとって問題とならないアドレスであれば、
オール0でもオールFでも構わない。
In this case, the arbitrary instruction address is an address that does not pose a problem for the peripheral device control section 5.
It doesn't matter if it's all 0's or all F's.

【0018】従って、命令実行部22では、ジャンプ命
令によって命令アドレス24に期待する命令アドレスが
出力される以外、マイクロプロセッサ内部では何も動作
しない。そして、フェッチされた命令がどのような命令
コードであろうと、解除信号25が無効の間はこの動作
を繰り返す。
Therefore, the instruction execution unit 22 does not perform any operation inside the microprocessor except for outputting the expected instruction address to the instruction address 24 by the jump instruction. This operation is repeated as long as the release signal 25 is invalid, regardless of the instruction code of the fetched instruction.

【0019】解除信号25が有効になると、命令変換部
21は命令コードレジスタ20からの命令コードを命令
実行部22に送り出し、命令実行部22は本来のフェッ
チされた命令コードに従ってマイクロプロセッサ内の制
御を行う。当然、命令アドレス24には、命令コードに
合ったアドレスが出力される。
When the release signal 25 becomes valid, the instruction conversion section 21 sends the instruction code from the instruction code register 20 to the instruction execution section 22, and the instruction execution section 22 performs control within the microprocessor according to the original fetched instruction code. I do. Naturally, an address matching the instruction code is output as the instruction address 24.

【0020】図3は、第3の発明の場合における図1の
マイクロプロセッサの機能ブロック図である。
FIG. 3 is a functional block diagram of the microprocessor of FIG. 1 in the case of the third invention.

【0021】マイクロプロセッサ6にはローカルメモリ
7からのフェッチ命令33を記憶する命令コードレジス
タ30があり、フェッチされた命令コードはここから命
令実行部31に送られる。命令実行部31では命令コー
ドに従ってマイクロプロセッサ6内部を制御し、命令ア
ドレスをアドレス変換部32に送り出す。アドレス変換
部32では中央処理装置2からの解除信号35が無効の
間は、命令実行部31からの命令アドレスに関係無く、
任意な命令フェッチアドレスがローカルメモリ7に出力
される。
The microprocessor 6 has an instruction code register 30 that stores the fetch instruction 33 from the local memory 7, and the fetched instruction code is sent to the instruction execution section 31 from here. The instruction execution unit 31 controls the inside of the microprocessor 6 according to the instruction code, and sends the instruction address to the address conversion unit 32. In the address conversion unit 32, while the release signal 35 from the central processing unit 2 is invalid, regardless of the instruction address from the instruction execution unit 31,
An arbitrary instruction fetch address is output to the local memory 7.

【0022】従って、マイクロプロセッサ6では、フェ
ッチされた命令コードによる内部制御が実行されるのみ
で、フェッチ用命令アドレスは、解除信号35が無効の
間は常に任意な命令アドレスとなる。この場合、任意な
命令フェッチアドレスは、周辺装置制御部5にとって問
題とならない命令アドレスであれば、ローカルメモリの
どのアドレスでも構わない。
Therefore, the microprocessor 6 only executes internal control based on the fetched instruction code, and the fetch instruction address is always an arbitrary instruction address while the release signal 35 is invalid. In this case, the arbitrary instruction fetch address may be any address in the local memory as long as it does not pose a problem for the peripheral device control unit 5.

【0023】解除信号35が有効になると、アドレス変
換部32は命令実行部31からの命令アドレスを命令ア
ドレス34としてローカルメモリ7に送出する。
When the release signal 35 becomes valid, the address conversion unit 32 sends the instruction address from the instruction execution unit 31 to the local memory 7 as the instruction address 34.

【0024】[0024]

【発明の効果】以上説明した様に、本発明はローカルメ
モリからフェッチした命令コードや、命令コードによる
命令フェッチアドレスに関係無く、NOP命令とか任意
な命令アドレスへのジャンプ命令と解釈したり、任意な
命令フェッチアドレスを出力する機能を備え、かつこれ
らの機能を、外部からの解除信号によって停止し、本来
の命令解釈やフェッチアドレスの出力を実行させるよう
に戻す機能を備えることで、ローカルメモリにプログラ
ムが格納されるまでマイクロプロセッサの動作開始を停
止させるための外部回路を不要にすることが出来る。
As explained above, the present invention can be interpreted as a NOP instruction or a jump instruction to an arbitrary instruction address, regardless of the instruction code fetched from local memory or the instruction fetch address by the instruction code. By providing a function that outputs a specific instruction fetch address, and a function that stops these functions by an external release signal and returns to executing the original instruction interpretation and output of the fetch address, it is possible to save data to local memory. It is possible to eliminate the need for an external circuit for stopping the microprocessor from starting operation until the program is stored.

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

【図1】本発明の第1〜第3の発明に共通する情報処理
装置のブロック図である。
FIG. 1 is a block diagram of an information processing device common to first to third aspects of the present invention.

【図2】本発明の第1、第2の発明における図1のマイ
クロプロセッサの機能ブロックである。
FIG. 2 is a functional block diagram of the microprocessor of FIG. 1 according to the first and second aspects of the present invention.

【図3】本発明の第3の発明における図1のマイクロプ
ロセッサの機能ブロック図である。
FIG. 3 is a functional block diagram of the microprocessor of FIG. 1 in a third aspect of the present invention.

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

1  情報処理装置 2  中央処理装置 3  メインメモリ 4  システムバス 5  周辺装置制御部 6  マイクロプロセッサ 7  ローカルメモリ 8  周辺装置 20、30  命令コードレジスタ 21  命令変換部 22、31  命令実行部 23、33  フェッチ命令 24、34  命令アドレス 25、35  解除信号 32  アドレス変換部 1 Information processing device 2 Central processing unit 3 Main memory 4 System bus 5 Peripheral device control section 6. Microprocessor 7. Local memory 8 Peripheral devices 20, 30 Instruction code register 21 Instruction conversion unit 22, 31 Instruction execution unit 23, 33 Fetch instruction 24, 34 Instruction address 25, 35 Release signal 32 Address conversion section

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】  情報処理装置に搭載され、周辺装置制
御用のマイクロプロセッサと該マイクロプロセッサで実
行されるプログラムを格納するローカルメモリを備えて
、外部から前記ローカルメモリにプログラム格納処理が
行われる周辺装置制御部において、前記マイクロプロセ
ッサに、前記ローカルメモリからフェッチした命令コー
ドに関係なく、NOP命令として解釈する機能を有する
命令変換部を備え、該命令変換部のNOP命令として解
釈する機能を外部からの解除信号によって停止すること
で、前記ローカルメモリからフェッチした命令を解釈す
るように戻せることを特徴とするマイクロプロセッサ命
令実行方式。
1. A peripheral installed in an information processing device, comprising a microprocessor for controlling a peripheral device and a local memory for storing a program to be executed by the microprocessor, and in which a program is stored in the local memory from the outside. In the device control unit, the microprocessor is provided with an instruction conversion unit that has a function of interpreting the instruction code as a NOP instruction regardless of the instruction code fetched from the local memory, and the function of the instruction conversion unit to interpret the instruction code as a NOP instruction is externally controlled. 1. A microprocessor instruction execution system, characterized in that the microprocessor instruction execution method can be returned to interpreting instructions fetched from the local memory by being stopped by a release signal from the local memory.
【請求項2】  情報処理装置に搭載され、周辺装置制
御用のマイクロプロセッサと該マイクロプロセッサで実
行されるプログラムを格納するローカルメモリを備えて
、外部から前記ローカルメモリにプログラム格納処理が
行われる周辺装置制御部において、前記マイクロプロセ
ッサに、前記ローカルメモリからフェッチした命令コー
ドに関係なく、任意な命令アドレスへのジャンプ命令と
して解釈する機能を有する命令変換部を備え、該命令変
換部の任意な命令アドレスへのジャンプ命令として解釈
する機能を外部からの解除信号によって停止することで
、前記ローカルメモリからフェッチした命令を解釈する
ように戻せることを特徴とするマイクロプロセッサ命令
実行方式。
2. A peripheral installed in an information processing device, comprising a microprocessor for controlling a peripheral device and a local memory for storing a program to be executed by the microprocessor, and in which a program is stored in the local memory from the outside. In the device control unit, the microprocessor is provided with an instruction conversion unit that has a function of interpreting the instruction code as a jump instruction to an arbitrary instruction address regardless of the instruction code fetched from the local memory, and the instruction conversion unit A microprocessor instruction execution system characterized in that by stopping a function of interpreting a jump instruction to an address by an external release signal, the function can be returned to interpreting an instruction fetched from the local memory.
【請求項3】  情報処理装置に搭載され、周辺装置制
御用のマイクロプロセッサと該マイクロプロセッサで実
行されるプログラムを格納するローカルメモリを備えて
、外部から前記ローカルメモリにプログラム格納処理が
行われる周辺装置制御部において、前記マイクロプロセ
ッサに、前記ローカルメモリからフェッチした命令コー
ドによる命令フェッチアドレスに関係なく、任意な命令
フェッチアドレスを出力する機能を有するアドレス変換
部を備え、該アドレス変換部の任意な命令フェッチアド
レスを出力する機能を外部からの解除信号によって停止
することで、前記ローカルメモリからフェッチした命令
コードによる命令フェッチアドレスを出力するように戻
せることを特徴とするマイクロプロセッサ命令実行方式
3. A peripheral installed in an information processing device, comprising a microprocessor for controlling a peripheral device and a local memory for storing a program to be executed by the microprocessor, and in which a program is stored in the local memory from the outside. In the device control section, the microprocessor is provided with an address conversion section having a function of outputting an arbitrary instruction fetch address regardless of the instruction fetch address according to the instruction code fetched from the local memory, A microprocessor instruction execution system characterized in that by stopping a function of outputting an instruction fetch address by an external release signal, it is possible to return to outputting an instruction fetch address based on an instruction code fetched from the local memory.
JP7643491A 1991-04-09 1991-04-09 System for executing microprocessor instruction Withdrawn JPH04311225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7643491A JPH04311225A (en) 1991-04-09 1991-04-09 System for executing microprocessor instruction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7643491A JPH04311225A (en) 1991-04-09 1991-04-09 System for executing microprocessor instruction

Publications (1)

Publication Number Publication Date
JPH04311225A true JPH04311225A (en) 1992-11-04

Family

ID=13605050

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7643491A Withdrawn JPH04311225A (en) 1991-04-09 1991-04-09 System for executing microprocessor instruction

Country Status (1)

Country Link
JP (1) JPH04311225A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002073190A (en) * 2000-09-04 2002-03-12 Funai Electric Co Ltd Device and method for converting program
US8693130B2 (en) 2010-01-29 2014-04-08 Kabushiki Kaisha Toshiba Magnetic disk device and control method thereof, and information processor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002073190A (en) * 2000-09-04 2002-03-12 Funai Electric Co Ltd Device and method for converting program
JP4663859B2 (en) * 2000-09-04 2011-04-06 船井電機株式会社 Program converter
US8693130B2 (en) 2010-01-29 2014-04-08 Kabushiki Kaisha Toshiba Magnetic disk device and control method thereof, and information processor

Similar Documents

Publication Publication Date Title
US4764866A (en) Data processing system with pre-decoding of op codes
GB2231986A (en) Programmable logic controller including function block processor and bit processor
JPH04311225A (en) System for executing microprocessor instruction
KR100705872B1 (en) Processor and method of executing instructions from several instruction sources
JPH05241827A (en) Command buffer controller
JPH0573296A (en) Microcomputer
JPH04230533A (en) Interruption control circuit
JP2000347931A (en) Cache memory and method for controlling cache memory
JP2806690B2 (en) Microprocessor
JPH0259829A (en) Microcomputer
JPH02133833A (en) Controller for in-circuit emulator
JPS60250438A (en) Information processor
JPS625466A (en) Auxiliary processor control system
JPH08249022A (en) Multiprocessor arithmetic unit and programmable controller having the arithmetic unit
JPH08161222A (en) Processor and program preparation method therefor
JPH01240941A (en) Information processor
JPH10307612A (en) Programmable controller with processors
JPH03273349A (en) Access control system
JPH05100720A (en) Managing device for program
JPS62248043A (en) Memory switching circuit for fetching microcomputer instruction
JPH0244423A (en) Computer
JPH04264624A (en) Processor
JPH03164945A (en) Data processor
JPH0340075A (en) Microcomputer
JPS621066A (en) Information processor

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980711