JPH02285421A - Execution time control circuit - Google Patents
Execution time control circuitInfo
- Publication number
- JPH02285421A JPH02285421A JP10820489A JP10820489A JPH02285421A JP H02285421 A JPH02285421 A JP H02285421A JP 10820489 A JP10820489 A JP 10820489A JP 10820489 A JP10820489 A JP 10820489A JP H02285421 A JPH02285421 A JP H02285421A
- Authority
- JP
- Japan
- Prior art keywords
- execution time
- instruction
- clock signal
- address
- sent
- 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)
Abstract
Description
【発明の詳細な説明】
技術分野
本発明は実行時間制御回路に関し、特に各々実行時間の
異なる命令により動作するマイクロプロセッサにおける
実行時間の制御方式に関する。DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to an execution time control circuit, and more particularly to an execution time control method in a microprocessor that operates with instructions having different execution times.
従来技術
従来、この種のマイクロプロセッサにおいては命令内の
オペコードをハードウェアによりデコードし、その内容
により実行時間を決定していた。BACKGROUND ART Conventionally, in this type of microprocessor, an operational code in an instruction is decoded by hardware, and the execution time is determined based on the content.
このオペコードのフィールドの一部で実行時間の指定が
可能なマイクロプロセッサにおいては、該オペコードフ
ィールドを含む命令が読出し専用制御記憶あるいは随時
読出し書込み可能な制御記憶に格納されていた。In microprocessors in which the execution time can be specified using part of the field of the opcode, instructions including the opcode field are stored in a read-only control memory or a control memory that can be read and written at any time.
このような従来のマイクロプロセッサでは、命令内のオ
ベコ・−ドをハードウェアによりデコードし、その内容
により実行時間を決定していたので、実行時間の変更を
行うことができず、動作クロックの異なる装置に組込む
ときには実行時間を最適化できないために性能が低下す
るという欠点がある。In such conventional microprocessors, the obecode in the instruction is decoded by hardware, and the execution time is determined based on the contents. Therefore, the execution time cannot be changed, and the When it is incorporated into a device, it has the disadvantage that performance deteriorates because the execution time cannot be optimized.
また、マイクロプログラムで一定時間を確保するのに無
駄な命令(no−op;no−operatlon I
n5tructlonなど)を実行させているので、マ
イクロブロダラムのステップ数が増大するという欠点が
ある。Also, in order to secure a certain amount of time in a microprogram, useless instructions (no-op; no-operatlon I) are used.
n5tructlon, etc.), there is a drawback that the number of steps of the microbroderum increases.
さらに、オペコードフィールドを含む命令が読出し専用
制御記憶に格納されている場合には、マイクロプログラ
ムに変更が生ずることにより実行時間が変更されると、
制御記憶すべてを交換しなければならないという欠点が
あり、オペコードフィールドを含む命令が随時読出し書
込み可能な制御記憶に格納されている場合には、実行時
間が変更されたマイクロプログラムで書換えるためのフ
ァームウェアロードに時間がかかるという欠点がある。Additionally, if the instruction containing the opcode field is stored in read-only control memory, any changes to the microprogram that cause the execution time to change;
The disadvantage is that the entire control memory must be replaced, and if instructions including an opcode field are stored in control memory that can be read and written at any time, the firmware can be rewritten with a microprogram whose execution time has been changed. The drawback is that it takes a long time to load.
発明の目的
本発明は上記のような従来のものの欠点を除去すべくな
されたもので、性能が低下することなく、動作クロック
の異なる装置に組込むことができ、実行時間に変更が生
じても制御記憶を交換することなく、その実行時間の変
更に対応することができる実行時間制御回路の提供を目
的とする。Purpose of the Invention The present invention has been made to eliminate the above-mentioned drawbacks of the conventional ones, and can be incorporated into devices with different operating clocks without deteriorating performance, and can maintain control even when the execution time changes. An object of the present invention is to provide an execution time control circuit capable of responding to changes in execution time without replacing memory.
発明の構成
本発明による実行時間制御回路は、各々実行時間の異な
る命令により動作するマイクロプロセッサの実行時間制
御回路であって、前記命令を格納する読出し専用の第1
の記憶手段と、前記命令に対応する実行時間を示す実行
時間情報を、前記第1の記憶手段のアドレスに対応して
格納する読出し書込み自在な第2の記憶手段と、前記第
1の記憶手段から前記命令が読出されるとき、前記第2
の記憶手段から読出される該命令に対応する前記実行時
間情報に応じて基本クロック信号を制御するクロック制
御手段とを有することを特徴とする。Composition of the Invention The execution time control circuit according to the present invention is an execution time control circuit for a microprocessor that operates according to instructions having different execution times, and includes a first read-only circuit for storing the instructions.
a storage means, a readable and writable second storage means for storing execution time information indicating an execution time corresponding to the instruction in correspondence with an address of the first storage means, and the first storage means. When the instruction is read from the second
and clock control means for controlling a basic clock signal in accordance with the execution time information corresponding to the instruction read from the storage means.
実施例
次に、本発明の一実施例について図面を参照して説明す
る。Embodiment Next, an embodiment of the present invention will be described with reference to the drawings.
第1図は本発明の一実施例の構成を示すブロック図であ
る。図において、ROM (リードオンリメモリ)1に
はマイクロプログラムが格納されており、そのマイクロ
プログラムはデータ線101を介して命令レジスタ3に
送出される。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, a ROM (read only memory) 1 stores a microprogram, and the microprogram is sent to an instruction register 3 via a data line 101.
RAM (ランダムアクセスメモリ)2にはROM1に
格納されたマイクロプログラムの各命令に対応して、命
令の実行時間を示す実行時間フィールドが格納されてお
り、この実行時間フィールドはデータ線102を介して
命令レジスタ3に送出される。A RAM (random access memory) 2 stores an execution time field indicating the execution time of the instruction corresponding to each instruction of the microprogram stored in the ROM 1, and this execution time field is transmitted via a data line 102. It is sent to instruction register 3.
命令レジスタ3のオペコード部31およびオペランド部
32にはROM1から送られてきたマイクロプログラム
が格納され、それらオペコード部31およびオペランド
部32の内容は命令情報線103を介して演算制御部6
に送出される。The microprogram sent from the ROM 1 is stored in the opcode section 31 and operand section 32 of the instruction register 3, and the contents of the opcode section 31 and operand section 32 are sent to the arithmetic control section 6 via the instruction information line 103.
sent to.
また、命令レジスタ3の実行時間フィールド部33には
RAM2から送られてきた実行時間フィールドが格納さ
れ、その実行時間フィールド部33の内容は実行時間制
御情報線104を介してクロック制御回路4に送出され
る。Further, the execution time field sent from the RAM 2 is stored in the execution time field section 33 of the instruction register 3, and the contents of the execution time field section 33 are sent to the clock control circuit 4 via the execution time control information line 104. be done.
クロック制御回路4は命令レジスタ3から送られてくる
実行時間フィールド部33の内容に応じて、基本クロッ
ク信号線105を介してクロック発振器5から送られて
くる基本クロック信号を制御し、その制御された基本ク
ロック信号をクロック信号線10Bを介して演算制御部
6に送出する。The clock control circuit 4 controls the basic clock signal sent from the clock oscillator 5 via the basic clock signal line 105 according to the contents of the execution time field part 33 sent from the instruction register 3, and The calculated basic clock signal is sent to the arithmetic control section 6 via the clock signal line 10B.
演算制御部6ではクロック制御回路4から送られてくる
クロック信号を周期とし、命令レジスタ3から送られて
くるオペコード部31およびオペランド部32の内容に
応じて動作するとともに、次に実行すべき命令のアドレ
スをアドレス線107を介してアドレスレジスタ7に送
出する。The arithmetic control unit 6 uses the clock signal sent from the clock control circuit 4 as its cycle and operates according to the contents of the opcode section 31 and operand section 32 sent from the instruction register 3, and also determines the next instruction to be executed. The address is sent to the address register 7 via the address line 107.
アドレスレジスタ7は演算制御部6から送られてくるア
ドレスを格納し、そのアドレスをアドレス線108を介
してROMIおよびRAM2に供給する。Address register 7 stores the address sent from arithmetic control unit 6, and supplies the address to ROMI and RAM 2 via address line 108.
第2図は本発明の一実施例の動作を示すタイムチャート
である。これら第1図および第2図を用いて本発明の一
実施例の動作について説明する。FIG. 2 is a time chart showing the operation of one embodiment of the present invention. The operation of an embodiment of the present invention will be explained using FIG. 1 and FIG. 2.
アドレスレジスタ7から供給されるアドレスにより、R
OMIおよびRAM2から夫々マイクロプログラムおよ
び実行時間フィールドが読出されると、それらマイクロ
プログラムおよび実行時間フィールドは命令レジスタ3
に格納される。By the address supplied from address register 7, R
When the microprogram and execution time field are read from OMI and RAM2, respectively, the microprogram and execution time field are stored in instruction register 3.
is stored in
このとき、実行時間フィールド部33に実行時間フィー
ルドとして°3°が格納されると、クロツク制御回路4
では実行時間フィールド部33の内容によって指定され
た3′ クロックだけクロック発振器5からの基本クロ
ック信号を抑止し、そのクロック信号を演算制御部6に
送出する。At this time, when °3° is stored as the execution time field in the execution time field section 33, the clock control circuit 4
Then, the basic clock signal from the clock oscillator 5 is suppressed for 3' clocks specified by the contents of the execution time field section 33, and the clock signal is sent to the arithmetic control section 6.
すなわち、クロック制御回路4では命令の種類にかかわ
らず、実行時間フィールド部33の内容に応じて演算制
御部6へのクロック信号を変更することができる。That is, the clock control circuit 4 can change the clock signal to the arithmetic control section 6 according to the contents of the execution time field section 33, regardless of the type of instruction.
演算制御部6ではクロック制御回路4からのクロック信
号を周期としてオペコード部31およびオペランド部3
2の内容に応じて動作するので、オペコード部31およ
びオペランド部32の内容による動作は対応する実行時
間によって行われることになる。The arithmetic control section 6 operates the operation code section 31 and the operand section 3 using the clock signal from the clock control circuit 4 as a period.
2, the operations according to the contents of the opcode section 31 and the operand section 32 are performed at the corresponding execution times.
このように、ROM1からマイクロプログラムが読出さ
れるときにRAM2から読出された実行時間フィールド
に応じてクロック制御回路4によりクロック発振器5か
らの基本クロック信号を制御するようにすることによっ
て、同一の命令でも実行時間を任意に変更することがで
きるので、マイクロプログラムで一定時間を確保するた
めの無駄な命令が不要となり、マイクロプログラムのス
テップ数を従来よりも削減することができる。In this way, by controlling the basic clock signal from the clock oscillator 5 by the clock control circuit 4 according to the execution time field read from the RAM 2 when the microprogram is read from the ROM 1, the same instruction However, since the execution time can be changed arbitrarily, there is no need for unnecessary instructions to secure a certain amount of time in the microprogram, and the number of steps in the microprogram can be reduced compared to the conventional method.
また、RAM2に格納される実行時間フィールドの書換
えが可能となるので、性能が低下することな(、動作ク
ロックの異なる装置に組込むことができる。Furthermore, since the execution time field stored in the RAM 2 can be rewritten, the system can be incorporated into devices with different operating clocks without deteriorating performance.
さらに、マイクロプログラムに変更が生ずることにより
実行時間が変更されても、RAM2に格納される実行時
間フィールドを書換えることによって対応することがで
き、制御記憶すべてを交換しなくともよく、ハードウェ
アの不具合が生したときでも、RAM2に格納される実
行時間フィールドを変更することにより、マイクロプロ
クラムで容易に対応することができる。Furthermore, even if the execution time changes due to a change in the microprogram, this can be handled by rewriting the execution time field stored in RAM2, eliminating the need to replace the entire control memory and reducing the hardware Even when a problem occurs, it can be easily dealt with using a microprogram by changing the execution time field stored in the RAM 2.
発明の詳細
な説明したように本発明によれば、読出し専用の記憶手
段から命令が読出されるとき、該命令に対応して読出し
書込み自在な記憶手段に格納され、該命令に対応する実
行時間を示す実行時間情報を読出し、この実行時間情報
に応じて基本クロック信号を制御するようにすることに
よって、性能が低下することなく、動作クロックの異な
る装置に組込むことができ、実行時間に変更が生じても
制御記憶を交換することなく、その実行時間の変更に対
応することができるという効果がある。DETAILED DESCRIPTION OF THE INVENTION According to the present invention, when an instruction is read from a read-only storage means, the execution time corresponding to the instruction is stored in the readable/writable storage means corresponding to the instruction. By reading the execution time information indicating the execution time and controlling the basic clock signal according to this execution time information, it is possible to incorporate it into a device with a different operating clock without deteriorating the performance, and the execution time can be changed. This has the effect of being able to respond to changes in execution time without replacing the control memory even if such changes occur.
【図面の簡単な説明】
第1図は本発明の一実施例の構成を示すブロック図、第
2図は本発明の一実施例の動作を示すタイムチャートで
ある。
主要部分の符号の説明
1・・・・・・ROM
2・・・・・・RAM
4・・・・・・クロック制御回路
6・・・・・・演算制御部BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and FIG. 2 is a time chart showing the operation of the embodiment of the present invention. Explanation of symbols of main parts 1...ROM 2...RAM 4...Clock control circuit 6...Arithmetic control section
Claims (1)
ロプロセッサの実行時間制御回路であって、前記命令を
格納する読出し専用の第1の記憶手段と、前記命令に対
応する実行時間を示す実行時間情報を、前記第1の記憶
手段のアドレスに対応して格納する読出し書込み自在な
第2の記憶手段と、前記第1の記憶手段から前記命令が
読出されるとき、前記第2の記憶手段から読出される該
命令に対応する前記実行時間情報に応じて基本クロック
信号を制御するクロック制御手段とを有することを特徴
とする実行時間制御回路。(1) An execution time control circuit for a microprocessor that operates according to instructions having different execution times, including a read-only first storage means for storing the instructions, and execution time information indicating the execution time corresponding to the instructions. a readable and writable second storage means that stores the commands corresponding to addresses of the first storage means; and when the instruction is read from the first storage means, the instruction is read from the second storage means. an execution time control circuit comprising clock control means for controlling a basic clock signal according to the execution time information corresponding to the instruction to be executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10820489A JPH02285421A (en) | 1989-04-27 | 1989-04-27 | Execution time control circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10820489A JPH02285421A (en) | 1989-04-27 | 1989-04-27 | Execution time control circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH02285421A true JPH02285421A (en) | 1990-11-22 |
Family
ID=14478660
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP10820489A Pending JPH02285421A (en) | 1989-04-27 | 1989-04-27 | Execution time control circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH02285421A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6560715B1 (en) * | 1998-11-04 | 2003-05-06 | Eads Defence And Security Networks | Sequencer of synchronous actions in a processor system, and integrated circuit including such sequencer |
JP2008044317A (en) * | 2006-08-21 | 2008-02-28 | Sumitomo Heavy Ind Ltd | Mold clamping device and method for controlling mold clamping force |
-
1989
- 1989-04-27 JP JP10820489A patent/JPH02285421A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6560715B1 (en) * | 1998-11-04 | 2003-05-06 | Eads Defence And Security Networks | Sequencer of synchronous actions in a processor system, and integrated circuit including such sequencer |
JP2008044317A (en) * | 2006-08-21 | 2008-02-28 | Sumitomo Heavy Ind Ltd | Mold clamping device and method for controlling mold clamping force |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0213843B1 (en) | Digital processor control | |
KR100327854B1 (en) | Cache Memory System | |
JP3970609B2 (en) | Processor system | |
JPH02285421A (en) | Execution time control circuit | |
KR970702522A (en) | APPARATUS AND METHOD FOR UPDATING INFORMATION IN A WRITABLE MICROCODE CONTROL STORE | |
KR880003243A (en) | Microprocessor | |
JPH05143330A (en) | Stack cache and control system thereof | |
JPH11212877A (en) | Storage device | |
JPS6375934A (en) | Information processor | |
KR910006841A (en) | Data processing unit based on microprogram control | |
JPH02133833A (en) | Controller for in-circuit emulator | |
JPH05265799A (en) | Data processor | |
JPS6020769B2 (en) | Microprogram control method | |
JPS6325373B2 (en) | ||
JPS6138497B2 (en) | ||
JPH0713758A (en) | Instruction decoding method | |
JPH1040094A (en) | Program controller for firmware | |
JP3040828U (en) | Board computer with ROM | |
JPH0795288B2 (en) | Microcomputer | |
JPH10187490A (en) | Microprogram controller | |
JPH0454531A (en) | Program reading circuit | |
JPS6320631A (en) | Register selecting system | |
JPH04148239A (en) | Register and memory securing system at time of system-down for information processor | |
JPH02191034A (en) | Microprogram controller | |
JPH02259838A (en) | Processor system |