JPH0746119A - Clock signal and synchronous reset signal generating circuit - Google Patents

Clock signal and synchronous reset signal generating circuit

Info

Publication number
JPH0746119A
JPH0746119A JP5185693A JP18569393A JPH0746119A JP H0746119 A JPH0746119 A JP H0746119A JP 5185693 A JP5185693 A JP 5185693A JP 18569393 A JP18569393 A JP 18569393A JP H0746119 A JPH0746119 A JP H0746119A
Authority
JP
Japan
Prior art keywords
reset signal
clock signal
signal
reset
rest
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.)
Granted
Application number
JP5185693A
Other languages
Japanese (ja)
Other versions
JP2998501B2 (en
Inventor
Tatsuo Masuda
達男 増田
Bogusutoromu Toomasu
ボグストロム トーマス
Akira Yabuta
明 薮田
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 Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP5185693A priority Critical patent/JP2998501B2/en
Publication of JPH0746119A publication Critical patent/JPH0746119A/en
Application granted granted Critical
Publication of JP2998501B2 publication Critical patent/JP2998501B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To provide the clock signal and synchronous reset signal generating circuit which eliminates the probability of the block in an LSI to which a clock signal and a reset signal are given takes a malfunction at the time of reset release. CONSTITUTION:A synchronous counter 10 divides the frequency of a system clock signal SCLK once to output a clock signal CLK having the two-fold period. A reset signal CREST for synchronous counter outputted from a reset signal generating circuit 11 only for a while after the change of a reset signal REST is changed from the low level to the high level. The reset signal generating circuit 11 delays the reset signal REST so that it is changed at the time of the stop of the clock signal CLK, and this delay signal is outputted as an internal reset signal RSET'. Since the other blocks in the LSI use the clock signal CLK and the internal reset signal REST' as the clock signal and the reset signal respectively, they are free from the malfunction due to a wrong clock.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、順序論理回路等に用い
られるクロック信号・同期リセット信号発生回路に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock signal / synchronous reset signal generation circuit used in a sequential logic circuit or the like.

【0002】[0002]

【従来の技術】システムクロックを分周して任意に同期
のクロック信号を得るためのクロック信号発生回路とし
ては従来図11のようなカウンタ1を用いたものがあ
る。ここで使用されるカウンタ1はその内部に適当なb
it長のレジスタを持ち、外部から入る”H”のリセッ
ト信号RESTが図12(b)に示すように入力されるとそ
のレジスタをクリアし、RST端子に”L”が入力され
ている時にはCLK端子に入力する図12(a)に示す
システムクロック信号SCLKの値が”L”から”H”に変
化するとレジスタの値をインクリメントするカウンタで
あり、内部レジスタの適当な位置のbitの値をOUT
端子より図12(c)に示すように出力する。
2. Description of the Related Art As a clock signal generation circuit for dividing a system clock to arbitrarily obtain a synchronous clock signal, there is a conventional one using a counter 1 as shown in FIG. The counter 1 used here has a suitable b inside it.
It has a register of it length and clears the register when the "H" reset signal REST input from the outside is input as shown in FIG. 12 (b), and when "L" is input to the RST terminal, CLK It is a counter that increments the register value when the value of the system clock signal SCLK shown in FIG. 12 (a) input to the terminal changes from "L" to "H", and outputs the bit value at the appropriate position of the internal register to OUT.
Output from the terminal as shown in FIG.

【0003】これでシステムクロック信号SCLKを望む回
数だけ分周した信号がカウンタ1より得られるが、リセ
ット信号RESTが”H”の時にはカウンタ1が動かないた
めカウンタ1の出力は変化せず、そのためリセット時に
もクロック信号が変化している必要があるブロックにカ
ウンタ1の出力をクロック信号として供給することがで
きない。そこでセレクタ2を用いてリセット信号REST
が”H”の時にはシステムクロック信号SCLKを、そうで
ない時にはカウンタ1の出力を選択した図12(d)に
示すセレクタ2の出力をクロック信号CLK として他のブ
ロックに供給するようになっている。図12はシステム
クロック信号SCLKを1回分周してクロック信号CLK 出力
を作る場合のタイムチャートを示す。
With this, the signal obtained by dividing the system clock signal SCLK by the desired number of times is obtained from the counter 1, but when the reset signal REST is "H", the output of the counter 1 does not change because the counter 1 does not move, and therefore, The output of the counter 1 cannot be supplied as a clock signal to a block whose clock signal needs to be changed even at the time of reset. Therefore, using the selector 2, the reset signal REST
Is "H", the system clock signal SCLK is supplied to the other blocks as the clock signal CLK, and the output of the selector 2 shown in FIG. FIG. 12 shows a time chart in the case of dividing the system clock signal SCLK once to generate the clock signal CLK output.

【0004】[0004]

【発明が解決しようとする課題】ところで上記従来例で
はリセット信号RESTが入力されるタイミングによっては
誤動作する虞れがあるという問題がある。図13にシス
テムクロック信号SCLKを2回分周してセレクタ2を経て
クロック信号CLK を作る場合のタイムチャートを示す。
図13(d)の(イ)、(ロ)および(ハ)の領域は図
13(b)に示すようにリセット信号RESTが”H”であ
るため、セレクタ2が図13(a)に示すシステムクロ
ック信号SCLKを選択してクロック信号CLK として出力し
ている部分で、(ニ)の領域はリセット信号RESTが”
L”であるため、セレクタ2がカウンタ1の出力を選択
してクロック信号CLK として出力している部分である。
ここでリセット信号RESTが”L”から”H”に変化す
る(イ)の部分や”H”から”L”に変化する(ハ)の
部分では、システムクロック信号SCLKが”H”の時にリ
セット信号RESTが変化していて、その結果セレクタ2か
ら出力されるクロック信号CLK には”H”になっている
時間がシステムクロック信号SCLKよりも短い信号となっ
て現れる。次に従来例の回路をある論理手順回路を構成
するLSIのクロック信号発生ブロックとして用いる場
合を考える。
By the way, in the above-mentioned conventional example, there is a problem that malfunction may occur depending on the timing of inputting the reset signal REST. FIG. 13 shows a time chart when the system clock signal SCLK is divided twice and the clock signal CLK is generated through the selector 2.
Since the reset signal REST is “H” in the areas (a), (b) and (c) of FIG. 13D as shown in FIG. 13B, the selector 2 is shown in FIG. In the part where the system clock signal SCLK is selected and output as the clock signal CLK, the reset signal REST is "
Since it is L ″, the selector 2 selects the output of the counter 1 and outputs it as the clock signal CLK.
Here, in the part (a) where the reset signal REST changes from "L" to "H" and the part (c) where "H" changes to "L", the reset is performed when the system clock signal SCLK is "H". The signal REST changes, and as a result, the clock signal CLK output from the selector 2 appears as a signal having a time "H" shorter than the system clock signal SCLK. Next, consider the case where the circuit of the conventional example is used as a clock signal generation block of an LSI forming a certain logic procedure circuit.

【0005】図14は図11に示すクロック信号発生回
路が同じLSI中の別のブロックにクロック信号を供給
している様子を示したものである。クロック発生回路C
Gはシステムクロック信号SCLKとリセット信号RESTが与
えられ、クロック信号CLK を出力する。このクロック信
号CLK がLSI内部のブロックBのCLK端子に入力さ
れるのだが、クロック発生回路CGのクロック信号CLK
からブロックBの間には遅延時間が存在するため、クロ
ック信号CLK を遅延要素D1を介してブロックBのCL
K端子に入力されるものとする。リセット信号RESTも同
様に遅延要素D2を介してブロックBのRST端子に入
力される。
FIG. 14 shows how the clock signal generation circuit shown in FIG. 11 supplies a clock signal to another block in the same LSI. Clock generation circuit C
G is supplied with the system clock signal SCLK and the reset signal REST and outputs the clock signal CLK. This clock signal CLK is input to the CLK terminal of the block B inside the LSI, but the clock signal CLK of the clock generation circuit CG
Since there is a delay time between the block B and the block B, the clock signal CLK is transmitted to the CL of the block B via the delay element D1.
It shall be input to the K terminal. Similarly, the reset signal REST is also input to the RST terminal of the block B via the delay element D2.

【0006】図15は遅延要素D1の遅延時間が遅延要
素D2の遅延時間よりも大きい時のタイムチャートを示
しており、この例では遅延要素D1の遅延時間を図15
(a)に示すシステムクロック信号SCLKの1周期分と
し、遅延素子D2の遅延時間をシステムクロック信号SC
LKの半周期分としている。このような場合、ブロックB
に入力される図15(e)に示すクロック信号CLK ’と
図15(d)に示すリセット信号REST’とを比べると、
遅延要素D2のリセット信号REST’の方が早く入力され
ることになり、リセット信号REST’が”L”になった後
で不正なクロック信号(ホ)が入力されることになる。
ブロックBがリセット解除後に用いる本来のクロック信
号は(ヘ)の部分であり、クロック信号(ホ)が入力さ
れると誤動作の原因になる。また、このクロック信号
(ホ)が”H”になっている期間はリセット信号RESTが
変化するタイミングに依存しており、前以て予測するこ
とはできない。従って上記の例では誤動作するのかどう
かということも事前に知ることはできない。図15
(b),(c)はそれぞれクロック発生回路CGに入力
するリセット信号RESTと、出力するクロック信号CLK を
示す。
FIG. 15 shows a time chart when the delay time of the delay element D1 is larger than the delay time of the delay element D2. In this example, the delay time of the delay element D1 is shown in FIG.
One cycle of the system clock signal SCLK shown in (a) is used, and the delay time of the delay element D2 is set to the system clock signal SC.
It is the half cycle of LK. In such a case, block B
Comparing the clock signal CLK 'shown in FIG. 15 (e) and the reset signal REST' shown in FIG.
The reset signal REST 'of the delay element D2 is input earlier, and an incorrect clock signal (e) is input after the reset signal REST' becomes "L".
The original clock signal used by the block B after the reset is released is the portion (f), and the input of the clock signal (e) causes a malfunction. Further, the period during which the clock signal (e) is "H" depends on the timing at which the reset signal REST changes and cannot be predicted in advance. Therefore, it is not possible to know in advance whether or not a malfunction will occur in the above example. Figure 15
(B) and (c) respectively show the reset signal REST input to the clock generation circuit CG and the clock signal CLK output.

【0007】本発明は上述の点に鑑みて為されたもの
で、その目的とするところは、クロック信号及びリセッ
ト信号を与えるLSI内のブロックがリセット解除時に
誤動作する可能性を無くしたクロック信号・同期リセッ
ト信号発生回路を提供するにある。
The present invention has been made in view of the above points, and an object of the present invention is to eliminate the possibility that a block in an LSI that provides a clock signal and a reset signal malfunctions when reset is released. A synchronous reset signal generation circuit is provided.

【0008】[0008]

【課題を解決するための手段】請求項1記載のクロック
信号・同期リセット信号発生回路は、上述の目的を達成
するために、LSI外部から入力されるシステムクロッ
ク信号を分周して任意の周期のクロック信号出力を発生
させる同期カウンタと、LSI外部から入力されるリセ
ット信号に適切な遅延を施して内部リセット信号を発生
させ且つ上記リセット信号の出力が変化する時に上記ク
ロック信号の発生を停止させるための同期カウンタ用リ
セット信号を発生させるリセット信号発生回路とを備え
たものである。
In order to achieve the above-mentioned object, a clock signal / synchronous reset signal generation circuit according to a first aspect of the present invention divides a system clock signal input from the outside of an LSI to an arbitrary cycle. And a synchronous counter for generating an output of the clock signal, an internal reset signal is generated by appropriately delaying a reset signal input from the outside of the LSI, and the generation of the clock signal is stopped when the output of the reset signal changes. And a reset signal generation circuit for generating a reset signal for the synchronous counter for the purpose.

【0009】また、請求項2記載のクロック信号・同期
リセット信号発生回路は、請求項1記載のクロック信号
・同期リセット信号発生回路で、前期リセット信号に、
前記リセット信号が解除された一定時間後に所定期間リ
セット状態となる信号を付加して前記リセット信号発生
回路に出力する初期化回路を具備したことを特徴とする
ものである。
The clock signal / synchronous reset signal generating circuit according to a second aspect is the clock signal / synchronous reset signal generating circuit according to the first aspect, wherein
It is characterized by comprising an initialization circuit for adding a signal which is in a reset state for a predetermined period after a predetermined time after the reset signal is released and outputting the signal to the reset signal generation circuit.

【0010】[0010]

【作用】本発明の構成によれば、LSI外部から入力さ
れるリセット信号の入力のタイミングに関わらず、LS
I内の他のブロックに対してクロック信号が停止してい
る時に変化するような内部リセット信号を与えることが
でき、ブロックがリセット解除時に誤動作を起こす可能
性を無くすことができるのである。
According to the structure of the present invention, the LS is irrespective of the input timing of the reset signal input from the outside of the LSI.
An internal reset signal that changes when the clock signal is stopped can be given to the other blocks in I, and the possibility that the block may malfunction when reset is released can be eliminated.

【0011】[0011]

【実施例】以下本発明を実施例により説明する。EXAMPLES The present invention will be described below with reference to examples.

【0012】図1は本発明の実施例のブロック図を示
し、図1において、10の同期カウンタは、LSI外部
から入力するシステムクロック信号SCLKを所望の周期に
分周したクロック信号CLK を出力する。一方11のリセ
ット信号発生回路はLSI外部からのリセット信号REST
をリセット信号入力端子RSTIN に入力し、同期カウンタ
用リセット信号CREST と内部リセット信号REST' を出力
する。
FIG. 1 shows a block diagram of an embodiment of the present invention. In FIG. 1, ten synchronous counters output a clock signal CLK obtained by dividing a system clock signal SCLK input from the outside of the LSI into a desired cycle. . On the other hand, 11 reset signal generation circuits are reset signals REST from outside the LSI.
Is input to the reset signal input terminal RSTIN, and the reset signal CREST for the synchronous counter and the internal reset signal REST 'are output.

【0013】上記クロック信号CLK 及び内部リセット信
号REST' はLSI内の他のブロックに与えられるもので
ある。
The clock signal CLK and the internal reset signal REST 'are given to other blocks in the LSI.

【0014】図2は上記実施例のタイムチャートを示し
ており、図示例では図2(a)に示すシステムクロック
信号SCLKを同期カウンタ10で1回分周して、2倍の周
期のクロック信号CLK を図2(d)に示すように出力す
る。図2(b)に示すリセット信号RESTが変化した後の
しばらくの期間だけ図2(c)に示すように同期カウン
タ用リセット信号CREST が”L”から”H”に変化す
る。その結果クロック信号CLK が停止しているときに、
変化するように、リセット信号RESTに適当な遅延を施し
て図2(e)に示す内部リセット信号REST' として出力
する。LSI中に存在する他のブロックはクロック信号
CLK と、内部リセット信号REST' をクロック信号とリセ
ット信号として使うので、従来例のような不正なクロッ
ク信号による誤動作は発生しないのである。
FIG. 2 shows a time chart of the above embodiment. In the illustrated example, the system clock signal SCLK shown in FIG. 2A is divided by the synchronous counter 10 once, and the clock signal CLK having a doubled cycle is shown. Is output as shown in FIG. As shown in FIG. 2C, the synchronous counter reset signal CREST changes from “L” to “H” only for a while after the reset signal REST shown in FIG. 2B changes. As a result, when the clock signal CLK is stopped,
The reset signal REST is delayed appropriately so as to change, and is output as the internal reset signal REST ′ shown in FIG. Other blocks in the LSI are clock signals
Since CLK and the internal reset signal REST 'are used as the clock signal and the reset signal, the malfunction due to the incorrect clock signal as in the conventional example does not occur.

【0015】図3は上記実施例の具体例を示しており、
同期カウンタ10は内部に1bit長のレジスタを持つ
カウンタで構成され、同期カウンタ10はRST端子
に”H”の同期カウンタ用リセット信号CREST が入力さ
れるとレジスタの値を0にし、そうでない時はCLK端
子に図4(a)に示すシステムクロック信号SCLKの立ち
上がりエッジがきた時にレジスタの値をインクリメント
する。レジスタの値が”1”の時にさらに立ち上がりエ
ッジが入力されると、レジスタの値は”0”になる。O
UT端子にはこのレジスタの値が出力され、これにより
同期カウンタ10は入力されたシステムクロック信号SC
LKの2倍の周期を持つ図4(e)に示すクロック信号CL
K に変換する働きをする。
FIG. 3 shows a specific example of the above embodiment,
The synchronous counter 10 is composed of a counter having a register of 1 bit length inside, and the synchronous counter 10 sets the value of the register to 0 when the reset signal CREST for the synchronous counter of "H" is input to the RST terminal. When the rising edge of the system clock signal SCLK shown in FIG. 4A arrives at the CLK terminal, the value of the register is incremented. When a rising edge is further input while the register value is "1", the register value becomes "0". O
The value of this register is output to the UT terminal, which causes the synchronous counter 10 to receive the input system clock signal SC.
The clock signal CL shown in FIG. 4 (e) having a cycle twice that of LK.
Works to convert to K.

【0016】リセット信号発生回路11はカウンタC
1、C2と、比較器CMP1、CMP2、フリップフロ
ップF1〜F4、オアゲートOR、ノットゲートNTか
ら構成され、カウンタC1、C2は、3bit幅のレジ
スタを持ち、夫々のRST端子が”H”の時にレジスタ
の値を0にし、RST端子が”L”で且つレジスタの値
が4以下のときはレジスタの値をインクリメントするよ
うなカウンタであり、3bit幅のレジスタの値をその
まま出力する。比較器CMP1、CMP2は入力される
データが1以上4以下の時に”H”を出力し、そうでな
い時に”L”を出力する。そしてこれらのカウンタC
1、C2と比較器CMP1、CMP2により、オアゲー
トORの入力端aには図4(b)に示すリセット信号RE
STが”L”から”H”に変化した時からシステムクロッ
ク信号SCLKの1周期後〜5周期後の間だけ図4(c)に
示すように”H”が入力され、入力端bにはリセット信
号RESTが”H”から”L”に変化した時からシステムク
ロック信号SCLKの1周期後〜5周期後の間だけ図4
(d)に示すように”H”が入力される。そして両入力
信号の論理和演算の結果が同期カウンタ用リセット信号
CREST となる。またフリップフロップF1〜F4はリセ
ット信号RESTをシステムクロック信号SCLKの4周期の時
間だけ遅らせて図4(f)に示す内部リセット信号RES
T’として出力する。上記具体例においては同期カウン
タ10の設定やリセット信号発生回路11内のカウンタ
C1,C2の設定、内部リセット信号用のシフトレジス
タの段数を変更することにより容易に必要な特性を持つ
クロック信号CLK と内部リセット信号REST' を得ること
ができる。
The reset signal generating circuit 11 is a counter C.
1 and C2, comparators CMP1 and CMP2, flip-flops F1 to F4, an OR gate OR, and a not gate NT. It is a counter that increments the value of the register when the value of the register is 0, the RST terminal is "L" and the value of the register is 4 or less, and outputs the value of the register of 3 bit width as it is. The comparators CMP1 and CMP2 output "H" when the input data is 1 or more and 4 or less, and output "L" otherwise. And these counters C
1 and C2 and the comparators CMP1 and CMP2, the reset signal RE shown in FIG.
As shown in FIG. 4 (c), "H" is input only from one cycle to five cycles after the system clock signal SCLK from the time ST changes from "L" to "H", and is input to the input terminal b. From the time when the reset signal REST changes from "H" to "L", only one cycle to five cycles after the system clock signal SCLK.
"H" is input as shown in (d). The result of the logical sum operation of both input signals is the reset signal for the synchronous counter
It becomes CREST. Further, the flip-flops F1 to F4 delay the reset signal REST by the time of four cycles of the system clock signal SCLK, and then the internal reset signal RES shown in FIG.
Output as T '. In the above specific example, the clock signal CLK having the required characteristics can be easily obtained by changing the setting of the synchronous counter 10, the setting of the counters C1 and C2 in the reset signal generating circuit 11, and the number of stages of the shift register for the internal reset signal. The internal reset signal REST 'can be obtained.

【0017】図3に示した構成では、リセット信号発生
回路11のカウンタC1は、RST端子が”L”になっ
た時にリセットされ”H”になった時にインクリメント
されるカウンタであり、カウンタC2はRST端子が”
H”になった時にリセットされ”L”になった時にイン
クリメントされるカウンタである。パワーオンリセット
時、カウンタC1,C2のレジスタ値は図5に示すよう
になる。図において、(a)はパワーオン時のリセット
信号RESTの一例を示すもので、”H”から”L”にのみ
変化する信号である、(b)はカウンタC1のレジスタ
値、(c)はカウンタC2のレジスタ値を示している。
図に示すように、リセット信号RESTが”H”の状態でカ
ウンタC2はリセットされて正常に動作するが、(b)
に示すように、カウンタC1はリセットされていないた
め、そのレジスト値は不定となり、正常な同期カウンタ
用リセット信号を出力できない可能性がある。よってこ
の回路をパワーオンリセット時に、外部から与えるリセ
ット信号RESTが”H”から”L”にしか変化しない回路
に適用すると、カウンタC1を正しく初期化することが
できず誤動作の原因となる。このような回路に本発明の
クロック信号・同期リセット信号発生回路を適用する場
合は、例えば、図6のブロック図に示すように構成する
とよい。
In the configuration shown in FIG. 3, the counter C1 of the reset signal generating circuit 11 is a counter that is reset when the RST terminal becomes "L" and increments when it becomes "H", and the counter C2 is the counter C2. RST terminal is "
It is a counter that is reset when it becomes H ”and is incremented when it becomes“ L. ”At power-on reset, the register values of the counters C1 and C2 are as shown in Fig. 5. In the figure, (a) shows An example of the reset signal REST at the time of power-on is shown, which is a signal that changes only from "H" to "L". (B) shows the register value of the counter C1 and (c) shows the register value of the counter C2. ing.
As shown in the figure, when the reset signal REST is "H", the counter C2 is reset and operates normally.
Since the counter C1 has not been reset, as shown in FIG. 5, the registration value becomes indefinite, and there is a possibility that a normal synchronization counter reset signal cannot be output. Therefore, if this circuit is applied to a circuit in which the reset signal REST applied from the outside changes only from "H" to "L" at the time of power-on reset, the counter C1 cannot be correctly initialized, which causes a malfunction. When the clock signal / synchronous reset signal generating circuit of the present invention is applied to such a circuit, for example, the configuration shown in the block diagram of FIG. 6 may be adopted.

【0018】図6に示す異なる実施例は、図3に示した
クロック信号・同期リセット信号発生回路に、初期化回
路21を付加したものである。初期化回路21は、図7
(a)に示すようなリセット信号RESTを入力して、その
リセット信号RESTに、図7(b)に示すように、リセッ
ト信号RESTが”H”から”L”に変化した一定時間後
に、”H”を所定時間出力した後”L”に変化する信号
を付加した初期化信号RTEST'' をリセット信号発生回路
11に供給する回路である。図7(c)はカウンタC1
のレジスト値、図7(d)はカウンタC2のレジスタ値
を示している。このように、リセット信号RESTを”L”
にしてカウンタC1をリセットした後、所定期間、リセ
ット信号RESTを”H”にしてやることで正常にカウンタ
C1、C2をリセットすることができる。
In a different embodiment shown in FIG. 6, an initialization circuit 21 is added to the clock signal / synchronous reset signal generation circuit shown in FIG. The initialization circuit 21 is shown in FIG.
A reset signal REST as shown in (a) is input, and after a certain time after the reset signal REST changes from "H" to "L" as shown in FIG. This circuit supplies the reset signal generation circuit 11 with an initialization signal RTEST "to which a signal that changes to" L "after outputting" H "for a predetermined time is added. FIG. 7C shows the counter C1.
7D, the register value of the counter C2 is shown in FIG. In this way, reset signal REST is "L"
After resetting the counter C1 by setting the reset signal REST to "H" for a predetermined period, the counters C1 and C2 can be normally reset.

【0019】図8に基づいて上記に示した実施例の具体
回路を説明する。図に示したクロック信号・同期リセッ
ト信号発生回路は、内部に1bit長のレジスタを有
し、システムクロックSCLKを2倍に分周してクロック信
号CLK を出力する同期カウンタ10と、リセット信号発
生回路11と、リセット信号発生回路11の前段に接続
された初期化回路21で構成されている。システムクロ
ック信号SCLKを、同期カウンタ10と、リセット信号発
生回路11と初期化回路21に供給すると共に、リセッ
ト信号RESTを、初期化回路21に入力しリセット信号発
生回路11を正常に初期化する機能を有する初期化信号
REST''に変換してリセット信号発生回路11供給する。
A specific circuit of the above-described embodiment will be described with reference to FIG. The clock signal / synchronous reset signal generation circuit shown in the figure has a 1-bit length register inside, a synchronous counter 10 that divides the system clock SCLK by 2 and outputs a clock signal CLK, and a reset signal generation circuit. 11 and an initialization circuit 21 connected to the preceding stage of the reset signal generation circuit 11. A function of supplying the system clock signal SCLK to the synchronous counter 10, the reset signal generation circuit 11 and the initialization circuit 21 and inputting the reset signal REST to the initialization circuit 21 to normally initialize the reset signal generation circuit 11. Initialization signal with
It is converted into REST '' and supplied to the reset signal generation circuit 11.

【0020】初期化回路21で、C3は4bit長のレ
ジスタを有するカウンタで、リセット信号RESTが”H”
の時はデータをリセットしリセット信号RESTが”L”で
且つデータが14以下の場合に、そのデータをインクリ
メントするもので、4bit長のレジスタに保持された
値をデータDATAとしてそのまま出力する。CMP3はカ
ウンタC3から入力された4bit長のデータDATAが0
以上6以下、または15の場合には”L”を出力し、そ
れ以外の場合は”H”を出力する比較器で、S1はリセ
ット信号RESTと比較器CMP3の出力を入力し、リセッ
ト信号RESTが”H”の時はリセット信号REST(”H”)
を出力し、リセット信号RESTが”L”の時は、比較器C
MP3の出力を出力するセレクタである。上記のように
構成した初期化回路21のタイムチャートを図9に示
す。図9(b)に示すように、リセット信号RESTが”
H”である場合は、カウンタC3の出力であるデータDA
TA(図9(c))はリセットされて0となっていると共
に、図9(d)に示すように、初期化信号REST''とし
て”H”であるリセット信号RESTがそのまま出力されて
いる。リセット信号RESTが”H”から”L”に変化した
時、データDATAは0であるので、”L”である比較器C
MP3の出力が初期化信号REST''として出力される。カ
ウンタC3のRST端子は”L”の状態となったのでカ
ウンタC3のデータDATAはインクリメントされ、そのデ
ータDATAが1から6までの間、比較器CMP3は”L”
を出力し、そのデータDATAが7から14までの間、比較
器CMP3は”H”を出力する。その後、データDATA
は、15となった時点でそれ以上インクリメントされな
くなり、初期化信号REST''として比較器CMP3から”
L”状態が出力される。
In the initialization circuit 21, C3 is a counter having a 4-bit length register, and the reset signal REST is "H".
In the case of, the data is reset, and when the reset signal REST is "L" and the data is 14 or less, the data is incremented, and the value held in the 4-bit length register is directly output as the data DATA. In CMP3, 4-bit length data DATA input from the counter C3 is 0.
A comparator that outputs "L" if 6 or less or 15 or more and "H" otherwise, in which S1 inputs the reset signal REST and the output of the comparator CMP3, and the reset signal REST Is "H", reset signal REST ("H")
Is output, and when the reset signal REST is "L", the comparator C
It is a selector that outputs the output of MP3. FIG. 9 shows a time chart of the initialization circuit 21 configured as described above. As shown in FIG. 9B, the reset signal REST is "
If it is H ”, the data DA output from the counter C3
TA (FIG. 9 (c)) is reset to 0, and as shown in FIG. 9 (d), the reset signal REST which is “H” is output as it is as the initialization signal REST ″. . Since the data DATA is 0 when the reset signal REST changes from "H" to "L", the comparator C which is "L"
The output of MP3 is output as the initialization signal REST ″. Since the RST terminal of the counter C3 is in the "L" state, the data DATA of the counter C3 is incremented and the comparator CMP3 is "L" while the data DATA is 1 to 6.
The comparator CMP3 outputs "H" while the data DATA is 7 to 14. Then the data DATA
Is not further incremented when it reaches 15, and the comparator CMP3 outputs "initialization signal REST".
The L "state is output.

【0021】図8に示したクロック信号・同期リセット
信号発生回路の、パワーオンリセット時のタイムチャー
トを図10に示す。図において、(a)はシステムクロ
ック信号SCLK、(b)は外部から与えられるリセット信
号REST、(c)は比較器CMP1の出力、(d)は比較
器CMP2の出力、(e)はクロック信号 CLK、(f)
は内部リセット信号REST' 、(g)は初期化信号REST''
である。図に示すように、初期化信号REST''が”L”で
ある(ト)の部分でカウンタC1は初めてリセットさ
れ、初期化信号REST''が”H”の期間の(チ)の部分で
そのレジスタはインクリメントされて、正常な比較器C
MP1の出力(c)が得られる。また、カウンタC2も
初期化信号REST''の(チ)の部分で再びリセットされる
ので、正常な比較器CMP2の出力(d)が得られる。
これにより、内部リセット信号REST' の(リ)の部分の
立上がり及び立ち下がり時にはクロック信号CLKは”
L”となっており、LSIの他のブロックは内部リセッ
ト信号REST' の(リ)の部分で正常にリセットされるこ
とになる。
FIG. 10 shows a time chart at the time of power-on reset of the clock signal / synchronous reset signal generation circuit shown in FIG. In the figure, (a) is a system clock signal SCLK, (b) is a reset signal REST given from the outside, (c) is an output of the comparator CMP1, (d) is an output of the comparator CMP2, and (e) is a clock signal. CLK, (f)
Is the internal reset signal REST ', (g) is the initialization signal REST''
Is. As shown in the figure, the counter C1 is reset for the first time in the part (g) where the initialization signal REST '' is "L", and in the part (h) in the period when the initialization signal REST "is" H ". The register is incremented and the normal comparator C
The output (c) of MP1 is obtained. Further, since the counter C2 is also reset again at the portion (h) of the initialization signal REST ″, the normal output (d) of the comparator CMP2 is obtained.
As a result, the clock signal CLK rises and falls during the rising and falling portions of (i) of the internal reset signal REST '.
Since it is L ″, the other blocks of the LSI are normally reset at the portion (i) of the internal reset signal REST ′.

【0022】以上のように、初期化回路21を図3に示
したクロック信号・同期リセット信号発生回路に付加す
ることにより、LSI外部から入力されるリセット信号
が”H”から”L”に変化するだけの回路の場合でも、
クロック信号・同期リセット信号発生回路を正しく初期
化することができ誤動作を防止することができる。な
お、初期化回路は実施例の回路に限定されるものではな
い。
As described above, by adding the initialization circuit 21 to the clock signal / synchronous reset signal generation circuit shown in FIG. 3, the reset signal input from the outside of the LSI changes from "H" to "L". Even if the circuit is just
It is possible to correctly initialize the clock signal / synchronous reset signal generation circuit and prevent malfunction. The initialization circuit is not limited to the circuit of the embodiment.

【0023】[0023]

【発明の効果】本発明は、LSI外部から入力されるシ
ステムクロック信号を分周して任意の周期のクロック信
号出力を発生させる同期カウンタと、LSI外部から入
力されるリセット信号に適切な遅延を施して内部リセッ
ト信号を発生させ且つ上記内部リセット信号の出力が変
化する時に上記クロック信号の発生を停止させるための
同期カウンタ用リセット信号を発生させるリセット信号
発生回路とを備えたから、LSI外部から入力されるリ
セット信号の入力のタイミングに関わらず、LSI内の
他のブロックに対してクロック信号が停止している時に
変化するような内部リセット信号を与えることができ、
LSIの他のブロックがリセット解除時に誤動作を起こ
す可能性を無くすことができるという効果がある。
According to the present invention, a synchronous counter for dividing a system clock signal input from the outside of the LSI to generate a clock signal output of an arbitrary cycle, and an appropriate delay for a reset signal input from the outside of the LSI. And a reset signal generating circuit for generating an internal reset signal and generating a reset signal for a synchronous counter for stopping the generation of the clock signal when the output of the internal reset signal changes. Irrespective of the timing of inputting the reset signal, an internal reset signal that changes when the clock signal is stopped can be given to other blocks in the LSI.
There is an effect that it is possible to eliminate the possibility that other blocks of the LSI may malfunction when reset is released.

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

【図1】本発明の一実施例を示す回路ブロック図であ
る。
FIG. 1 is a circuit block diagram showing an embodiment of the present invention.

【図2】同上の動作説明用タイムチャートである。FIG. 2 is a time chart for explaining the above operation.

【図3】同上の具体回路図である。FIG. 3 is a specific circuit diagram of the above.

【図4】同上の具体回路の動作説明用タイムチャートで
ある。
FIG. 4 is a time chart for explaining the operation of the above specific circuit.

【図5】同上の具体回路の誤動作説明用タイムチャート
である。
FIG. 5 is a time chart for explaining a malfunction of the specific circuit of the above.

【図6】本発明の異なる実施例を示す回路ブロック図で
ある。
FIG. 6 is a circuit block diagram showing a different embodiment of the present invention.

【図7】本発明の異なる実施例の動作説明用タイムチャ
ートである。
FIG. 7 is a time chart for explaining the operation of a different embodiment of the present invention.

【図8】本発明の異なる実施例の具体回路図である。FIG. 8 is a detailed circuit diagram of a different embodiment of the present invention.

【図9】本発明の異なる実施例の初期化回路のタイムチ
ャートである。
FIG. 9 is a time chart of an initialization circuit according to another embodiment of the present invention.

【図10】本発明の異なる実施例の動作説明用タイムチ
ャートである。
FIG. 10 is a time chart for explaining the operation of another embodiment of the present invention.

【図11】従来例の回路ブロック図である。FIG. 11 is a circuit block diagram of a conventional example.

【図12】同上の動作説明用タイムチャートである。FIG. 12 is a time chart for explaining the above operation.

【図13】同上の誤動作説明用タイムチャートである。FIG. 13 is a time chart for explaining a malfunction described above.

【図14】同上をLSI内に組み込んだ場合のブロック
図である。
FIG. 14 is a block diagram when the same is incorporated in an LSI.

【図15】同上の動作説明用タイムチャートである。FIG. 15 is a time chart for explaining the above operation.

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

10 同期カウンタ 11 リセット信号発生回路 21 初期化回路 SCLK システムクロック信号 CLK クロック信号 REST リセット信号 REST' 内部リセット信号 REST'' 初期化信号 CREST 同期カウンタ用リセット信号 10 Synchronous counter 11 Reset signal generation circuit 21 Initialization circuit SCLK System clock signal CLK Clock signal REST Reset signal REST 'Internal reset signal REST' 'Initialization signal CREST Reset signal for synchronous counter

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】LSI外部から入力されるシステムクロッ
ク信号を分周して任意の周期のクロック信号出力を発生
させる同期カウンタと、LSI外部から入力されるリセ
ット信号に適切な遅延を施して内部リセット信号を発生
させ且つ上記内部リセット信号の出力が変化する時に上
記クロック信号の発生を停止させるための同期カウンタ
用リセット信号を発生させるリセット信号発生回路とを
備えたことを特徴とするクロック信号・同期リセット信
号発生回路。
1. A synchronous counter for dividing a system clock signal input from the outside of the LSI to generate a clock signal output of an arbitrary cycle, and an internal reset by appropriately delaying a reset signal input from the outside of the LSI. And a reset signal generation circuit for generating a reset signal for a synchronous counter for generating a signal and stopping the generation of the clock signal when the output of the internal reset signal changes. Reset signal generation circuit.
【請求項2】前期リセット信号に、前記リセット信号が
解除された一定時間後に所定期間リセット状態となる信
号を付加して前記リセット信号発生回路に出力する初期
化回路を具備したことを特徴とする請求項1記載のクロ
ック信号・同期リセット信号発生回路。
2. An initializing circuit for adding to the reset signal generating circuit a signal which is in a reset state for a predetermined period of time after the reset signal is released, and which is output to the reset signal generating circuit. The clock signal / synchronous reset signal generation circuit according to claim 1.
JP5185693A 1993-07-28 1993-07-28 Clock signal / synchronous reset signal generation circuit Expired - Fee Related JP2998501B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5185693A JP2998501B2 (en) 1993-07-28 1993-07-28 Clock signal / synchronous reset signal generation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5185693A JP2998501B2 (en) 1993-07-28 1993-07-28 Clock signal / synchronous reset signal generation circuit

Publications (2)

Publication Number Publication Date
JPH0746119A true JPH0746119A (en) 1995-02-14
JP2998501B2 JP2998501B2 (en) 2000-01-11

Family

ID=16175215

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5185693A Expired - Fee Related JP2998501B2 (en) 1993-07-28 1993-07-28 Clock signal / synchronous reset signal generation circuit

Country Status (1)

Country Link
JP (1) JP2998501B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0854578A3 (en) * 1997-01-08 2002-01-16 Nokia Mobile Phones Ltd. Application specific integrated circuit (asic) having improved reset deactivation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0854578A3 (en) * 1997-01-08 2002-01-16 Nokia Mobile Phones Ltd. Application specific integrated circuit (asic) having improved reset deactivation

Also Published As

Publication number Publication date
JP2998501B2 (en) 2000-01-11

Similar Documents

Publication Publication Date Title
US7180336B2 (en) Glitch-free clock switching apparatus
JP4504581B2 (en) Register-controlled delay lock loop using ring delay and counter
US7675797B2 (en) CAS latency circuit and semiconductor memory device including the same
US6771100B2 (en) Clock control circuit
US6895523B2 (en) Generation of pulse signals from a clock signal
US7157953B1 (en) Circuit for and method of employing a clock signal
JP3768663B2 (en) Semiconductor memory device for generating burst mode control signal
JPH0746119A (en) Clock signal and synchronous reset signal generating circuit
KR100291126B1 (en) Circuit device including a plurality of sub-circuits and clock signal regeneration circuits
JP3192225B2 (en) Clock signal / synchronous reset signal generation circuit
JP2000134070A (en) Noise eliminating circuit
JP2906966B2 (en) Pulse switching circuit
JPH10215153A (en) Clock multiplication circuit and semiconductor integrated circuit
JP2006254451A (en) Frequency divider with slip
US7555083B2 (en) Synchronizing circuit for stably generating an output signal
KR100903384B1 (en) Semiconductor memory device and operation method thereof
JP3168089B2 (en) Chattering elimination circuit
US20040267848A1 (en) Clock divider with glitch free dynamic divide-by change
JP4112699B2 (en) Integrated circuit
JPS6316318A (en) Clock switching circuit
JPH04183017A (en) Flip-flop circuit
JP3453762B2 (en) Sequencer
JP3031206B2 (en) Divider circuit
JP2007198880A (en) Semiconductor integrated circuit and duty measurement/correction method using same
JPH04237208A (en) Monostable multivibrator circuit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees