JP2002290500A - Clock control circuit - Google Patents

Clock control circuit

Info

Publication number
JP2002290500A
JP2002290500A JP2001090655A JP2001090655A JP2002290500A JP 2002290500 A JP2002290500 A JP 2002290500A JP 2001090655 A JP2001090655 A JP 2001090655A JP 2001090655 A JP2001090655 A JP 2001090655A JP 2002290500 A JP2002290500 A JP 2002290500A
Authority
JP
Japan
Prior art keywords
circuit
output
signal
clock
register
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
JP2001090655A
Other languages
Japanese (ja)
Inventor
Seiichi Taguchi
清市 田口
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2001090655A priority Critical patent/JP2002290500A/en
Publication of JP2002290500A publication Critical patent/JP2002290500A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To solve the problem that electric power is consumed wastefully by clock signals supplied under a situation where communication queuing time is caused to a slave circuit owing to circumstances of internal operation of a master circuit when the master circuit 10 and the slave circuit 11 communicate in handshake system. SOLUTION: This clock control circuit has a communication monitor circuit 12 which recognizes the communication state by two signals for handshake, RQST and RDY, clock signals for the master circuit and the slave circuit, CLKM and CLKS, respectively, and a clock selection circuit 13 which selects a clock for the slave circuit to be used in the next communication depending on the communication state. This circuit controls clock frequency of the slave circuit to the necessary minimum level by supplying a high frequency clock when the queuing time of the master circuit is long, and a low frequency clock when the queuing time of the slave circuit is long.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、クロック制御回路
に関し、特に、ハンドシェーク方式で通信を行うデジタ
ル回路のクロック制御を行うクロック制御回路に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock control circuit, and more particularly to a clock control circuit for controlling a clock of a digital circuit performing communication by a handshake method.

【0002】[0002]

【従来の技術】デジタル回路において、2つの回路間で
通信を行う場合には、お互いの回路の状態を相手側へ知
らせるために、ハンドシェーク方式による通信制御を行
う方法が主流となっている。
2. Description of the Related Art In a digital circuit, when communication is performed between two circuits, a method of controlling communication by a handshake method is mainly used in order to notify a partner of the state of each other.

【0003】図6は、ハンドシェーク方式でデータの通
信を行うデジタル回路の構成を示すブロック図である。
図6において、60は主回路、61は主回路60からの
処理要求を受けて処理を行う従回路である。主回路60
はクロック信号CLKMに同期して動作し、従回路61
はクロック信号CLKSに同期して動作する。これら2
つの回路間は本来のデータの通信のためのデータ線(図
示せず)の他、相互の状態を通信する為にRQST信号
とRDY信号で接続されている。RQST信号は、主回
路60からの処理要求を従回路61に伝えることを目的
としており、RDY信号は従回路61の処理完了を主回
路60に伝えることを目的としている。
FIG. 6 is a block diagram showing a configuration of a digital circuit for performing data communication by a handshake method.
In FIG. 6, reference numeral 60 denotes a main circuit, and 61 denotes a sub-circuit that performs processing in response to a processing request from the main circuit 60. Main circuit 60
Operate in synchronization with the clock signal CLKM, and
Operate in synchronization with the clock signal CLKS. These two
The two circuits are connected by a RQST signal and an RDY signal in order to communicate a mutual state, in addition to a data line (not shown) for original data communication. The RQST signal is for transmitting a processing request from the main circuit 60 to the sub circuit 61, and the RDY signal is for transmitting the processing completion of the sub circuit 61 to the main circuit 60.

【0004】図7は、図6に示すデジタル回路の動作状
態を表すタイミングチャートである。RQST信号は、
主回路60の処理要求に応じてCLKM信号の立ち上が
りに同期して有効状態“1”に変化する。従回路61で
は、RQST信号が“1”になった後の最初のCLKS
信号の立ち上がりの際に、主回路60からの処理要求を
認識して処理を開始する。RDY信号は、従回路61で
の処理が完了すると、次のCLKS信号の立ち上がりに
同期して有効状態“1”に変化する。主回路60は、従
回路61からの処理結果を受け取ることが可能となった
際にRQST信号を無効状態“0”に戻す。従回路61
は、RQST信号が“0”になったことで主回路60の
受信完了を認識し、RDY信号を無効状態“0”に戻
し、これで1回の通信を完了する。
FIG. 7 is a timing chart showing an operation state of the digital circuit shown in FIG. The RQST signal is
The state changes to the valid state “1” in synchronization with the rise of the CLKM signal in response to the processing request of the main circuit 60. In the slave circuit 61, the first CLKS after the RQST signal becomes "1"
When the signal rises, it recognizes a processing request from the main circuit 60 and starts processing. When the processing in the slave circuit 61 is completed, the RDY signal changes to the valid state “1” in synchronization with the next rise of the CLKS signal. The main circuit 60 returns the RQST signal to the invalid state “0” when it becomes possible to receive the processing result from the slave circuit 61. Slave circuit 61
Recognizes that the reception of the main circuit 60 has been completed when the RQST signal becomes "0", returns the RDY signal to the invalid state "0", and completes one communication.

【0005】このように、RQST信号が“1”になっ
た後、RDY信号が“1”になるまでの期間(以下、期
間Aとする)は、「主回路が従回路の処理完了を待って
いる期間」に相当する期間を示している。また、RDY
信号が“1”になった後RQST信号が“0”になるま
での期間(以下、期間Bとする)は、「従回路が主回路
の受信完了を待っている期間」に相当する期間を示して
いる。
As described above, the period from when the RQST signal becomes “1” to when the RDY signal becomes “1” (hereinafter referred to as period A) is as follows. A period corresponding to the “period”. Also, RDY
The period from when the signal becomes “1” to when the RQST signal becomes “0” (hereinafter referred to as period B) is a period corresponding to “a period during which the slave circuit waits for the completion of reception of the main circuit”. Is shown.

【0006】[0006]

【発明が解決しようとする課題】従来のハンドシェーク
方式による通信制御の動作は、上述した通りであり、一
方の回路が他方の回路の状態を知ることができるため、
例えば従回路がデータの処理を終えていない段階で、主
回路がデータを送信してしまい、このデータが未処理の
まま消失してしまう等の不具合は起こり得ないようにな
っている。しかしながら、図7に示す動作において、期
間Bが長い場合は、従回路での処理に時間を要した場合
でも、主回路の処理に影響を与えなかったことが推測さ
れる。そのような場合、期間Bの時に従回路へ供給され
るクロック信号は処理に必要ないものであるため、この
期間に従回路にクロック信号CLKSが入ることで消費
される電力が無駄になってしまうという問題があった。
The operation of communication control by the conventional handshake method is as described above, and one circuit can know the state of the other circuit.
For example, at a stage where the slave circuit has not finished processing the data, the main circuit transmits the data, and such a problem that the data is lost in an unprocessed state cannot occur. However, in the operation shown in FIG. 7, when the period B is long, it is presumed that the processing in the main circuit was not affected even when the processing in the slave circuit took time. In such a case, since the clock signal supplied to the slave circuit during the period B is not necessary for processing, power consumed by inputting the clock signal CLKS to the slave circuit during this period is wasted. There was a problem.

【0007】本発明は、上記のような問題点を解決する
ためになされたもので、過去の通信状態により、次の通
信で使用する従回路に供給されるクロック信号の周波数
を最適に制御して、主回路の処理パフォーマンスに影響
を与えることなく従回路のクロック線で消費される電力
を削減できるクロック制御回路を得ることを目的とす
る。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and optimally controls the frequency of a clock signal supplied to a slave circuit used in the next communication according to the past communication state. It is another object of the present invention to provide a clock control circuit capable of reducing power consumed by a clock line of a slave circuit without affecting processing performance of a main circuit.

【0008】[0008]

【課題を解決するための手段】上記課題を解決するため
に、本発明の請求項1記載のクロック制御回路は、ハン
ドシェーク方式で通信を行う主回路と従回路とを備えた
デジタル回路のクロック制御を行うクロック制御回路に
おいて、上記主回路から出力される処理要求信号(以
下、RQST信号と略す)と、上記従回路から出力され
る処理完了信号(以下、RDY信号と略す)と、上記主
回路用のクロック信号(以下、CLKMと略す)と、上
記従回路用のクロック信号(以下、CLKSと略す)と
を入力とし、これらの信号により上記主回路と上記従回
路との間の通信状態を監視し、該通信状態に応じた制御
信号を出力する通信監視回路と、上記通信監視回路が出
力する制御信号に応じて、上記従回路に対し上記CLK
S信号をそのまま出力するか、上記CLKS信号とは異
なる周波数のクロック信号を出力するか、あるいは上記
従回路に対するクロック信号の出力を停止するクロック
選択回路とを備えたものである。
According to a first aspect of the present invention, there is provided a clock control circuit for controlling a clock of a digital circuit having a main circuit and a slave circuit for performing communication by a handshake method. A processing request signal (hereinafter abbreviated as RQST signal) output from the main circuit, a processing completion signal (hereinafter abbreviated as RDY signal) output from the slave circuit, Clock signal (hereinafter abbreviated as CLKM) and the clock signal for the sub-circuit (hereinafter abbreviated as CLKS), and the communication state between the main circuit and the sub-circuit is determined by these signals. A communication monitoring circuit for monitoring and outputting a control signal according to the communication state; and a clock signal for the slave circuit in response to a control signal output from the communication monitoring circuit.
A clock selection circuit that outputs the S signal as it is, outputs a clock signal having a frequency different from that of the CLKS signal, or stops outputting the clock signal to the slave circuit.

【0009】また、本発明の請求項2記載のクロック制
御回路は、請求項1記載のクロック制御回路において、
上記通信監視回路は、上記RQST信号が有効状態であ
る期間に上記CLKMの変化回数を数える第1のカウン
タ回路と、上記第1のカウンタ回路の出力値とあらかじ
め設定した値とを比較する第1の比較回路と、上記RD
Y信号が無効状態から有効状態に変化する際に、上記第
1の比較回路の出力を取り込む第1のレジスタ回路と、
上記RDY信号が有効状態である期間に上記CLKSの
変化回数を数える第2のカウンタ回路と、上記第2のカ
ウンタ回路の出力値とあらかじめ設定した値とを比較す
る第2の比較回路と、上記RQST信号が有効状態から
無効状態に変化する際に、上記第2の比較回路の出力を
取り込む第2のレジスタ回路と、上記RDY信号が有効
状態から無効状態に変化する際に、上記第1のレジスタ
回路の出力と上記第2のレジスタ回路との出力により次
の状態へ移行し、同時に上記クロック選択回路への出力
信号を決定する状態遷移回路とを備える、ようにしたも
のである。
The clock control circuit according to a second aspect of the present invention is the clock control circuit according to the first aspect,
The communication monitoring circuit includes a first counter circuit that counts the number of changes of the CLKM during a period in which the RQST signal is in an effective state, and a first counter circuit that compares an output value of the first counter circuit with a preset value. And the above RD
A first register circuit that captures an output of the first comparison circuit when the Y signal changes from an invalid state to a valid state;
A second counter circuit that counts the number of changes of the CLKS during a period in which the RDY signal is in a valid state, a second comparator circuit that compares an output value of the second counter circuit with a preset value, A second register circuit that captures the output of the second comparison circuit when the RQST signal changes from a valid state to an invalid state; and a first register circuit that captures the first signal when the RDY signal changes from a valid state to an invalid state. A state transition circuit that transitions to the next state by the output of the register circuit and the output of the second register circuit, and at the same time, determines an output signal to the clock selection circuit.

【0010】また、本発明の請求項3記載のクロック制
御回路は、請求項2記載のクロック制御回路において、
上記通信監視回路は、上記第1のレジスタ回路の後段
に、該第1のレジスタ回路の出力の取り込みと同時に前
段のレジスタ回路の出力を取り込むように直列に接続さ
れた複数のレジスタ回路と、上記第1のレジスタ回路と
上記複数のレジスタ回路の出力を入力とし、上記状態遷
移回路への出力信号を決定する第1の多数決回路とを備
える、ようにしたものである。
The clock control circuit according to a third aspect of the present invention is the clock control circuit according to the second aspect,
A plurality of register circuits connected in series at a subsequent stage of the first register circuit so as to capture the output of the preceding register circuit at the same time as capturing the output of the first register circuit; It is provided with a first register circuit and a first majority circuit that receives outputs of the plurality of register circuits as inputs and determines an output signal to the state transition circuit.

【0011】また、本発明の請求項4記載のクロック制
御回路は、請求項2記載のクロック制御回路において、
上記通信監視回路は、上記第2のレジスタ回路の後段
に、該第2のレジスタ回路の出力の取り込みと同時に前
段のレジスタ回路の出力を取り込むように直列に接続さ
れた複数のレジスタ回路と、上記第2のレジスタ回路と
上記複数のレジスタ回路の出力を入力とし、上記状態遷
移回路への出力信号を決定する第2の多数決回路とを備
える、ようにしたものである。
The clock control circuit according to claim 4 of the present invention is the clock control circuit according to claim 2,
A plurality of register circuits connected in series at a subsequent stage of the second register circuit so as to capture the output of the preceding register circuit at the same time as capturing the output of the second register circuit; A second register circuit; and a second majority circuit that receives outputs of the plurality of register circuits as inputs and determines an output signal to the state transition circuit.

【0012】また、本発明の請求項5記載のクロック制
御回路は、請求項2記載のクロック制御回路において、
上記クロック選択回路は、上記状態遷移回路の過去の通
信状態から、上記従回路に出力されるクロック信号を停
止するかどうかを判断するようにしたものである。
The clock control circuit according to a fifth aspect of the present invention is the clock control circuit according to the second aspect,
The clock selection circuit is configured to determine whether to stop the clock signal output to the slave circuit based on the past communication state of the state transition circuit.

【0013】また、本発明の請求項6記載のクロック制
御回路は、請求項2記載のクロック制御回路において、
上記通信監視回路は、通信監視機能を停止するためのモ
ード設定レジスタを備え、上記モード設定レジスタによ
り全ての回路動作を停止し、全ての出力信号を特定の状
態にするようにしたものである。また、本発明の請求項
7記載のクロック制御回路は、請求項3または請求項4
記載のクロック制御回路において、 上記第1または第
2のレジスタ回路の後段に追加される上記レジスタ回路
の数は、上記主回路及び従回路の各々の通信履歴の回数
に応じて変更可能であるようにしたものである。
The clock control circuit according to claim 6 of the present invention is the clock control circuit according to claim 2,
The communication monitoring circuit includes a mode setting register for stopping a communication monitoring function, and all the circuit operations are stopped by the mode setting register so that all output signals are set to a specific state. The clock control circuit according to claim 7 of the present invention is the clock control circuit according to claim 3 or claim 4.
In the clock control circuit described above, the number of the register circuits added after the first or the second register circuit can be changed according to the number of communication histories of the main circuit and the slave circuit. It was made.

【0014】[0014]

【発明の実施の形態】以下、本発明の実施の形態につい
て説明する。 (実施の形態1)本発明の請求項1、請求項2、請求項
5に対応する、実施の形態1によるクロック制御回路
を、図面を参照しつつ説明する。図1は本実施の形態1
によるクロック制御回路の構成を示したブロック図であ
る。
Embodiments of the present invention will be described below. (Embodiment 1) A clock control circuit according to a first embodiment of the present invention, which corresponds to claims 1, 2, and 5, will be described with reference to the drawings. FIG. 1 shows the first embodiment.
FIG. 2 is a block diagram showing a configuration of a clock control circuit according to the first embodiment.

【0015】本実施の形態1のクロック制御回路100
は、通信監視回路12と、クロック選択回路13とによ
って構成されている。ハンドシェーク方式で通信を行う
ため、主回路10と従回路11との2つの回路間には本
来のデータ線(図示せず)の他、RQST信号とRDY
信号が接続されている。通信監視回路12は、本発明に
より追加された回路であり、RQST信号とRDY信号
に加え、主回路へ入力されるクロック信号CLKMと従
回路へ入力されるクロック信号CLKSが入力されてい
る。このクロック信号CLKSは従来例では直接従回路
に入力されていたものである。この通信監視回路12
は、周波数の異なる複数クロックのうち1つを選択する
ためのSEL信号と、通信期間以外にCLKDを停止す
るためのDEN信号とをクロック選択回路13に対しそ
の制御信号として出力する。クロック選択回路13も、
本発明により追加された回路であり、クロック信号CL
KSとDEN信号とSEL信号とを入力として、従回路
用のクロック信号CLKDを従回路11に出力するもの
である。
The clock control circuit 100 according to the first embodiment
Comprises a communication monitoring circuit 12 and a clock selection circuit 13. Since communication is performed by the handshake method, an RQST signal and an RDY signal are provided between two circuits of the main circuit 10 and the sub circuit 11 in addition to an original data line (not shown).
The signal is connected. The communication monitoring circuit 12 is a circuit added according to the present invention, and receives, in addition to the RQST signal and the RDY signal, a clock signal CLKM input to the main circuit and a clock signal CLKS input to the sub circuit. This clock signal CLKS has been directly input to the slave circuit in the conventional example. This communication monitoring circuit 12
Outputs a SEL signal for selecting one of a plurality of clocks having different frequencies and a DEN signal for stopping CLKD during a period other than the communication period to the clock selection circuit 13 as control signals. The clock selection circuit 13 also
A circuit added according to the present invention, the clock signal CL
The KS signal, the DEN signal, and the SEL signal are input, and the clock signal CLKD for the slave circuit is output to the slave circuit 11.

【0016】図2は、本実施の形態1によるクロック制
御回路における通信監視回路の構成を示したブロック図
であり、本実施の形態1によるクロック制御回路におけ
る通信監視回路は、第1のカウンタ回路20と、第1の
比較回路21と、第1のレジスタ回路22と、第2のカ
ウンタ回路23と、第2の比較回路24と、第2のレジ
スタ回路25と、アップダウンカウンタ回路26と、イ
ンバータ回路27、28と、組み合わせ回路29、2
A、2Bとによって構成されている。
FIG. 2 is a block diagram showing the configuration of the communication monitoring circuit in the clock control circuit according to the first embodiment. The communication monitoring circuit in the clock control circuit according to the first embodiment is composed of a first counter circuit. 20, a first comparison circuit 21, a first register circuit 22, a second counter circuit 23, a second comparison circuit 24, a second register circuit 25, an up-down counter circuit 26, Inverter circuits 27 and 28 and combination circuits 29 and 2
A, 2B.

【0017】次に上記クロック制御回路における通信監
視回路の動作について説明する。第1のカウンタ回路2
0は、RQST信号が“1”の期間クロック信号CLK
Mのクロック数を計数し、RDY信号の立ち上がりにリ
セットされる。第1の比較回路21は、第1のカウンタ
回路20の出力S20を設定値Mと比較して、該カウン
タ回路20の出力S20が大きい場合はその出力S21
に“1”を出力し、それ以外の場合はその出力S21に
“0”を出力する。第1のレジスタ回路22は、RDY
信号の立ち上がりに第1の比較回路21の出力S21を
取り込むことになる。第2のカウンタ回路23は、RD
Y信号が“1”の期間クロック信号CLKSのクロック
数を計数し、RQST信号を反転するインバータ回路2
7の出力S27の立ち上がりでリセットされる。第2の
比較回路24は、第2のカウンタ回路23の出力S23
を設定値Sと比較して、該カウンタ回路23のS23が
大きい場合はその出力S24に“1”を出力し、それ以
外の場合はその出力S24に“0”を出力する。第2の
レジスタ回路25は、インバータ27の出力S27の立
ち上がりに第2の比較回路24の出力S24を取り込む
ことになる。状態遷移回路としては、アップダウンカウ
ンタ回路26を使用している。アップダウンカウンタ回
路26は、第1のレジスタ回路22の出力S22が
“1”の場合は、カウントアップし、組み合わせ回路2
9でレジスタ回路25の出力S25と第1のレジスタ回
路の出力S22の反転信号との論理積により生成された
出力S29が“1”の場合、カウントダウンされる。ア
ップダウンカウンタ回路26の出力であるSEL信号と
S26は、このカウンタ回路26の状態をデコードして
決定される信号である。2つの組合せ回路2A及び2B
は、アップダウンカウンタ回路26の一方の出力S26
が“1”の状態の時は、RQST信号とRDY信号がい
ずれも“0”(通信していない状態)の場合にDEN信
号に“1”を出力するための追加回路である。この通信
監視回路12と後述するクロック選択回路13とによ
り、「状態遷移回路の状態により、従回路へ供給される
クロック信号を停止する構成」を実現している。
Next, the operation of the communication monitoring circuit in the clock control circuit will be described. First counter circuit 2
0 is the clock signal CLK while the RQST signal is “1”.
The number of M clocks is counted and reset at the rising edge of the RDY signal. The first comparison circuit 21 compares the output S20 of the first counter circuit 20 with the set value M, and when the output S20 of the counter circuit 20 is large, the output S21
Is output, and otherwise, "0" is output to its output S21. The first register circuit 22 has the RDY
The output S21 of the first comparison circuit 21 is taken in at the rise of the signal. The second counter circuit 23 outputs RD
An inverter circuit 2 that counts the number of clocks of the clock signal CLKS while the Y signal is “1” and inverts the RQST signal
7 is reset at the rise of the output S27. The second comparison circuit 24 outputs the output S23 of the second counter circuit 23.
Is compared with the set value S. If S23 of the counter circuit 23 is large, "1" is output to its output S24, otherwise, "0" is output to its output S24. The second register circuit 25 takes in the output S24 of the second comparison circuit 24 at the rise of the output S27 of the inverter 27. As the state transition circuit, an up / down counter circuit 26 is used. When the output S22 of the first register circuit 22 is “1”, the up / down counter circuit 26 counts up, and
In step 9, when the output S29 generated by the logical product of the output S25 of the register circuit 25 and the inverted signal of the output S22 of the first register circuit is "1", the countdown is performed. The SEL signal and S26 output from the up / down counter circuit 26 are signals determined by decoding the state of the counter circuit 26. Two combination circuits 2A and 2B
Is one output S26 of the up / down counter circuit 26.
Is an additional circuit for outputting "1" to the DEN signal when both the RQST signal and the RDY signal are "0" (in a state of no communication). The communication monitoring circuit 12 and a clock selection circuit 13 described later realize a “configuration in which a clock signal supplied to a slave circuit is stopped according to the state of the state transition circuit”.

【0018】以下、図2の通信監視回路の動作につい
て、さらに詳しく説明する。第1のカウンタ回路20の
出力S20は、RQST信号が“1”になった後、RD
Y信号が“1”になるまでの期間(前述の期間A)にク
ロック信号CLKM線に入力されたクロック数を計数し
たものであり、第1の比較回路21の出力S21は、そ
の回数が設定値よりも大きかったかどうかを表すもので
ある。アップダウンカウンタ回路26の状態は、後述す
るクロック選択回路13により計数値が大きい方が従回
路11のクロック周波数を高くする制御を実行するこ
と、に対応することになる。第1のレジスタ回路22の
出力S22が“1”の場合は、主回路10の待ち時間が
大きかったことになるので、次の通信では従回路11の
クロック周波数を1段階高くするように制御される。こ
のことは、次回の通信における通信効率向上に有効であ
ることが推測される。第2のカウント回路23の出力S
23は、RDY信号が“1”になった後、RQST信号
が“0”になるまでの期間(期間B)にクロック信号C
LKS線に入力されたクロック数を計数したものであ
り、第2の比較回路24の出力S24は、その回数が設
定値よりも大きかったかどうかを表すものである。第2
のレジスタ回路25の出力S25が“1”の場合は、ア
ップダウンカウンタ回路26をカウントダウンさせるこ
とになる。レジスタ回路25の出力S25に現れる
“1”は従回路11の待ち時間が大きかったことを意味
するので、次の通信では従回路11のクロック周波数を
1段階低くしても通信効率には影響が小さいことが推測
される。この場合、従回路11のクロック線で消費され
る電力は確実に低下することが見込まれる。但し、レジ
スタ回路25の出力S25が“1”の場合でも、レジス
タ回路22の出力S22が“1”となった場合は、組合
せ回路29により、主回路10からの要請(通信効率)
を優先させ、アップダウンカウンタ回路26はカウント
アップされるように制御される。
Hereinafter, the operation of the communication monitoring circuit of FIG. 2 will be described in more detail. The output S20 of the first counter circuit 20 becomes RD after the RQST signal becomes “1”.
The number of clocks input to the clock signal CLKM line during the period until the Y signal becomes “1” (the period A described above) is counted, and the number of the output S21 of the first comparison circuit 21 is set. Indicates whether it was greater than the value. The state of the up / down counter circuit 26 corresponds to executing a control for increasing the clock frequency of the slave circuit 11 when the count value is larger by the clock selection circuit 13 described later. When the output S22 of the first register circuit 22 is "1", it means that the waiting time of the main circuit 10 is long, so that the next communication is controlled so that the clock frequency of the slave circuit 11 is increased by one step. You. This is presumed to be effective for improving the communication efficiency in the next communication. Output S of second count circuit 23
Reference numeral 23 denotes a clock signal C during a period (period B) from when the RDY signal becomes “1” to when the RQST signal becomes “0”.
The number of clocks input to the LKS line is counted, and the output S24 of the second comparison circuit 24 indicates whether or not the number is greater than a set value. Second
When the output S25 of the register circuit 25 is "1", the up / down counter circuit 26 is counted down. Since "1" appearing in the output S25 of the register circuit 25 means that the waiting time of the slave circuit 11 is long, even if the clock frequency of the slave circuit 11 is lowered by one step in the next communication, the communication efficiency is affected. It is assumed that it is small. In this case, it is expected that the power consumed by the clock line of the slave circuit 11 will surely decrease. However, even when the output S25 of the register circuit 25 is "1", if the output S22 of the register circuit 22 is "1", the request from the main circuit 10 (communication efficiency) is obtained by the combination circuit 29.
, And the up / down counter circuit 26 is controlled to count up.

【0019】次に、本発明の請求項1または請求項5に
対応するクロック制御回路におけるクロック選択回路に
ついて説明する。図5は、本実施の形態1によるクロッ
ク制御回路におけるクロック選択回路の構成を示したブ
ロック図であり、本実施の形態1によるクロック制御回
路におけるクロック選択回路は、レジスタ回路50、5
1、52、53、54、55及び56と、組合わせ回路
57、58、59、5A、5B、5C、5D、5E、5
F、5G、5H、5I、5J、5K、5L、5M、5N
及び5Oとを備えている。
Next, a clock selection circuit in a clock control circuit according to claim 1 or 5 of the present invention will be described. FIG. 5 is a block diagram showing the configuration of the clock selection circuit in the clock control circuit according to the first embodiment. The clock selection circuit in the clock control circuit according to the first embodiment includes register circuits 50, 5
1, 52, 53, 54, 55 and 56 and combination circuits 57, 58, 59, 5A, 5B, 5C, 5D, 5E, 5
F, 5G, 5H, 5I, 5J, 5K, 5L, 5M, 5N
And 5O.

【0020】以下、図5のクロック選択回路の動作につ
いて、説明する。レジスタ回路50〜56は、従回路1
1用のクロックCLKSを次々に2分周するように接続
されリップルカウンタ回路を構成している。組合せ回路
57〜5Eは、3ビットのSEL信号をデコードし8つ
の出力S57〜S5E信号の内いずれか1つに“1”が
出力されるように接続されデコーダ回路を構成してい
る。組合せ回路5F〜5Mと組合せ回路5Oは、出力S
57〜S5E信号の内の“1”となった信号に対応して
クロック信号を選択し、選択された信号をクロック信号
CLKD線に導く選択回路を構成している。さらに、組
合せ回路5Nは、DEN信号が“1”の場合に、クロッ
ク信号CLKD線を“0”に固定するように構成されて
いる。RST信号はリップルカウンタ回路の初期状態を
設定するための初期リセット信号の役目を果たしてい
る。このクロック選択回路により、前述した通信監視回
路12からの出力信号DEN信号とSEL信号に対応し
てCLDK信号を制御することが可能となる。
The operation of the clock selection circuit shown in FIG. 5 will be described below. The register circuits 50 to 56 include the slave circuit 1
The clock CLKS for one is connected so as to divide the frequency of the clock CLKS by two in succession to form a ripple counter circuit. The combination circuits 57 to 5E are connected to each other so as to decode the 3-bit SEL signal and output “1” to any one of the eight output S57 to S5E signals, thereby forming a decoder circuit. The combination circuits 5F to 5M and the combination circuit 50 output the output S
A selection circuit is configured to select a clock signal in accordance with the signal which becomes "1" among the signals 57 to S5E, and to guide the selected signal to the clock signal CLKD line. Further, the combination circuit 5N is configured to fix the clock signal CLKD line to “0” when the DEN signal is “1”. The RST signal serves as an initial reset signal for setting an initial state of the ripple counter circuit. With this clock selection circuit, it is possible to control the CLDK signal corresponding to the output signal DEN signal and the SEL signal from the communication monitoring circuit 12 described above.

【0021】以上のように、本実施の形態1によるクロ
ック制御回路によれば、アップダウンカウンタ回路26
の状態は、クロック選択回路により計数値が大きい方が
従回路11のクロック周波数を高くする制御に相当し、
第1のレジスタ回路22の出力S22が“1”の場合
は、主回路10の待ち時間が大きかったことになるの
で、次の通信では従回路11のクロック周波数を1段階
高くするように制御される。これにより、次回の通信に
おける通信効率を向上することができる。第2のカウン
タ回路23の出力S23はRDY信号が“1”になった
後、RQST信号が“0”になるまでの期間(期間B)
にクロック信号CLKS線に入力されたクロック数を計
数したものであり、第2の比較回路24の出力S24は
その回数が設定値よりも大きかったかどうかを表すもの
である。第2のレジスタ回路25の出力S25が“1”
の場合は、アップダウンカウンタ回路26をカウントダ
ウンさせることになる。第2のレジスタ回路25の出力
S25に現れる“1”は従回路11の待ち時間が大きか
ったことを意味するので、次の通信では従回路11のク
ロック周波数を1段階低くしても通信効率には影響が小
さい。これにより、従回路11のクロック線で消費され
る電力を確実に低下することができる。
As described above, according to the clock control circuit of the first embodiment, the up-down counter circuit 26
State corresponds to control for increasing the clock frequency of the slave circuit 11 when the count value is larger by the clock selection circuit,
When the output S22 of the first register circuit 22 is "1", it means that the waiting time of the main circuit 10 is long, so that the next communication is controlled so that the clock frequency of the slave circuit 11 is increased by one step. You. Thereby, the communication efficiency in the next communication can be improved. The output S23 of the second counter circuit 23 is a period (period B) from when the RDY signal becomes "1" to when the RQST signal becomes "0".
The number of clocks input to the clock signal CLKS line is counted, and the output S24 of the second comparison circuit 24 indicates whether or not the number is greater than a set value. The output S25 of the second register circuit 25 is "1"
In this case, the up / down counter circuit 26 counts down. Since "1" appearing in the output S25 of the second register circuit 25 means that the waiting time of the slave circuit 11 is long, the communication efficiency is reduced in the next communication even if the clock frequency of the slave circuit 11 is lowered by one step. Has little effect. Thus, the power consumed by the clock line of the slave circuit 11 can be reliably reduced.

【0022】つまり、ハンドシェ―ク方式で通信を行う
主回路10と従回路11に対して過去の通信状態に対応
して従回路のクロック周波数を最適な状態に制御するこ
とにより、主回路10の処理パフォーマンスに影響を与
えることなく、従回路11のクロック線で消費される電
力を削減することができる。
That is, by controlling the clock frequency of the slave circuit to the optimum state in response to the past communication state, the master circuit 10 and the slave circuit 11 that perform communication by the handshake method are controlled. The power consumed by the clock line of the slave circuit 11 can be reduced without affecting the processing performance.

【0023】(実施の形態2)次に、本発明の請求項
1、請求項2、請求項3、請求項4、請求項7に対応す
る、実施の形態2によるクロック制御回路について説明
する。図3は、本実施の形態2によるクロック制御回路
100における通信監視回路12の構成を示したブロッ
ク図であり、本実施の形態2に係る通信監視回路12
は、第1及び第2の多数決回路3C及び3Fと、レジス
タ回路3A、3B、3D及び3Eとを備えており、各出
力S30〜S39線の信号は図2における各出力S20
〜S29線の信号と等価である。その他の構成は、上記
実施の形態1に係る通信監視回路と同一であるので、説
明を省略する。
(Embodiment 2) Next, a clock control circuit according to a second embodiment of the present invention corresponding to claims 1, 2, 3, 4, and 7 of the present invention will be described. FIG. 3 is a block diagram showing a configuration of the communication monitoring circuit 12 in the clock control circuit 100 according to the second embodiment.
Has first and second majority circuits 3C and 3F and register circuits 3A, 3B, 3D and 3E, and the signals on the respective outputs S30 to S39 are output from the respective output S20 in FIG.
This is equivalent to the signals on lines S29 to S29. Other configurations are the same as those of the communication monitoring circuit according to the first embodiment, and a description thereof will not be repeated.

【0024】次に動作について説明する。レジスタ回路
22の後段に新たに追加されたレジスタ回路3Aとレジ
スタ回路3Bとにより、レジスタ回路3Aの出力S3A
とレジスタ回路3Bの出力S3Bにはそれぞれ前々回と
その前の通信における期間Aの長さに対応した状態が保
持されることになる。第1の多数決回路3Cは、レジス
タ回路22、3A、3Bの出力S32、S3A、S3B
から得られる3つの信号の内いずれか2つ以上が“1”
であればその出力S3Cに“1”を出力し、それ以外の
場合はその出力S3Cに“0”を出力することになる。
Next, the operation will be described. The register circuit 3A and the register circuit 3B newly added to the subsequent stage of the register circuit 22 provide an output S3A of the register circuit 3A.
And the output S3B of the register circuit 3B holds a state corresponding to the length of the period A in the communication two times before and two times before. The first majority circuit 3C outputs the outputs S32, S3A, S3B of the register circuits 22, 3A, 3B.
Any two or more of the three signals obtained from
If so, "1" is output to the output S3C, and otherwise, "0" is output to the output S3C.

【0025】レジスタ回路25の後段にはレジスタ回路
3Dとレジスタ回路3Eとが新たに追加されており、こ
の構成によりレジスタ回路3Dの出力S3Dとレジスタ
回路3Eの出力S3Eにはそれぞれ前々回とその前の通
信における期間Bの長さに対応した状態が保持されるこ
とになる。第2の多数決回路3Fは、レジスタ回路3
5,3D,3Fの出力S35,S3D,S3Fから得ら
れる3つの信号の内いずれか2つ以上が“1”であれば
その出力S3Fに“1”を出力し、それ以外の場合はそ
の出力S3Fに“0”を出力することになる。なお、レ
ジスタ22、レジスタ回路25の後段に追加されるレジ
スタ回路の数は、主回路10及び従回路11の各々の通
信履歴の回数に応じて変更可能であるようにしたもので
ある。
A register circuit 3D and a register circuit 3E are newly added at the subsequent stage of the register circuit 25. With this configuration, the output S3D of the register circuit 3D and the output S3E of the register circuit 3E are respectively provided two times before and two times before. The state corresponding to the length of the period B in the communication is maintained. The second majority circuit 3F includes a register circuit 3
If any two or more of the three signals obtained from the outputs S35, S3D, S3F of 5, 3D, 3F are "1", "1" is output to the output S3F, otherwise, the output is output. "0" is output to S3F. The number of register circuits added after the register 22 and the register circuit 25 can be changed according to the number of communication histories of the main circuit 10 and the slave circuit 11.

【0026】以上のように、本実施の形態2のクロック
制御回路における通信監視回路によれば、アップダウン
カウンタ回路26の状態を、直前の1回の通信状態のみ
で変化するのではなく、過去3回の通信状態を考慮して
クロック周波数を変更するべきかどうかを判断すること
ができる。また、第1の多数決回路3Cの出力S3Cと
第2の多数決回路3Fの出力S3Fを入力とする組合せ
回路3Gの出力S3Gによりアップダウンカウンタ回路
26の状態が変更した場合は、レジスタ回路22、3
A、3B、25、3D、3Eはリセットされるようにな
る。これは従回路のクロック周波数が変更された場合
に、変更前のクロック周波数で行われた通信状態で取得
された通信履歴は意味が無くなることに対応したもので
ある。
As described above, according to the communication monitoring circuit in the clock control circuit of the second embodiment, the state of the up / down counter circuit 26 is not changed by only the immediately preceding communication state, but is changed by the past. It is possible to determine whether to change the clock frequency in consideration of the three communication states. When the state of the up / down counter circuit 26 is changed by the output S3G of the combinational circuit 3G having the output S3C of the first majority circuit 3C and the output S3F of the second majority circuit 3F as inputs, the register circuits 22, 3
A, 3B, 25, 3D, 3E will be reset. This corresponds to the fact that when the clock frequency of the slave circuit is changed, the communication history acquired in the communication state performed at the clock frequency before the change becomes meaningless.

【0027】なお、本実施の形態2のクロック制御回路
における通信監視回路の説明では、過去の通信状態を考
慮する回数を主回路の待ち時間(期間A)について3
回、従回路の待ち時間(期間B)についても3回の場合
を示しているが、それぞれ考慮したい通信履歴の回数に
応じて追加レジスタ回路の数を変更することにより、過
去の通信履歴の回数をを変更可能であり、追加レジスタ
回路の数を増やせば、過去の通信履歴をより深く参考に
することができ、クロック選択に対してヒステリシスを
持つことが可能となる。
In the description of the communication monitoring circuit in the clock control circuit according to the second embodiment, the number of times that the past communication state is considered is set to three times for the waiting time (period A) of the main circuit.
The number of times of the past communication history is changed by changing the number of additional register circuits according to the number of communication histories to be considered. Can be changed, and if the number of additional register circuits is increased, the past communication history can be referred to more deeply, and hysteresis can be provided for clock selection.

【0028】(実施の形態3)次に、本発明の請求項
1、請求項2、請求項6に対応する、実施の形態3によ
るクロック制御回路について説明する。図4は、本実施
の形態3によるクロック制御回路100における通信監
視回路12の構成を示したブロック図であり、本実施の
形態3による通信監視回路12は、モード設定を行うレ
ジスタ回路4Aと、組合わせ回路4C、4D、4E、4
F及び4Hとを備えており、各出力S40〜S49線の
信号は図2における各出力S20〜S29線の信号と等
価である。その他の構成は、上記実施の形態1に係る通
信監視回路と同一であるので、説明を省略する。
(Third Embodiment) Next, a clock control circuit according to a third embodiment of the present invention, which corresponds to claims 1, 2, and 6, will be described. FIG. 4 is a block diagram showing a configuration of the communication monitoring circuit 12 in the clock control circuit 100 according to the third embodiment. The communication monitoring circuit 12 according to the third embodiment includes a register circuit 4A for setting a mode, Combination circuits 4C, 4D, 4E, 4
F and 4H, and the signal of each output line S40 to S49 is equivalent to the signal of each output line S20 to S29 in FIG. Other configurations are the same as those of the communication monitoring circuit according to the first embodiment, and a description thereof will not be repeated.

【0029】次に動作について説明する。レジスタ回路
4Aに“0”が設定されると、その出力S4Aを通じて
組合せ回路4C、4D、4E、4Fの出力S4C、S4
D、S4E、S4F信号は全て“0”に固定され、これ
らより後段の回路は全ての動作を停止することになる。
また組合せ回路4GによりDEN信号は“0”に固定さ
れ、組合せ回路4HによりSEL信号は“1”に固定さ
れることになる。これらの設定により、後述するクロッ
ク選択回路の制御により供給されるクロック信号は、従
来例と同様の状態に固定され、主回路10と従回路11
間の通信も従来例と同様に行われる。このモードでは、
通信監視回路12では、組合せ回路4C、4D、4E、
4Fの出力S4C、S4D、S4E、S4F信号が固定
されているため、通信監視回路に追加されたで電力が余
分に消費されることはない。
Next, the operation will be described. When "0" is set in the register circuit 4A, the outputs S4C, S4 of the combinational circuits 4C, 4D, 4E, 4F through the output S4A.
The D, S4E, and S4F signals are all fixed at "0", and the circuits subsequent to these stop all operations.
The DEN signal is fixed at "0" by the combination circuit 4G, and the SEL signal is fixed at "1" by the combination circuit 4H. By these settings, the clock signal supplied under the control of the clock selection circuit described later is fixed to the same state as in the conventional example, and the main circuit 10 and the sub circuit 11
Communication between them is performed in the same manner as in the conventional example. In this mode,
In the communication monitoring circuit 12, the combinational circuits 4C, 4D, 4E,
Since the output S4C, S4D, S4E, and S4F signals of the 4F are fixed, they are added to the communication monitoring circuit, so that no extra power is consumed.

【0030】以上のように、本実施の形態3のクロック
制御回路における通信監視回路によれば、従回路に供給
されるクロック信号は、本発明実施前の状態に固定さ
れ、主回路と従回路の通信も従来と同じように行われ
る。このモードでは、通信監視回路ではS4C・S4D
・S4E・S4Fが固定されているため、通信監視回路
に新たに追加された回路で余分な電力が消費されること
がない。
As described above, according to the communication monitoring circuit in the clock control circuit of the third embodiment, the clock signal supplied to the slave circuit is fixed to the state before the present invention is implemented, and the main circuit and the slave circuit are fixed. Is performed in the same manner as in the prior art. In this mode, the communication monitoring circuit uses S4C / S4D
Since the S4E and S4F are fixed, no extra power is consumed by a circuit newly added to the communication monitoring circuit.

【0031】[0031]

【発明の効果】以上のように、本発明のクロック制御回
路によれば、ハンドシェ―ク方式で通信を行う主回路と
従回路に対して過去の通信状態に対応して従回路のクロ
ック周波数を最適な状態に制御することにより、主回路
の処理パフォーマンスに影響を与えることなく、従回路
のクロック線で消費される電力を削減することができ
る。
As described above, according to the clock control circuit of the present invention, the clock frequency of the slave circuit is adjusted for the main circuit and the slave circuit that perform communication by the handshake method according to the past communication state. By controlling to an optimal state, it is possible to reduce the power consumed by the clock line of the slave circuit without affecting the processing performance of the master circuit.

【0032】また、期間Bが長くなるような通信を行っ
ている場合は、従回路に入力されるクロック信号の周波
数を低くすることにより、従回路のクロック線で消費す
る電力を削減の効果が得られ、その後主回路の動作状態
により期間Aが長くなるような通信が発生し、従回路で
の処理を早く完了させることが要求されていると認識さ
れた場合は、従回路のクロック周波数を高い周波数に復
帰させることにより、主回路の処理パフォーマンスへの
影響を与えないようにすることができる。
When communication is performed such that the period B becomes longer, the frequency of the clock signal input to the slave circuit is reduced, thereby reducing the power consumed by the clock line of the slave circuit. After that, if the communication in which the period A becomes longer due to the operation state of the main circuit occurs and it is recognized that the processing in the sub-circuit is required to be completed quickly, the clock frequency of the sub-circuit is changed. By returning to a higher frequency, the processing performance of the main circuit can be prevented from being affected.

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

【図1】本実施の形態1によるクロック制御回路の構成
を示したブロック図である。
FIG. 1 is a block diagram showing a configuration of a clock control circuit according to a first embodiment.

【図2】本実施の形態1によるクロック制御回路におけ
る通信監視回路の構成を示したブロック図である。
FIG. 2 is a block diagram showing a configuration of a communication monitoring circuit in the clock control circuit according to the first embodiment.

【図3】本実施の形態2によるクロック制御回路におけ
る通信監視回路の構成を示したブロック図である。
FIG. 3 is a block diagram showing a configuration of a communication monitoring circuit in the clock control circuit according to the second embodiment.

【図4】本実施の形態3によるクロック制御回路におけ
る通信監視回路の構成を示したブロック図である。
FIG. 4 is a block diagram showing a configuration of a communication monitoring circuit in the clock control circuit according to the third embodiment.

【図5】本実施の形態1によるクロック制御回路におけ
るクロック選択回路の構成を示したブロック図である。
FIG. 5 is a block diagram showing a configuration of a clock selection circuit in the clock control circuit according to the first embodiment.

【図6】ハンドシェーク方式で通信を行うデジタル回路
の構成を示すブロック図である。
FIG. 6 is a block diagram illustrating a configuration of a digital circuit that performs communication by a handshake method.

【図7】図6に示すデジタル回路を従来のクロック制御
回路を用いてクロック制御したときの動作状態を表すタ
イミングチャートである。
7 is a timing chart showing an operation state when the digital circuit shown in FIG. 6 is clock-controlled using a conventional clock control circuit.

【符号の説明】[Explanation of symbols]

10、60 主回路 11、61 従回路 12 通信監視回路 13 クロック選択回路 20 第1のカウンタ回路 21 第1の比較回路 22 第1のレジスタ回路 23 第2のカウンタ回路 24 第2の比較回路 25 第2のレジスタ回路 26 アップダウンカウンタ回路 27、28 インバータ回路 29、2A、2B、37、38、39、3G、47、4
8、49、4B、4C、4D、4E、4F、4G、4
H、57、58、59、5A、5B、5C、5D、5
E、5F、5G、5H、5I、5J、5K、5L、5
M、5N、5O 組合せ回路 3C 第1の多数決回路 3F 第2の多数決回路 3A、3B、3D、3E、4A、50、51、52、5
3、54、55、56レジスタ回路 100 クロック制御回路
10, 60 main circuit 11, 61 slave circuit 12 communication monitoring circuit 13 clock selection circuit 20 first counter circuit 21 first comparison circuit 22 first register circuit 23 second counter circuit 24 second comparison circuit 25th 2 register circuit 26 up / down counter circuit 27, 28 inverter circuit 29, 2A, 2B, 37, 38, 39, 3G, 47, 4
8, 49, 4B, 4C, 4D, 4E, 4F, 4G, 4
H, 57, 58, 59, 5A, 5B, 5C, 5D, 5
E, 5F, 5G, 5H, 5I, 5J, 5K, 5L, 5
M, 5N, 50 combination circuit 3C first majority circuit 3F second majority circuit 3A, 3B, 3D, 3E, 4A, 50, 51, 52, 5
3, 54, 55, 56 register circuit 100 clock control circuit

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 ハンドシェーク方式で通信を行う主回路
と従回路とを備えたデジタル回路のクロック制御を行う
クロック制御回路において、 上記主回路から出力される処理要求信号(以下、RQS
T信号と略す)と、上記従回路から出力される処理完了
信号(以下、RDY信号と略す)と、上記主回路用のク
ロック信号(以下、CLKMと略す)と、上記従回路用
のクロック信号(以下、CLKSと略す)とを入力と
し、これらの信号により上記主回路と上記従回路との間
の通信状態を監視し、該通信状態に応じた制御信号を出
力する通信監視回路と、 上記通信監視回路が出力する制御信号に応じて、上記従
回路に対し上記CLKS信号をそのまま出力するか、上
記CLKS信号とは異なる周波数のクロック信号を出力
するか、あるいは上記従回路に対するクロック信号の出
力を停止するクロック選択回路とを備えた、 ことを特徴とする、クロック制御回路。
A clock control circuit for controlling a clock of a digital circuit including a main circuit and a slave circuit for performing communication by a handshake method, comprising: a processing request signal (hereinafter referred to as RQS) output from the main circuit.
T signal), a processing completion signal (hereinafter abbreviated as RDY signal) output from the slave circuit, a clock signal for the main circuit (hereinafter abbreviated as CLKM), and a clock signal for the slave circuit. (Hereinafter, abbreviated as CLKS), a communication monitoring circuit that monitors a communication state between the main circuit and the sub-circuit based on these signals, and outputs a control signal according to the communication state. According to a control signal output by the communication monitoring circuit, the CLKS signal is output to the slave circuit as it is, a clock signal having a frequency different from the CLKS signal is output, or a clock signal is output to the slave circuit. And a clock selection circuit for stopping the operation of the clock control circuit.
【請求項2】 請求項1記載のクロック制御回路におい
て、 上記通信監視回路は、 上記RQST信号が有効状態である期間に上記CLKM
の変化回数を数える第1のカウンタ回路と、 上記第1のカウンタ回路の出力値とあらかじめ設定した
値とを比較する第1の比較回路と、 上記RDY信号が無効状態から有効状態に変化する際
に、上記第1の比較回路の出力を取り込む第1のレジス
タ回路と、 上記RDY信号が有効状態である期間に上記CLKSの
変化回数を数える第2のカウンタ回路と、 上記第2のカウンタ回路の出力値とあらかじめ設定した
値とを比較する第2の比較回路と、 上記RQST信号が有効状態から無効状態に変化する際
に、上記第2の比較回路の出力を取り込む第2のレジス
タ回路と、 上記RDY信号が有効状態から無効状態に変化する際
に、上記第1のレジスタ回路の出力と上記第2のレジス
タ回路との出力により次の状態へ移行し、同時に上記ク
ロック選択回路への出力信号を決定する状態遷移回路と
を備えた、 ことを特徴とする、クロック制御回路。
2. The clock control circuit according to claim 1, wherein the communication monitoring circuit is configured to control the CLKM signal while the RQST signal is in a valid state.
A first counter circuit for counting the number of changes of the first counter circuit, a first comparator circuit for comparing an output value of the first counter circuit with a preset value, and when the RDY signal changes from an invalid state to a valid state. A first register circuit that captures the output of the first comparison circuit; a second counter circuit that counts the number of changes in CLKS while the RDY signal is in a valid state; A second comparison circuit that compares the output value with a preset value; a second register circuit that captures an output of the second comparison circuit when the RQST signal changes from a valid state to an invalid state; When the RDY signal changes from a valid state to an invalid state, a transition is made to the next state by the output of the first register circuit and the output of the second register circuit. And a state transition circuit for determining an output signal to the selection circuit, wherein the clock control circuit.
【請求項3】 請求項2記載のクロック制御回路におい
て、 上記通信監視回路は、 上記第1のレジスタ回路の後段に、該第1のレジスタ回
路の出力の取り込みと同時に前段のレジスタ回路の出力
を取り込むように直列に接続された複数のレジスタ回路
と、 上記第1のレジスタ回路と上記複数のレジスタ回路の出
力を入力とし、上記状態遷移回路への出力信号を決定す
る第1の多数決回路とをさらに備えた、 ことを特徴とする、クロック制御回路。
3. The clock control circuit according to claim 2, wherein said communication monitoring circuit outputs an output of a preceding register circuit to a subsequent stage of said first register circuit at the same time as receiving an output of said first register circuit. A plurality of register circuits connected in series so as to take in, a first majority circuit that receives the outputs of the first register circuit and the plurality of register circuits as inputs, and determines an output signal to the state transition circuit; A clock control circuit, further comprising:
【請求項4】 請求項2記載のクロック制御回路におい
て、 上記通信監視回路は、 上記第2のレジスタ回路の後段に、該第2のレジスタ回
路の出力の取り込みと同時に前段のレジスタ回路の出力
を取り込むように直列に接続された複数のレジスタ回路
と、 上記第2のレジスタ回路と上記複数のレジスタ回路の出
力を入力とし、上記状態遷移回路への出力信号を決定す
る第2の多数決回路とをさらに備えた、 ことを特徴とする、クロック制御回路。
4. The clock control circuit according to claim 2, wherein said communication monitoring circuit outputs an output of a preceding register circuit to a subsequent stage of said second register circuit at the same time as receiving an output of said second register circuit. A plurality of register circuits connected in series so as to take in, a second majority circuit which receives the outputs of the second register circuit and the plurality of register circuits as inputs, and determines an output signal to the state transition circuit; A clock control circuit, further comprising:
【請求項5】 請求項2記載のクロック制御回路におい
て、 上記クロック選択回路は、 上記状態遷移回路の過去の通信状態から、上記従回路に
出力されるクロック信号を停止するかどうかを判断する
ものである、 ことを特徴とする、クロック制御回路。
5. The clock control circuit according to claim 2, wherein the clock selection circuit determines whether or not to stop a clock signal output to the slave circuit from a past communication state of the state transition circuit. A clock control circuit, characterized in that:
【請求項6】 請求項1または請求項2記載のクロック
制御回路において、 上記通信監視回路は、 通信監視機能を停止するためのモード設定レジスタを備
え、 上記モード設定レジスタに設定されるモード設定データ
により、全ての回路動作を停止し、全ての出力信号を特
定の状態にする、 ことを特徴とする、クロック制御回路。
6. The clock control circuit according to claim 1, wherein the communication monitoring circuit includes a mode setting register for stopping a communication monitoring function, and the mode setting data set in the mode setting register. A clock control circuit, which stops all circuit operations and sets all output signals to a specific state.
【請求項7】請求項3または請求項4記載のクロック制
御回路において、 上記第1または第2のレジスタ回路の後段に追加される
上記レジスタ回路の数は、上記主回路及び従回路の各々
の通信履歴の回数に応じて変更可能である、 ことを特徴とするクロック制御回路。
7. The clock control circuit according to claim 3, wherein the number of said register circuits added after said first or second register circuit is equal to each of said main circuit and said sub-circuit. A clock control circuit, which can be changed according to the number of communication histories.
JP2001090655A 2001-03-27 2001-03-27 Clock control circuit Pending JP2002290500A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001090655A JP2002290500A (en) 2001-03-27 2001-03-27 Clock control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001090655A JP2002290500A (en) 2001-03-27 2001-03-27 Clock control circuit

Publications (1)

Publication Number Publication Date
JP2002290500A true JP2002290500A (en) 2002-10-04

Family

ID=18945410

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001090655A Pending JP2002290500A (en) 2001-03-27 2001-03-27 Clock control circuit

Country Status (1)

Country Link
JP (1) JP2002290500A (en)

Similar Documents

Publication Publication Date Title
US7000140B2 (en) Data processor and data processing system
JP2002312223A5 (en)
JP2009525515A (en) Data bus interface using interruptable clock
JP2010534014A (en) Remote control infrared signal generator
CN1702601A (en) Electronic device with serial ATA interface and power-saving control method used in the device
JP2003046596A (en) Network interface
CN107533352B (en) Controlling transitions between standard and static states
CN111488305B (en) Method and system for realizing rapid communication of security chip
JP4817834B2 (en) Interrupt control device and interrupt control method
US8751842B2 (en) Microcontroller and method of controlling the same
WO2010083626A1 (en) Synchronization method and device for real-time distributed system
US7912989B2 (en) Network interface for decreasing power consumption
JP2002290500A (en) Clock control circuit
US20140082392A1 (en) Semiconductor device and communication method
JP2011113501A (en) Electronic device, control method thereof, and program
US10587265B2 (en) Semiconductor device and semiconductor system
JP4032947B2 (en) Clock synchronous serial communication device and semiconductor integrated circuit device
TWI249679B (en) Apparatus and method for assuming mastership of a bus field
US7961820B2 (en) Programmable and pausable clock generation unit
JP2007329901A (en) Method and device for power management
JP2006072698A (en) Power-saving-adapted device
JP2017027196A (en) Communication device, power control method, and power control program
JP2007034640A (en) Communication controller, communication control program and printer using the same
TWI250395B (en) Device and method of clock control
JP2005115620A (en) Task management method and electronic apparatus having task management means