JPH0612254A - Information processor - Google Patents
Information processorInfo
- Publication number
- JPH0612254A JPH0612254A JP16774292A JP16774292A JPH0612254A JP H0612254 A JPH0612254 A JP H0612254A JP 16774292 A JP16774292 A JP 16774292A JP 16774292 A JP16774292 A JP 16774292A JP H0612254 A JPH0612254 A JP H0612254A
- Authority
- JP
- Japan
- Prior art keywords
- cpu
- cycle
- signal
- bus
- clock
- 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
- 238000012545 processing Methods 0.000 claims abstract description 15
- 230000003111 delayed effect Effects 0.000 claims abstract description 5
- 230000001360 synchronised effect Effects 0.000 claims abstract description 4
- 230000010365 information processing Effects 0.000 claims description 19
- 230000006870 function Effects 0.000 description 19
- 230000006872 improvement Effects 0.000 description 8
- 230000000630 rising effect Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 238000013461 design Methods 0.000 description 4
- 238000003780 insertion Methods 0.000 description 4
- 230000037431 insertion Effects 0.000 description 4
- 238000000034 method Methods 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Bus Control (AREA)
- Executing Machine-Instructions (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、CPU部の処理速度を
遅延する機能を有する情報処理装置に関するものであ
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus having a function of delaying the processing speed of a CPU section.
【0002】[0002]
【従来の技術】従来(図示せず)の情報処理装置は、C
PUの処理速度を遅延させるために、このCPUへ与え
るクロック周波数を変更しており、あるいはスピードの
遅い周辺機器を使用する場合には、ソフトウエアにより
ウエイトしてCPUの処理を一時的に停止させることが
行われていた。2. Description of the Related Art A conventional (not shown) information processing apparatus is a C
In order to delay the processing speed of PU, the clock frequency given to this CPU is changed, or when a peripheral device with a slow speed is used, it is waited by software and CPU processing is temporarily stopped. Was being done.
【0003】しかし、CPUに与えるクロック周波数を
変更した場合には、それに伴うCPUのタイミング回路
の設計を変更する必要がある場合が有り、あるいはソフ
トウエアで対応する場合には、ソフトウエアの変更を必
要とする。However, if the clock frequency given to the CPU is changed, it may be necessary to change the design of the timing circuit of the CPU, or if software is required, change the software. I need.
【0004】さらに、従来のCPUのウエイト機能を使
用して、時間の待ち合せをする方法については、アクセ
ス時間の遅いI/Oアクセスをする場合にのみ、そのタ
イミングでCPUにウエイトをかけるという手段である
ため、情報処理装置すなわち、システムの実行速度を任
意に遅延できないという欠点があった。Further, in the conventional method of waiting for time by using the wait function of the CPU, the CPU is waited at that timing only when the I / O access with the slow access time is performed. Therefore, there is a drawback that the execution speed of the information processing apparatus, that is, the system cannot be arbitrarily delayed.
【0005】そこで、実際の例に即して以下に記述す
る。Therefore, description will be given below in accordance with an actual example.
【0006】まず、「CPUの命令実行シーケンスとは
無関係に、情報処理装置すなわちシステムの実行速度を
任意に遅くする」とは、どう言う意味かについて述べ
る。First, what is meant by "arbitrarily slowing down the execution speed of the information processing apparatus or system regardless of the instruction execution sequence of the CPU" will be described.
【0007】周知の通り、マイクロプロセッサシステム
において、そのシステムの性能(処理速度)は、同一C
PU及び同一プログラムを実行した場合、そのシステム
が動作しているクロックの周波数に左右される。As is well known, in a microprocessor system, the system performance (processing speed) is the same as C
When the PU and the same program are executed, it depends on the frequency of the clock at which the system is operating.
【0008】すなわち、一般的なマイクロプロセッサ
(例えばμPD780Cなど)では、そのプログラムの
実行シーケンスは、メモリーから1つの命令をフェッチ
し、CPU内部で命令の種類を解読し、それに応じた処
理機能をそれに引き続いて実行するといったサイクルを
繰り返す。That is, in a general microprocessor (for example, μPD780C), the execution sequence of the program fetches one instruction from the memory, decodes the type of the instruction inside the CPU, and provides a corresponding processing function to it. Repeat the cycle of subsequent executions.
【0009】そしてさらに、1つの命令実行シーケンス
は、いくつかのバスサイクルで構成されており、この1
つ1つのバスサイクルが単純な1動作を実行する。(例
えば、メモリーのリードアクセスなど)従って、システ
ムは、これらのバスサイクルを組み合わせて連続的に実
行され、動作を行っている。Further, one instruction execution sequence consists of several bus cycles.
Each bus cycle performs one simple operation. Therefore, the system is continuously executing and operating by combining these bus cycles (for example, memory read access).
【0010】例えば、CPUがμPD780Cの場合の
基本バスサイクルについて見ると、この基本バスサイク
ルは、5種類のバスサイクルとなっており、1つの命令
は必ず第一のインストラクションフェッチサイクルで始
まる。For example, looking at the basic bus cycle when the CPU is the μPD780C, this basic bus cycle consists of five types of bus cycles, and one instruction always starts with the first instruction fetch cycle.
【0011】その後は、ここでCPU内部に取り込まれ
た命令の種類により、その次に引き続いて発生するバス
サイクルが異なってくる。After that, the bus cycle that occurs subsequently differs depending on the type of the instruction fetched into the CPU.
【0012】あるいは、命令によっては、このインスト
ラクションフェッチサイクルのみで命令実行を完了後、
次の命令のフェッチサイクルが発生するものもある。Alternatively, depending on the instruction, after the instruction execution is completed only in this instruction fetch cycle,
In some cases, the next instruction fetch cycle occurs.
【0013】従って、ここで言えることは、命令実行の
種類によって発生するバスサイクルのシーケンスは、画
一的に決定されているということである。Therefore, what can be said here is that the sequence of bus cycles generated depending on the type of instruction execution is uniformly determined.
【0014】このようなシステムにおいて、ある特定の
アプリケーションプログラムを実行させた場合、システ
ムのクロック周波数は同一であり、その実行したプログ
ラムが同一のものであれば、同一の時間でその処理を完
了させることができる。In such a system, when a specific application program is executed, the system clock frequencies are the same, and if the executed programs are the same, the processing is completed in the same time. be able to.
【0015】こういう今日の状況のなかで、パソコンシ
ステムに使用されているマイクロプロセッサの処理速度
は、年々向上している。Under these circumstances, the processing speed of the microprocessor used in the personal computer system is increasing year by year.
【0016】その性能向上のメカニズムは、下記の a)より高いクロック周波数で動作させることが可能に
なる。The mechanism for improving the performance makes it possible to operate at a higher clock frequency than the following a).
【0017】b)1つの命令を実行するためのクロック
サイクル数が少なくなる。 の2種類があげられる。B) The number of clock cycles for executing one instruction is reduced. There are two types.
【0018】近年、このようなマイクロプロセッサの性
能向上に追随してシステムもまた、その最高速度で動作
するように設計されている。In recent years, the system has also been designed to operate at its maximum speed following the improvement in the performance of such microprocessors.
【0019】しかしながら、アプリケーションによって
は、ただ処理スピードが早くなっただけでは不都合を生
じるケースがある。However, depending on the application, inconvenience may occur if the processing speed is simply increased.
【0020】例えば、アプリケーションプログラムの中
には、ビジネスソフトなどのように実行スピードが早く
なればなるほど良い物もあれば、ゲームソフトのように
実行スピードが変わると使えなくなるものもある。(速
くなると、アクションゲームなどは操作できなくな
る。)この場合、何らかの方法でシステムの処理速度
を、性能向上前のレベルに落とすための手段が必要とな
り、この手段として以下のものが考えられる。For example, some application programs are better as the execution speed is faster, such as business software, and some are not usable when the execution speed is changed, such as game software. (When it becomes faster, it becomes impossible to operate the action game and the like.) In this case, a means for lowering the processing speed of the system to the level before the performance improvement by some method is required, and the following means can be considered.
【0021】1)マイクロプロセッサのクロック周波数
を下げるモードを備える。1) A mode for lowering the clock frequency of the microprocessor is provided.
【0022】これは主に、上述の性能向上のa)の場合
に考えられる物で、クロック周波数にモードを持たせ、
性能向上前と同一クロック周波数で動作させるモードと
を備えたものである。This is mainly conceivable in the case of a) of the above performance improvement, in which the clock frequency has a mode,
It has a mode of operating at the same clock frequency as before the performance improvement.
【0023】2)マイクロプロセッサそのものを2つ備
える(CPUの二重化)。2) Two microprocessors themselves are provided (duplication of CPU).
【0024】これは、主に上述性能向上のb)の場合に
考えられるもので、命令実行シーケンスそのものが短縮
されているため、マイクロプロセッサ自信を向上前のも
のもシステムに搭載し、マイクロプロセッサを切り替え
て使用するものである。This is mainly conceivable in the case of b) of the above performance improvement, and since the instruction execution sequence itself is shortened, the microprocessor before improvement is installed in the system, and the microprocessor is installed. It is used by switching.
【0025】しかしながら、これらの方法は、コスト高
及びCPUの二重化などではシステム規模の増大とな
り、かつCPUのクロックを2種類サポートする場合に
はタイミング設計も2種類必要で煩雑となる課題があっ
た。However, these methods have a problem that the system scale is increased due to high cost and duplication of the CPU, and when two types of CPU clocks are supported, two types of timing designs are required. .
【0026】一方、一般のマイクロプロセッサには、D
MA転送や外部バスマスタにバス使用権を与えるため
に、1つのバスサイクルとその後に発生するバスサイク
ルとの間にアイドルサイクル(CPUがなにも動作して
いないサイクルで通常はデータ及びアドレスバスをフロ
ートさせ、CPUが出力する制御信号もインアクティブ
状態となる)を挿入するための機能を有するものが多
い。On the other hand, in a general microprocessor, D
In order to give the right to use the MA transfer or the external bus master, an idle cycle between one bus cycle and a bus cycle that occurs thereafter (a data and address bus is normally used in a cycle in which no CPU is operating) Many of them have a function of floating and inserting a control signal output from the CPU).
【0027】一般にこの機能を「バスリクエスト機能」
あるいは「ホールド機能」と称している。Generally, this function is called "bus request function".
Alternatively, it is called "hold function".
【0028】この「バスリクエスト機能(ホールド機
能)」は、マイクロプロセッサに設けられたバスリクエ
スト端子(ホールド端子)に、バスリクエスト信号(ホ
ールドリクエスト信号)を入力することにより動作させ
ることができる。This "bus request function (hold function)" can be operated by inputting a bus request signal (hold request signal) to a bus request terminal (hold terminal) provided in the microprocessor.
【0029】従って、このような「バスリクエスト機能
(ホールド機能)」を使用することにより、バスサイク
ルとバスサイクルとの間にアイドルサイクルを挿入する
ことができ、ひいてはクロック周波数を変更することな
しに命令実行時間を増加させることができる。Therefore, by using such a "bus request function (hold function)", an idle cycle can be inserted between the bus cycles, and without changing the clock frequency. Instruction execution time can be increased.
【0030】例えばこのような「バスリクエスト機能
(ホールド機能)」を使用してシステムの処理速度を制
御する場合、制御方法としては、システムの平均動作速
度を性能向上前にできる限り近づけておき、バスリクエ
スト信号(ホールドリクエスト信号)には、一定周期で
一定時間アクティブとなる信号を発生させ、これを入力
とする。For example, when controlling the processing speed of the system using such a "bus request function (hold function)", the control method is to make the average operating speed of the system as close as possible before performance improvement. As the bus request signal (hold request signal), a signal that is active for a fixed period of time is generated, and this signal is input.
【0031】これによりシステムとしては、ある一定時
間毎に、一定クロック数のアイドルサイクルが、バスサ
イクルとバスサイクルとの間に挿入されることになり、
その分システムの実行速度を低下させることができる。As a result, in the system, an idle cycle of a fixed number of clocks is inserted between bus cycles at fixed intervals.
The execution speed of the system can be reduced accordingly.
【0032】実際の例では、処理速度を20%低下させ
るためには、命令実行バスサイクルのトータルクロック
数100クロックに対して20クロック分のアイドルサ
イクルが挿入されるように、バスリクエスト信号(ホー
ルドリクエスト信号)を発生させれば良い。In a practical example, in order to reduce the processing speed by 20%, a bus request signal (hold) is inserted so that an idle cycle of 20 clocks is inserted for 100 clocks of the total number of instruction execution bus cycles. A request signal) may be generated.
【0033】[0033]
【発明が解決しようとする課題】本発明は、このマイク
ロプロセッサが持つ「バスリクエスト機能(ホールド機
能)」に着目して、ここに上述のような信号を入力する
ことにより、情報処理装置すなわちシステムの動作速度
を遅くしようとするものであり、これにより性能向上前
のシステムとの互換性を実現している。SUMMARY OF THE INVENTION The present invention focuses on the "bus request function (hold function)" of this microprocessor, and inputs the signal as described above to the information processing apparatus or system. It is intended to slow down the operating speed of, and thereby realizes compatibility with the system before performance improvement.
【0034】その結果、本発明のように「バスリクエス
ト機能(ホールド機能)」を使用する場合には、バスサ
イクルとバスサイクルとの間にアイドルサイクルが挿入
されるが、それ以外のタイミング(例えばクロックのサ
イクルタイムなど)の変更は行わないため設計が容易で
あると共に、CPUを二重化する必要もなく、コストア
ップを最小限に止めることができる。As a result, when the "bus request function (hold function)" is used as in the present invention, an idle cycle is inserted between bus cycles, but at other timings (for example, Since the clock cycle time etc. are not changed, the design is easy, and there is no need to duplicate the CPU, and cost increase can be minimized.
【0035】従って、本発明の目的は、上述の課題を解
決するために、CPU部の周辺回路あるいはソフトウエ
アを変更せずに、任意の周期で任意の時間にアイドルサ
イクルをCPUの命令実行バスサイクルへ、CPU部の
命令実行シーケンスとは無関係に挿入することにより、
システムの実行速度を任意に遅延可能とする情報処理装
置を提供することにある。Therefore, in order to solve the above-mentioned problems, an object of the present invention is to change the idle cycle at any time and at any time without changing the peripheral circuit or software of the CPU unit to the instruction execution bus of the CPU. By inserting into the cycle regardless of the instruction execution sequence of the CPU part,
An object is to provide an information processing device capable of arbitrarily delaying the execution speed of the system.
【0036】[0036]
【課題を解決するための手段】上述の課題を解決するた
めに、本発明の情報処理装置は、CPUと、このCPU
へ供給するクロックと同期し、かつ予め設定された所定
の周期で所定の時間幅を有する信号を発生する第1の手
段と、この第1の手段の出力信号に基づき、上記CPU
の処理サイクルにアイドルサイクルを挿入する第2の手
段とを備え、上記CPUの命令実行シーケンスを一時停
止させることで、システムの実行速度を所定時間のみ遅
延することを特徴とする。In order to solve the above problems, an information processing apparatus according to the present invention includes a CPU and a CPU.
A first means for generating a signal having a predetermined time width in a predetermined cycle, which is synchronized with a clock supplied to the CPU, and the CPU based on the output signal of the first means.
And a second means for inserting an idle cycle into the processing cycle of 1., and by temporarily suspending the instruction execution sequence of the CPU, the execution speed of the system is delayed by a predetermined time.
【0037】また、本発明の情報処理装置は、上記第1
の手段で発生される信号の周期及び時間幅のいずれか一
方あるいは両方を設定する第3の手段を備えたことを特
徴とする。The information processing apparatus of the present invention is the first
And a third means for setting either one or both of the period and time width of the signal generated by the means.
【0038】[0038]
【実施例】以下に、本発明の一実施例による情報処理装
置を図面を参照して説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS An information processing apparatus according to an embodiment of the present invention will be described below with reference to the drawings.
【0039】図1は、本発明の一実施例による情報処理
装置のブロック構成図である。FIG. 1 is a block diagram of an information processing apparatus according to an embodiment of the present invention.
【0040】図2は、本発明の一実施例による情報処理
装置のタイムチャートである。FIG. 2 is a time chart of the information processing apparatus according to the embodiment of the present invention.
【0041】図3〜7は、一般的なCPU(μPD78
0C)の基本バスサイクルを示すタイムチャートであ
る。3 to 7 show a general CPU (μPD78
It is a time chart which shows the basic bus cycle of 0C).
【0042】図8は、一般的なCPU(μPD780
C)のバスリクエスト/バスアクノリッジサイクル動作
(アイドルサイクルの挿入動作)を示すタイムチャート
である。FIG. 8 shows a general CPU (μPD780
9 is a time chart showing a bus request / bus acknowledge cycle operation (insertion operation of an idle cycle) of C).
【0043】本発明の一実施例による情報処理装置は、
図1に示すように、1はバスリクエスト信号入力端子6
とバスアクノリッジ信号出力端子7を設けたCPU,2
はクロック発生器,3は分周比設定器31と分周器32
とを備えた第1の手段,4は第1のフリップフロップ4
1と第2のフリップフロップ42とNANDゲート43
とを備えた第2の手段,5はトリガ回路51とカウント
値設定器52とカウンタ53とを備えた第3の手段で構
成される。An information processing apparatus according to one embodiment of the present invention is
As shown in FIG. 1, 1 is a bus request signal input terminal 6
And a CPU provided with a bus acknowledge signal output terminal 7,
Is a clock generator, 3 is a frequency division ratio setter 31 and a frequency divider 32
And a first flip-flop 4
1st and 2nd flip-flop 42 and NAND gate 43
And a third means 5 having a trigger circuit 51, a count value setting device 52 and a counter 53.
【0044】また、101はバスアクノリッジ信号,1
02はクロック信号,131は分周比設定信号,132
は分周クロック信号,141はバスリクエスト信号,1
42はフリップフロップ出力信号,143はNANDゲ
ート出力信号,151はトリガ信号,152はカウント
値設定信号,153はカウンタ出力信号の各種信号で構
成される。Further, 101 is a bus acknowledge signal, 1
02 is a clock signal, 131 is a frequency division ratio setting signal, 132
Is a divided clock signal, 141 is a bus request signal, 1
42 is a flip-flop output signal, 143 is a NAND gate output signal, 151 is a trigger signal, 152 is a count value setting signal, and 153 is a counter output signal.
【0045】次に、本発明の一実施例による情報処理装
置の動作を、図1及び図2を参照して説明する。Next, the operation of the information processing apparatus according to the embodiment of the present invention will be described with reference to FIGS.
【0046】本発明の一実施例による情報処理装置のク
ロック発生器2は、CPU1の動作クロック信号102
を連続的に発生しており、CPU1はこのクロックのレ
ートで動作している。The clock generator 2 of the information processing apparatus according to the embodiment of the present invention uses the operation clock signal 102 of the CPU 1.
Are continuously generated, and the CPU 1 is operating at this clock rate.
【0047】このクロック信号102は、また分周器3
2にも入力されており、分周器32は分周比設定器31
から出力された分周比設定信号131でクロック信号1
02を分周し、分周クロック信号132を出力してい
る。(本発明の一実施例では、分周比が16分周で設定
されているものとして図2に記載している。)分周クロ
ック信号132は、第1のフリップフロップ41のクロ
ック入力CKに加えられ、第1のフリップフロップ41
のデータ入力はGNDに接続されているため、分周クロ
ック信号132の立ち上がりエッジのタイミングで、第
1のフリップフロップ41の出力Qからバスリクエスト
信号141(アクティブロウ)がCPU1のバスリクエ
スト信号入力端子6に入力される。This clock signal 102 is also used by the frequency divider 3
2 is also input, and the frequency divider 32 is the frequency division ratio setter 31
With the division ratio setting signal 131 output from the clock signal 1
02 is divided and a divided clock signal 132 is output. (In one embodiment of the present invention, it is shown in FIG. 2 that the division ratio is set to divide by 16.) The divided clock signal 132 is input to the clock input CK of the first flip-flop 41. In addition, the first flip-flop 41
Data input is connected to GND, the bus request signal 141 (active low) is output from the output Q of the first flip-flop 41 to the bus request signal input terminal of the CPU 1 at the rising edge timing of the divided clock signal 132. 6 is input.
【0048】一方、バスリクエスト信号141が入力さ
れたCPU1では、図8に示すタイミングでバスリクエ
スト信号141を認識し、現在実行中の基本バスサイク
ルが終了すると直ちにアイドルサイクルを挿入し始め、
この時同時にバスアクノリッジ信号(アクティブロウ)
101がCPU1のバスアクノリッジ信号出力端子7よ
り出力される。On the other hand, the CPU 1 to which the bus request signal 141 is input recognizes the bus request signal 141 at the timing shown in FIG. 8, and immediately after the completion of the currently executed basic bus cycle, the idle cycle starts to be inserted.
At the same time, the bus acknowledge signal (active low)
101 is output from the bus acknowledge signal output terminal 7 of the CPU 1.
【0049】このバスアクノリッジ信号(アクティブロ
ウ)101は、トリガ回路51に入力され、同時に入力
されているクロック信号102を使用してバスアクノリ
ッジ信号101(アクティブロウ)の立ち下がりエッジ
に同期したトリガ信号151がカウンタ53に入力さ
れ、カウンタ53をリセットすると同時にカウント動作
を開始させる。The bus acknowledge signal (active low) 101 is input to the trigger circuit 51, and the trigger signal synchronized with the falling edge of the bus acknowledge signal 101 (active low) is input by using the clock signal 102 which is input at the same time. 151 is input to the counter 53, the counter 53 is reset, and at the same time, the counting operation is started.
【0050】カウンタ53は、カウント値設定器52か
ら出力されるカウント値設定信号152に基づき設定さ
れたカウント値までクロック信号102をカウントし、
図2に示すように、トリガ信号151が入力された後に
所定のカウント動作が完了するまでの間、ロウレベルと
なるカウンタ出力信号153が出力される。(本実施例
ではカウント値は、カウント値設定器52により5クロ
ックが設定されているものとして図2に記載してい
る。)カウンタ出力信号153は、第2のフリップフロ
ップ42のデータ入力Dに入力され、第2のフリップフ
ロップ42のクロック入力CKに加えられるクロック信
号102の立ち上がりエッジに同期されて、第2のフリ
ップフロップ42の出力XQより反転信号が出力され
る。The counter 53 counts the clock signal 102 up to the count value set based on the count value setting signal 152 output from the count value setting unit 52,
As shown in FIG. 2, a counter output signal 153 that is at a low level is output until a predetermined counting operation is completed after the trigger signal 151 is input. (In the present embodiment, the count value is shown in FIG. 2 as having 5 clocks set by the count value setting unit 52.) The counter output signal 153 is input to the data input D of the second flip-flop 42. An inverted signal is output from the output XQ of the second flip-flop 42 in synchronization with the rising edge of the clock signal 102 that is input and applied to the clock input CK of the second flip-flop 42.
【0051】また、カウンタ出力信号153と第2のフ
リップフロップ出力信号142は2入力のNANDゲー
ト43に入力されてNAND論理が取られ、図2に示す
ように、カウンタ53がカウントを完了したタイミング
で出力されるNANDゲート出力信号143(ストロー
ブ信号)となる。Further, the counter output signal 153 and the second flip-flop output signal 142 are input to the 2-input NAND gate 43 to take the NAND logic, and as shown in FIG. 2, the timing when the counter 53 completes the count. It becomes the NAND gate output signal 143 (strobe signal) output at.
【0052】このNANDゲート出力信号143(スト
ローブ信号)を第1のフリップフロップ41のプリセッ
トPRに入力し、このタイミングで第1のフリップフロ
41をプリセットしてバスリクエスト信号141をイン
アクティブ(ハイレベル)にする。The NAND gate output signal 143 (strobe signal) is input to the preset PR of the first flip-flop 41, and the first flip-flow 41 is preset at this timing to inactivate the bus request signal 141 (high level). To
【0053】バスリクエスト信号141がインアクティ
ブとなると、CPU1はそれをクロックの立ち上がりエ
ッジで認識して、その次のクロックサイクルから再び命
令実行を開始し、これに伴ってアイドルサイクルの挿入
が終了したことを示すために、バスアクノリッジ信号1
01もインアクティブとなる。(実際にはバスアクノリ
ッジ信号101は命令実行サイクルが開始される半クロ
ック前にインアクティブとなる。)このバスアクノリッ
ジ信号101はトリガ回路51に入力されているが、ト
リガ回路51ではバスアクノリッジ信号101の立ち上
がりエッジでは動作しないようになっているため、この
タイミングではトリガ信号は発生しない。When the bus request signal 141 becomes inactive, the CPU 1 recognizes it at the rising edge of the clock and restarts the instruction execution from the next clock cycle, and the insertion of the idle cycle is completed accordingly. Bus acknowledge signal 1 to indicate that
01 also becomes inactive. (Actually, the bus acknowledge signal 101 becomes inactive half a clock before the instruction execution cycle is started.) The bus acknowledge signal 101 is input to the trigger circuit 51, but the trigger circuit 51 causes the bus acknowledge signal 101 to be input. Since it does not operate at the rising edge of, the trigger signal is not generated at this timing.
【0054】以上のようにアイドルサイクルが挿入され
る一連の動作が発生し、その後再び命令実行が開始さ
れ、この動作は分周クロックの各立ち上がりエッジがく
る毎に発生するため、アイドルサイクルが挿入される周
期は分周クロック信号132の周期と同一となる。As described above, a series of operations in which the idle cycle is inserted occurs, and thereafter the instruction execution is started again. Since this operation occurs at each rising edge of the divided clock, the idle cycle is inserted. The cycle is the same as the cycle of the divided clock signal 132.
【0055】また、1回の動作によりアイドルサイクル
が挿入されるクロック値はカウンタ53のカウント値に
依存している。(本発明の一実施例では、カウント値が
5クロックであり、挿入されるアイドルサイクルの数は
7クロックとなる。)カウンタ53のカウント値と挿入
されるアイドルサイクル数との違いは、バスリクエスト
信号141がインアクティブになってからCPU1がそ
れを認識し、実際に命令実行を開始するまでに2クロッ
クかかるためである。The clock value into which the idle cycle is inserted by one operation depends on the count value of the counter 53. (In one embodiment of the present invention, the count value is 5 clocks, and the number of idle cycles inserted is 7 clocks.) The difference between the count value of the counter 53 and the number of idle cycles inserted is the bus request. This is because it takes 2 clocks after the signal 141 becomes inactive until the CPU 1 recognizes it and actually starts executing the instruction.
【0056】このような本発明の一実施例では、クロッ
ク16個の周期で7クロック分のアイドルサイクルが命
令実行シーケンスとは無関係に挿入されることになり、
システムの動作速度を約44%遅くすることができる。In such an embodiment of the present invention, an idle cycle of 7 clocks is inserted in a cycle of 16 clocks regardless of the instruction execution sequence.
The operating speed of the system can be reduced by about 44%.
【0057】この結果、本発明の一実施例のように「バ
スリクエスト機能(ホールド機能)」を使用することに
より、アイドルサイクルを任意の周期で任意の時間に挿
入してシステムの動作速度を制御するため、アイドルサ
イクルが挿入されるだけでそれ以外のタイミング(例え
ばクロックのサイクルタイムなど)の変更を行う必要も
ないため設計が容易であると共に、CPUを二重化する
必要もなく、コストアップを最小限に抑えることができ
る。As a result, by using the "bus request function (hold function)" as in the embodiment of the present invention, the idle cycle is inserted at an arbitrary period and at an arbitrary time to control the operating speed of the system. Therefore, the idle cycle is only inserted and there is no need to change other timings (such as clock cycle time), which simplifies the design and eliminates the need for CPU duplication, which minimizes cost increase. You can keep it to the limit.
【0058】なお、本発明の一実施例ではアイドルサイ
クルを挿入する周期を定めるクロックの分周比と、挿入
する時間を定めるクロックのカウント値を各々分周比設
定器31及びカウント値設定器52により設定するよう
に構成したが、これらの設定器はCPU1で起動する前
に予めアプリケーションソフトに設定してもよく、ある
いはスイッチ等によりマニアルで設定できるようにして
もよく、さらに固定値を与えるものでもよい。In the embodiment of the present invention, the frequency division ratio of the clock that determines the cycle for inserting the idle cycle and the count value of the clock that determines the insertion time are respectively set to the frequency division ratio setter 31 and the count value setter 52. However, these setting devices may be set in the application software in advance before being activated by the CPU 1, or may be manually set by a switch or the like, and fixed values are given. But it's okay.
【0059】一般的なCPUであるμPD780Cの基
本バスサイクルは、図3〜図7に示すように、CPUが
図3に示すインストラクションフェッチサイクルで始ま
る命令実行バスサイクルを繰り返して命令実行を行って
いる。In the basic bus cycle of the μPD780C which is a general CPU, as shown in FIGS. 3 to 7, the CPU repeatedly executes an instruction execution bus cycle starting from the instruction fetch cycle shown in FIG. 3 to execute an instruction. .
【0060】一方、一般的なCPUであるμPD780
Cのバスリクエスト動作は、図8に示すように、バスリ
クエスト信号(BUSRQ)がアクティブ(ロウレベ
ル)となることにより、バスサイクルとバスサイクルと
の間にアイドルサイクル(TXサイクル)が挿入されて
いることを示している。On the other hand, μPD780 which is a general CPU
In the bus request operation of C, as shown in FIG. 8, when the bus request signal (BUSRQ) becomes active (low level), an idle cycle (TX cycle) is inserted between the bus cycles. It is shown that.
【0061】また、この時、CPUがバスリクエスト信
号を受付けてアイドルサイクルに入ったことを示す信号
(バスアクノリッジ信号)がCPUより出力される。At this time, the CPU outputs a signal (bus acknowledge signal) indicating that the CPU has received the bus request signal and entered the idle cycle.
【0062】[0062]
【発明の効果】以上説明したように、本発明の情報処理
装置によれば、CPUの周辺回路あるいはソフトウエア
を変更せずにCPUの処理速度を任意遅延できるので、
システムの実行速度を任意に変更できる効果がある。As described above, according to the information processing apparatus of the present invention, the processing speed of the CPU can be arbitrarily delayed without changing the peripheral circuit or software of the CPU.
This has the effect of arbitrarily changing the system execution speed.
【図面の簡単な説明】[Brief description of drawings]
【図1】本発明の一実施例による情報処理装置のブロッ
ク構成図である。FIG. 1 is a block configuration diagram of an information processing apparatus according to an embodiment of the present invention.
【図2】本発明の一実施例による情報処理装置のタイム
チャートである。FIG. 2 is a time chart of the information processing apparatus according to the embodiment of the present invention.
【図3】一般的なCPUの基本バスサイクルを示すタイ
ムチャートである。FIG. 3 is a time chart showing a basic bus cycle of a general CPU.
【図4】一般的なCPUの基本バスサイクルを示すタイ
ムチャートである。FIG. 4 is a time chart showing a basic bus cycle of a general CPU.
【図5】一般的なCPUの基本バスサイクルを示すタイ
ムチャートである。FIG. 5 is a time chart showing a basic bus cycle of a general CPU.
【図6】一般的なCPUの基本バスサイクルを示すタイ
ムチャートである。FIG. 6 is a time chart showing a basic bus cycle of a general CPU.
【図7】一般的なCPUの基本バスサイクルを示すタイ
ムチャートである。FIG. 7 is a time chart showing a basic bus cycle of a general CPU.
【図8】一般的なCPUのバスリクエスト/バスアクノ
リッジサイクル動作(アイドルサイクルの挿入動作)を
示すタイムチャートである。FIG. 8 is a time chart showing a bus request / bus acknowledge cycle operation (insertion operation of an idle cycle) of a general CPU.
1 CPU 2 クロック(クロック発生器) 3 第1の手段 4 第2の手段 5 第3の手段 6 CPU(バスリクエスト信号入力端子) 7 CPU(バスアクノリッジ信号出力端子) 31 第1の手段(分周比設定器) 32 第1の手段(分周器) 41 第2の手段(第1のフリップフロップ) 42 第2の手段(第2のフリップフロップ) 43 第2の手段(NANDゲート) 51 第3の手段(トリガ回路) 52 第3の手段(カウント値設定器) 53 第3の手段(カウンタ) 101 CPU(バスアクノリッジ信号) 102 クロック(クロック信号) 131 第1の手段(分周比設定信号) 132 第1の手段(分周クロック信号) 141 第2の手段(バスリクエスト信号) 142 第2の手段(フリップフロップ出力信号) 143 第2の手段(NANDゲート出力信号) 151 第3の手段(トリガ信号) 152 第3の手段(カウント値設定信号) 153 第3の手段(カウンタ出力信号) 1 CPU 2 Clock (Clock Generator) 3 First Means 4 Second Means 5 Third Means 6 CPU (Bus Request Signal Input Terminal) 7 CPU (Bus Acknowledge Signal Output Terminal) 31 First Means (Division) Ratio setter) 32 1st means (frequency divider) 41 2nd means (1st flip-flop) 42 2nd means (2nd flip-flop) 43 2nd means (NAND gate) 51 3rd Means (trigger circuit) 52 Third means (count value setting device) 53 Third means (counter) 101 CPU (bus acknowledge signal) 102 Clock (clock signal) 131 First means (dividing ratio setting signal) 132 first means (divided clock signal) 141 second means (bus request signal) 142 second means (flip-flop output signal) 143 second means (NAND gate output signal) 151 Third means (trigger signal) 152 Third means (count value setting signal) 153 Third means (counter output signal)
Claims (2)
クと同期し、かつ予め設定された所定の周期で所定の時
間幅を有する信号を発生する第1の手段と、この第1の
手段の出力信号に基づき、上記CPUの処理サイクルに
アイドルサイクルを挿入する第2の手段とを備え、上記
CPUの命令実行シーケンスを一時停止させることで、
システムの実行速度を所定時間のみ遅延することを特徴
とする情報処理装置。1. A CPU, a first means for generating a signal synchronized with a clock supplied to the CPU and having a predetermined time width at a predetermined cycle, and an output of the first means. A second means for inserting an idle cycle into the processing cycle of the CPU based on a signal, and temporarily suspending the instruction execution sequence of the CPU,
An information processing apparatus, wherein the execution speed of the system is delayed by a predetermined time.
及び時間幅のいずれか一方あるいは両方を設定する第3
の手段を備えたことを特徴とする請求項1記載の情報処
理装置。2. A third means for setting either one or both of the period and time width of the signal generated by the first means.
The information processing apparatus according to claim 1, further comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16774292A JPH0612254A (en) | 1992-06-25 | 1992-06-25 | Information processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16774292A JPH0612254A (en) | 1992-06-25 | 1992-06-25 | Information processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0612254A true JPH0612254A (en) | 1994-01-21 |
Family
ID=15855276
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16774292A Pending JPH0612254A (en) | 1992-06-25 | 1992-06-25 | Information processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0612254A (en) |
-
1992
- 1992-06-25 JP JP16774292A patent/JPH0612254A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4758945A (en) | Method for reducing power consumed by a static microprocessor | |
| KR920002754B1 (en) | Microcomputer system with sleep function to save power consumption | |
| US4748559A (en) | Apparatus for reducing power consumed by a static microprocessor | |
| US5918043A (en) | Method and apparatus for asynchronously stopping the clock in a processor | |
| US7565563B2 (en) | Non-volatile memory arrangement and method in a multiprocessor device | |
| JP3709040B2 (en) | Asynchronous data processor | |
| JPH06139189A (en) | Common bus arbitrating mechanism | |
| US6269043B1 (en) | Power conservation system employing a snooze mode | |
| US5537582A (en) | Bus interface circuitry for synchronizing central processors running at multiple clock frequencies to other computer system circuitry | |
| CN104375820A (en) | Event-driven processor and operating method thereof | |
| US5535376A (en) | Data processor having a timer circuit for performing a buffered pulse width modulation function and method therefor | |
| JPH07281782A (en) | Clock control circuit | |
| US5304855A (en) | Bi-level pulse accumulator | |
| JPH0454553A (en) | Microprocessor | |
| JPS63153634A (en) | Data processor | |
| US5875482A (en) | Method and apparatus for programmable chip select negation in a data processing system | |
| JPH05100844A (en) | Program wait control circuit for micro processor | |
| JP2636074B2 (en) | Microprocessor | |
| JP2536102B2 (en) | Data processing device | |
| JP2683295B2 (en) | Arithmetic processing unit | |
| JPH02183844A (en) | Control method for decoding signal | |
| JPS61136115A (en) | Basic clock generating circuit of microcomputer system | |
| JPH06139076A (en) | Interruption processor | |
| JP2000250786A (en) | Watchdog timer | |
| JPH1069460A (en) | Bus control device |