JPH01177635A - System for controlling wait - Google Patents

System for controlling wait

Info

Publication number
JPH01177635A
JPH01177635A JP63001693A JP169388A JPH01177635A JP H01177635 A JPH01177635 A JP H01177635A JP 63001693 A JP63001693 A JP 63001693A JP 169388 A JP169388 A JP 169388A JP H01177635 A JPH01177635 A JP H01177635A
Authority
JP
Japan
Prior art keywords
processor
wait
system clock
clock
reference 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
Application number
JP63001693A
Other languages
Japanese (ja)
Inventor
Shinjirou Nagaoka
永岡 伸治郎
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 Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP63001693A priority Critical patent/JPH01177635A/en
Publication of JPH01177635A publication Critical patent/JPH01177635A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To execute an apparent processor wait in a reference clock unit in which a period is faster than a system clock, and to efficiently operate a processor by controlling the system clock given to the processor by means of the timing of a reference clock. CONSTITUTION:When a wait instructing signal WAIT is inputted, the state of the processor (equal to a system clock period) is counted, and when a prescribed number T2 and a 2-state number of T3 set beforehand are attained, a resetting pulse is generated. Thereafter, the resetting pulse is completed in response to the terminating timing of a wait instructing input, a frequency- divider 2 starts the frequency-dividing action of the reference clock again synchronizing to the reference clock at such a time, and the generation of the system clock is resumed. Consequently, in the processor state T3, for example, a wait TW for the 1 period of the reference clock is applied, and the action cycle of the processor can be extended in appearance. Thus, a throughput can be improved.

Description

【発明の詳細な説明】 技術分野 本発明はウェイト制御方式に関し、特にプロセッサの動
作サイクル時間を拡張してウェイト状態を実現するため
のウェイト制御方式に関する。
TECHNICAL FIELD The present invention relates to a wait control method, and more particularly to a wait control method for realizing a wait state by extending the operating cycle time of a processor.

従来技術 通常、メモリやI10コントローラに要求されるアクセ
ス時間を確保するために、プロセッサにはメモリリード
サイクルやIlo リードライトサイクルを拡張するい
わゆるウェイト制御機能が付加されている。このウェイ
1〜制御機能はプロセッサの動作サイクル中にウェイト
指令信号をこのプロセッサに与えることによってアクセ
スサイクルを追加するのが一般的となっている。
BACKGROUND OF THE INVENTION Usually, in order to secure the access time required for memory and the I10 controller, a so-called wait control function is added to a processor to extend the memory read cycle and Ilo read/write cycle. It is common for this way 1 to control function to add an access cycle by giving a wait command signal to the processor during the processor's operating cycle.

プロセッサの動作サイクルはプロセッサに供給されるシ
ステムクロックに同期しており、システムクロックの数
サイクル分で一つの動作サイクルが規定されている。従
来のウェイト制御方式では、数サイクルで構成される一
連の動作サイクル中にシステムクロックのある規定され
た数が挿入されることによりプロセッサの動作サイクル
を拡張するようになっている。例えば、1ウエイトであ
れば、−iの動作サイクル中にシステムサイクルの1サ
イクル分が、また2ウエイトであれば2サイクル分が、
夫々無条件に挿入されて動作サイクルが拡張されるよう
になっている。
The operating cycle of the processor is synchronized with the system clock supplied to the processor, and one operating cycle is defined as several cycles of the system clock. In conventional wait control methods, the operating cycles of a processor are extended by inserting a certain number of system clocks into a series of operating cycles consisting of several cycles. For example, if there is 1 wait, one system cycle is taken during the -i operation cycle, and if there is 2 waits, 2 cycles are taken.
Each is inserted unconditionally to extend the operation cycle.

ここで、メモリアクセスやI10アクセスのために確保
されるべき時間が、例えば、システムクロックサイクル
の半サイクル分若しくは1/4サイクル分であったとし
ても、1ウエイトであれば1サイクル分、2ウエイトで
あれば2サイクル分が無条件に挿入される。すなわち、
システムクロックの整数分のサイクル数だけ必ず拡張さ
れるようになっているので、無駄な時間が増大すること
になり、効率の良い動作サイクルを確保することができ
ず、プロセッサのスループットを低下させるという欠点
がある。
Here, even if the time to be secured for memory access or I10 access is, for example, a half cycle or a quarter cycle of the system clock cycle, if it is 1 wait, it will be 1 cycle or 2 waits. If so, two cycles are inserted unconditionally. That is,
Since the system clock is always extended by an integer number of cycles, it increases wasted time, makes it impossible to secure efficient operating cycles, and reduces processor throughput. There are drawbacks.

発明の目的 そこで、本発明は上記のような従来のものの欠点を解決
すべくなされたものであって、その目的とするところは
、効率の良い動作サイクルを確保するようにしてプロセ
ッサのスループットを向上可能なウェイト制御方式を提
供することにある。
Purpose of the Invention The present invention has been made to solve the above-mentioned drawbacks of the conventional ones, and its purpose is to improve the throughput of a processor by ensuring an efficient operation cycle. The object of the present invention is to provide a possible weight control method.

九肌例亙羞 本発明によれば、基本クロック発生手段と、この基本ク
ロックを分周器により分周して、プロセッサの動作サイ
クルを決定するシステムクロックとするシステムクロッ
ク発生手段とを含み、ウェイト指令信号に応答して前記
プロセッサの動作サイクル期間を拡張するようにしたウ
ェイト制御方式であって、前記ウェイト指令信号に応答
して前記分周器のリセットを行い、前記ウェイト指令の
終了に応答して、前記基本クロックに同期して前記分周
器のリセットを解除するようにしたことを特徴とするウ
ェイト制御方式が得られる。
According to the present invention, the present invention includes a basic clock generating means, and a system clock generating means that divides the basic clock using a frequency divider to generate a system clock for determining the operating cycle of the processor. The wait control method extends the operation cycle period of the processor in response to a command signal, the frequency divider is reset in response to the wait command signal, and the frequency divider is reset in response to the termination of the wait command. Thus, a weight control method is obtained, characterized in that the reset of the frequency divider is released in synchronization with the basic clock.

実施例 次に図面を用いて本発明の実施例について説明する。Example Next, embodiments of the present invention will be described using the drawings.

第1図は本発明の実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the invention.

図において、オシレータ1は基本クロックを発生するも
のであり、この基本クロックが分周器2により1/4分
周されてクロックトライバ3へ供給される。このクロッ
クトライバ3により、プロセッサの動作サイクルを決定
するシステムクロックが各部回路へ供給されるようにな
っている。 一方、分周器2のリセット制御を行うため
にリセットパルス発生回路4が設けられており、ウェイ
ト指示入力に応答してリセットパルスを発生する。具体
的には第2図のタイムチャートに示す如く、ウェイト指
示信号(WAIT)が入力されたときにプロセッサのス
テート(システムクロック周期に等しい)を計数し、予
め設定されている所定数(本実施例ではT2 、T3の
2ステート数としている)になったときに、リセットパ
ルスを発生するのである。
In the figure, an oscillator 1 generates a basic clock, and this basic clock is divided into 1/4 by a frequency divider 2 and supplied to a clock driver 3. This clock driver 3 supplies a system clock that determines the operating cycle of the processor to each circuit. On the other hand, a reset pulse generation circuit 4 is provided to perform reset control of the frequency divider 2, and generates a reset pulse in response to a wait instruction input. Specifically, as shown in the time chart of FIG. 2, when a wait instruction signal (WAIT) is input, the processor states (equal to the system clock cycle) are counted, and a predetermined number (equal to the system clock cycle) is counted. In the example, the number of states is 2 (T2 and T3), a reset pulse is generated.

しかる後に、ウェイト指示入力の終端タイミングに応答
してリセットパルスも終了するようになっており、この
とき基本クロックに同期して再び分周器2は基本クロッ
クの分周動作を開始し、システムクロックの発生が再開
される。これにより、第2図に示すようにプロセッサス
テートT3において、例えば基本クロックの1周期分の
ウェイト(T14がかつてプロセッサの動作サイクルが
みかけ上拡張される。
After that, the reset pulse is also terminated in response to the end timing of the wait instruction input, and at this time, the frequency divider 2 starts dividing the basic clock again in synchronization with the basic clock, and the system clock occurrence is resumed. As a result, as shown in FIG. 2, in the processor state T3, the operating cycle of the processor is apparently extended, for example, by one period of the basic clock (T14).

従来のウェイト制御方式では、第2図の「従来のステー
ト」に示す如く、ウェイト指示入力に応答してステート
T3にてウェイトがかかることは本発明の場合と同様で
あるが、1ウエイトであれば必ずシステムクロックの1
サイクルTW3だけのウェイトがかけられるようになっ
ているので、上述した様なスループットの低下を生じる
のである。
In the conventional weight control method, as shown in "Conventional State" in FIG. 2, a wait is applied in state T3 in response to a wait instruction input, as in the case of the present invention, but even if it is only 1 wait, If the system clock is
Since a weight of only cycle TW3 is applied, the throughput decreases as described above.

これに対し、本発明では、システムクロックを生成する
分周器2のリセット制御によりウェイト制御を行う方式
であるので、真にウェイトに必要な期間だけプロセッサ
の動作サイクル時間を拡張でき、よってスループットの
向上が期待できる。
In contrast, in the present invention, wait control is performed by reset control of the frequency divider 2 that generates the system clock, so the operating cycle time of the processor can be extended by the period truly necessary for the wait, thereby reducing throughput. We can expect improvement.

発明の効果 蒸上の如く、本発明によれは、プロセッサに与えるシス
テムクロックを、基本クロックのタイミングで制御する
ようにしているので、みかけ上のプロセッサウェイトを
システムクロックよりも周期の速い基本クロック単位で
行うことができ、従ってプロセッサを効率良く動作させ
ることが可能となる。
Effects of the Invention As described above, according to the present invention, since the system clock given to the processor is controlled by the timing of the basic clock, the apparent processor weight can be changed to the basic clock unit whose cycle is faster than that of the system clock. Therefore, it is possible to operate the processor efficiently.

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

第1図は本発明の実施例のブロック図、第2図は第1図
のブロックの動作を示すタイムチャートである。 主要部分の符号の説明 1・・・・・・オシレータ 2・・・・・・分周器
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a time chart showing the operation of the blocks in FIG. Explanation of symbols of main parts 1... Oscillator 2... Frequency divider

Claims (1)

【特許請求の範囲】[Claims] (1)基本クロック発生手段と、この基本クロックを分
周器により分周して、プロセッサの動作サイクルを決定
するシステムクロックとするシステムクロック発生手段
とを含み、ウェイト指令信号に応答して前記プロセッサ
の動作サイクル期間を拡張するようにしたウェイト制御
方式であって、前記ウェイト指令信号に応答して前記分
周器のリセットを行い、前記ウェイト指令の終了に応答
して、前記基本クロックに同期して前記分周器のリセッ
トを解除するようにしたことを特徴とするウェイト制御
方式。
(1) A basic clock generating means; a system clock generating means for dividing the basic clock by a frequency divider to generate a system clock for determining the operating cycle of the processor; The wait control method extends the operation cycle period of the frequency divider, wherein the frequency divider is reset in response to the wait command signal, and synchronized with the basic clock in response to the end of the wait command. The weight control method is characterized in that the reset of the frequency divider is canceled when the frequency divider is reset.
JP63001693A 1988-01-07 1988-01-07 System for controlling wait Pending JPH01177635A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63001693A JPH01177635A (en) 1988-01-07 1988-01-07 System for controlling wait

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63001693A JPH01177635A (en) 1988-01-07 1988-01-07 System for controlling wait

Publications (1)

Publication Number Publication Date
JPH01177635A true JPH01177635A (en) 1989-07-13

Family

ID=11508608

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63001693A Pending JPH01177635A (en) 1988-01-07 1988-01-07 System for controlling wait

Country Status (1)

Country Link
JP (1) JPH01177635A (en)

Similar Documents

Publication Publication Date Title
JP2666524B2 (en) Information processing device
JP3039781B1 (en) Timer circuit
JPH0627265A (en) Logical advancing/slowing device
JPH0844594A (en) Data processor
JPH01177635A (en) System for controlling wait
JPS6339939B2 (en)
US5752061A (en) Arrangement of data processing system having plural arithmetic logic circuits
JP3450667B2 (en) Data processor
JPH05315898A (en) Trigger synchronization circuit
JP2968749B2 (en) Microprogram speed control circuit
EP1920346A2 (en) Microcontroller waveform generation
JPH0267613A (en) Clock signal generating circuit
JPH0626305B2 (en) Double memory configuration pulse programmer
JP3138737B1 (en) Power control apparatus and method, and recording medium recording power control program
JPH08137792A (en) Device and method for synchronizing circuit using plurality of clock signals
JPH01136203A (en) Digital primary holding circuit
JP2765038B2 (en) Speed command device for pulse motor
JPH05258087A (en) Microcomputer
JPS6320517A (en) System clock stretch circuit
JPH05101198A (en) Microcomputer
JP3138125B2 (en) Pulse generation circuit
JP2003108433A (en) Data processing device
JPH0622319B2 (en) Delay device
JPS6053332B2 (en) microprogram controller
JPH0553797A (en) Computing device