JP2013247628A - Count value propagation circuit and count value propagation method - Google Patents
Count value propagation circuit and count value propagation method Download PDFInfo
- 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
Links
Images
Abstract
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
また、特許文献3には、取り込み側に取り込みタイミングの異なる保持回路を2つ備え、真の値を保持した側を選択することで、バイナリカウント値を伝播する技術が開示されている。
Further,
しかし、特許文献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の実施形態)
第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
第1カウンタ20は、初期値および最大値が設定され、間隔T1で出力される第1クロック信号に基づいて、第1制御信号を取得し、取得した第1制御信号に応じたカウント動作を行う。
The
本実施形態において、第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 “
また、本実施形態において、第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
第2カウンタ30は、第1カウンタ20と同じ初期値および最大値が設定され、間隔T1の1/2以下である間隔T2で出力される第2クロック信号に基づいて、伝播手段60から出力された第2制御信号を取得し、取得した第2制御信号に応じたカウント動作を行う。第2制御信号は第1制御信号に対応しており、「リセット2」、「カウントアップ2」、「カウントダウン2」および「停止」がある。
The
本実施形態において、第2カウンタ30は、初期値「0」、最大値「5」が設定され、第2クロック信号がHIGHになった時に第2制御信号を取得し、取得した第2制御信号に応じて、「初期値に戻る」、「+1」、「−1」、「±0(カウント停止)」のカウント動作を行う。
In the present embodiment, the
状態出力手段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 “
ここで、状態信号は、第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
本実施形態に係るカウント値伝播回路10のタイミングチャートを図2に示す。図2において、第1クロック信号は間隔T1で出力され、第2クロック信号は間隔T1の1/2以下の間隔T2で出力される。また、カウンタ1は、左側が第1カウンタ20のカウント動作、右側が第1カウンタ20から出力されるカウント値である。
FIG. 2 shows a timing chart of the count
図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
状態出力手段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
一方、同期化手段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 “
第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
以上のように、本実施形態に係るカウント値伝播回路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
なお、上述の実施形態では、状態信号を、第1制御信号がM種類の場合に(M−1)バイトの2進数で表したが、これに限定されない。例えば、第1制御信号が2M種類の場合、状態信号をMバイトの2進数で表すこともできる。すなわち、第1制御信号が22=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
第1カウンタ20Bおよび第2カウンタ30Bは、第1の実施形態で説明した図1の第1カウンタ20および第2カウンタ30と同様であり、詳細な説明は省略する。本実施形態においても、第1カウンタ20Bおよび第2カウンタ30Bは、初期値「0」、最大値「5」が設定されている。また、第1クロック信号は間隔T1で出力され、第2クロック信号は間隔T1の1/2以下の間隔T2で出力される。
The
状態出力手段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 “
本実施形態に係るカウント値伝播回路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
状態出力手段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-
伝播手段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 “
第2カウンタ30Bは、時刻t0の時にカウント値「1」を保持している。そして、第2カウンタ30Bは、時刻t13、時刻t23、時刻t33、時刻t43に伝播手段60Bから出力された第2制御信号を取得し、取得した第2制御信号に応じたカウント動作することにより、時刻03から時刻t43において、「1」、「2」、「3」、「0」、「5」のカウント値を出力する。
The
以上のように、本実施形態に係るカウント値伝播回路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
状態出力手段40Bが第1制御信号に応じて複数のパルス信号を出力する場合、第1の実施形態に係るカウント値伝播回路10の状態出力手段40と比較して状態出力手段40Bでの処理が複雑になるものの、第1カウンタ20Bのカウンタ動作を速やかに第2カウンタ30Bに伝播することができる。
When the
(第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
第1カウンタ200は、初期値および最大値が設定されたバイナリカウンタであり、第1制御信号および第1クロック信号に基づいてカウンタ動作する。本実施形態において、第1クロック信号は間隔T1で出力される。また、第1制御信号には、リセット1、カウントアップ1、カウントダウン1および停止がある。第1カウンタ200は、第1制御信号に基づいて、「リセット」、「カウントアップ」、「カウントダウン」および「停止」の4つの状態となる。
The
第1カウンタ200は、リセット1がHIGHの時、カウント値を初期値に戻す。また、第1カウンタ200は、リセット1がLOW、且つ、カウントアップ1がHIGHの時、カウント値をインクリメントする。また、第1カウンタ200は、リセット1がLOW、且つ、カウントアップ1がLOW、且つ、カウントダウン1がHIGHの時、カウント値をデクリメントする。第1カウンタ200は、デクリメントすることによりカウント値が最小値より小さくなる場合、カウント値を最大値にする。一方、インクリメントすることによりカウント値が最大値より大きくなる場合、カウント値を最小値にする。
The
逓倍回路300は、第1クロック信号を2逓倍して、間隔T1の2倍の間隔で出力される逓倍クロック信号を出力する。逓倍回路300としては、PLL(Phase-locked loop:位相同期回路)を適用することができる。
The
パルス生成器400は、第1制御信号および逓倍クロック信号に基づいて動作する。パルス生成器400は、第1カウンタ200の「リセット」、「カウントアップ」、「カウントダウン」、「停止」の4つの状態をハミング距離が「1」の3ビットのパルス状態信号で表して出力する。
The
パルス生成器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
パルス生成器400は、第1クロック信号の2逓倍クロック信号である逓倍クロック信号に基づいて、第1カウンタ200の遷移状態に応じたパルス状態信号を出力する。すなわち、パルス生成器400は、「停止」状態の場合にパルス状態信号“000”を、「リセット」状態の場合にパルス状態信号“001”を、「カウントアップ」状態の場合にパルス状態信号“010”を、「カウントダウン」状態の場合にパルス状態信号“100”を出力する。
The
本実施形態において、パルス生成器400は、第1クロック信号の2逓倍クロックである逓倍クロック信号に基づいて動作することから、「リセット」、「カウントアップ」、「カウントダウン」の状態に遷移する前に必ず「停止」状態に戻る。パルス生成器400が遷移前に「停止」状態に戻ることにより、ハミング距離が「1」のパルス状態信号が生成される。
In this embodiment, since the
立上り検出器500は、第1クロック信号の間隔T1の1/2以下である間隔T2で出力される第2クロック信号に基づいて動作する。本実施形態において、間隔T2は間隔T1の1/4である。立上り検出器500は、第2クロック信号に基づいてパルス生成器400から出力されたカウントアップパルス、カウントダウンパルスおよびリセットパルスを2段サンプリングして立ち上がりを検出し、カウントアップ2、カウントダウン2またはリセット2の第2制御信号を生成して出力する。
The rising
立上り検出器500の回路図の一例を図7に示す。図7において、立上り検出器500は、カウントダウン検出部510、カウントアップ検出部520およびリセット検出部530を備える。カウントダウン検出部510、カウントアップ検出部520およびリセット検出部530はそれぞれ、3つのフリップフロップ(FlipFlop)回路、反転回路および論理積回路から成る。
An example of a circuit diagram of the rising
例えば、カウントダウン検出部510は、FF511、FF512、FF513、反転514および論理積515を備える。カウントダウン検出部510は、パルス生成器400から出力されたカウントダウンパルスを第2クロック信号に基づいて取り込み、カウントダウンパルスの立ち上がりを検出してカウントダウン2の第2制御信号を出力する。
For example, the
第2カウンタ600は、初期値および最大値が設定されたバイナリカウンタであり、立上り検出器500から出力された第2制御信号および第2クロック信号に基づいてカウンタ動作する。第2カウンタ600は、第2制御信号に基づいて、「リセット」、「カウントアップ」、「カウントダウン」、「停止」の4つの状態となる。
The
第2カウンタ600は、リセット2がHIGHの時、カウント値を初期値に戻す。また、第2カウンタ600は、リセット2がLOW、且つ、カウントアップ2がHIGHの時、カウント値をインクリメントする。第2カウンタ600は、リセット2がLOW、且つ、カウントアップ2がLOW、且つ、カウントダウン2がHIGHの時、カウント値をデクリメントする。第2カウンタ600は、デクリメントすることによりカウント値が最小値より小さくなる場合、カウント値を最大値にする。一方、第2カウンタ600は、インクリメントすることによりカウント値が最大値より大きくなる場合、カウント値を最小値にする。
The
本実施形態に係るカウント値伝播回路100のタイミングチャートを図8に示す。図8において、カウンタ1は第1カウンタ200から出力されたカウンタ値であり、カウンタ2は第2カウンタ600から出力されたカウンタ値である。
FIG. 8 shows a timing chart of the count
先ず、第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
そして、第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
一方、パルス生成器400は、間隔T1の2倍の間隔で出力された逓倍クロック信号がHIGHの時に第1制御信号に応じたパルス状態信号を出力する。パルス生成器400は、時刻t1の逓倍クロック信号がHIGHになった時に、リセット1の第1制御信号を取り込み、リセット状態に遷移することによって、リセットパルスを出力し、その後、停止状態に戻る。
On the other hand, the
また、パルス生成器400は、時刻t2の時にカウントアップ1の第1制御信号を取り込んでカウントアップ状態に遷移し、その後、停止状態に戻る。同様に、パルス生成器400は、逓倍クロック信号がHIGHになることにより第1制御信号を取り込んだ後、取り込んだ第1制御信号に応じたパルス状態信号を出力し、停止状態に戻る。
In addition, the
そして、パルス生成器400は、時刻t1から時刻t12の時にそれぞれ間隔T1の1/2期間ずつ、「リセットパルス」、「カウントアップパルス」、「カウントアップパルス」、「カウントダウンパルス」、「カウントダウンパルス」、「カウントダウンパルス」、「カウントアップパルス」、「カウントアップパルス」、「カウントアップパルス」、「カウントアップパルス」、「カウントアップパルス」、「カウントアップパルス」のパルス状態信号を出力する。なお、時刻t13には第1制御信号が取り込まれないことから、パルス状態信号は出力されない。
Then, the
立上り検出器500は、パルス生成器400から出力されたパルス状態信号を第2クロック信号に基づいて2段サンプリングすることによって、パルス状態信号の立ち上がりを検出し、検出したパルス状態信号に基づいて第2制御信号を生成して出力する。図8のタイミングチャートを時刻t1から時刻t5までの期間を拡大したものを図9に示す。
The rising
図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
そして、立上り検出器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
一方、図9において、第2カウンタ600は、時刻t0cにリセット2の第2制御信号を取り込み、初期値「0」のカウンタ値を出力する。また、第2カウンタ600は、時刻t1cにリセット2を取り込み、再び初期値「0」を出力し、時刻t2cにカウントアップ2を取り込み、インクリメントして「1」のカウンタ値を出力する。
On the other hand, in FIG. 9, the
同様に、第2カウンタ600は、時刻t3cにカウントアップ2を取り込んで「2」のカウンタ値を、時刻t4cにカウントダウン2を取り込んで「1」のカウンタ値を出力する。
Similarly, the
そして、図8に示すように、第2カウンタ600は、取り込んだ第2制御信号に基づいて、「0」、「1」、「2」、「1」、「0」、「6」、「0」、「1」、「2」、「3」、「4」、「5」、「5」のカウンタ値を出力する。
Then, as shown in FIG. 8, the
図8および図9に示すように、第2カウンタ600は、第1カウンタ200の遷移から第2クロック信号の2クロック半遅延して第1カウンタ200と同様に遷移することにより、第2クロック信号の4クロック周期で第1カウンタ200と同様のカウント値を出力する。
As shown in FIG. 8 and FIG. 9, the
以上のように、本実施形態に係るカウント値伝播回路100は、クロックソースの異なる回路間において、ハミング距離が1ビットから全ビット幅で進行するバイナリカウンタに対し、カウント値とは大幅に異なる値が伝播されることを抑制することができる。
As described above, the count
また、本実施形態に係るカウント値伝播回路100は、カウント値のビット数に関係なくカウンタの状態をパルス状態信号として伝播することができ、同期化回路の回路規模が大きくなることを避けることができる。
In addition, the count
(第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
第1カウンタ200Bは、第3の実施形態で説明したカウント値伝播回路100の第1カウンタ200と同様に動作する。すなわち、第1カウンタ200Bは、カウントアップ1、カウントダウン1およびリセット1の第1制御信号および間隔T1で出力される第1クロック信号に基づいてカウンタ動作する。第1カウンタ200Bは、第1制御信号に基づいて「リセット」、「カウントアップ」、「カウントダウン」、「停止」の4つの状態となる。
The
状態信号生成器700Bは、第1制御信号および第1クロック信号に基づいて動作する。状態信号生成器700Bは、第1制御信号に基づいて「リセット」、「カウントアップ」、「カウントダウン」、「停止」の4つの状態を2ビットの変換状態信号で表す。変換状態信号は、第1制御信号が2M種類の場合、Mバイトの2進数で表すことができる。本実施形態において、第1制御信号が4種類、すなわち、22種類あることから、変換状態信号を2ビットで表す。
The
状態信号生成器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
そして、状態信号生成器700Bは、遷移状態に応じた変換状態信号を出力する。すなわち、状態信号生成器700Bは、「停止」状態の場合に変換状態信号“00”を、「リセット」状態の場合に変換状態信号“01”を、「カウントアップ」状態の場合に変換状態信号“10”を、「カウントダウン」状態の場合に変換状態信号“11”を出力する。
Then, the
状態信号取込器800Bは、第1クロック信号の間隔T1とは異なる間隔T2で出力される第2クロック信号に基づいて動作する。本実施形態において、間隔T2は間隔T1の1/4とする。状態信号取込器800Bは、第2クロック信号がHIGHの時に第1クロック信号および状態信号生成器700Bから出力された変換状態信号を取り込み、第2制御信号を生成して出力する。
The
具体的には、状態信号取込器800Bは、第2クロック信号がHIGHの時に第1クロック信号の立ち上がりを検出した場合、次に第2クロック信号がHIGHとなった時に同期化クロック信号を出力すると共に、同期化クロック信号を出力した期間T2後にタイミング信号を出力する。
Specifically, the
また、状態信号取込器800Bは、同期化クロック信号に基づいて、取り込んだ変換状態信号から生成したリセット2B、カウントアップ2Bまたはカウントダウン2Bの第2制御信号を出力する。
Further, the
状態信号取込器800Bの回路図の一例を図12に示す。図12に示すように、状態信号取込器800Bは、FF810B、FF820B、FF830B、反転回路840B、論理積回路850B、FF860B、FF870B、FF880Bおよびデコード890Bを備える。
An example of a circuit diagram of the
状態信号取込器800Bは、FF810B、820B、830B、反転回路840Bおよび論理積回路850Bを用いて、第2クロック信号に基づいて第1クロック信号の立ち上がりを検出し、次に第2クロック信号がHIGHになった時に論理積回路850Bから同期化クロック信号を出力する。論理積回路850Bから出力された同期化クロック信号は、FF880Bにおいて第2クロック信号の1クロック分(間隔T2)遅延し、タイミング信号としてデコード890Bに出力される。
The
一方、状態信号取込器800Bは、FF860Bを用いて、第2クロック信号に基づいて変換状態信号を取り込み、論理積回路850Bから出力された同期化クロック信号に基づいて取り込んだ変換状態信号をFF870Bにて取り込み、同期化状態信号としてデコード890Bに出力する。
On the other hand, the
デコード890Bにおいて、タイミング信号がHIGHの時、取り込んだ同期化状態信号から生成した第2制御信号を出力する。すなわち、同期化状態信号が“11”の時、カウントダウン2の第2制御信号を出力し、同期化状態信号が“10”の時、カウントアップ2の第2制御信号を出力し、同期化状態信号が“01”の時、リセット2の第2制御信号を出力する。状態信号取込器800Bは、同期化クロック信号を第2クロック信号の1クロック分遅延させてタイミング信号を出力することにより、同期化状態信号の出力タイミングを取る。なお、図12において、変換状態信号を取り込むためのFF回路と、第1クロック信号を取り込むためのFF回路との段数は、同じクロックエッジでとれなくても良いように考慮する。
In the
第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
本実施形態に係るカウント値伝播回路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
状態信号生成器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
状態信号取込器800Bは、第2クロック信号がHIGHとなった時に第1クロック信号の立ち上がりを検出した場合、次に第2クロック信号がHIGHとなった時に同期化クロック信号を出力し、さらに、期間T2後にタイミング信号を出力する。すなわち、図13に示すように、第1クロック信号から期間1.5×T2経過後に同期化クロック信号が出力され、期間2.5×T2経過後にタイミング信号が出力される。
When the
また、状態信号取込器800Bは、同期化クロック信号がHIGHとなった時に変換状態信号を取り込み、タイミング信号がHIGHになった時に取り込んだ変換状態信号に応じてリセット2、カウントアップ2またはカウントダウン2の第2制御信号を出力する。すなわち、図13において、時刻t0以降の同期化クロック信号がHIGHとなった時にリセット状態(01)の変換状態信号を取り込み、期間T2後にタイミング信号がHIGHになった時にリセット2の第2制御信号を出力する。同様に、状態信号取込器800Bは、時刻t2以降の同期化クロック信号がHIGHとなった時にカウントアップ状態(10)の変換状態信号を取り込み、期間T2後にタイミング信号がHIGHになった時にカウントアップ2を出力する。
The
第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
そして、第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
以上のように、本実施形態に係るカウント値伝播回路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
なお、本願発明は上記実施形態に限定されるものではなく、この発明の要旨を逸脱しない範囲の設計の変更等があってもこの発明に含まれる。 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
Claims (9)
前記間隔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)バイトの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.
前記状態信号は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制御信号に応じてそれぞれ、初期値に戻る、+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/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:
前記間隔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/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.
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)
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 |
-
2012
- 2012-05-29 JP JP2012122082A patent/JP5647180B2/en active Active
Patent Citations (4)
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 |