JP2013247628A - Count value propagation circuit and count value propagation method - Google Patents

Count value propagation circuit and count value propagation method Download PDF

Info

Publication number
JP2013247628A
JP2013247628A JP2012122082A JP2012122082A JP2013247628A JP 2013247628 A JP2013247628 A JP 2013247628A JP 2012122082 A JP2012122082 A JP 2012122082A JP 2012122082 A JP2012122082 A JP 2012122082A JP 2013247628 A JP2013247628 A JP 2013247628A
Authority
JP
Japan
Prior art keywords
signal
control signal
clock signal
counter
count
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
JP2012122082A
Other languages
Japanese (ja)
Other versions
JP5647180B2 (en
Inventor
Mamoru Suzuki
守 鈴木
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 Platforms Ltd
Original Assignee
NEC AccessTechnica 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 NEC AccessTechnica Ltd filed Critical NEC AccessTechnica Ltd
Priority to JP2012122082A priority Critical patent/JP5647180B2/en
Publication of JP2013247628A publication Critical patent/JP2013247628A/en
Application granted granted Critical
Publication of JP5647180B2 publication Critical patent/JP5647180B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a count value propagation circuit and a count value propagation method that correctly propagate a counter value between circuits using different clock sources while suppressing an increase in circuit scale.SOLUTION: A count value propagation circuit 10 includes: a first counter 20 for acquiring a first control signal according to a first clock signal of an interval T1 and performing a count action depending on the first control signal; a second counter 30 for acquiring a second control signal according to a second clock signal of an interval T2 that is half the interval T1 or less, and performing a count action depending on the second control signal; state output means 40 for acquiring the first control signal according to the first clock signal and outputting a binary state signal depending on the first control signal; synchronization means 50 for outputting as a synchronization clock signal a signal of detection of the first clock signal according to the second clock signal; and propagation means 60 for recognizing the state signal according to the synchronization clock signal and outputting the second control signal of a length T2 depending on the state signal.

Description

本発明は、カウント値伝播回路に関し、特に、第1クロックソースに基づくバイナリカウント値を、第1クロックソースに基づいて動作する回路に伝播するカウント値伝播回路に関する。   The present invention relates to a count value propagation circuit, and more particularly to a count value propagation circuit that propagates a binary count value based on a first clock source to a circuit that operates based on the first clock source.

クロックソースの異なる回路間でのカウント値を伝播する回路として、例えば、特許文献1や特許文献2には、バイナリカウント値をグレイコードに変換して出力し、異なるクロックで変換したグレイコードを取り込み、バイナリコードに戻して伝播する技術が開示されている。   As a circuit that propagates a count value between circuits having different clock sources, for example, in Patent Document 1 and Patent Document 2, a binary count value is converted into a gray code and output, and a gray code converted with a different clock is captured. A technique for propagating back to binary code is disclosed.

また、特許文献3には、取り込み側に取り込みタイミングの異なる保持回路を2つ備え、真の値を保持した側を選択することで、バイナリカウント値を伝播する技術が開示されている。   Further, Patent Document 3 discloses a technique for propagating a binary count value by providing two holding circuits with different acquisition timings on the acquisition side and selecting the side that holds the true value.

特開平10−065545号公報JP-A-10-0665545 特開平10−215185号公報Japanese Patent Laid-Open No. 10-215185 特開平05−075584号公報Japanese Patent Laid-Open No. 05-075584

しかし、特許文献1−3の技術は、カウント値のビット数分の変換回路や保持回路を持つ必要があり、回路規模が大きくなる。   However, the techniques of Patent Documents 1-3 need to have conversion circuits and holding circuits for the number of bits of the count value, and the circuit scale increases.

本発明の目的は、上記の課題に鑑みなされたものであり、回路規模の増大を抑制しつつ、異なるクロックソースを用いた回路間でカウンタ値を正しく伝播することができるカウント値伝播回路およびカウント値伝播方法を提供することにある。   An object of the present invention has been made in view of the above problems, and a count value propagation circuit and a count that can correctly propagate a counter value between circuits using different clock sources while suppressing an increase in circuit scale. To provide a value propagation method.

上記目的を達成するために本発明に係る第1のカウント値伝播回路は、間隔T1で出力される第1クロック信号に基づいて該第1クロック信号に同期した第1制御信号を取得し、取得した第1制御信号に応じたカウント動作を行う第1カウンタと、間隔T1の1/2以下である間隔T2ごとに出力される第2クロック信号に基づいて第2制御信号を取得し、取得した第2制御信号に応じたカウント動作を行う第2カウンタと、第1クロック信号に基づいて第1制御信号を取得し、取得した第1制御信号に応じた2進数の状態信号を出力する状態出力手段と、第2クロック信号に基づいて第1クロック信号を検出し、同期化クロック信号として出力する同期化手段と、同期化クロック信号に基づいて状態信号を取得し、取得した状態信号に応じた長さT2の第2制御信号を出力する伝播手段と、を備える。   To achieve the above object, the first count value propagation circuit according to the present invention acquires a first control signal synchronized with the first clock signal based on the first clock signal output at the interval T1, and acquires the first control signal. The second control signal is acquired based on the first counter that performs the counting operation according to the first control signal and the second clock signal that is output every interval T2 that is ½ or less of the interval T1. A second counter that performs a counting operation according to the second control signal, a state output that acquires the first control signal based on the first clock signal and outputs a binary state signal according to the acquired first control signal Means for detecting a first clock signal based on the second clock signal and outputting it as a synchronized clock signal; acquiring a status signal based on the synchronized clock signal; and depending on the acquired status signal Comprising a propagation means for outputting a second control signal length T2, the.

上記目的を達成するために本発明に係る第2のカウント値伝播回路は、間隔T1で出力される第1クロック信号に基づいて該第1クロック信号に同期した第1制御信号を取得し、取得した第1制御信号に応じたカウント動作を行う第1カウンタと、間隔T1の1/2以下である間隔T2ごとに出力される第2クロック信号に基づいて第2制御信号を取得し、取得した第2制御信号に応じたカウント動作を行う第2カウンタと、第1クロック信号に基づいて第1制御信号を取得し、取得した第1制御信号に応じたT1の1/2の長さのパルス信号を出力する状態出力手段と、第2クロック信号に基づいてパルス信号の立ち上がりを検出し、検出したパルス信号に応じた第2制御信号を出力する伝播手段と、を備える。   In order to achieve the above object, the second count value propagation circuit according to the present invention acquires the first control signal synchronized with the first clock signal based on the first clock signal output at the interval T1, and acquires the first control signal. The second control signal is acquired based on the first counter that performs the counting operation according to the first control signal and the second clock signal that is output every interval T2 that is ½ or less of the interval T1. A second counter that performs a counting operation according to the second control signal, a first control signal is acquired based on the first clock signal, and a pulse having a length that is ½ of T1 according to the acquired first control signal A state output means for outputting a signal; and a propagation means for detecting a rising edge of the pulse signal based on the second clock signal and outputting a second control signal corresponding to the detected pulse signal.

上記目的を達成するために本発明に係る第1のカウント値伝播方法は、間隔T1で出力される第1クロック信号に基づいて該第1クロック信号に同期した第1制御信号を取得し、取得した第1制御信号に応じたカウント動作を行う第1カウンタと、間隔T1の1/2以下である間隔T2ごとに出力される第2クロック信号に基づいて第2制御信号を取得し、取得した第2制御信号に応じたカウント動作を行う第2カウンタと、を用いる。そして、第1のカウント値伝播方法は、第1クロック信号に基づいて第1制御信号を取得し、取得した第1制御信号に応じた2進数の状態信号を出力し、第2クロック信号に基づいて第1クロック信号を検出し、同期化クロック信号として出力し、同期化クロック信号に基づいて状態信号を取得し、取得した状態信号に応じた長さT2の第2制御信号を出力する。   To achieve the above object, a first count value propagation method according to the present invention acquires a first control signal synchronized with a first clock signal based on a first clock signal output at an interval T1, and acquires the first control signal. The second control signal is acquired based on the first counter that performs the counting operation according to the first control signal and the second clock signal that is output every interval T2 that is ½ or less of the interval T1. And a second counter that performs a counting operation according to the second control signal. The first count value propagation method acquires the first control signal based on the first clock signal, outputs a binary state signal corresponding to the acquired first control signal, and based on the second clock signal. The first clock signal is detected and output as a synchronized clock signal, a status signal is acquired based on the synchronized clock signal, and a second control signal having a length T2 corresponding to the acquired status signal is output.

上記目的を達成するために本発明に係る第2のカウント値伝播方法は、間隔T1で出力される第1クロック信号に基づいて該第1クロック信号に同期した第1制御信号を取得し、取得した第1制御信号に応じたカウント動作を行う第1カウンタと、間隔T1の1/2以下である間隔T2ごとに出力される第2クロック信号に基づいて第2制御信号を取得し、取得した第2制御信号に応じたカウント動作を行う第2カウンタと、を用いる。そして、第2のカウント値伝播方法は、第1クロック信号に基づいて第1制御信号を取得し、取得した第1制御信号に応じたT1の1/2の長さのパルス信号を出力し、第2クロック信号に基づいて、パルス信号の立ち上がりを検出し、検出したパルス信号に応じた第2制御信号を出力する。   In order to achieve the above object, a second count value propagation method according to the present invention obtains and obtains a first control signal synchronized with the first clock signal based on a first clock signal output at an interval T1. The second control signal is acquired based on the first counter that performs the counting operation according to the first control signal and the second clock signal that is output every interval T2 that is ½ or less of the interval T1. And a second counter that performs a counting operation according to the second control signal. Then, the second count value propagation method acquires the first control signal based on the first clock signal, and outputs a pulse signal having a length of 1/2 of T1 corresponding to the acquired first control signal, Based on the second clock signal, the rising edge of the pulse signal is detected, and a second control signal corresponding to the detected pulse signal is output.

本発明に係るカウント値伝播回路およびカウント値伝播方法は、回路規模の増大を抑制しつつ、異なるクロックソースを用いた回路間でカウンタ値を正しく伝播することができる。   The count value propagation circuit and the count value propagation method according to the present invention can correctly propagate the counter value between circuits using different clock sources while suppressing an increase in circuit scale.

本発明の第1の実施形態に係るカウント値伝播回路10のブロック構成図である。1 is a block configuration diagram of a count value propagation circuit 10 according to a first embodiment of the present invention. 本発明の第1の実施形態に係るカウント値伝播回路10のタイミングチャートである。3 is a timing chart of the count value propagation circuit 10 according to the first embodiment of the present invention. 本発明の第2の実施形態に係るカウント値伝播回路10Bのブロック構成図である。It is a block block diagram of the count value propagation circuit 10B which concerns on the 2nd Embodiment of this invention. 本発明の第2の実施形態に係るカウント値伝播回路10Bのタイミングチャートである。It is a timing chart of count value propagation circuit 10B concerning a 2nd embodiment of the present invention. 本発明の第3の実施形態に係るカウント値伝播回路100のブロック構成図である。It is a block block diagram of the count value propagation circuit 100 which concerns on the 3rd Embodiment of this invention. 本発明の第3の実施形態に係るパルス生成器400の動作をステートマシーンで表したものである。The operation of the pulse generator 400 according to the third embodiment of the present invention is represented by a state machine. 本発明の第3の実施形態に係る立上り検出器500の回路図である。It is a circuit diagram of the rising detector 500 which concerns on the 3rd Embodiment of this invention. 本発明の第3の実施形態に係るカウント値伝播回路100のタイミングチャートである。It is a timing chart of the count value propagation circuit 100 according to the third embodiment of the present invention. 本発明の第3の実施形態に係るカウント値伝播回路100のタイミングチャートの一部を拡大したものである。9 is an enlarged view of a part of a timing chart of a count value propagation circuit 100 according to a third embodiment of the present invention. 本発明の第4の実施形態に係るカウント値伝播回路100Bのブロック構成図である。It is a block block diagram of the count value propagation circuit 100B which concerns on the 4th Embodiment of this invention. 本発明の第4の実施形態に係る状態信号生成器700Bの動作をステートマシーンで表したものである。The operation of the state signal generator 700B according to the fourth embodiment of the present invention is represented by a state machine. 本発明の第4の実施形態に係る状態信号取込器800Bの回路図である。It is a circuit diagram of the status signal capture device 800B which concerns on the 4th Embodiment of this invention. 本発明の第4の実施形態に係るカウント値伝播回路100Bのタイミングチャートである。It is a timing chart of count value propagation circuit 100B concerning a 4th embodiment of the present invention.

(第1の実施形態)
第1の実施形態に係るカウント値伝播回路について説明する。本実施形態に係るカウント値伝播回路のブロック構成図を図1に示す。図1において、本実施形態に係るカウント値伝播回路10は、第1カウンタ20、第2カウンタ30、状態出力手段40、同期化手段50および伝播手段60を備える。
(First embodiment)
The count value propagation circuit according to the first embodiment will be described. FIG. 1 shows a block diagram of the count value propagation circuit according to the present embodiment. In FIG. 1, the count value propagation circuit 10 according to the present embodiment includes a first counter 20, a second counter 30, a state output unit 40, a synchronization unit 50, and a propagation unit 60.

第1カウンタ20は、初期値および最大値が設定され、間隔T1で出力される第1クロック信号に基づいて、第1制御信号を取得し、取得した第1制御信号に応じたカウント動作を行う。   The first counter 20 is set with an initial value and a maximum value, acquires a first control signal based on a first clock signal output at an interval T1, and performs a counting operation according to the acquired first control signal. .

本実施形態において、第1クロック信号と第1制御信号とは同期している。第1制御信号には、「リセット1」、「カウントアップ1」および「カウントダウン1」があり、さらに、「リセット1」、「カウントアップ1」および「カウントダウン1」のいずれも出力されない場合、「停止」の第1制御信号となる。   In the present embodiment, the first clock signal and the first control signal are synchronized. The first control signal includes “reset 1”, “count up 1”, and “count down 1”, and when none of “reset 1”, “count up 1”, and “count down 1” is output, This is the first control signal for “stop”.

また、本実施形態において、第1カウンタ20には初期値「0」、最大値「5」が設定され、第1カウンタ20は、第1クロック信号がHIGHになった時に第1制御信号を取得し、取得した第1制御信号に応じて、「初期値に戻る」、「+1」、「−1」、「±0(カウント停止)」のカウント動作を行う。   In the present embodiment, the initial value “0” and the maximum value “5” are set in the first counter 20, and the first counter 20 acquires the first control signal when the first clock signal becomes HIGH. Then, according to the acquired first control signal, count operations of “return to initial value”, “+1”, “−1”, and “± 0 (count stop)” are performed.

第2カウンタ30は、第1カウンタ20と同じ初期値および最大値が設定され、間隔T1の1/2以下である間隔T2で出力される第2クロック信号に基づいて、伝播手段60から出力された第2制御信号を取得し、取得した第2制御信号に応じたカウント動作を行う。第2制御信号は第1制御信号に対応しており、「リセット2」、「カウントアップ2」、「カウントダウン2」および「停止」がある。   The second counter 30 is set with the same initial value and maximum value as the first counter 20, and is output from the propagation means 60 based on the second clock signal output at the interval T2 that is 1/2 or less of the interval T1. The second control signal is acquired, and a counting operation is performed according to the acquired second control signal. The second control signal corresponds to the first control signal, and includes “reset 2”, “count up 2”, “count down 2”, and “stop”.

本実施形態において、第2カウンタ30は、初期値「0」、最大値「5」が設定され、第2クロック信号がHIGHになった時に第2制御信号を取得し、取得した第2制御信号に応じて、「初期値に戻る」、「+1」、「−1」、「±0(カウント停止)」のカウント動作を行う。   In the present embodiment, the second counter 30 is set with an initial value “0” and a maximum value “5”, acquires the second control signal when the second clock signal becomes HIGH, and acquires the acquired second control signal. In response to this, a count operation of “return to initial value”, “+1”, “−1”, “± 0 (count stop)” is performed.

状態出力手段40は、第1クロック信号に基づいて第1制御信号を取得し、取得した第1制御信号に応じた2進数の状態信号を出力する。本実施形態において、状態出力手段40は、「リセット1」の第1制御信号を取得した場合に状態信号“001”を、「カウントアップ1」を取得した場合に状態信号“010”を、「カウントダウン1」を取得した場合に状態信号“100”を、「停止」の第1制御信号を取得した場合に状態信号“000”を出力する。   The state output means 40 acquires a first control signal based on the first clock signal, and outputs a binary state signal corresponding to the acquired first control signal. In the present embodiment, the state output means 40 receives the state signal “001” when the first control signal “reset 1” is acquired, and the state signal “010” when the “count up 1” is acquired. When the “countdown 1” is acquired, the state signal “100” is output, and when the “stop” first control signal is acquired, the state signal “000” is output.

ここで、状態信号は、第1制御信号がM種類の場合、(M−1)バイトの2進数で表される。本実施形態において、第1制御信号は「リセット1」、「カウントアップ1」、「カウントダウン1」および「停止」の4種類あることから、状態信号は(4−1)=3バイトの2進数で表される。   Here, when the first control signal is M types, the status signal is represented by a binary number of (M−1) bytes. In the present embodiment, there are four types of first control signals: “reset 1”, “count up 1”, “count down 1”, and “stop”, so the status signal is a binary number of (4-1) = 3 bytes. It is represented by

同期化手段50は、第2クロック信号に基づいて第1クロック信号の立ち上がりを検出し、第1クロック信号を検出した場合、長さT2の同期化クロック信号を出力する。   The synchronization means 50 detects the rising edge of the first clock signal based on the second clock signal, and outputs the synchronized clock signal having the length T2 when the first clock signal is detected.

伝播手段60は、同期化手段50から出力された同期化クロック信号に基づいて、状態出力手段40から出力された状態信号を取得し、取得した状態信号に応じた長さT2の第2制御信号を出力する。具体的には、伝播手段60は、同期化クロック信号に基づいて状態出力手段40から状態信号“001”を取得した場合、「リセット2」の第2制御信号を出力する。同様に、伝播手段60は、状態信号“010”を取得した場合に「カウントアップ2」、状態信号“100” を取得した場合に「カウントダウン2」、状態信号“000” を取得した場合に「停止」、の第2制御信号を出力する。   The propagation unit 60 acquires the state signal output from the state output unit 40 based on the synchronization clock signal output from the synchronization unit 50, and a second control signal having a length T2 corresponding to the acquired state signal. Is output. Specifically, when the propagation unit 60 acquires the state signal “001” from the state output unit 40 based on the synchronization clock signal, the propagation unit 60 outputs the second control signal “reset 2”. Similarly, the propagation means 60 obtains “count up 2” when the state signal “010” is obtained, “count down 2” when the state signal “100” is obtained, and “count down 2” when the state signal “000” is obtained. The second control signal “stop” is output.

本実施形態に係るカウント値伝播回路10のタイミングチャートを図2に示す。図2において、第1クロック信号は間隔T1で出力され、第2クロック信号は間隔T1の1/2以下の間隔T2で出力される。また、カウンタ1は、左側が第1カウンタ20のカウント動作、右側が第1カウンタ20から出力されるカウント値である。   FIG. 2 shows a timing chart of the count value propagation circuit 10 according to the present embodiment. In FIG. 2, the first clock signal is output at an interval T1, and the second clock signal is output at an interval T2 that is ½ or less of the interval T1. Further, the counter 1 has a count operation of the first counter 20 on the left side and a count value output from the first counter 20 on the right side.

図2において、第1カウンタ20は、時刻t0の時にカウント値「1」を保持している。そして、第1カウンタ20は、時刻t1の第1のクロック信号がHIGHとなった時に、「カウントアップ1」の第1制御信号を取得して「+1」のカウント動作を行い、カウント値「2」を出力する。また、第1カウンタ20は、時刻t2の時に「カウントアップ1」の第1制御信号を取得して「+1」のカウント動作を行い、カウント値「3」を出力する。同様に、時刻t3に「リセット1」を取得して初期値「0」を出力し、時刻t4に「カウントダウン1」を取得して最大値「5」を出力し、時刻t5にいずれの第1制御信号も取得しないことから「±0(カウント停止)」のカウント動作を行い、時刻t4と同じカウント値「5」を出力する。   In FIG. 2, the first counter 20 holds a count value “1” at time t0. Then, when the first clock signal at time t1 becomes HIGH, the first counter 20 acquires the first control signal of “count up 1”, performs the count operation of “+1”, and performs the count value “2”. Is output. In addition, the first counter 20 acquires the first control signal “count up 1” at time t2, performs a count operation of “+1”, and outputs a count value “3”. Similarly, “reset 1” is acquired at time t3 and the initial value “0” is output, “countdown 1” is acquired at time t4 and the maximum value “5” is output, and any of the first values is output at time t5. Since the control signal is not acquired, the count operation of “± 0 (count stop)” is performed, and the same count value “5” as that at time t4 is output.

状態出力手段40は、時刻t0の時に停止状態“000”となっている。そして、状態出力手段40は、時刻t1の第1のクロック信号がHIGHとなった時に、「カウントアップ1」の第1制御信号を取得して状態が変化し、状態信号“010”を出力する。同様に、状態出力手段40は、時刻t2に「カウントアップ1」を取得して状態信号“010”を、時刻t3に「リセット1」を取得して状態信号“001”を、時刻t4に「カウントダウン1」を取得して状態信号“100”を、時刻t5にいずれの第1制御信号も取得しないことから状態信号“000”を出力する。   The state output means 40 is in the stop state “000” at time t0. Then, when the first clock signal at time t1 becomes HIGH, the state output unit 40 acquires the first control signal “count up 1”, changes the state, and outputs the state signal “010”. . Similarly, the status output means 40 acquires “count up 1” at time t2, acquires the status signal “010”, acquires “reset 1” at time t3, and receives the status signal “001” at time t4. Since “countdown 1” is acquired and status signal “100” is acquired, and no first control signal is acquired at time t5, status signal “000” is output.

一方、同期化手段50は、時刻t01において第2クロック信号がHIGHになった時に第1クロック信号の立ち上がりを検出し、次に第2クロック信号がHIGHになった時刻t02の時に、同期化クロック信号を出力する。同期化手段50は、時刻t02の第2クロック信号がHIGHになった時に、第1クロック信号のLOWを検出する。そして、時刻t11に第1クロック信号がHIGHとなったことを検出し、時刻t12の時に長さT2の同期化クロック信号を出力する。同様に、同期化手段50は、時刻t22、時刻t32、時刻t42および時刻t52の時に、長さT2の同期化クロック信号を出力する。   On the other hand, the synchronization means 50 detects the rising edge of the first clock signal when the second clock signal becomes HIGH at time t01, and then synchronizes the synchronization clock at time t02 when the second clock signal becomes HIGH. Output a signal. The synchronizing means 50 detects LOW of the first clock signal when the second clock signal at time t02 becomes HIGH. Then, it detects that the first clock signal becomes HIGH at time t11, and outputs a synchronized clock signal having a length T2 at time t12. Similarly, the synchronization means 50 outputs a synchronization clock signal having a length T2 at time t22, time t32, time t42, and time t52.

伝播手段60は、第2クロック信号がHIGHになった時かつ同期化クロック信号がHIGHになった時に状態出力手段40の状態信号を認識し、認識した状態信号と対応する、長さT2の第2制御信号を出力する。例えば、図2において、伝播手段60は、同期化クロック信号がHIGHになることにより、時刻t03の時に状態出力手段40の状態信号“000”を認識し、「停止」の第2制御信号を示す。また、伝播手段60は、同期化クロック信号がHIGHになることにより時刻t13の時に状態信号“010”を認識し、長さT2の「カウントアップ2」の第2制御信号を出力する。さらに、伝播手段60は、時刻t23の時に状態信号“010”を認識し、長さT2の「カウントアップ2」の第2制御信号を出力する。同様にして、伝播手段60は、時刻t33に「リセット2」、時刻t43に「カウントダウン2」の第2制御信号を出力する。   The propagation means 60 recognizes the state signal of the state output means 40 when the second clock signal becomes HIGH and the synchronized clock signal becomes HIGH, and corresponds to the recognized state signal and has the length T2. 2 Outputs a control signal. For example, in FIG. 2, the propagation means 60 recognizes the state signal “000” of the state output means 40 at time t03 when the synchronization clock signal becomes HIGH, and indicates the second control signal of “stop”. . Further, the propagation means 60 recognizes the state signal “010” at time t13 when the synchronization clock signal becomes HIGH, and outputs the second control signal of “count up 2” having the length T2. Further, the propagation means 60 recognizes the state signal “010” at time t23 and outputs the second control signal of “count up 2” having the length T2. Similarly, the propagation means 60 outputs a second control signal “reset 2” at time t33 and “countdown 2” at time t43.

第2カウンタ30は、第2クロック信号に基づいて、伝播手段60から出力された第2制御信号を取得し、取得した第2制御信号に応じたカウント動作を行う。図2において、第2カウンタ30は、時刻t0の時にカウント値「1」を保持している。そして、第2クロック信号がHIGHになる毎に第2制御信号を確認する。第2カウンタ30は、時刻t21の時に「カウントアップ2」の第2制御信号を取得して「+1」のカウント動作を行い、カウント値「2」を出力する。また、第2カウンタ30は、時刻t31の時に「カウントアップ2」の第2制御信号を取得してカウント値「3」を出力する。同様に、第2カウンタ30は、時刻t41の時に「リセット2」を取得して初期値「0」を出力し、時刻t51の時に「カウントダウン2」を取得して最大値「5」を出力する。   The second counter 30 acquires the second control signal output from the propagation means 60 based on the second clock signal, and performs a counting operation according to the acquired second control signal. In FIG. 2, the second counter 30 holds a count value “1” at time t0. Then, the second control signal is confirmed every time the second clock signal becomes HIGH. The second counter 30 acquires the second control signal “count up 2” at time t21, performs a count operation of “+1”, and outputs a count value “2”. In addition, the second counter 30 acquires the second control signal “count up 2” at time t31 and outputs the count value “3”. Similarly, the second counter 30 acquires “reset 2” at time t41 and outputs an initial value “0”, acquires “countdown 2” at time t51, and outputs a maximum value “5”. .

以上のように、本実施形態に係るカウント値伝播回路10おいて、第2カウンタ30は、第1カウンタ20のカウンタ動作後の第2クロック信号がHIGHになった時から3×間隔T2遅れて、第1カウンタ20と同じカウンタ動作を行う。本実施形態に係るカウント値伝播回路10は、同期化手段50による第1クロック信号の検出に1周期(間隔T2)、同期化クロック信号の出力に1周期(間隔T2)、伝播手段60による第2制御信号の出力に1周期(間隔T2)要することにより、第1カウンタ20のカウンタ動作を第2カウンタ30に伝播することができる。   As described above, in the count value propagation circuit 10 according to the present embodiment, the second counter 30 is delayed by 3 × interval T2 from the time when the second clock signal after the counter operation of the first counter 20 becomes HIGH. The same counter operation as that of the first counter 20 is performed. In the count value propagation circuit 10 according to the present embodiment, the synchronization means 50 detects the first clock signal for one cycle (interval T2), the synchronization clock signal output for one cycle (interval T2), and the propagation means 60 performs the first cycle. Since one cycle (interval T2) is required to output the two control signals, the counter operation of the first counter 20 can be propagated to the second counter 30.

なお、上述の実施形態では、状態信号を、第1制御信号がM種類の場合に(M−1)バイトの2進数で表したが、これに限定されない。例えば、第1制御信号が2種類の場合、状態信号をMバイトの2進数で表すこともできる。すなわち、第1制御信号が2=4種類の場合、状態信号を2バイトの2進数で表すこともできる。この場合、状態出力手段40は、「リセット1」の第1制御信号を取得した場合に状態信号“01”を、「カウントアップ1」に対して状態信号“10”を、「カウントダウン1」に対して状態信号“11”を、「停止」に対して状態信号“00”を出力する。 In the above-described embodiment, the state signal is represented by a binary number of (M−1) bytes when there are M types of first control signals, but is not limited thereto. For example, when the first control signal is 2M types, the status signal can also be represented by an M-byte binary number. That is, when the first control signal has 2 2 = 4 types, the status signal can also be represented by a 2-byte binary number. In this case, the state output means 40 changes the state signal “01” to “count up 1” and the state signal “10” to “count down 1” when the first control signal “reset 1” is acquired. On the other hand, a status signal “11” is output, and a status signal “00” is output for “stop”.

(第2の実施形態)
第2の実施形態について説明する。本実施形態に係るカウント値伝播回路のブロック構成図を図3に示す。図3において、本実施形態に係るカウント値伝播回路10Bは、第1カウンタ20B、第2カウンタ30B、状態出力手段40Bおよび伝播手段60Bを備える。
(Second Embodiment)
A second embodiment will be described. FIG. 3 shows a block configuration diagram of the count value propagation circuit according to the present embodiment. In FIG. 3, the count value propagation circuit 10B according to the present embodiment includes a first counter 20B, a second counter 30B, a state output unit 40B, and a propagation unit 60B.

第1カウンタ20Bおよび第2カウンタ30Bは、第1の実施形態で説明した図1の第1カウンタ20および第2カウンタ30と同様であり、詳細な説明は省略する。本実施形態においても、第1カウンタ20Bおよび第2カウンタ30Bは、初期値「0」、最大値「5」が設定されている。また、第1クロック信号は間隔T1で出力され、第2クロック信号は間隔T1の1/2以下の間隔T2で出力される。   The first counter 20B and the second counter 30B are the same as the first counter 20 and the second counter 30 of FIG. 1 described in the first embodiment, and detailed description thereof is omitted. Also in this embodiment, the initial value “0” and the maximum value “5” are set for the first counter 20B and the second counter 30B. Further, the first clock signal is output at an interval T1, and the second clock signal is output at an interval T2 that is ½ or less of the interval T1.

状態出力手段40Bは、第1クロック信号に基づいて第1制御信号を取得し、取得した第1制御信号に応じたパルス信号を出力する。状態出力手段40Bは、「リセット1」の第1制御信号を取得した場合に「リセットパルス」を、「カウントアップ1」を取得した場合に「カウントアップパルス」を、「カウントダウン1」を取得した場合に「カウントダウンパルス」を出力する。状態出力手段40Bは、間隔T1の1/2倍長さのパルス信号を出力する。   The state output means 40B acquires a first control signal based on the first clock signal, and outputs a pulse signal corresponding to the acquired first control signal. The status output means 40B acquires “reset pulse” when acquiring the “reset 1” first control signal, “count up pulse” when acquiring “count up 1”, and “count down 1”. In this case, a “countdown pulse” is output. The status output means 40B outputs a pulse signal having a length ½ times the interval T1.

伝播手段60Bは、第2クロック信号に基づいて、状態出力手段40Bから出力されたパルス信号の立ち上がりを検出し、パルス信号を検出した場合、次に第2クロック信号がHIGHになった時に、検出したパルス信号に応じた第2制御信号を出力する。本実施形態において、伝播手段60Bは、「リセットパルス」を検出した場合に「リセット2」の第2制御信号を、「カウントアップパルス」を検出した場合に「カウントアップ2」の第2制御信号を、「カウントダウンパルス」を検出した場合に「カウントダウン2」の第2制御信号を出力する。   The propagation means 60B detects the rising edge of the pulse signal output from the state output means 40B based on the second clock signal, and when the pulse signal is detected, the detection is performed when the second clock signal becomes HIGH next time. A second control signal corresponding to the pulse signal thus output is output. In the present embodiment, the propagation means 60B detects the “reset 2” second control signal when the “reset pulse” is detected, and the “count up 2” second control signal when the “count up pulse” is detected. When the “countdown pulse” is detected, the second control signal “countdown 2” is output.

本実施形態に係るカウント値伝播回路10Bのタイミングチャートを図4に示す。以下、第1の実施形態の図2と異なる部分を中心に説明する。図4において、第1カウンタ20Bは、第1クロック信号がHIGHになった時に第1制御信号を取得し、取得した第1制御信号に応じてカウント動作する。そして、第1カウンタ20Bは、T0からT5において、「1」、「2」、「3」、「0」、「5」、「5」のカウント値を出力する。   FIG. 4 shows a timing chart of the count value propagation circuit 10B according to the present embodiment. In the following, the description will focus on the parts of the first embodiment that are different from FIG. In FIG. 4, the first counter 20B acquires the first control signal when the first clock signal becomes HIGH, and performs a counting operation according to the acquired first control signal. Then, the first counter 20B outputs count values of “1”, “2”, “3”, “0”, “5”, “5” from T0 to T5.

状態出力手段40Bは、第1クロック信号がHIGHになった時に第1制御信号を取得し、取得した第1制御信号に応じたパルス信号を出力する。図4において、状態出力手段40Bは、時刻t1の時に第1のクロック信号がHIGHとなることにより、「カウントアップ1」の第1制御信号を取得し、「カウントアップ1」に応じた「カウントアップパルス」を出力する。また、状態出力手段40Bは、時刻t2に「カウントアップ1」の第1制御信号を取得することにより、「カウントアップパルスを出力する。同様に、状態出力手段40Bは、時刻t3に「リセット1」を取得して「リセットパルス」を出力し、時刻t4に「カウントダウン1」を取得して「カウントダウンパルス」を出力する。状態出力手段40Bは、時刻t5にいずれの第1制御信号も取得しないことから、パルス信号の出力を停止する。   The state output means 40B acquires the first control signal when the first clock signal becomes HIGH, and outputs a pulse signal corresponding to the acquired first control signal. In FIG. 4, the state output means 40B obtains the first control signal “count up 1” when the first clock signal becomes HIGH at time t1, and the “count up” corresponding to “count up 1”. "Up pulse" is output. Further, the status output means 40B obtains the “count-up 1” first control signal at time t2, thereby outputting “count-up pulse. Similarly, the status output means 40B outputs“ reset 1 at time t3. ”And“ reset pulse ”are output,“ countdown 1 ”is acquired and“ countdown pulse ”is output at time t4. Since the state output unit 40B does not acquire any first control signal at time t5, the state output unit 40B stops outputting the pulse signal.

伝播手段60Bは、第2クロック信号がHIGHになった時にパルス信号の立ち上がりを検出した場合、次に第2クロック信号がHIGHになった時に検出したパルス信号に応じた第2制御信号を出力する。図4において、伝播手段60Bは、時刻t11に「カウントアップパルス」の立ち上がりを検出し、次に第2クロック信号がHIGHになる時刻t12に「カウントアップ2」の第2制御信号を出力する。また、伝播手段60Bは、時刻t21に「カウントアップパルス」の立ち上がりを検出し、時刻t22に「カウントアップ2」を出力する。同様に、伝播手段60Bは、時刻t31に「リセットパルス」を検出して時刻t32に「リセット2」を、時刻t41に「カウントダウンパルス」を検出してT42に「カウントダウン2」を出力する。   If the propagation means 60B detects the rising edge of the pulse signal when the second clock signal becomes HIGH, the propagation means 60B outputs a second control signal corresponding to the pulse signal detected when the second clock signal becomes HIGH next time. . In FIG. 4, the propagation means 60B detects the rise of the “count up pulse” at time t11, and then outputs the second control signal of “count up 2” at time t12 when the second clock signal becomes HIGH. Further, the propagation means 60B detects the rising of the “count up pulse” at time t21 and outputs “count up 2” at time t22. Similarly, the propagation means 60B detects “reset pulse” at time t31, detects “reset 2” at time t32, detects “countdown pulse” at time t41, and outputs “countdown 2” to T42.

第2カウンタ30Bは、時刻t0の時にカウント値「1」を保持している。そして、第2カウンタ30Bは、時刻t13、時刻t23、時刻t33、時刻t43に伝播手段60Bから出力された第2制御信号を取得し、取得した第2制御信号に応じたカウント動作することにより、時刻03から時刻t43において、「1」、「2」、「3」、「0」、「5」のカウント値を出力する。   The second counter 30B holds the count value “1” at time t0. The second counter 30B acquires the second control signal output from the propagation means 60B at time t13, time t23, time t33, and time t43, and performs a counting operation according to the acquired second control signal. From time 03 to time t43, count values “1”, “2”, “3”, “0”, and “5” are output.

以上のように、本実施形態に係るカウント値伝播回路10Bおいて、第2カウンタ30Bは、第1カウンタ20Bのカウンタ動作後の第2クロック信号がHIGHになった時から2×間隔T2時間遅れて、第1カウンタ20Bと同じカウンタ動作を行う。本実施形態に係るカウント値伝播回路10Bは、伝播手段60Bによるパルス信号の検出に1周期(間隔T2)、第2制御信号の出力に1周期(間隔T2)要するだけで、第1カウンタ20Bのカウンタ動作を第2カウンタ30Bに伝播することができる。   As described above, in the count value propagation circuit 10B according to the present embodiment, the second counter 30B is delayed by 2 × interval T2 time from when the second clock signal after the counter operation of the first counter 20B becomes HIGH. Thus, the same counter operation as that of the first counter 20B is performed. The count value propagation circuit 10B according to the present embodiment requires only one cycle (interval T2) for detection of the pulse signal by the propagation means 60B and one cycle (interval T2) for the output of the second control signal. The counter operation can be propagated to the second counter 30B.

状態出力手段40Bが第1制御信号に応じて複数のパルス信号を出力する場合、第1の実施形態に係るカウント値伝播回路10の状態出力手段40と比較して状態出力手段40Bでの処理が複雑になるものの、第1カウンタ20Bのカウンタ動作を速やかに第2カウンタ30Bに伝播することができる。   When the state output unit 40B outputs a plurality of pulse signals according to the first control signal, the state output unit 40B performs processing in comparison with the state output unit 40 of the count value propagation circuit 10 according to the first embodiment. Although complicated, the counter operation of the first counter 20B can be quickly transmitted to the second counter 30B.

(第3の実施形態)
第3の実施形態について説明する。本実施形態に係るカウント値伝播回路のブロック構成図を図5に示す。図5において、本実施形態に係るカウント値伝播回路100は、第1カウンタ200、逓倍回路300、パルス生成器400、立上り検出器500および第2カウンタ600を備える。
(Third embodiment)
A third embodiment will be described. FIG. 5 shows a block diagram of the count value propagation circuit according to the present embodiment. In FIG. 5, the count value propagation circuit 100 according to the present embodiment includes a first counter 200, a multiplier circuit 300, a pulse generator 400, a rising detector 500, and a second counter 600.

第1カウンタ200は、初期値および最大値が設定されたバイナリカウンタであり、第1制御信号および第1クロック信号に基づいてカウンタ動作する。本実施形態において、第1クロック信号は間隔T1で出力される。また、第1制御信号には、リセット1、カウントアップ1、カウントダウン1および停止がある。第1カウンタ200は、第1制御信号に基づいて、「リセット」、「カウントアップ」、「カウントダウン」および「停止」の4つの状態となる。   The first counter 200 is a binary counter in which an initial value and a maximum value are set, and performs a counter operation based on the first control signal and the first clock signal. In the present embodiment, the first clock signal is output at an interval T1. The first control signal includes reset 1, count up 1, count down 1, and stop. The first counter 200 enters four states of “reset”, “count up”, “count down”, and “stop” based on the first control signal.

第1カウンタ200は、リセット1がHIGHの時、カウント値を初期値に戻す。また、第1カウンタ200は、リセット1がLOW、且つ、カウントアップ1がHIGHの時、カウント値をインクリメントする。また、第1カウンタ200は、リセット1がLOW、且つ、カウントアップ1がLOW、且つ、カウントダウン1がHIGHの時、カウント値をデクリメントする。第1カウンタ200は、デクリメントすることによりカウント値が最小値より小さくなる場合、カウント値を最大値にする。一方、インクリメントすることによりカウント値が最大値より大きくなる場合、カウント値を最小値にする。   The first counter 200 returns the count value to the initial value when the reset 1 is HIGH. The first counter 200 increments the count value when the reset 1 is LOW and the count-up 1 is HIGH. The first counter 200 decrements the count value when the reset 1 is LOW, the count-up 1 is LOW, and the count-down 1 is HIGH. When the count value becomes smaller than the minimum value by decrementing, the first counter 200 sets the count value to the maximum value. On the other hand, when the count value becomes larger than the maximum value by incrementing, the count value is set to the minimum value.

逓倍回路300は、第1クロック信号を2逓倍して、間隔T1の2倍の間隔で出力される逓倍クロック信号を出力する。逓倍回路300としては、PLL(Phase-locked loop:位相同期回路)を適用することができる。   The multiplier circuit 300 doubles the first clock signal and outputs a multiplied clock signal output at an interval twice the interval T1. As the multiplication circuit 300, a PLL (Phase-locked loop) can be applied.

パルス生成器400は、第1制御信号および逓倍クロック信号に基づいて動作する。パルス生成器400は、第1カウンタ200の「リセット」、「カウントアップ」、「カウントダウン」、「停止」の4つの状態をハミング距離が「1」の3ビットのパルス状態信号で表して出力する。   The pulse generator 400 operates based on the first control signal and the multiplied clock signal. The pulse generator 400 outputs the four states of the “reset”, “count up”, “count down”, and “stop” of the first counter 200 as a 3-bit pulse state signal with a Hamming distance “1”. .

パルス生成器400の動作をステートマシーンで表したものを図6に示す。本実施形態において、第1カウンタ200は、初期は「停止」状態になっている。そして、逓倍クロック信号がHIGH、且つ、リセット1がHIGHの時、パルス生成器400は「リセット」状態に遷移する。また、逓倍クロック信号がHIGH、且つ、リセット1がLOW、且つ、カウントアップ1がHIGHの時、パルス生成器400は「カウントアップ」状態に遷移する。さらに、逓倍クロック信号がHIGH、且つ、リセット1がLOW、且つ、カウントアップ1がLOW、且つ、カウントダウン1がHIGHの時、パルス生成器400は「カウントダウン」状態に遷移する。そして、逓倍クロック信号がLOWとなった時、パルス生成器400は「停止」状態に遷移する。   FIG. 6 shows the operation of the pulse generator 400 in a state machine. In the present embodiment, the first counter 200 is initially in a “stop” state. When the multiplied clock signal is HIGH and the reset 1 is HIGH, the pulse generator 400 transits to the “reset” state. When the multiplied clock signal is HIGH, the reset 1 is LOW, and the count-up 1 is HIGH, the pulse generator 400 transitions to the “count-up” state. Further, when the multiplied clock signal is HIGH, the reset 1 is LOW, the count up 1 is LOW, and the count down 1 is HIGH, the pulse generator 400 transitions to the “count down” state. When the multiplied clock signal becomes LOW, the pulse generator 400 transitions to the “stop” state.

パルス生成器400は、第1クロック信号の2逓倍クロック信号である逓倍クロック信号に基づいて、第1カウンタ200の遷移状態に応じたパルス状態信号を出力する。すなわち、パルス生成器400は、「停止」状態の場合にパルス状態信号“000”を、「リセット」状態の場合にパルス状態信号“001”を、「カウントアップ」状態の場合にパルス状態信号“010”を、「カウントダウン」状態の場合にパルス状態信号“100”を出力する。   The pulse generator 400 outputs a pulse state signal corresponding to the transition state of the first counter 200 based on a multiplied clock signal that is a doubled clock signal of the first clock signal. That is, the pulse generator 400 outputs the pulse state signal “000” in the “stop” state, the pulse state signal “001” in the “reset” state, and the pulse state signal “000” in the “count up” state. When “010” is in the “countdown” state, the pulse state signal “100” is output.

本実施形態において、パルス生成器400は、第1クロック信号の2逓倍クロックである逓倍クロック信号に基づいて動作することから、「リセット」、「カウントアップ」、「カウントダウン」の状態に遷移する前に必ず「停止」状態に戻る。パルス生成器400が遷移前に「停止」状態に戻ることにより、ハミング距離が「1」のパルス状態信号が生成される。   In this embodiment, since the pulse generator 400 operates based on a multiplied clock signal that is a doubled clock of the first clock signal, before the transition to the “reset”, “count up”, and “count down” states. Always return to the “stop” state. When the pulse generator 400 returns to the “stop” state before the transition, a pulse state signal having a Hamming distance of “1” is generated.

立上り検出器500は、第1クロック信号の間隔T1の1/2以下である間隔T2で出力される第2クロック信号に基づいて動作する。本実施形態において、間隔T2は間隔T1の1/4である。立上り検出器500は、第2クロック信号に基づいてパルス生成器400から出力されたカウントアップパルス、カウントダウンパルスおよびリセットパルスを2段サンプリングして立ち上がりを検出し、カウントアップ2、カウントダウン2またはリセット2の第2制御信号を生成して出力する。   The rising detector 500 operates based on the second clock signal output at an interval T2 that is equal to or less than ½ of the interval T1 of the first clock signal. In the present embodiment, the interval T2 is 1/4 of the interval T1. The rising detector 500 detects the rising edge by sampling the count-up pulse, the count-down pulse and the reset pulse output from the pulse generator 400 based on the second clock signal in two stages, and counts up 2, counts down 2 or reset 2 The second control signal is generated and output.

立上り検出器500の回路図の一例を図7に示す。図7において、立上り検出器500は、カウントダウン検出部510、カウントアップ検出部520およびリセット検出部530を備える。カウントダウン検出部510、カウントアップ検出部520およびリセット検出部530はそれぞれ、3つのフリップフロップ(FlipFlop)回路、反転回路および論理積回路から成る。   An example of a circuit diagram of the rising detector 500 is shown in FIG. In FIG. 7, the rising detector 500 includes a countdown detector 510, a countup detector 520, and a reset detector 530. Each of countdown detection unit 510, countup detection unit 520, and reset detection unit 530 includes three flip-flop (FlipFlop) circuits, an inverting circuit, and an AND circuit.

例えば、カウントダウン検出部510は、FF511、FF512、FF513、反転514および論理積515を備える。カウントダウン検出部510は、パルス生成器400から出力されたカウントダウンパルスを第2クロック信号に基づいて取り込み、カウントダウンパルスの立ち上がりを検出してカウントダウン2の第2制御信号を出力する。   For example, the countdown detection unit 510 includes FF 511, FF 512, FF 513, inversion 514, and logical product 515. The countdown detector 510 receives the countdown pulse output from the pulse generator 400 based on the second clock signal, detects the rising edge of the countdown pulse, and outputs the second control signal for countdown2.

第2カウンタ600は、初期値および最大値が設定されたバイナリカウンタであり、立上り検出器500から出力された第2制御信号および第2クロック信号に基づいてカウンタ動作する。第2カウンタ600は、第2制御信号に基づいて、「リセット」、「カウントアップ」、「カウントダウン」、「停止」の4つの状態となる。   The second counter 600 is a binary counter in which an initial value and a maximum value are set, and performs a counter operation based on the second control signal and the second clock signal output from the rising detector 500. Based on the second control signal, the second counter 600 is in four states: “reset”, “count up”, “count down”, and “stop”.

第2カウンタ600は、リセット2がHIGHの時、カウント値を初期値に戻す。また、第2カウンタ600は、リセット2がLOW、且つ、カウントアップ2がHIGHの時、カウント値をインクリメントする。第2カウンタ600は、リセット2がLOW、且つ、カウントアップ2がLOW、且つ、カウントダウン2がHIGHの時、カウント値をデクリメントする。第2カウンタ600は、デクリメントすることによりカウント値が最小値より小さくなる場合、カウント値を最大値にする。一方、第2カウンタ600は、インクリメントすることによりカウント値が最大値より大きくなる場合、カウント値を最小値にする。   The second counter 600 returns the count value to the initial value when the reset 2 is HIGH. The second counter 600 increments the count value when the reset 2 is LOW and the count-up 2 is HIGH. The second counter 600 decrements the count value when the reset 2 is LOW, the count-up 2 is LOW, and the count-down 2 is HIGH. When the count value becomes smaller than the minimum value by decrementing, the second counter 600 sets the count value to the maximum value. On the other hand, when the count value becomes larger than the maximum value by incrementing, the second counter 600 sets the count value to the minimum value.

本実施形態に係るカウント値伝播回路100のタイミングチャートを図8に示す。図8において、カウンタ1は第1カウンタ200から出力されたカウンタ値であり、カウンタ2は第2カウンタ600から出力されたカウンタ値である。   FIG. 8 shows a timing chart of the count value propagation circuit 100 according to the present embodiment. In FIG. 8, the counter 1 is a counter value output from the first counter 200, and the counter 2 is a counter value output from the second counter 600.

先ず、第1カウンタ200は、第1クロック信号がHIGHの時に第1制御信号を取り込み、取り込んだ第1制御信号に応じてカウンタ値を出力する。図8において、第1カウンタ200は、時刻t1にリセット1の第1制御信号を取り込み、「0」のカウンタ値を出力する。また、第1カウンタ200は、時刻t2にカウントアップ1の第1制御信号を取り込み、インクリメントして「1」のカウンタ値を出力する。また、第1カウンタ200は、時刻t3にカウントアップ1を取り込んで「2」のカウンタ値を出力し、時刻t4にカウントダウン1を取り込んで、デクリメントして「1」のカウンタ値を出力する。   First, the first counter 200 takes in the first control signal when the first clock signal is HIGH, and outputs a counter value in accordance with the fetched first control signal. In FIG. 8, the first counter 200 takes in the first control signal of reset 1 at time t1 and outputs a counter value of “0”. The first counter 200 takes in the first control signal of count-up 1 at time t2, increments it, and outputs a counter value of “1”. The first counter 200 takes in count-up 1 at time t3 and outputs a counter value of “2”, takes in count-down 1 at time t4, decrements and outputs a counter value of “1”.

そして、第1カウンタ200は、第1クロック信号に基づいて第1制御信号を取り込むことにより、時刻t1から時刻t12の間に、「0」、「1」、「2」、「1」、「0」、「6」、「0」、「1」、「2」、「3」、「4」、「5」のカウンタ値を出力する。なお、時刻t13に第1制御信号が入力しないことから、第1カウンタ200はカウンタ動作を停止し、時刻t12で出力した「5」のカウンタ値をそのまま出力する。   Then, the first counter 200 captures the first control signal based on the first clock signal, and thereby, between time t1 and time t12, “0”, “1”, “2”, “1”, “1”, “ The counter values of “0”, “6”, “0”, “1”, “2”, “3”, “4”, “5” are output. Since the first control signal is not input at time t13, the first counter 200 stops the counter operation and outputs the counter value “5” output at time t12 as it is.

一方、パルス生成器400は、間隔T1の2倍の間隔で出力された逓倍クロック信号がHIGHの時に第1制御信号に応じたパルス状態信号を出力する。パルス生成器400は、時刻t1の逓倍クロック信号がHIGHになった時に、リセット1の第1制御信号を取り込み、リセット状態に遷移することによって、リセットパルスを出力し、その後、停止状態に戻る。   On the other hand, the pulse generator 400 outputs a pulse state signal corresponding to the first control signal when the multiplied clock signal output at an interval twice the interval T1 is HIGH. When the multiplied clock signal at time t1 becomes HIGH, the pulse generator 400 takes in the first control signal of reset 1 and transitions to the reset state, thereby outputting a reset pulse, and then returns to the stop state.

また、パルス生成器400は、時刻t2の時にカウントアップ1の第1制御信号を取り込んでカウントアップ状態に遷移し、その後、停止状態に戻る。同様に、パルス生成器400は、逓倍クロック信号がHIGHになることにより第1制御信号を取り込んだ後、取り込んだ第1制御信号に応じたパルス状態信号を出力し、停止状態に戻る。   In addition, the pulse generator 400 takes in the first control signal of count-up 1 at time t2 and transitions to the count-up state, and then returns to the stop state. Similarly, the pulse generator 400 takes in the first control signal when the multiplied clock signal becomes HIGH, outputs a pulse state signal corresponding to the taken-in first control signal, and returns to the stopped state.

そして、パルス生成器400は、時刻t1から時刻t12の時にそれぞれ間隔T1の1/2期間ずつ、「リセットパルス」、「カウントアップパルス」、「カウントアップパルス」、「カウントダウンパルス」、「カウントダウンパルス」、「カウントダウンパルス」、「カウントアップパルス」、「カウントアップパルス」、「カウントアップパルス」、「カウントアップパルス」、「カウントアップパルス」、「カウントアップパルス」のパルス状態信号を出力する。なお、時刻t13には第1制御信号が取り込まれないことから、パルス状態信号は出力されない。   Then, the pulse generator 400 performs “reset pulse”, “count-up pulse”, “count-up pulse”, “count-down pulse”, “count-down pulse” for each half period of the interval T1 from time t1 to time t12. , “Countdown pulse”, “countup pulse”, “countup pulse”, “countup pulse”, “countup pulse”, “countup pulse”, “countup pulse” are output. Since the first control signal is not captured at time t13, no pulse state signal is output.

立上り検出器500は、パルス生成器400から出力されたパルス状態信号を第2クロック信号に基づいて2段サンプリングすることによって、パルス状態信号の立ち上がりを検出し、検出したパルス状態信号に基づいて第2制御信号を生成して出力する。図8のタイミングチャートを時刻t1から時刻t5までの期間を拡大したものを図9に示す。   The rising detector 500 detects the rising edge of the pulse state signal by sampling the pulse state signal output from the pulse generator 400 based on the second clock signal, and detects the rising edge of the pulse state signal based on the detected pulse state signal. 2 Generate and output control signals. FIG. 9 shows an enlarged view of the timing chart of FIG. 8 from time t1 to time t5.

図9において、立上り検出器500は、時刻t0aに第2クロック信号がHIGHになった時、リセットパルスの立ち上がりを検出し、期間T2後に再び第2クロック信号がHIGHになった時、リセット2の第2制御信号を出力する。時刻t0bに第2クロック信号がHIGHになった時、リセットパルスはHIGHの状態で維持されていることから、立上り検出器500は、パルス状態信号の立ち上がりを検出せず、時刻t0cにリセット2の出力を停止する。同様に、立上り検出器500は、時刻t0cおよび時刻t0dではパルス状態信号の立ち上がりを検出せず、時刻t0dおよび時刻t1aでは第2制御信号を出力しない。   In FIG. 9, the rising detector 500 detects the rising edge of the reset pulse when the second clock signal becomes HIGH at time t0a, and resets the reset 2 when the second clock signal becomes HIGH again after the period T2. A second control signal is output. When the second clock signal becomes HIGH at time t0b, the reset pulse is maintained in the HIGH state. Therefore, the rising detector 500 does not detect the rising of the pulse state signal, and the reset 2 is reset at time t0c. Stop output. Similarly, rising detector 500 does not detect the rising of the pulse state signal at time t0c and time t0d, and does not output the second control signal at time t0d and time t1a.

そして、立上り検出器500は、時刻t1aに再びリセットパルスの立ち上がりを検出し、時刻t1bにリセット2の第2制御信号を出力する。立上り検出器500は、時刻t1b−時刻t1dではパルス状態信号の立ち上がりを検出しないことから、時刻t1c−時刻t2aでは第2制御信号を出力しない。同様にして、立上り検出器500は、時刻t2a、時刻t3aおよび時刻t4aにそれぞれ、カウントアップパルス、カウントアップパルスおよびカウントダウンパルスの立ち上がりを検出し、時刻t2b、時刻t3bおよび時刻t4bにそれぞれ、カウントアップ2、カウントアップ2およびカウントダウン2の第2制御信号を出力する。   Then, the rising detector 500 detects the rising edge of the reset pulse again at time t1a, and outputs the second control signal for reset 2 at time t1b. The rise detector 500 does not detect the rise of the pulse state signal from time t1b to time t1d, and therefore does not output the second control signal from time t1c to time t2a. Similarly, rising detector 500 detects rising edges of count-up pulse, count-up pulse, and count-down pulse at time t2a, time t3a, and time t4a, respectively, and counts up at time t2b, time t3b, and time t4b, respectively. 2, the second control signal of count-up 2 and count-down 2 is output.

一方、図9において、第2カウンタ600は、時刻t0cにリセット2の第2制御信号を取り込み、初期値「0」のカウンタ値を出力する。また、第2カウンタ600は、時刻t1cにリセット2を取り込み、再び初期値「0」を出力し、時刻t2cにカウントアップ2を取り込み、インクリメントして「1」のカウンタ値を出力する。   On the other hand, in FIG. 9, the second counter 600 takes in the second control signal of reset 2 at time t0c and outputs a counter value of the initial value “0”. The second counter 600 takes in reset 2 at time t1c, outputs the initial value “0” again, takes in count-up 2 at time t2c, increments it, and outputs a counter value of “1”.

同様に、第2カウンタ600は、時刻t3cにカウントアップ2を取り込んで「2」のカウンタ値を、時刻t4cにカウントダウン2を取り込んで「1」のカウンタ値を出力する。   Similarly, the second counter 600 takes in count-up 2 at time t3c and outputs a counter value of “2”, and takes down count-down 2 at time t4c and outputs a counter value of “1”.

そして、図8に示すように、第2カウンタ600は、取り込んだ第2制御信号に基づいて、「0」、「1」、「2」、「1」、「0」、「6」、「0」、「1」、「2」、「3」、「4」、「5」、「5」のカウンタ値を出力する。   Then, as shown in FIG. 8, the second counter 600 is based on the acquired second control signal, “0”, “1”, “2”, “1”, “0”, “6”, “6”, “ The counter values of “0”, “1”, “2”, “3”, “4”, “5”, “5” are output.

図8および図9に示すように、第2カウンタ600は、第1カウンタ200の遷移から第2クロック信号の2クロック半遅延して第1カウンタ200と同様に遷移することにより、第2クロック信号の4クロック周期で第1カウンタ200と同様のカウント値を出力する。   As shown in FIG. 8 and FIG. 9, the second counter 600 shifts in the same way as the first counter 200 by delaying two clocks and half of the second clock signal from the transition of the first counter 200. The same count value as that of the first counter 200 is output in four clock cycles.

以上のように、本実施形態に係るカウント値伝播回路100は、クロックソースの異なる回路間において、ハミング距離が1ビットから全ビット幅で進行するバイナリカウンタに対し、カウント値とは大幅に異なる値が伝播されることを抑制することができる。   As described above, the count value propagation circuit 100 according to the present embodiment has a value significantly different from the count value for a binary counter in which the Hamming distance proceeds from 1 bit to all bit widths between circuits having different clock sources. Can be prevented from being propagated.

また、本実施形態に係るカウント値伝播回路100は、カウント値のビット数に関係なくカウンタの状態をパルス状態信号として伝播することができ、同期化回路の回路規模が大きくなることを避けることができる。   In addition, the count value propagation circuit 100 according to the present embodiment can propagate the state of the counter as a pulse state signal regardless of the number of bits of the count value, thereby avoiding an increase in the circuit scale of the synchronization circuit. it can.

(第4の実施形態)
第4の実施形態について説明する。本実施形態に係るカウント値伝播回路のブロック構成図を図10に示す。図10において、本実施形態に係るカウント値伝播回路100Bは、第1カウンタ200B、状態信号生成器700B、状態信号取込器800Bおよび第2カウンタ600Bを備える。
(Fourth embodiment)
A fourth embodiment will be described. FIG. 10 shows a block configuration diagram of the count value propagation circuit according to the present embodiment. In FIG. 10, the count value propagation circuit 100B according to the present embodiment includes a first counter 200B, a state signal generator 700B, a state signal fetcher 800B, and a second counter 600B.

第1カウンタ200Bは、第3の実施形態で説明したカウント値伝播回路100の第1カウンタ200と同様に動作する。すなわち、第1カウンタ200Bは、カウントアップ1、カウントダウン1およびリセット1の第1制御信号および間隔T1で出力される第1クロック信号に基づいてカウンタ動作する。第1カウンタ200Bは、第1制御信号に基づいて「リセット」、「カウントアップ」、「カウントダウン」、「停止」の4つの状態となる。   The first counter 200B operates in the same manner as the first counter 200 of the count value propagation circuit 100 described in the third embodiment. That is, the first counter 200B performs a counter operation based on the first control signal of count up 1, count down 1, reset 1, and the first clock signal output at the interval T1. Based on the first control signal, the first counter 200B is in four states of “reset”, “count up”, “count down”, and “stop”.

状態信号生成器700Bは、第1制御信号および第1クロック信号に基づいて動作する。状態信号生成器700Bは、第1制御信号に基づいて「リセット」、「カウントアップ」、「カウントダウン」、「停止」の4つの状態を2ビットの変換状態信号で表す。変換状態信号は、第1制御信号が2種類の場合、Mバイトの2進数で表すことができる。本実施形態において、第1制御信号が4種類、すなわち、2種類あることから、変換状態信号を2ビットで表す。 The status signal generator 700B operates based on the first control signal and the first clock signal. The status signal generator 700B represents the four states of “reset”, “count up”, “count down”, and “stop” based on the first control signal as a 2-bit conversion status signal. The conversion state signal can be represented by an M-byte binary number when the first control signal is 2M types. In this embodiment, since there are four types of first control signals, that is, 22 types, the conversion state signal is represented by 2 bits.

状態信号生成器700Bの動作をステートマシーンで表したものを図11に示す。図11において、第1クロック信号がHIGH、且つ、リセット1がHIGHの時、状態信号生成器700Bは「リセット」状態に遷移する。また、第1クロック信号がHIGH、且つ、リセット1がLOW、且つ、カウントアップ1がHIGHの時、状態信号生成器700Bは「カウントアップ」状態に遷移する。さらに、第1クロック信号がHIGH、且つ、リセット1がLOW、且つ、カウントアップ1がLOW、且つ、カウントダウン1がHIGHの時、状態信号生成器700Bは「カウントダウン」状態に遷移する。第1クロック信号がHIGH、且つ、リセット1がLOW、且つ、カウントアップ1がLOW、且つ、カウントダウン1がLOWの時、状態信号生成器700Bは「停止」状態に遷移する。   FIG. 11 shows the operation of the state signal generator 700B represented by a state machine. In FIG. 11, when the first clock signal is HIGH and the reset 1 is HIGH, the state signal generator 700B transitions to a “reset” state. When the first clock signal is HIGH, the reset 1 is LOW, and the count-up 1 is HIGH, the state signal generator 700B transitions to the “count-up” state. Further, when the first clock signal is HIGH, the reset 1 is LOW, the count up 1 is LOW, and the count down 1 is HIGH, the state signal generator 700B transitions to the “count down” state. When the first clock signal is HIGH, the reset 1 is LOW, the count-up 1 is LOW, and the count-down 1 is LOW, the state signal generator 700B transitions to the “stop” state.

そして、状態信号生成器700Bは、遷移状態に応じた変換状態信号を出力する。すなわち、状態信号生成器700Bは、「停止」状態の場合に変換状態信号“00”を、「リセット」状態の場合に変換状態信号“01”を、「カウントアップ」状態の場合に変換状態信号“10”を、「カウントダウン」状態の場合に変換状態信号“11”を出力する。   Then, the state signal generator 700B outputs a conversion state signal corresponding to the transition state. That is, the state signal generator 700B converts the conversion state signal “00” in the “stop” state, the conversion state signal “01” in the “reset” state, and the conversion state signal in the “count up” state. When “10” is in the “count down” state, the conversion state signal “11” is output.

状態信号取込器800Bは、第1クロック信号の間隔T1とは異なる間隔T2で出力される第2クロック信号に基づいて動作する。本実施形態において、間隔T2は間隔T1の1/4とする。状態信号取込器800Bは、第2クロック信号がHIGHの時に第1クロック信号および状態信号生成器700Bから出力された変換状態信号を取り込み、第2制御信号を生成して出力する。   The state signal fetcher 800B operates based on the second clock signal output at an interval T2 different from the interval T1 of the first clock signal. In the present embodiment, the interval T2 is 1/4 of the interval T1. The state signal fetcher 800B takes in the first clock signal and the conversion state signal output from the state signal generator 700B when the second clock signal is HIGH, and generates and outputs a second control signal.

具体的には、状態信号取込器800Bは、第2クロック信号がHIGHの時に第1クロック信号の立ち上がりを検出した場合、次に第2クロック信号がHIGHとなった時に同期化クロック信号を出力すると共に、同期化クロック信号を出力した期間T2後にタイミング信号を出力する。   Specifically, the status signal fetcher 800B outputs the synchronized clock signal when the second clock signal becomes HIGH next when the rising edge of the first clock signal is detected when the second clock signal is HIGH. In addition, a timing signal is output after a period T2 during which the synchronization clock signal is output.

また、状態信号取込器800Bは、同期化クロック信号に基づいて、取り込んだ変換状態信号から生成したリセット2B、カウントアップ2Bまたはカウントダウン2Bの第2制御信号を出力する。   Further, the status signal fetcher 800B outputs the second control signal of the reset 2B, the count-up 2B or the count-down 2B generated from the fetched conversion status signal based on the synchronization clock signal.

状態信号取込器800Bの回路図の一例を図12に示す。図12に示すように、状態信号取込器800Bは、FF810B、FF820B、FF830B、反転回路840B、論理積回路850B、FF860B、FF870B、FF880Bおよびデコード890Bを備える。   An example of a circuit diagram of the status signal fetcher 800B is shown in FIG. As shown in FIG. 12, the status signal fetcher 800B includes FF 810B, FF 820B, FF 830B, an inverting circuit 840B, an AND circuit 850B, FF 860B, FF 870B, FF 880B, and a decode 890B.

状態信号取込器800Bは、FF810B、820B、830B、反転回路840Bおよび論理積回路850Bを用いて、第2クロック信号に基づいて第1クロック信号の立ち上がりを検出し、次に第2クロック信号がHIGHになった時に論理積回路850Bから同期化クロック信号を出力する。論理積回路850Bから出力された同期化クロック信号は、FF880Bにおいて第2クロック信号の1クロック分(間隔T2)遅延し、タイミング信号としてデコード890Bに出力される。   The status signal fetcher 800B detects the rising edge of the first clock signal based on the second clock signal using the FFs 810B, 820B, 830B, the inverting circuit 840B, and the AND circuit 850B, and then the second clock signal When the signal becomes HIGH, a synchronization clock signal is output from the AND circuit 850B. The synchronized clock signal output from the AND circuit 850B is delayed by one clock (interval T2) of the second clock signal in the FF 880B and output to the decode 890B as a timing signal.

一方、状態信号取込器800Bは、FF860Bを用いて、第2クロック信号に基づいて変換状態信号を取り込み、論理積回路850Bから出力された同期化クロック信号に基づいて取り込んだ変換状態信号をFF870Bにて取り込み、同期化状態信号としてデコード890Bに出力する。   On the other hand, the status signal fetcher 800B uses the FF 860B to capture the conversion status signal based on the second clock signal and the FF 870B captures the conversion status signal captured based on the synchronized clock signal output from the AND circuit 850B. And output to the decode 890B as a synchronization state signal.

デコード890Bにおいて、タイミング信号がHIGHの時、取り込んだ同期化状態信号から生成した第2制御信号を出力する。すなわち、同期化状態信号が“11”の時、カウントダウン2の第2制御信号を出力し、同期化状態信号が“10”の時、カウントアップ2の第2制御信号を出力し、同期化状態信号が“01”の時、リセット2の第2制御信号を出力する。状態信号取込器800Bは、同期化クロック信号を第2クロック信号の1クロック分遅延させてタイミング信号を出力することにより、同期化状態信号の出力タイミングを取る。なお、図12において、変換状態信号を取り込むためのFF回路と、第1クロック信号を取り込むためのFF回路との段数は、同じクロックエッジでとれなくても良いように考慮する。   In the decode 890B, when the timing signal is HIGH, the second control signal generated from the captured synchronization state signal is output. That is, when the synchronization state signal is “11”, the second control signal of countdown 2 is output, and when the synchronization state signal is “10”, the second control signal of countup 2 is output and the synchronization state signal is output. When the signal is “01”, the second control signal of reset 2 is output. The status signal fetcher 800B takes the output timing of the synchronization status signal by delaying the synchronization clock signal by one clock of the second clock signal and outputting the timing signal. In FIG. 12, it is considered that the number of stages of the FF circuit for capturing the conversion state signal and the FF circuit for capturing the first clock signal need not be the same clock edge.

第2カウンタ600Bは、状態信号取込器800Bから出力された第2制御信号および第2クロック信号に基づいてカウンタ動作する。第2カウンタ600Bは、第2制御信号に基づいて、「リセット」、「カウントアップ」、「カウントダウン」、「停止」のカウント動作を行う。   The second counter 600B performs a counter operation based on the second control signal and the second clock signal output from the status signal fetcher 800B. The second counter 600B performs “reset”, “count up”, “count down”, and “stop” counting operations based on the second control signal.

本実施形態に係るカウント値伝播回路100Bのタイミングチャートを図13に示す。図13において、第1カウンタ200Bは、第3の実施形態で説明した第1カウンタ200と同様に、リセット1、カウントアップ1およびカウントダウン1の第1制御信号に基づいて、時刻t1から時刻t13に、「0」、「1」、「2」、「1」、「0」、「6」、「0」、「1」、「2」、「3」、「4」、「5」、「5」のカウンタ値を出力する。   FIG. 13 shows a timing chart of the count value propagation circuit 100B according to this embodiment. In FIG. 13, the first counter 200B is changed from time t1 to time t13 based on the first control signals of reset 1, count up 1 and count down 1 as in the case of the first counter 200 described in the third embodiment. , “0”, “1”, “2”, “1”, “0”, “6”, “0”, “1”, “2”, “3”, “4”, “5”, “ 5 "is output.

状態信号生成器700Bは、第1制御信号および第1クロック信号に基づいて、「リセット」、「カウントアップ」、「カウントダウン」、「停止」の4つの状態を表す変換状態信号を出力する。図13において、状態信号生成器700Bは、時刻t0以降に“リセット:01”の変換状態信号を、時刻t2以降に“カウントアップ:10”、時刻t4以降に“カウントダウン:11”、時刻t7以降に“カウントアップ:01”、時刻t13以降に“停止:00”の変換状態信号を出力する。   Based on the first control signal and the first clock signal, the state signal generator 700B outputs a conversion state signal representing four states of “reset”, “count up”, “count down”, and “stop”. In FIG. 13, the status signal generator 700B converts the conversion status signal “reset: 01” after time t0, “count up: 10” after time t2, “count down: 11” after time t4, and after time t7. Then, a conversion state signal of “count up: 01” and “stop: 00” is output after time t13.

状態信号取込器800Bは、第2クロック信号がHIGHとなった時に第1クロック信号の立ち上がりを検出した場合、次に第2クロック信号がHIGHとなった時に同期化クロック信号を出力し、さらに、期間T2後にタイミング信号を出力する。すなわち、図13に示すように、第1クロック信号から期間1.5×T2経過後に同期化クロック信号が出力され、期間2.5×T2経過後にタイミング信号が出力される。   When the state signal fetcher 800B detects the rising edge of the first clock signal when the second clock signal becomes HIGH, the status signal fetcher 800B outputs the synchronized clock signal when the second clock signal becomes HIGH next, and The timing signal is output after the period T2. That is, as shown in FIG. 13, the synchronization clock signal is output after a period of 1.5 × T2 has elapsed from the first clock signal, and the timing signal is output after the period of 2.5 × T2 has elapsed.

また、状態信号取込器800Bは、同期化クロック信号がHIGHとなった時に変換状態信号を取り込み、タイミング信号がHIGHになった時に取り込んだ変換状態信号に応じてリセット2、カウントアップ2またはカウントダウン2の第2制御信号を出力する。すなわち、図13において、時刻t0以降の同期化クロック信号がHIGHとなった時にリセット状態(01)の変換状態信号を取り込み、期間T2後にタイミング信号がHIGHになった時にリセット2の第2制御信号を出力する。同様に、状態信号取込器800Bは、時刻t2以降の同期化クロック信号がHIGHとなった時にカウントアップ状態(10)の変換状態信号を取り込み、期間T2後にタイミング信号がHIGHになった時にカウントアップ2を出力する。   The status signal fetcher 800B fetches the conversion status signal when the synchronization clock signal becomes HIGH, and resets 2, counts up 2 or counts down depending on the conversion status signal fetched when the timing signal becomes HIGH. 2nd control signal is output. That is, in FIG. 13, the conversion state signal in the reset state (01) is captured when the synchronization clock signal after time t0 becomes HIGH, and the second control signal of reset 2 when the timing signal becomes HIGH after the period T2. Is output. Similarly, the state signal fetcher 800B takes in the conversion state signal in the count-up state (10) when the synchronization clock signal after time t2 becomes HIGH, and counts when the timing signal becomes HIGH after the period T2. Output up 2.

第2カウンタ600Bは、第2クロック信号がHIGHの時に状態信号取込器800Bから出力された第2制御信号を取り込み、取り込んだ第2制御信号に応じたカウンタ値を出力する。図13において、第2カウンタ600Bは、時刻t0以降にリセット2の第2制御信号を取り込むことにより、「0」のカウンタ値を出力する。また、第2カウンタ600Bは、時刻t2以降の第2クロック信号がHIGHになった時にカウントアップ2の第2制御信号を取り込むことによりインクリメントし、「1」のカウンタ値を出力する。同様に、第2カウンタ600Bは、時刻t3以降にカウントアップ2を取り込んで「2」のカウンタ値を出力し、時刻t4以降にカウントダウン2を取り込んで、デクリメントして「1」のカウンタ値を出力する。   The second counter 600B takes in the second control signal output from the state signal fetcher 800B when the second clock signal is HIGH, and outputs a counter value corresponding to the fetched second control signal. In FIG. 13, the second counter 600B outputs a counter value of “0” by taking in the second control signal of reset 2 after time t0. The second counter 600B increments by taking in the second control signal of count-up 2 when the second clock signal after time t2 becomes HIGH, and outputs a counter value of “1”. Similarly, the second counter 600B takes in count-up 2 after time t3 and outputs a counter value of “2”, takes in count-down 2 after time t4, and decrements and outputs a counter value of “1”. To do.

そして、第2カウンタ600Bは、取り込んだ第2制御信号に基づいて、「0」、「1」、「2」、「1」、「0」、「6」、「0」、「1」、「2」、「3」、「4」、「5」、「5」のカウンタ値を出力する。   Then, the second counter 600B, based on the captured second control signal, “0”, “1”, “2”, “1”, “0”, “6”, “0”, “1”, The counter values “2”, “3”, “4”, “5”, “5” are output.

図13に示すように、第2カウンタ600Bは、第1カウンタ200Bのカウンタ動作から第2クロック信号の3クロック半遅延して第1カウンタ200Bと同様のカウンタ動作を行うことにより、第2クロック信号の4クロック周期で第1カウンタ200Bと同じカウント値を出力する。   As shown in FIG. 13, the second counter 600B performs a counter operation similar to that of the first counter 200B by performing a counter operation similar to that of the first counter 200B by delaying three clocks and half of the second clock signal from the counter operation of the first counter 200B. The same count value as that of the first counter 200B is output in four clock cycles.

以上のように、本実施形態に係るカウント値伝播回路100Bは、第1クロック信号をオーバーサンプルして用いることにより、第1クロック信号の2逓倍信号を生成する必要がない。さらに伝播する状態信号のビット数が最小限で済む為、第3の実施形態で説明した図5のカウント値伝播回路100よりさらに回路を小規模にすることができる。しかし、第1クロック信号はクロックライン、変換状態信号はデータラインであり、遅延調整が難しくなることから、本実施形態に係るカウント値伝播回路100Bは、受け取る側が少数なシステムに適用することが望ましい。   As described above, the count value propagation circuit 100B according to the present embodiment does not need to generate a doubled signal of the first clock signal by using the first clock signal after being oversampled. Further, since the number of bits of the state signal to be propagated can be minimized, the circuit can be made smaller than the count value propagation circuit 100 of FIG. 5 described in the third embodiment. However, since the first clock signal is a clock line and the conversion state signal is a data line, it is difficult to adjust the delay. Therefore, the count value propagation circuit 100B according to the present embodiment is preferably applied to a system with a small number of receiving sides. .

なお、本願発明は上記実施形態に限定されるものではなく、この発明の要旨を逸脱しない範囲の設計の変更等があってもこの発明に含まれる。   Note that the present invention is not limited to the above-described embodiment, and any design change or the like within a range not departing from the gist of the present invention is included in the present invention.

10、10B カウント値伝播回路
20、20B 第1カウンタ
30、30B 第2カウンタ
40、40B 状態出力手段
50 同期化手段
60、60B 伝播手段
100、100B カウント値伝播回路
200、200B 第1カウンタ
300 逓倍回路
400 パルス生成器
500 立上り検出器
600、600B 第2カウンタ
700B 状態信号生成器
800B 状態信号取込器
10, 10B count value propagation circuit 20, 20B first counter 30, 30B second counter 40, 40B status output means 50 synchronization means 60, 60B propagation means 100, 100B count value propagation circuit 200, 200B first counter 300 multiplication circuit 400 Pulse generator 500 Rising detector 600, 600B Second counter 700B Status signal generator 800B Status signal fetcher

Claims (9)

間隔T1で出力される第1クロック信号に基づいて該第1クロック信号に同期した第1制御信号を取得し、取得した第1制御信号に応じたカウント動作を行う第1カウンタと、
前記間隔T1の1/2以下である間隔T2ごとに出力される第2クロック信号に基づいて第2制御信号を取得し、取得した第2制御信号に応じたカウント動作を行う第2カウンタと、
前記第1クロック信号に基づいて前記第1制御信号を取得し、取得した第1制御信号に応じた2進数の状態信号を出力する状態出力手段と、
前記第2クロック信号に基づいて前記第1クロック信号を検出し、前記検出した信号を同期化クロック信号として出力する同期化手段と、
前記同期化クロック信号に基づいて前記状態信号を取得し、前記取得した状態信号に応じた長さT2の前記第2制御信号を出力する伝播手段と、
を備えるカウント値伝播回路。
A first counter that acquires a first control signal synchronized with the first clock signal based on a first clock signal output at an interval T1, and performs a counting operation according to the acquired first control signal;
A second counter that acquires a second control signal based on a second clock signal that is output every interval T2 that is ½ or less of the interval T1, and that performs a counting operation according to the acquired second control signal;
Status output means for acquiring the first control signal based on the first clock signal and outputting a binary status signal corresponding to the acquired first control signal;
Synchronization means for detecting the first clock signal based on the second clock signal and outputting the detected signal as a synchronization clock signal;
Propagation means for obtaining the state signal based on the synchronized clock signal and outputting the second control signal having a length T2 corresponding to the obtained state signal;
A count value propagation circuit comprising:
前記第1制御信号はM種類あり、
前記状態信号はハミング距離が1の(M−1)バイトの2進数で表される、
請求項1記載のカウント値伝播回路。
The first control signal has M types,
The status signal is represented by a binary number of (M−1) bytes with a Hamming distance of 1.
The count value propagation circuit according to claim 1.
前記第1制御信号は2種類あり、
前記状態信号はMバイトの2進数で表される、
請求項1記載のカウント値伝播回路。
The first control signal has 2M types,
The status signal is represented by a binary number of M bytes.
The count value propagation circuit according to claim 1.
前記同期化手段は、フリップフロップ回路、反転回路および論理積回路を用いて前記第1クロック信号を検出する、請求項1乃至3のいずれか1項記載のカウント値伝播回路。 4. The count value propagation circuit according to claim 1, wherein the synchronization unit detects the first clock signal using a flip-flop circuit, an inverting circuit, and a logical product circuit. 5. 前記第1制御信号は、リセット、カウントアップ、カウントダウンおよび停止の4種類あり、
前記第1カウンタには初期値および最大値が設定され、前記第1制御信号に応じてそれぞれ、初期値に戻る、+1、−1および±0のカウント動作を行うと共に、前記最大値の位置でカウントアップを示す第1制御信号を取得した場合は前記初期値になり、前記初期値の位置でカウントダウンを示す第1制御信号を取得した場合は前記最大値になる、
請求項1乃至4のいずれか1項記載のカウント値伝播回路。
The first control signal has four types of reset, count up, count down and stop,
An initial value and a maximum value are set in the first counter, and count operations of +1, −1, and ± 0 are performed to return to the initial value according to the first control signal, respectively, and at the position of the maximum value. When the first control signal indicating the count-up is acquired, the initial value is obtained, and when the first control signal indicating the count-down is acquired at the position of the initial value, the maximum value is obtained.
The count value propagation circuit according to any one of claims 1 to 4.
間隔T1で出力される第1クロック信号に基づいて該第1クロック信号に同期した第1制御信号を取得し、取得した第1制御信号に応じたカウント動作を行う第1カウンタと、
前記間隔T1の1/2以下である間隔T2ごとに出力される第2クロック信号に基づいて第2制御信号を取得し、取得した第2制御信号に応じたカウント動作を行う第2カウンタと、
前記第1クロック信号に基づいて前記第1制御信号を取得し、取得した第1制御信号に応じたT1の1/2の長さのパルス信号を出力する状態出力手段と、
前記第2クロック信号に基づいて、前記パルス信号の立ち上がりを検出し、前記検出したパルス信号に応じた前記第2制御信号を出力する伝播手段と、
を備えるカウント値伝播回路。
A first counter that acquires a first control signal synchronized with the first clock signal based on a first clock signal output at an interval T1, and performs a counting operation according to the acquired first control signal;
A second counter that acquires a second control signal based on a second clock signal that is output every interval T2 that is equal to or less than ½ of the interval T1, and that performs a counting operation according to the acquired second control signal;
State output means for acquiring the first control signal based on the first clock signal and outputting a pulse signal having a length of ½ of T1 according to the acquired first control signal;
Propagation means for detecting a rising edge of the pulse signal based on the second clock signal and outputting the second control signal in accordance with the detected pulse signal;
A count value propagation circuit comprising:
前記伝播手段は、フリップフロップ回路、反転回路および論理積回路を用いて前記パルス信号の立ち上がりを検出する、請求項6記載のカウント値伝播回路。 7. The count value propagation circuit according to claim 6, wherein the propagation means detects a rising edge of the pulse signal using a flip-flop circuit, an inverting circuit, and a logical product circuit. 間隔T1で出力される第1クロック信号に基づいて該第1クロック信号に同期した第1制御信号を取得し、取得した第1制御信号に応じたカウント動作を行う第1カウンタと、
前記間隔T1の1/2以下である間隔T2ごとに出力される第2クロック信号に基づいて第2制御信号を取得し、取得した第2制御信号に応じたカウント動作を行う第2カウンタと、
を用いたカウント値伝播方法であって、
前記第1クロック信号に基づいて前記第1制御信号を取得し、取得した第1制御信号に応じた2進数の状態信号を出力し、
前記第2クロック信号に基づいて前記第1クロック信号を検出し、前記検出した信号を同期化クロック信号として出力し、
前記同期化クロック信号に基づいて前記状態信号を取得し、前記取得した状態信号に応じた長さT2の前記第2制御信号を出力する、
カウント値伝播方法。
A first counter that acquires a first control signal synchronized with the first clock signal based on a first clock signal output at an interval T1, and performs a counting operation according to the acquired first control signal;
A second counter that acquires a second control signal based on a second clock signal that is output every interval T2 that is equal to or less than ½ of the interval T1, and that performs a counting operation according to the acquired second control signal;
A count value propagation method using
Acquiring the first control signal based on the first clock signal, and outputting a binary state signal corresponding to the acquired first control signal;
Detecting the first clock signal based on the second clock signal, and outputting the detected signal as a synchronized clock signal;
Acquiring the state signal based on the synchronized clock signal and outputting the second control signal having a length T2 corresponding to the acquired state signal;
Count value propagation method.
間隔T1で出力される第1クロック信号に基づいて該第1クロック信号に同期した第1制御信号を取得し、取得した第1制御信号に応じたカウント動作を行う第1カウンタと、
前記間隔T1の1/2以下である間隔T2ごとに出力される第2クロック信号に基づいて第2制御信号を取得し、取得した第2制御信号に応じたカウント動作を行う第2カウンタと、
を用いたカウント値伝播方法であって、
前記第1クロック信号に基づいて前記第1制御信号を取得し、前記取得した第1制御信号に応じたT1の1/2の長さのパルス信号を出力し、
前記第2クロック信号に基づいて、前記パルス信号の立ち上がりを検出し、前記検出したパルス信号に応じた前記第2制御信号を出力する、
カウント値伝播方法。
A first counter that acquires a first control signal synchronized with the first clock signal based on a first clock signal output at an interval T1, and performs a counting operation according to the acquired first control signal;
A second counter that acquires a second control signal based on a second clock signal that is output every interval T2 that is ½ or less of the interval T1, and that performs a counting operation according to the acquired second control signal;
A count value propagation method using
Acquiring the first control signal based on the first clock signal, and outputting a pulse signal having a length of ½ of T1 according to the acquired first control signal;
Detecting the rising edge of the pulse signal based on the second clock signal and outputting the second control signal according to the detected pulse signal;
Count value propagation method.
JP2012122082A 2012-05-29 2012-05-29 Count value propagation circuit and count value propagation method Active JP5647180B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012122082A JP5647180B2 (en) 2012-05-29 2012-05-29 Count value propagation circuit and count value propagation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012122082A JP5647180B2 (en) 2012-05-29 2012-05-29 Count value propagation circuit and count value propagation method

Publications (2)

Publication Number Publication Date
JP2013247628A true JP2013247628A (en) 2013-12-09
JP5647180B2 JP5647180B2 (en) 2014-12-24

Family

ID=49847062

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012122082A Active JP5647180B2 (en) 2012-05-29 2012-05-29 Count value propagation circuit and count value propagation method

Country Status (1)

Country Link
JP (1) JP5647180B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5694840A (en) * 1979-12-27 1981-07-31 Fujitsu Ltd Counter synchronous control system
JPS61146017A (en) * 1984-12-20 1986-07-03 Matsushita Electric Ind Co Ltd Counting circuit
JPH1041911A (en) * 1996-07-24 1998-02-13 Sony Corp Counter, multiplexer and counter synchronization method
JP2000115147A (en) * 1998-10-06 2000-04-21 Seiko Epson Corp Asynchronous absorption circuit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5694840A (en) * 1979-12-27 1981-07-31 Fujitsu Ltd Counter synchronous control system
JPS61146017A (en) * 1984-12-20 1986-07-03 Matsushita Electric Ind Co Ltd Counting circuit
JPH1041911A (en) * 1996-07-24 1998-02-13 Sony Corp Counter, multiplexer and counter synchronization method
JP2000115147A (en) * 1998-10-06 2000-04-21 Seiko Epson Corp Asynchronous absorption circuit

Also Published As

Publication number Publication date
JP5647180B2 (en) 2014-12-24

Similar Documents

Publication Publication Date Title
JP5896602B2 (en) Communication circuit and sampling adjustment method
CN105183423B (en) A kind of cross-clock domain asynchronous data treating method and apparatus
JP6812781B2 (en) Delay circuit, count value generation circuit and physical quantity sensor
KR20130095558A (en) Data output timing control circuit of semiconductor apparatus
CN106772185B (en) Signal interval or period detection method and device for oscilloscope
JPWO2014083628A1 (en) Relay device, communication system, and relay method
US9542354B2 (en) Generating a parallel data signal by converting serial data of a serial data signal to parallel data
JP5647180B2 (en) Count value propagation circuit and count value propagation method
US8275085B2 (en) Apparatus and method for recovering data
JP6378966B2 (en) Asynchronous serial data acquisition device and asynchronous serial data acquisition method
CN116545582A (en) Data transmission method based on serial transceiver, medium and equipment
JP6413585B2 (en) Transmission circuit, integrated circuit, and parallel-serial conversion method
JP3705273B2 (en) Clock extraction circuit and clock extraction method
CN205247370U (en) Generation of random number device
JPWO2007094074A1 (en) Signal processing method, signal processing apparatus, and analog / digital conversion apparatus
JP5888778B2 (en) Signal receiving circuit, signal receiving method and program
JP6312772B1 (en) Phase difference estimation device and communication device including the phase difference estimation device
JP2010021950A (en) Asynchronous interface circuit and method
JP2019036833A (en) Signal processing apparatus and signal processing method
EP2447805A1 (en) Apparatus and method for synchronizing and providing a glitch-free clock
JP2010213204A (en) Data transmitting/receiving method
JP2011009852A (en) Digital noise filter and method
JP2015207050A (en) Emulation apparatus
JP6492467B2 (en) Reception circuit and semiconductor integrated circuit
KR102225619B1 (en) High-speed serial data receiving apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20131018

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140625

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140701

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20140725

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140821

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20141014

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20141106

R150 Certificate of patent or registration of utility model

Ref document number: 5647180

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150