JPH04158485A - Microprocessor - Google Patents
MicroprocessorInfo
- Publication number
- JPH04158485A JPH04158485A JP2283286A JP28328690A JPH04158485A JP H04158485 A JPH04158485 A JP H04158485A JP 2283286 A JP2283286 A JP 2283286A JP 28328690 A JP28328690 A JP 28328690A JP H04158485 A JPH04158485 A JP H04158485A
- Authority
- JP
- Japan
- Prior art keywords
- mode
- microprocessor
- modes
- functional block
- operating
- 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
Landscapes
- Executing Machine-Instructions (AREA)
- Microcomputers (AREA)
Abstract
Description
【発明の詳細な説明】
[発明の目的]
(産業上の利用分野)
この発明は複数種の異なる動作モードで同一機能ブロッ
クの処理実行を実現するマイクロプロセッサに関する。DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to a microprocessor that realizes processing execution of the same functional block in a plurality of different operation modes.
(従来の技術)
近年、半導体技術の進歩により、マイクロプロセッサ、
周辺制御用LS I、メモリLSI等が非常に安価に供
給されるようになり、これらを適宜組み合わせるだけで
比較的高性能なパーソナルコンピュータを構築できるよ
うになった。特にマイクロプロセッサの高性能化には目
を見張るものがあり、この種のパーソナルコンピュータ
では16ビツトはもとより、32ビツト処理のものが標
準的に使用されるようにった。(Conventional technology) In recent years, due to advances in semiconductor technology, microprocessors,
Peripheral control LSIs, memory LSIs, and the like have become available at very low prices, and it has become possible to construct relatively high-performance personal computers simply by appropriately combining them. In particular, the improvement in performance of microprocessors has been remarkable, and not only 16-bit but also 32-bit processing has become standard in this type of personal computer.
ところで、上記マイクロプロセッサは、例えば、リアル
モード、プロテクトモードのように、複数゛のモードで
動作する。リアルモードとは従来機と互換性を持って動
作させることのできるモードであり、プロテクトモード
とはそのプロセッサが本来もつ性能をフルに発揮させる
ために使用するモードである。プロセッサの基本アーキ
テクチャは上記いずれの動作モードにおいても同一であ
り、アプリケーションプログラマにとってはいずれの動
作モードにあっても意識せずに同じ命令セットとアドレ
ッシングを使用できる。By the way, the above-mentioned microprocessor operates in a plurality of modes, such as real mode and protected mode. Real mode is a mode that allows the processor to operate with compatibility with conventional machines, and protected mode is a mode used to make full use of the processor's original performance. The basic architecture of the processor is the same in any of the above operating modes, and application programmers can use the same instruction set and addressing regardless of the operating mode.
(発明が解決しようとする課題)
上述したように単一のマイクロプロセッサに複数の動作
モードが存在する場合、各動作モード毎の果たす役割(
機能)は異なるものである。このために、同一の機能を
実現するには各動作モード毎の機能を組込み装備する必
要がある。従って各動作モード毎の機能を組込むことに
よりコスト高となりシステム構成上好ましくない。具体
的にパーソナルコンピュータの分野で操作性向上のため
にポピユラーとなっている瞬時再現機能(即ち、−旦、
電源を遮断して業務を中断しても、電源の再投入時に中
断直前の状態から業務を再開できるリジューム処理)を
例示して説明する。このリジューム処理はリアルモード
でしかサポートしておらず、これをプロテクトモードに
て実行するには、エミュレーションする方法、あるいは
、モードを合わせて実行し元に戻す(リアルモードで実
行しプロテクトモードに戻す)方法が考えられる。(Problems to be Solved by the Invention) As described above, when a single microprocessor has multiple operating modes, the role played by each operating mode (
functions) are different. Therefore, in order to realize the same functions, it is necessary to incorporate functions for each operation mode. Therefore, incorporating functions for each operation mode increases costs, which is not desirable in terms of system configuration. Specifically, the instantaneous reproduction function (i.e. -dan,
Resume processing (resume processing) that allows the business to resume from the state immediately before the interruption when the power is turned back on even if the business is interrupted by shutting off the power will be explained. This resume processing is only supported in real mode, and to run it in protected mode, you can either use emulation, or run the modes together and return to the original state (run in real mode and return to protected mode). ) method can be considered.
本発明は後者に関係し、複数の動作モードをもつマイク
ロプロセッサにおいて、モードAに依存する機能ブロッ
クに対し、他モードBからモードAにスイッチして上記
機能ブロックの処理を実行した後、動作モードAを本来
のモードBに戻すノー−ドウエアを付加することにより
、複数の動作モードを持つマイクロプロセッサ上で同一
の機能をモードに依存することなく実現する機構を備え
たマイクロプロセッサを提供することを目的とする。The present invention relates to the latter, and in a microprocessor having multiple operation modes, a function block that depends on mode A is switched from another mode B to mode A, and after executing the processing of the function block, the operation mode It is an object of the present invention to provide a microprocessor that is equipped with a mechanism to realize the same function on a microprocessor having multiple operating modes without depending on the mode by adding nodeware that returns A to its original mode B. purpose.
[発明の構成コ
(課題を解決するための手段)
本発明は、複数の動作モードを持つマイクロプロセッサ
において、モード変換のためのスイ・ソチ(モード変換
器)を備え、要求機能に従い、あるモード(A)に依存
して動作する機能ブロック(F)を上記スイッチにより
切り替えて上記機能ブロック(F)をその機能が依存す
るモード(A)で実行した後、上記スイッチによる切り
替えで結果を元のモード(B)に引き渡す手段をもつこ
とを特徴とする。[Structure of the Invention (Means for Solving the Problems) The present invention provides a microprocessor having multiple operation modes, which is equipped with a mode converter for mode conversion, and which can switch between certain modes according to required functions. After switching the function block (F) that operates depending on (A) with the above switch and executing the above function block (F) in the mode (A) on which the function depends, the result is changed back to the original by switching with the above switch. It is characterized by having means for transferring to mode (B).
(作 用)
本発明は、複数のモードをサポートするマイクロプロセ
ッサにて、モードに依存して動作する機能ブロック、例
えば、リジューム処理について。(Function) The present invention relates to functional blocks that operate depending on the mode, such as resume processing, in a microprocessor that supports multiple modes.
上述したスイッチを含むモード変換のための手段を介在
させることにより他のモードからリジューム処理を使用
するものである。このことにより、低コストでマイクロ
プロセッサがもつ全てのモードにて全ての機能ブロック
の処理を実現できる。Resume processing from other modes is used by interposing means for mode conversion including the above-mentioned switch. This makes it possible to process all functional blocks in all modes of the microprocessor at low cost.
(実施例)
以下、図面を使用して本発明実施例について詳細に説明
する。第1図は本発明の実施例を示すブロック図である
。図において、符号1はマイクロプロセッサ(CP U
)であり、複数モードでの動作をサポートする。本発明
実施例では米国インテル社が販売している80286も
しくは80386相当を使用している。符号2は機能ブ
ロック(F)であり、例えばリアルモードに依存して動
作するリジューム処理のためのソフトウェアロジックで
ある。符号3はモード変換器であり、リアルモードとプ
ロテクトモードの間で往復路変換を行う。もっと広範に
表現すれば、モードnをモード1に変換するもので、こ
れは(モード数−1)個又は1個だけ存在する。(Example) Hereinafter, an example of the present invention will be described in detail using the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, numeral 1 is a microprocessor (CPU
) and supports operation in multiple modes. In the embodiment of the present invention, a device equivalent to 80286 or 80386 sold by Intel Corporation in the United States is used. Reference numeral 2 denotes a functional block (F), which is, for example, software logic for resume processing that operates depending on the real mode. Reference numeral 3 denotes a mode converter, which performs round-trip path conversion between the real mode and the protected mode. Expressed more broadly, mode n is converted to mode 1, of which (number of modes - 1) or only one exists.
第2図は本発明実施例の動作を示すフローチャートであ
る。図において、符号S1はモードを判定するステップ
であり、モード変換の必要性、即ちモード切換(swt
ch )するか否かを判定する。FIG. 2 is a flowchart showing the operation of the embodiment of the present invention. In the figure, reference numeral S1 is a step for determining the mode, and indicates the necessity of mode conversion, that is, mode switching (swt
ch).
符号S2はモードを変換するステップであり、モードを
実行機能にあわせた目的モードへ変換する。Reference numeral S2 is a mode conversion step, in which the mode is converted to a target mode that matches the execution function.
符号S3は要求機能(F)を実行するステップである。Reference numeral S3 is a step for executing the requested function (F).
符号S4は変換復帰を判定するステップであり、モード
を元へ戻すか否かを判定する。符号S5はモードを復帰
するステップであり、ここで元のモードへ戻す。Reference numeral S4 is a step for determining conversion return, and it is determined whether or not the mode should be returned to its original state. Reference numeral S5 is a step for returning the mode, and here the mode is returned to the original mode.
以下、第1図に示す実施例を第2図に示すフローチャー
トを参照しながら詳細に説明する。マイクロプロセッサ
1がもつ各種モード(モード1〜モードn)について、
機能ブロック(F)2はモード1に依存して動作するも
のとする。このときモード1以外(モード2等)のモー
ドにて、上記機能ブロック2を使用するために、モード
変換器3により、モード2を一旦、モード1に変換する
。The embodiment shown in FIG. 1 will be described in detail below with reference to the flowchart shown in FIG. Regarding the various modes (mode 1 to mode n) of the microprocessor 1,
It is assumed that functional block (F)2 operates depending on mode 1. At this time, in order to use the functional block 2 in a mode other than mode 1 (such as mode 2), mode converter 3 once converts mode 2 to mode 1.
そして、機能ブロック2に従うプログラムの実行を果た
した後、元のモード2に戻す。この模様は第2図フロー
チャートに詳細に説明されている。After executing the program according to function block 2, the original mode 2 is returned to. This process is explained in detail in the flowchart of FIG.
具体的には、インテル社の16ビツトマイクロプロセツ
サ80286にて、リアルモードで動作する機能ブロッ
ク2の実行をプロテクトモードがらの要求に従い、モー
ド変換器3に内蔵のスイッチ(5w1tch)を操作す
る(ステップS4)ことにより、[リアルモード→プロ
テクトモード]へのモード変換、 [プロテクトモード
→リアルモード]へのモード変換が容易に実現できる。Specifically, Intel's 16-bit microprocessor 80286 executes the function block 2 that operates in real mode by operating the switch (5w1tch) built into the mode converter 3 according to the requests from the protected mode. By step S4), mode conversion from [real mode to protected mode] and mode conversion from [protected mode to real mode] can be easily realized.
[発明の効果コ
以上説明のように本発明によれば、複数の動作モードを
もつマイクロプロセッサに於いて、あるモードに依存し
て動作する機能ブロックの実行に際し、動作モードをそ
の機能に即した動作モードに切り替え、上記機能ブロッ
クの処理を実行した後、動作モードを元のモードに切り
替えてそのモードへ上記機能ブロックの処理結果を引き
渡す機構をもつことにより、低コストにてマイクロプロ
セッサがもつ全てのモードにて全ての機能ブロック処理
を実現できる。[Effects of the Invention] As explained above, according to the present invention, in a microprocessor that has a plurality of operation modes, when executing a functional block that operates depending on a certain mode, the operation mode can be adjusted according to its function. By having a mechanism that switches to the operating mode, executes the processing of the above functional blocks, switches the operating mode to the original mode, and transfers the processing results of the above functional blocks to that mode, all of the features of a microprocessor can be achieved at low cost. All functional block processing can be realized in this mode.
第1図は本発明の実施例を示すブロック図、第2図は本
発明実施例の動作を示すフローチャートである。
1・・・マイクロプロセッサ(CPU) 、2・・・機
能ブロック(リジューム処理)、3・・・モード変換器
。
出願人代理人 弁理士 鈴江武彦
第1WJ
第2図FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a flow chart showing the operation of the embodiment of the present invention. 1... Microprocessor (CPU), 2... Functional block (resume processing), 3... Mode converter. Applicant's agent Patent attorney Takehiko Suzue 1st WJ Figure 2
Claims (2)
おいて、モード変換のためのスイッチを備え、上記スイ
ッチにより、ある1つのモードに依存して動作する機能
を他の1つのモードに切り替えて実行し、その結果を元
のモードに引き渡す手段を具備してなることを特徴とす
るマイクロプロセッサ。(1) A microprocessor having multiple operating modes is provided with a switch for mode conversion, and the switch executes a function that operates depending on one mode by switching it to another mode, A microprocessor comprising means for transferring the result to the original mode.
おいて、動作モードを変更するか否かを判定する動作モ
ード判別手段と、この動作モード判別手段で動作モード
を変更する判定をしたとき動作モードを要求機能ブロッ
クに対応する目的の動作モードへ変換する動作モード変
換手段と、この動作モードによる要求機能ブロックの実
行後、実行動作モードを元の動作モードへ戻す動作モー
ド復帰手段とを具備してなることを特徴とするマイクロ
プロセッサ。(2) In a microprocessor having multiple operation modes, an operation mode determination means for determining whether or not to change the operation mode, and requesting the operation mode when the operation mode determination means determines to change the operation mode. The operating mode converting means converts the functional block into a desired operating mode corresponding to the functional block, and the operating mode returning means returns the executed operating mode to the original operating mode after the requested functional block is executed in this operating mode. A microprocessor featuring:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2283286A JPH04158485A (en) | 1990-10-23 | 1990-10-23 | Microprocessor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2283286A JPH04158485A (en) | 1990-10-23 | 1990-10-23 | Microprocessor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04158485A true JPH04158485A (en) | 1992-06-01 |
Family
ID=17663480
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2283286A Pending JPH04158485A (en) | 1990-10-23 | 1990-10-23 | Microprocessor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04158485A (en) |
-
1990
- 1990-10-23 JP JP2283286A patent/JPH04158485A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4924382A (en) | Debugging microprocessor capable of switching between emulation and monitor without accessing stack area | |
| JPH0326414B2 (en) | ||
| JPH1083304A5 (en) | ||
| JPH04158485A (en) | Microprocessor | |
| JPH0564375B2 (en) | ||
| JP2003202999A (en) | Virtual computer system | |
| US7200700B2 (en) | Shared-IRQ user defined interrupt signal handling method and system | |
| JP3018336B2 (en) | Information processing device | |
| JP2826309B2 (en) | Information processing device | |
| JPS62151938A (en) | Instruction processing method | |
| JPH0754468B2 (en) | Virtual computer system | |
| JPH07109589B2 (en) | Instruction processing method | |
| JP2975094B2 (en) | I/O device control device | |
| JPS5850383B2 (en) | information processing equipment | |
| JPH03126157A (en) | Interruption controller | |
| Chen et al. | Porting a {User-Level} Communication Architecture to {NT}: Experiences and Performance | |
| JPH02176832A (en) | Microcomputer | |
| JPH0895895A (en) | Controller for serial port i/q equipment of information processor | |
| JPS59111557A (en) | Address converting device | |
| JPH01120628A (en) | Data processor | |
| JPH01300364A (en) | Multi-processor system | |
| JPS61184644A (en) | Virtual computer system control method | |
| JPS60134353A (en) | Input/output controlling system | |
| JPS6381558A (en) | Multi-cpu controlling system | |
| JPH0447853B2 (en) |