JPH03276228A - Microprocessor processing system - Google Patents

Microprocessor processing system

Info

Publication number
JPH03276228A
JPH03276228A JP2074816A JP7481690A JPH03276228A JP H03276228 A JPH03276228 A JP H03276228A JP 2074816 A JP2074816 A JP 2074816A JP 7481690 A JP7481690 A JP 7481690A JP H03276228 A JPH03276228 A JP H03276228A
Authority
JP
Japan
Prior art keywords
instruction
microprocessor
processing
nmi
code
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
Application number
JP2074816A
Other languages
Japanese (ja)
Inventor
Koichi Nishide
西出 康一
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2074816A priority Critical patent/JPH03276228A/en
Publication of JPH03276228A publication Critical patent/JPH03276228A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the processing speed of a microprocessor with application of the merits of both hard-wires and microprogram systems by generating an instruction in the microprocessor in addition to the instruction given from the outside via software, and setting and executing the instruction in the memory. CONSTITUTION:When an NMI request 2 is accepted from the outside, an NMI control circuit 1 is set and an NMI-SEL signal 3 becomes active. Then a code generating part 6 selects a CALLNN instruction 4b generated previously after a power supply is turned on with the signal 3 which is directly inputted to a selector 4. The instruction 4b is outputted to an instruction register 8. Thus a microprocessor interrupts the processing under execution and carries out an NMI control routine processing. In such a constitution, the merits of both hard-wired and microprogram systems are secured and the processing speed is improved for the microprocessor.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、コンビエータにおけるプログラムの処理方式
、特に、マイクロプロセッサ処理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to a program processing method in a combinator, and particularly to a microprocessor processing method.

(従来の技術) 一般に、マイクロプロセッサ処理方式としては、ハード
ワイヤード処理か、あるいはマイクロプログラム方式に
よる処理で行われ、それぞれの処理方式は以下のような
特徴を有している。すなわち、ハードワイヤード処理は
ロジ・ンクをl\−ドウエアで構成しているので、処理
速度が速い。−方、マイクロプログラム方式は、ROM
に記憶されているマイクロ命令の組合わせで処理を実行
するので、ハードウェアの構成が簡略化される。
(Prior Art) In general, microprocessor processing is performed by hard-wired processing or microprogram processing, and each processing method has the following characteristics. That is, in hard-wired processing, the logic link is configured with l\-ware, so the processing speed is fast. - On the other hand, the microprogram method is ROM
Since processing is executed using a combination of microinstructions stored in the memory, the hardware configuration is simplified.

(発明が解決しようとする課題) しかしながら、ハードワイヤード処理は、処理速度が速
いという特徴を有しているが、全ての処理それぞれに独
自のシーケンサを必要とし、l\−ドウエアの増大や複
雑化に繋がり、信頼性の低下を招く問題があった。一方
、マイクロプログラム方式は、ハードウェアの構成が簡
略化されるが、マイクロ命令の組合わせで処理を実行す
るため、処理速度の低下を招く問題があった。
(Problem to be solved by the invention) However, although hard-wired processing is characterized by high processing speed, it requires its own sequencer for each process, resulting in an increase in hardware and complexity. There was a problem that this led to a decrease in reliability. On the other hand, the microprogram method simplifies the hardware configuration, but has the problem of slowing down the processing speed because it executes processing using a combination of microinstructions.

本発明は、上記事情に鑑みてなされたもので、ハードワ
イヤード方式の処理速度を維持しながら、一部の処理に
ついてはマイクロ命令の代わりに機械語命令の組合わせ
で処理を実行し、ハードワイヤード、マイクロプログラ
ムの両方式の長所を備えたハードウェアを実現し、性能
を向上させたマイクロプロセッサ処理方式を提供するこ
とを目的とする。
The present invention was made in view of the above circumstances, and while maintaining the processing speed of the hard-wired system, some processes are executed using a combination of machine language instructions instead of micro-instructions. The purpose of this invention is to realize hardware that has the advantages of both microprogram systems and to provide a microprocessor processing system with improved performance.

[発明の構成] (課題を解決するための手段と作用) 本発明は、上記目的を達成するために、マイクロプロセ
ッサの処理において、実行される処理の命令コードを記
憶する記憶手段と1、外部からの要求により実行中の処
理を中断し次に実行されるべき処理を指示する処理指示
手段と、この処理指示手段により指示される処理に伴う
命令コードを予め発生するコード発生手段と、このコー
ド発生手段で発生された命令コードを選択し上記処理指
示手段の指示に基づき上記記憶手段に記憶するコード選
択手段とを具備した構成としたので、外部からソフトウ
ェアで与えられる命令とは別に、マイクロプロセッサ内
部で命令(aI械語)を発生しその命令を記憶手段にセ
ットさせて処理を実行することにより、ハードワイヤー
ドとマイクロプログラムの両方式の長所を取込んで処理
速度を向上させることができる。
[Structure of the Invention] (Means and Effects for Solving the Problems) In order to achieve the above object, the present invention provides a storage means for storing instruction codes of processing to be executed in processing of a microprocessor; a process instruction means for interrupting the process being executed and instructing the next process to be executed in response to a request from the process instruction means; a code generating means for generating in advance an instruction code accompanying the process instructed by the process instruction means; Since the configuration includes code selection means for selecting an instruction code generated by the generation means and storing it in the storage means based on instructions from the processing instruction means, the microprocessor By generating an instruction (aI machine language) internally, setting the instruction in the storage means, and executing the process, it is possible to improve the processing speed by taking advantage of both the hard-wired and microprogram systems.

(実施例) 以下、図面を参照して本発明の詳細な説明する。(Example) Hereinafter, the present invention will be described in detail with reference to the drawings.

第1図は、本発明の一実施例の構成を示す回路図である
FIG. 1 is a circuit diagram showing the configuration of an embodiment of the present invention.

第1図に示すように、フリップフロップで構成されるN
MI制御回路1は外部からのNMI要求2によってセッ
トされ、NM、l−8EL信号3を出力する。NMI制
御回路1はNMI要求2と図示しない他の要求と調整し
、適当なタイミングでNMI制御ルーチンを実行するよ
うに制御する。ここでいうN M 1 (Non Ma
skable 1netrrupt)とは・ 「マスク
することができない割り込み」であり、マイクロプロセ
ッサが他のいかなる処理ルーチンを実行中であフても常
に受は付けられる。NMI制御ルーチンにおいては、次
に実行すべき命令のアドレスを保持しているプログラム
カウンタPC(不図示)の内容をスタック(不図示)に
セーブした後に特定アドレス7NN’番地にジャンプす
るが、これは通常の外部からのソフトウェアのコマンド
によるCALL″NN“命令で飛び先番地を“NN“と
したものと等価である。例えば、マイクロプロセッサと
して、r Z 80Jが採用されていれば、“0086
B ”番地に固定的にジャンプする。
As shown in Figure 1, N
The MI control circuit 1 is set by an external NMI request 2 and outputs an NM, l-8EL signal 3. The NMI control circuit 1 coordinates the NMI request 2 and other requests (not shown), and controls the NMI control routine to be executed at an appropriate timing. N M 1 (Non Ma
skable 1netrupt) is an "interrupt that cannot be masked" and is always accepted even if the microprocessor is executing any other processing routine. In the NMI control routine, the contents of the program counter PC (not shown), which holds the address of the next instruction to be executed, are saved in the stack (not shown) and then jumps to a specific address 7NN'. This is equivalent to setting the destination address to "NN" by a CALL "NN" command by a normal external software command. For example, if rZ 80J is adopted as the microprocessor, “0086
B “Jump to address fixedly.

NMI制御回路1から出力されるNM]−8EL信号3
は、マルチプレクサで構成されるセレクタ4へ直接およ
びインバータ5を介してそれぞれ入力される。一方、セ
レクタ4には、通常ルーチンにおける外部プログラム5
による命令コードであるプログラムコード4aと外部か
らのソフトウェアコマンドによるCALL “NN”命
令に相当するコードを発生するコード発生部6で発生さ
れるCALL″NN”命令4bが入力される。このコー
ド発生部6は、例えばスイッチなど固定レベルが得られ
る簡単なハードウェアで構成され、マイクロプロセッサ
起動後、CALL NN”コードに相当するコードを固
定されたバイナリレベルで自動的にコード(機械語)を
発生する。これら入力される各命令コードはセレクタ4
にて、プログラムコード4aはインバータ7を介したN
MI−8EL信号3により、またCALL NN”命令
4bは直接入力されるNMI−8EL信号3によりそれ
ぞれ図示しない論理ゲートで選択され、次に処理される
べき命令コードを記憶する命令レジスタ8にセットされ
る。
NM]-8EL signal 3 output from NMI control circuit 1
is input directly and via an inverter 5 to a selector 4 composed of a multiplexer. On the other hand, selector 4 contains external program 5 in the normal routine.
A program code 4a, which is an instruction code according to the above, and a CALL "NN" command 4b, which is generated by a code generating section 6 that generates a code corresponding to a CALL "NN" command by an external software command, are input. This code generator 6 is composed of simple hardware such as a switch that can obtain a fixed level, and after the microprocessor is started, it automatically generates a code (machine language) corresponding to the CALL NN" code at a fixed binary level. ) is generated. Each of these input instruction codes is sent to the selector 4.
, the program code 4a is passed through the inverter 7
The MI-8EL signal 3 and the CALL NN'' instruction 4b are selected by logic gates (not shown) by the directly inputted NMI-8EL signal 3, and set in the instruction register 8 that stores the instruction code to be processed next. Ru.

次に、上記構成の本発明の一実施例の作用について説明
する。
Next, the operation of one embodiment of the present invention having the above configuration will be explained.

通常のときには、NMI要求2が入力されないのでNM
I−8EL信号3はインアクティブとなり、インバータ
7を介してセレクタ4に入力されるNMI−SEL信号
3によって、外部プログラム5による命令コード4aが
選択されて命令レジスタ8に出力される。従って、マイ
クロプロセッサはプログラムによる命令を実行する。
Normally, NMI request 2 is not input, so NM
The I-8EL signal 3 becomes inactive, and the NMI-SEL signal 3 input to the selector 4 via the inverter 7 selects the instruction code 4a from the external program 5 and outputs it to the instruction register 8. Therefore, a microprocessor executes instructions according to a program.

一方、外部からNMI要求2があり受付けられると、N
MI制御回路1はセットされ、NMI−3EL信号3は
アクティブとなるので、セレクタ4に直接入力されるN
MI−3EL信号3によって、コード発生部6において
電源オン後予め発生されているCALL NN“命令4
bが選択され命令レジスタ8に出力される。従って、マ
イクロプロセッサは現在実行されている処理を中断しN
MI制御ルーチン処理を実行する。すなわち、実行中の
処理を中断する動作として、次に実行すべきプログラム
による命令のアドレスを保持しているブロクラムカウン
タPCの内容をスタックにセーブした後に、例えばr 
Z 80Jにおけるジャンプ先の特定アドレス“NN”
番地に指定されている処理に相当する処理、つまりコー
ド発生部6にて発生されたCALL “NN”命令4b
に基づいて処理を実行する。
On the other hand, when NMI request 2 is received from the outside and is accepted, NMI
Since the MI control circuit 1 is set and the NMI-3EL signal 3 becomes active, the NMI-3EL signal 3 that is directly input to the selector 4
The MI-3EL signal 3 causes the code generator 6 to issue a CALL NN" command 4 which is generated in advance after the power is turned on.
b is selected and output to the instruction register 8. Therefore, the microprocessor interrupts the process currently being executed and N
Executes MI control routine processing. In other words, as an operation to interrupt the process being executed, for example, after saving the contents of the block counter PC, which holds the address of the instruction by the program to be executed next, to the stack,
Specific jump destination address “NN” in Z 80J
Processing corresponding to the processing specified by the address, that is, the CALL “NN” instruction 4b generated by the code generation unit 6
Execute processing based on.

なお、本発明は上記実施例に限定されることなく種々変
形可能なことは勿論である。
It goes without saying that the present invention is not limited to the above-mentioned embodiments and can be modified in various ways.

[発明の効果コ 以上詳述したように、本発明のマイクロプロセッサ処理
方式によれば、外部プログラムで与えられる命令とは別
に、コード発生手段によりマイクロプロセッサ内部で命
令を発生するハードウェアを備えその命令に基づいて処
理を実行することにより、ハードワイヤードとマイクロ
プログラムの両方式の長所を有することになるので、処
理速度を向上させることができ、また、コード発生手段
は簡単なハードウェアで構成されるので、回路構成が簡
略化され、信頼性の向上およびコストダウンが達成され
る。
[Effects of the Invention] As detailed above, according to the microprocessor processing method of the present invention, the microprocessor processing method includes hardware that generates instructions inside the microprocessor by means of a code generation means, in addition to instructions given by an external program. By executing processing based on instructions, it has the advantages of both hard-wired and microprogram methods, so processing speed can be improved, and the code generation means is composed of simple hardware. Therefore, the circuit configuration is simplified, and reliability is improved and costs are reduced.

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

第1図は本発明の一実施例の構成を示す回路図である。 ■・・・NMI制御回路(処理指示手段)、2・・・N
MI要求、 4・・・セレクタ(コード選択手段)、6・・・コード
発生部(コード発生手段)、8・・・命令レジスタ(記
憶手段)。
FIG. 1 is a circuit diagram showing the configuration of an embodiment of the present invention. ■...NMI control circuit (processing instruction means), 2...N
MI request, 4... Selector (code selection means), 6... Code generation unit (code generation means), 8... Instruction register (storage means).

Claims (1)

【特許請求の範囲】[Claims]  マイクロプロセッサの処理において、実行される処理
の命令コードを記憶する記憶手段と、外部からの要求に
より実行中の処理を中断し次に実行されるべき処理を指
示する処理指示手段と、この処理指示手段により指示さ
れる処理に伴う命令コードを予め発生するコード発生手
段と、このコード発生手段で発生された命令コードを選
択し上記処理指示手段の指示に基づき上記記憶手段に記
憶するコード選択手段とを具備したことを特徴とするマ
イクロプロセッサ処理方式。
In the processing of a microprocessor, a storage means for storing an instruction code of a process to be executed, a process instruction means for interrupting the process being executed in response to an external request and instructing the process to be executed next, and this process instruction. code generating means for generating in advance an instruction code associated with a process instructed by the means; and code selecting means for selecting an instruction code generated by the code generating means and storing it in the storage means based on an instruction from the processing instruction means. A microprocessor processing method characterized by comprising:
JP2074816A 1990-03-23 1990-03-23 Microprocessor processing system Pending JPH03276228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2074816A JPH03276228A (en) 1990-03-23 1990-03-23 Microprocessor processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2074816A JPH03276228A (en) 1990-03-23 1990-03-23 Microprocessor processing system

Publications (1)

Publication Number Publication Date
JPH03276228A true JPH03276228A (en) 1991-12-06

Family

ID=13558215

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2074816A Pending JPH03276228A (en) 1990-03-23 1990-03-23 Microprocessor processing system

Country Status (1)

Country Link
JP (1) JPH03276228A (en)

Similar Documents

Publication Publication Date Title
JPH05233318A (en) Microprocessor
JPH03276228A (en) Microprocessor processing system
JPS6238738B2 (en)
JPS62286117A (en) Information processor
JPS6315628B2 (en)
JPS6152747A (en) Microprocessor
JP2841405B2 (en) Microcomputer control circuit
JPS58159160A (en) Data processor
JPH064306A (en) Method for dividing interruption processing
JPH04230533A (en) Interruption control circuit
JPS5854422B2 (en) Control method for multiprocessing equipment
KR940011045B1 (en) Interrupt vector addressing method in micro controller unit
JPS61136115A (en) Basic clock generating circuit of microcomputer system
JPH05334098A (en) Method and device for interruption control
JPH02189667A (en) Control circuit for microcomputer
JPH0740223B2 (en) Micro-program controller with sequencer
JPH025133A (en) Variable operation speed type computer system
KR19990003927A (en) Interrupt Vector Generator for 8X196 Microcontrollers
JPS60105048A (en) Microprogram control system
JPH04149733A (en) Sequence control system
JPH05233026A (en) Microcomputer circuit
JPH01241626A (en) Microprogram control system
JPS5843770B2 (en) Asynchronous processing method for external devices
JPH0683486A (en) Microcomputer
JPH05334463A (en) Single chip microcomputer