JP2003332896A - Digital delay circuit - Google Patents

Digital delay circuit

Info

Publication number
JP2003332896A
JP2003332896A JP2002136250A JP2002136250A JP2003332896A JP 2003332896 A JP2003332896 A JP 2003332896A JP 2002136250 A JP2002136250 A JP 2002136250A JP 2002136250 A JP2002136250 A JP 2002136250A JP 2003332896 A JP2003332896 A JP 2003332896A
Authority
JP
Japan
Prior art keywords
digital signal
count number
signal
clock count
delay amount
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.)
Withdrawn
Application number
JP2002136250A
Other languages
Japanese (ja)
Inventor
Eiji Kaneko
英司 金子
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2002136250A priority Critical patent/JP2003332896A/en
Publication of JP2003332896A publication Critical patent/JP2003332896A/en
Withdrawn legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To dissolve a problem that a circuit is complicated by providing a redundant register block and a coincidence judging block, and designing is hard due to a skew between the internal blocks concerning the rise and fall edges in a digital signal. <P>SOLUTION: A rise and fall detecting means 100 detects the rise or fall of the digital signal DS1, and the number of clocks in the detection are stored in a clock count number storage means 300. The delay amount DT of the digital signal is set in a delay amount setting means 600 as the number of the clocks. A count number measuring means 500 obtains the sum of the number of the clocks in the clock count storage means 300 and the delay amount setting means 600. When a delay amount detecting means 700 detects coincidence between the count number measuring means 500 and a clock count means 400, a digital signal reproducing means 800 outputs a delayed signal DDS1. <P>COPYRIGHT: (C)2004,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、デジタル信号を遅
延させるためのデジタル遅延回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital delay circuit for delaying a digital signal.

【0002】[0002]

【従来の技術】デジタル信号の処理システムにおいて、
デジタル信号出力で機構部を制御し、機構部からの応答
がシステムの入力になる場合、機構部の応答に一定の遅
延がつきまとう。例えば、デジタル回路でモータを制御
する場合である。図18は、デジタル制御でモータの回
転を制御するシステムのブロック図である。デジタル制
御手段1800からモータ制御用の相データPDをモー
タドライバ1810に入力し、該モータドライバ181
0がモータ1820をドライブする。この時、モータの
回転角をセンサ1830で検出しその出力を、該デジタ
ル制御手段1800にフィードバックする。モータのよ
うな機構部は、応答速度に一定の遅れがあるため、該セ
ンサ1830の出力は相データPDからは遅れており、
同期していない。該デジタル制御手段1800の出力、
例えば、相データPDと該センサ1830の出力の同期
をとるためには、該デジタル制御手段1800内で相デ
ータPDを遅延させる必要がある。このようなデジタル
信号の遅延回路としては、例えば特開平7−25484
9がある。
2. Description of the Related Art In a digital signal processing system,
When the mechanical section is controlled by digital signal output and the response from the mechanical section becomes the input of the system, a certain delay is added to the response of the mechanical section. For example, it is a case of controlling a motor with a digital circuit. FIG. 18 is a block diagram of a system that controls the rotation of a motor by digital control. The phase data PD for motor control is input from the digital control means 1800 to the motor driver 1810, and the motor driver 181
0 drives the motor 1820. At this time, the rotation angle of the motor is detected by the sensor 1830 and its output is fed back to the digital control means 1800. Since the response speed of the mechanical portion such as the motor has a certain delay, the output of the sensor 1830 is delayed from the phase data PD.
Not in sync. The output of the digital control means 1800,
For example, in order to synchronize the phase data PD with the output of the sensor 1830, it is necessary to delay the phase data PD in the digital control unit 1800. As such a digital signal delay circuit, for example, Japanese Patent Application Laid-Open No. 7-25484.
There is 9.

【0003】図2は、従来技術であるデジタル遅延回路
のブロック図の一例である。この例では、デジタル信号
の立ち上がり立ち下がりエッジを検出する、立ち上がり
立ち下がり検出ブロック10により、信号TSのエッジ
が検出されると、その時の時間コードが、時間コード生
成ブロック20により与えられる。この時間コードは、
該エッジが立上りの場合はレジスタブロック30に、該
エッジが立ち下がりの場合はレジスタブロック40に記
憶される。時間コード生成ブロック20には、遅延量が
入力信号DLで与えられる。この時間コード生成ブロッ
ク20では、常に生成された時間コードと設定されたD
Lの値を比較し、一致した場合に時間コードを“1”に
再設定する構成である。時間コードを設定されたレジス
タブロック30もしくはレジスタブロック40の設定
値、つまり出力は、一致判定ブロック50もしくは60
において、時間コード生成ブロック20の出力と比較さ
れる。そして、時間コード生成ブロック20の出力が一
周してレジスタブロック30若しくは40の設定値と一
致した場合、一致判定ブロック50もしくは60からレ
ジスタブロック30もしくは40に対して初期化の信号
が与えられ、さらにJKフリップフロップ70に対し
て、セット若しくはリセット信号が与えられ、遅延され
たデジタル信号が再生される。
FIG. 2 is an example of a block diagram of a conventional digital delay circuit. In this example, when the rising / falling detection block 10 which detects the rising / falling edge of the digital signal detects the edge of the signal TS, the time code at that time is given by the time code generation block 20. This time code is
If the edge is a rising edge, it is stored in the register block 30, and if the edge is a falling edge, it is stored in the register block 40. The time code generation block 20 is provided with a delay amount by the input signal DL. In this time code generation block 20, the generated time code and the set D
In this configuration, the values of L are compared, and if they match, the time code is reset to "1". The set value of the register block 30 or the register block 40 in which the time code is set, that is, the output is the match determination block 50 or 60.
At, the output is compared with the output of the time code generation block 20. Then, when the output of the time code generation block 20 makes one round and coincides with the set value of the register block 30 or 40, the coincidence determination block 50 or 60 gives an initialization signal to the register block 30 or 40, and A set or reset signal is given to the JK flip-flop 70, and the delayed digital signal is reproduced.

【0004】[0004]

【発明が解決しようとする課題】しかし、特開平7−2
54849の回路では、入力されるデジタル信号の立ち
上がりエッジと立ち下がりエッジに対して、全く同じ機
能であるレジスタブロック及び一致判定ブロックを複数
持つことになる。つまり全く同等のブロックを、エッジ
の方向の違いに対応して複数持っているのである。これ
は、デジタル信号の遅延回路をより複雑に、大規模にす
る事につながる。また、多くの構成要素間(各ブロック
間)において、信号の関係が非同期になっている。その
ために、回路規模が大きくなると、構成要素間のスキュ
ーにより誤動作をおこす可能性がある。更に、この回路
をIC化する場合、スキューの制御が複雑になるという
欠点がある。
However, JP-A-7-2
The circuit of 54849 has a plurality of register blocks and match determination blocks that have exactly the same functions for the rising edge and the falling edge of the input digital signal. In other words, it has a plurality of identical blocks corresponding to the difference in the edge direction. This leads to more complicated and large-scale digital signal delay circuits. In addition, the relationship of signals is asynchronous among many components (between blocks). Therefore, if the circuit scale becomes large, there is a possibility that a malfunction will occur due to the skew between the constituent elements. Furthermore, when this circuit is integrated into an IC, there is a drawback that skew control becomes complicated.

【0005】本発明は、このような課題を解決するため
に成されたものであり、デジタル信号の立ち上がりエッ
ジ立ち下がりエッジと無関係に、最小限のブロックによ
ってデジタル信号の遅延をさせることを可能とする。さ
らに、同期式で制御することにより、構成要素間のスキ
ューの制御を簡単にすることを目的とする。
The present invention has been made to solve such a problem, and it is possible to delay a digital signal with a minimum number of blocks regardless of the rising edge and the falling edge of the digital signal. To do. Furthermore, it is an object of the present invention to simplify the control of the skew between the constituent elements by controlling in a synchronous manner.

【0006】[0006]

【課題を解決するための手段】上記課題を解決するため
に、以下の発明を提供する。本発明のデジタル遅延回路
の1つの態様は、デジタル信号を遅延するデジタル遅延
回路において、デジタル信号の立ち上がりもしくは立ち
下りエッジを検出するエッジ検出手段と、少なくとも1
ビットのフリーランカウンタであるクロックカウント手
段と、エッジ検出手段がエッジを検出した時の該クロッ
クカウント手段のクロックカウント数を記憶するクロッ
クカウント数記憶手段と、デジタル信号の遅延量を設定
する遅延量設定手段と、遅延量設定手段に設定された遅
延量とクロックカウント記憶手段に記憶されたクロック
カウント数との和を求めるカウント数計測手段と、カウ
ント数計測手段とクロックカウント手段とのクロックカ
ウント数が一致したことを検出する遅延量検出手段と、
遅延量検出手段からの一致情報に基づいて遅延されたデ
ジタル信号を再生するデジタル信号再生手段と、を備え
たことを特徴とする。本発明のデジタル遅延回路の別の
態様は、更に、デジタル信号のエッジ方向を記憶するエ
ッジ方向記憶手段を有し、遅延量検出手段からの一致情
報に基づいて、エッジ方向記憶手段に記憶されたエッジ
方向の有効無効情報をクリアすることを特徴とする。本
発明のデジタル遅延回路の別の態様は、エッジ検出手段
は、デジタル信号の複数の立ち上がりもしくは立ち下り
エッジを検出し、クロックカウント数記憶手段は、複数
のエッジを検出した時のクロックカウント手段の複数の
クロックカウント数を記憶し、複数のクロックカウント
数をクロックカウント数記憶手段の特定の記憶レジスタ
に記憶する記憶手段制御ブロックを有することを特徴と
する。この態様により、デジタル信号の複数の立ち上が
り立ち下がりエッジを遅延させることが可能となる。
In order to solve the above problems, the following inventions are provided. One aspect of the digital delay circuit of the present invention is, in a digital delay circuit for delaying a digital signal, edge detection means for detecting a rising edge or a falling edge of the digital signal, and at least 1.
A clock counting means which is a bit free-run counter, a clock count number storing means which stores a clock count number of the clock counting means when the edge detecting means detects an edge, and a delay amount which sets a delay amount of a digital signal. Setting means, count number measuring means for obtaining the sum of the delay amount set in the delay amount setting means and the clock count number stored in the clock count storage means, and clock count numbers of the count number measuring means and the clock count means Delay amount detecting means for detecting that the two match,
Digital signal reproducing means for reproducing the delayed digital signal based on the coincidence information from the delay amount detecting means. Another aspect of the digital delay circuit of the present invention further has edge direction storage means for storing the edge direction of the digital signal, and the edge direction storage means stores the edge direction storage means based on the coincidence information from the delay amount detection means. It is characterized by clearing the valid / invalid information in the edge direction. According to another aspect of the digital delay circuit of the present invention, the edge detecting means detects a plurality of rising or falling edges of the digital signal, and the clock count number storing means of the clock counting means detects a plurality of edges. The present invention is characterized by including a storage unit control block that stores a plurality of clock count numbers and stores the plurality of clock count numbers in a specific storage register of the clock count number storage unit. According to this aspect, it is possible to delay the rising and falling edges of the digital signal.

【0007】[0007]

【発明の実施の形態】図1は、本発明の第一の実施例に
係るデジタル遅延回路のブロック図である。本遅延回路
は、入力信号DS1の立ち上がりエッジ及び立ち下がり
エッジを検出する、立ち上がり立ち下がり検出手段(エ
ッジ検出手段)100を設ける。立ち上がり立ち下がり
検出手段100で入力信号DS1のエッジが検出された
時、そのエッジが立ち上りなのか立ち下がりなのかを、
エッジ方向記憶手段200に記憶すると共に、エッジが
検出されたときのクロックカウント手段400の出力で
あるクロックのカウント数を、クロックカウント数記憶
手段300に記憶しておく。カウント数計測手段500
及び遅延量検出手段700により、遅延量設定手段60
0に予め設定された遅延量に相当する時間が経過した事
を検出して、デジタル信号再生手段800によりエッジ
の立ち上がりないしは立ち下がりを再生して、デジタル
入力信号の遅延信号を得ることで、信号の遅延量が信号
の変化サイクルより大きくする。
1 is a block diagram of a digital delay circuit according to a first embodiment of the present invention. The delay circuit is provided with a rising / falling detecting means (edge detecting means) 100 for detecting a rising edge and a falling edge of the input signal DS1. When an edge of the input signal DS1 is detected by the rising / falling detection means 100, whether the edge is a rising edge or a falling edge is determined.
In addition to being stored in the edge direction storage means 200, the clock count number output from the clock count means 400 when an edge is detected is stored in the clock count number storage means 300. Count number measuring means 500
And the delay amount detecting means 700, the delay amount setting means 60
By detecting that the time corresponding to the delay amount preset to 0 has elapsed, the rising edge or the falling edge of the edge is reproduced by the digital signal reproducing means 800, and the delay signal of the digital input signal is obtained. The delay amount is set to be larger than the signal change cycle.

【0008】本デジタル遅延回路は、遅延させる入力信
号DS1を入力する端子siと、遅延量を設定するため
の遅延データDTを設定する端子datと、遅延データ
DTを書き込むための書き込み制御信号WRを入力する
端子wriと、クロックCLKを入力する端子clk
と、デジタル遅延回路全体を初期化するためのRST信
号を入力する端子rstとを、有している。入力端子s
iは、立ち上がり立ち下がり検出手段100に接続さ
れ、入力端子clkおよびrstは、立ち上がり立ち下
がり検出手段100およびエッジ方向記憶手段200、
クロックカウント数記憶手段300、およびデジタル信
号再生手段800に接続される。また、入力端子da
t、入力端子wriおよび入力端子rstは、遅延量設
定手段600に接続される。立ち上がり立ち下がり検出
手段100は、クロックCLKに同期して、デジタル入
力信号DS1の立ち上がりもしくは立ち下がりを検出
し、立ち上がりであれば立ち上がり検出信号REを、立
ち下がりであれば立ち下がり検出信号FEを出力する。
クロックカウント手段400は、少なくとも1ビット以
上のビット構成であり、クロックCLKに同期してカウ
ントを行う。構成ビットが全てセットされた状態すなわ
ち最大値をカウントした後は、自動的にカウント0に戻
る。該REもしくはFEが出力されると、エッジ方向記
憶手段200に、立ち上がりの場合すなわちREであれ
ば例えば“1”が記憶され、立ち下がりの場合すなわち
FEであれば“0”が記憶される。また、エッジ方向記
憶手段200には、後述する記憶したエッジ方向が有効
かどうかを表す部位も含んでいる。立ち上がり立ち下が
り検出手段100からREもしくはFEが出力される
と、その時のクロックカウント手段400が示すカウン
ト値が、クロックカウント数記憶手段300にクロック
数として記憶される。遅延量設定手段600には、遅延
データDTが、書き込み制御信号WRによって、遅延量
として設定される。遅延量設定手段600に設定された
遅延量は、カウント数計測手段500に送られる。
The digital delay circuit has a terminal si for inputting a delayed input signal DS1, a terminal dat for setting delay data DT for setting a delay amount, and a write control signal WR for writing the delay data DT. Terminal wri for inputting and terminal clk for inputting clock CLK
And a terminal rst for inputting the RST signal for initializing the entire digital delay circuit. Input terminal s
i is connected to the rise / fall detection means 100, and the input terminals clk and rst are connected to the rise / fall detection means 100 and the edge direction storage means 200,
It is connected to the clock count number storage means 300 and the digital signal reproduction means 800. Also, the input terminal da
The t, the input terminal wri, and the input terminal rst are connected to the delay amount setting means 600. The rising / falling detection means 100 detects the rising or falling of the digital input signal DS1 in synchronization with the clock CLK, and outputs the rising detection signal RE if it is rising and outputs the falling detection signal FE if it is falling. To do.
The clock counting means 400 has a bit configuration of at least 1 bit or more and counts in synchronization with the clock CLK. After all the constituent bits are set, that is, after counting the maximum value, the count is automatically returned to 0. When the RE or FE is output, the edge direction storage means 200 stores, for example, "1" in the case of rising, that is, RE, and "0" in the case of falling, that is, FE. Further, the edge direction storage means 200 also includes a portion indicating whether the stored edge direction described later is valid or not. When RE or FE is output from the rise / fall detection means 100, the count value indicated by the clock count means 400 at that time is stored in the clock count number storage means 300 as the number of clocks. The delay data DT is set in the delay amount setting means 600 as a delay amount by the write control signal WR. The delay amount set in the delay amount setting means 600 is sent to the count number measuring means 500.

【0009】一方、クロックカウント数記憶手段300
に記憶されたクロック数は、カウント計測手段500に
送られ遅延量と加算される。カウント計測手段500で
加算された結果は、クロックカウント手段400の出力
と共に、遅延量検出手段700に入力され、両者が一致
するかどうかの検出が行われる。遅延量検出手段700
では、一致が検出されると、この情報はエッジ方向記憶
手段200に入力され、記憶したエッジ方向の有効無効
を表す部位をクリアする。さらに、該情報は、デジタル
信号再生手段800にも入力され、デジタル信号を再生
する。
On the other hand, the clock count storage means 300
The number of clocks stored in is sent to the count measuring means 500 and added to the delay amount. The result of addition by the count measuring means 500 is input to the delay amount detecting means 700 together with the output of the clock counting means 400, and it is detected whether or not they match. Delay amount detecting means 700
Then, when a match is detected, this information is input to the edge direction storage means 200, and the stored part indicating the valid / invalid of the edge direction is cleared. Further, the information is also input to the digital signal reproducing means 800 to reproduce the digital signal.

【0010】図3は、立ち上がり立ち下がり検出手段1
00の一構成例を示す。立ち上がり立ち下がり検出手段
100は、Dタイプフリップフロップ(以下D−FFと
言う)101、およびD−FF102と、2入力AND
ゲート103および2入力NORゲート104からな
る。一般的にD−FFは一つで良いが、本実施例では、
クロックCLKに対して非同期なデジタル入力信号DS
1であっても、確実に立ち上がりないしは立ち下がりが
検出できるように、D−FFを2段に構成している。デ
ジタル入力信号DS1は、D−FF101によりクロッ
クCLKに完全同期化され、信号105として出力され
る。同期化された信号105は、次のクロックCLKに
よりD−FF102に取込まれる。D−FF102によ
り1サイクル遅延された信号105は論理が反転され、
信号106として出力される。ANDゲート103およ
びNORゲート104には、信号105および信号10
6が入力される。ANDゲート103では、デジタル入
力DS1の立ち上がりのときに、高レベルになる立ち上
がり検出信号REが生成される。一方NORゲート10
4では、デジタル入力信号DS1が立ち下がりのとき
に、高レベルとなる立ち下がり検出信号FEが生成され
る。
FIG. 3 shows the rise / fall detection means 1
00 shows one configuration example. The rising / falling detecting means 100 includes a D-type flip-flop (hereinafter referred to as D-FF) 101, a D-FF 102, and a 2-input AND.
It consists of a gate 103 and a 2-input NOR gate 104. Generally, one D-FF is enough, but in this embodiment,
Digital input signal DS asynchronous to clock CLK
Even if it is 1, the D-FF is configured in two stages so that rising or falling can be surely detected. The digital input signal DS1 is completely synchronized with the clock CLK by the D-FF 101 and output as the signal 105. The synchronized signal 105 is taken into the D-FF 102 by the next clock CLK. The logic of the signal 105 delayed by one cycle by the D-FF 102 is inverted,
It is output as the signal 106. AND gate 103 and NOR gate 104 have signals 105 and 10
6 is input. The AND gate 103 generates a rising edge detection signal RE that becomes high level when the digital input DS1 rises. On the other hand, NOR gate 10
In No. 4, when the digital input signal DS1 falls, the fall detection signal FE which becomes high level is generated.

【0011】図4は、クロックカウント手段400の一
構成例を示す。クロックカウンタ401は、初期化信号
RSTで“0”に初期化され、初期化信号RSTが
“1”の間は常にカウントをし続ける。全てのビットが
“1”にセットされた場合、つまり、(Q0,Q1,Q
2,・・・,Qn)=(1,1,1,・・・,1)になっ
た場合、次のカウントは、(Q0,Q1,Q2,・・
・,Qn)=(0,0,0,・・・,0)となるようない
わゆるフリーラン動作をするカウンタである。そのため
カウンタ401のビット数は、遅延データDTより大き
くする必要はなく、同じビット数にする事ができる。カ
ウント値は、Dckout402として出力される。
FIG. 4 shows an example of the configuration of the clock counting means 400. The clock counter 401 is initialized to “0” by the initialization signal RST, and keeps counting while the initialization signal RST is “1”. When all bits are set to “1”, that is, (Q0, Q1, Q
2, ..., Qn) = (1,1,1, ..., 1), the next count is (Q0, Q1, Q2, ...
., Qn) = (0,0,0, ..., 0). Therefore, the number of bits of the counter 401 does not need to be larger than the delay data DT, and the same number of bits can be used. The count value is output as Dckout 402.

【0012】図5(a)は、エッジ方向記憶手段200
およびクロックカウント数記憶手段300の一構成例を
示す。本実施例では、エッジ方向記憶手段200とクロ
ックカウント数記憶手段300を一つの記憶ブロックに
まとめているが、図1と同様に別々の記憶ブロックに構
成しても良い。この2つの記憶手段は、取込み許可入力
ENが高レベルにあるときだけ入力を取込むn+2ビッ
トのD−FF301(以下、記憶レジスタ301)から構
成されている。Dn+2ビット目は、記憶したエッジ方
向が有効かどうかを表し、例えば“1”の場合は有効を
表し、“0”の場合は無効を表す。この逆でもかまわな
い。また、Dn+1目は、記憶したエッジ方向を表し、
“1”であれば立ち上がり、“0”であれば立ち下がり
をあらわす。この逆でもかまわない。D0〜Dnまで
は、立ち上がり検出信号REもしくは立ち下がり検出信
号FEが入力されたときの、クロックカウント手段40
0のカウント数を記憶する。本実施例では、立ち上がり
検出信号REおよび立ち下がり検出信号FEは、2入力
ORゲート302の入力に接続され、2入力ORゲート
302の出力は記憶レジスタ301の取込み許可入力E
N、および、記憶レジスタ301のビットDn+2に接
続されて、エッジ方向の有効無効をセットする。一方、
立ち上がり検出信号REは、記憶レジスタ301のDn
+1ビット目に接続され、エッジ方向を記憶する。これ
らの信号の取り込みは、全てクロックCLKに同期して
行われる構成である。また、遅延量検出手段700が出
力する一致検出信号は、インバータ303に入力され、
その出力は、初期化信号CLRと共に2入力ANDゲー
ト304に入力される。2入力ANDゲート304の出
力は、記憶レジスタ301のRST端子に接続されて、
一致が検出されたときに記憶レジスタ301を初期化す
るよう構成されている。エッジ方向記憶手段200とク
ロックカウント数記憶手段300が別々の記憶レジスタ
で構成されている場合は、記憶レジスタは、上述のよう
に必ずしも一致信号によって初期化する必要はない。
FIG. 5A shows an edge direction storage means 200.
A configuration example of the clock count number storage means 300 is shown. In this embodiment, the edge direction storage means 200 and the clock count number storage means 300 are integrated into one storage block, but they may be configured as separate storage blocks as in FIG. These two storage means are composed of an n + 2 bit D-FF 301 (hereinafter, storage register 301) which takes in an input only when the take-in permission input EN is at a high level. The Dn + 2nd bit indicates whether or not the stored edge direction is valid. For example, "1" indicates valid, and "0" indicates invalid. The reverse is also acceptable. Dn + 1 represents the stored edge direction,
If it is "1", it means rising, and if it is "0", it means falling. The reverse is also acceptable. From D0 to Dn, the clock counting means 40 when the rising detection signal RE or the falling detection signal FE is input
The count number of 0 is stored. In the present embodiment, the rising edge detection signal RE and the falling edge detection signal FE are connected to the input of the 2-input OR gate 302, and the output of the 2-input OR gate 302 is the acquisition permission input E of the storage register 301.
It is connected to N and bit Dn + 2 of the storage register 301 to set valid / invalid in the edge direction. on the other hand,
The rising edge detection signal RE is Dn of the storage register 301.
It is connected to the + 1st bit and stores the edge direction. All of these signals are taken in in synchronization with the clock CLK. Further, the coincidence detection signal output by the delay amount detecting means 700 is input to the inverter 303,
The output is input to the 2-input AND gate 304 together with the initialization signal CLR. The output of the 2-input AND gate 304 is connected to the RST terminal of the storage register 301,
It is configured to initialize the storage register 301 when a match is detected. When the edge direction storage means 200 and the clock count number storage means 300 are composed of separate storage registers, the storage registers do not necessarily have to be initialized by the coincidence signal as described above.

【0013】図5(b)は、記憶レジスタ301内に記
憶された情報を示す図である。0ビットからnビットま
ではクロックのカウント数を記憶し、n+1ビットには
エッジの方向を、そしてn+2ビットには記憶している
エッジの方向が有効か無効かを記憶する。
FIG. 5B is a diagram showing the information stored in the storage register 301. The count number of the clock is stored from 0 bit to n bit, the edge direction is stored in n + 1 bit, and the stored edge direction is stored in n + 2 bit whether it is valid or invalid.

【0014】図6は、遅延量設定手段600の一構成例
を表す。遅延量設定手段600は、nビットの遅延デー
タが入力として接続され、D−FFのクロック入力とし
て書き込み制御信号WRが接続されている。この二つの
入力信号によって遅延データDLの書き込みが行われ
る。なお、本実施例では、nビットのD−FFを用いて
いるが、nビットのラッチを用いても良い。
FIG. 6 shows an example of the configuration of the delay amount setting means 600. The delay amount setting means 600 is connected with n-bit delay data as an input, and is connected with the write control signal WR as a clock input of the D-FF. The delay data DL is written by these two input signals. Although the n-bit D-FF is used in this embodiment, an n-bit latch may be used.

【0015】図7は、カウント数計測手段500の一構
成例を示す。カウント数計測手段500としては、本実
施例では加算回路を用いる。カウント数計測手段500
には、クロックカウント数記憶手段300の出力である
Dmout502及び遅延量設定手段600の出力であ
るDdelay503が入力として接続される。そし
て、Dmout502とDdelay503は加算さ
れ、その加算結果がDadd504として出力される。
FIG. 7 shows an example of the configuration of the count number measuring means 500. As the count number measuring means 500, an adder circuit is used in this embodiment. Count number measuring means 500
A Dmout 502 which is an output of the clock count number storage means 300 and a Ddelay 503 which is an output of the delay amount setting means 600 are connected as inputs to the. Then, Dmout 502 and Ddelay 503 are added, and the addition result is output as Dadd 504.

【0016】図8は、遅延量検出手段700およびデジ
タル信号再生手段800の一構成例を示す。一致検出器
701は、Dadd504とDckout402の一致
を検出し、一致した場合に“H”を出力する。この一致
検出時の出力である一致信号SM803は、一致検出制
御ブロック801に接続される。一致検出制御ブロック
801は、クロックCLKに同期して一致信号SM80
3を取込み、そのタイミングでエッジ方向記憶手段20
0に記憶されているエッジ方向を表すビットデータであ
るEDを取り込み出力としてクロックCLKに同期して
ED'として出力する。この時、同じタイミングで2t
o1セレクタ805に対してクロックCLKの1周期だ
け“H”になる信号であるSEL804を出力する。こ
の動作によってD−FF802は、ED'の値にセット
される。このタイミングを過ぎると、SEL804は
“L”になり、D−FF802は現在の出力であるDD
S1を保持する。
FIG. 8 shows a configuration example of the delay amount detecting means 700 and the digital signal reproducing means 800. The match detector 701 detects a match between the Dadd 504 and the Dckout 402, and outputs “H” when they match. The match signal SM803, which is the output at the time of this match detection, is connected to the match detection control block 801. The match detection control block 801 synchronizes with the clock CLK and outputs the match signal SM80.
3 is taken in, and at that timing, the edge direction storage means 20
ED, which is bit data representing the edge direction stored in 0, is fetched and output as ED ′ in synchronization with the clock CLK. At this time, 2t at the same timing
The SEL 804 which is a signal which becomes “H” for one cycle of the clock CLK is output to the o1 selector 805. By this operation, the D-FF 802 is set to the value of ED '. After this timing, the SEL 804 becomes "L" and the D-FF 802 outputs the current output DD.
Hold S1.

【0017】図9は、一致検出制御ブロック801の状
態遷移図である。通常アイドル状態idleにある一致
検出制御ブロック801は、一致信号SM803が
“H”になると、SELを“H”にして一致検出状態で
あるdetに遷移する。detに遷移した一致検出制御
ブロック801は、次のクロックタイミングでアイドル
状態idleに遷移する。この状態では、一致信号SM
803は既に“L”に戻っているため、再びdetに遷
移することはない。
FIG. 9 is a state transition diagram of the match detection control block 801. The match detection control block 801 in the normal idle state idle sets the SEL to "H" when the match signal SM803 becomes "H", and transits to the match detection state det. The match detection control block 801 that has transited to det transits to the idle state idle at the next clock timing. In this state, the match signal SM
Since 803 has already returned to "L", it does not transition to det again.

【0018】図10は、本発明の第二の実施例に係るデ
ジタル遅延回路のブロック図である。本実施例では、デ
ジタル入力信号DS1の2以上の立ち上がり立ち下がり
を検出する、立ち上がり立ち下がり検出手段100を有
する。検出された立ち上がり信号REもしくは立ち下が
り信号FEは、記憶手段制御ブロック900に接続され
る。クロックカウント手段400は、初期化信号RST
が“L”の期間、初期化信号RSTによって非同期で初
期化され、その後、クロック入力CLKに同期してカウ
ントを行う。このカウント出力はDckout402と
してエッジ方向/クロックカウント数記憶手段B220
およびカウント数計測手段B950に接続される。ま
た、遅延量設定手段600には、端子datを通して遅
延データDTが接続され、端子wriを通して遅延デー
タ書き込み制御信号であるWRが接続される。遅延デー
タDTの書き込みは、遅延データ書き込み制御信号WR
の立ち上がりエッジで行われる。なお、立ち下がりエッ
ジで書き込みをしても良い。記憶手段制御ブロック90
0からは、書き込みレジスタを選択するMselwと、
読み出しレジスタ選択信号DR及びENPが出力され、
エッジ方向/クロックカウント数記憶手段B220に接
続される。読み出しレジスタ選択信号DRは、カウント
数計測手段B950にも接続される。また遅延量設定手
段600に設定された遅延データは、Ddelay50
3としてカウント数計測手段B950に入力される。カ
ウント数計測手段B950からは、遅延されたDS1を
再生したデジタル信号であるDDS1が出力されるとと
もに、読み出しレジスタ選択信号DRを制御する信号R
D_buf951が出力され、記憶手段制御ブロック9
00に接続される。
FIG. 10 is a block diagram of a digital delay circuit according to the second embodiment of the present invention. In this embodiment, there is provided a rising / falling detecting means 100 for detecting two or more rising / falling edges of the digital input signal DS1. The detected rising signal RE or falling signal FE is connected to the storage means control block 900. The clock counting means 400 uses the initialization signal RST.
Is asynchronously initialized by the initialization signal RST during the period of "L", and then counts in synchronization with the clock input CLK. This count output is the edge direction / clock count number storage means B 220 as Dckout 402.
And a count number measuring means B950. Further, the delay amount setting means 600 is connected with the delay data DT through the terminal dat and is connected with the delay data write control signal WR through the terminal wri. The delay data DT is written by the delay data write control signal WR.
On the rising edge of. Note that writing may be performed at the falling edge. Storage means control block 90
From 0, Mselw to select the write register,
Read register selection signals DR and ENP are output,
It is connected to the edge direction / clock count number storage means B220. The read register selection signal DR is also connected to the count number measuring means B950. The delay data set in the delay amount setting means 600 is Ddelay50.
3 is input to the count number measuring means B950. The count number measuring means B950 outputs a digital signal DDS1 which is a reproduction of the delayed DS1 and outputs a signal R for controlling the read register selection signal DR.
D_buf 951 is output and the storage means control block 9
00 is connected.

【0019】なお、立ち上がり立ち下がり検出手段10
0、クロックカウント手段400、及び遅延量設定手段
600の内部構成は、それぞれ、図3、図4、及び図6
と同様である。
The rising / falling detecting means 10
0, the clock counting means 400, and the delay amount setting means 600 have internal configurations shown in FIGS. 3, 4, and 6, respectively.
Is the same as.

【0020】図11は、記憶手段制御ブロック900の
一構成例を示す。立ち上がり立ち下がり検出手段100
で検出された立ち上がり信号RE及び立ち下がり信号F
Eが、2入力ORゲート901に入力される。カウンタ
ブロック902は、2入力ORゲート901の出力EN
Pが“H”の時にカウントを行う2ビットカウンタであ
る。カウンタブロック902は、エッジ方向/クロック
カウント数記憶手段B220内の2以上ある記憶レジス
タのうち、書き込みを行うレジスタを特定するための制
御を司る。本実施例では、2ビットのカウンタとして説
明しているが、1ビットのカウンタでも構成可能である
し、3ビット以上のカウンタを使用しても良い。カウン
タブロック902の出力である書き込みレジスタ制御信
号DW0及びDW1は、デコードブロック903に入力
される。デコードブロック903では、入力されたDW
0及びDW1の組み合わせにより、書き込みレジスタ選
択信号Mselw0/Mselw1/Mselw2/M
selw3のうちの任意の1ビットのみが“H”に設定
され、残りのビットは“L”に設定される。なお、この
デコード方法を逆にして、任意の1ビットのみを“L”
にして、残りのビットを“H”にするようにしても良
い。
FIG. 11 shows an example of the configuration of the storage means control block 900. Rise / fall detection means 100
Rising signal RE and falling signal F detected in
E is input to the 2-input OR gate 901. The counter block 902 outputs the output EN of the 2-input OR gate 901.
It is a 2-bit counter that counts when P is "H". The counter block 902 controls the edge direction / clock count number storage unit B220 to specify a register to be written among two or more storage registers. In this embodiment, a 2-bit counter has been described, but a 1-bit counter can be used and a 3-bit or more counter may be used. The write register control signals DW0 and DW1 output from the counter block 902 are input to the decode block 903. In the decoding block 903, the input DW
The write register selection signal Mselw0 / Mselw1 / Mselw2 / M depends on the combination of 0 and DW1.
Only one arbitrary bit of selw3 is set to "H", and the remaining bits are set to "L". Note that this decoding method is reversed and only one arbitrary bit is "L".
Alternatively, the remaining bits may be set to "H".

【0021】一方、カウンタブロック904は、エッジ
方向/クロックカウント数記憶手段B220内の2以上
ある記憶レジスタのうち、読み込みを行うレジスタを特
定するための制御を司る。カウンタブロック904は、
RD_buf951が“H”のときにカウント動作を行
い、読み出しレジスタ制御信号DR0及びDR1を出力
する、2ビットのカウンタである。なお、本カウンタ
は、1ビットのカウンタでも良いし、3ビット以上のカ
ウンタであっても良いが、ビット数はカウンタブロック
902と合わせる必要がある。カウンタブロック904
の出力DR0及びDR1は、デコードブロック905に
入力される。デコードブロック905では、入力された
DR0及びDR1の組み合わせにより、読み出しレジス
タ選択信号Mselr0/Mselr1/Mselr2
/Mselr3のうちの任意の1ビットのみが“H”に
設定され、残りのビットは“L”に設定される。なお、
このデコード方法を逆にして、任意の1ビットのみを
“L”にして、残りのビットを“H”にするようにして
も良い。
On the other hand, the counter block 904 controls the edge direction / clock count number storage means B220 to identify a register to be read from among two or more storage registers. The counter block 904 is
This is a 2-bit counter that performs a count operation and outputs read register control signals DR0 and DR1 when RD_buf 951 is “H”. This counter may be a 1-bit counter or a 3-bit or more counter, but the number of bits needs to match that of the counter block 902. Counter block 904
The outputs DR0 and DR1 of are input to the decode block 905. In the decoding block 905, the read register selection signal Mselr0 / Mselr1 / Mselr2 is set according to the combination of the input DR0 and DR1.
Only one arbitrary bit of / Mselr3 is set to "H", and the remaining bits are set to "L". In addition,
This decoding method may be reversed to set only one arbitrary bit to "L" and the remaining bits to "H".

【0022】図12は、エッジ方向/クロックカウント
数記憶手段B220の一構成例を示す。セレクタ222
−0には、書き込みレジスタ選択信号Mselw0及
び、デジタル入力信号DS1の立ち上がり立ち下がりを
表すENP、クロックカウント手段400の出力Dck
out402が入力される。本実施例では、記憶手段制
御ブロック900中のカウンタブロック902として2
ビットのカウンタを用いているので、立ち上がり信号R
Eもしくは立ち下がり信号FEが発生したときのクロッ
クカウント手段400の出力を記憶するレジスタは、記
憶レジスタ223−0から記憶レジスタ223−3まで
の4つとなる。これら記憶レジスタの構成は、図5
(a)及び図5(b)と同一である。Mselw0〜M
selw3の信号により、記憶レジスタ223−0〜2
23−3のうちの一つが選択され、クロックカウント手
段400の出力Dckout402が、選択された記憶
レジスタに記憶される。記憶レジスタ223−0〜22
3−3の出力は221−0から221−3としてカウン
ト数計測手段B950に接続される。また、一致検出信
号SMと読み出しレジスタ選択信号Mselr0〜Ms
elr3が2入力AND224−0〜224−3に入力
され、2入力ANDの出力が“H”となった場合に、記
憶レジスタ223−0〜223−4内の有効/無効を表
すビットであるVAL505(図5参照)のみを“L”
にリセットする。
FIG. 12 shows a configuration example of the edge direction / clock count number storage means B220. Selector 222
At −0, the write register selection signal Mselw0, ENP indicating the rising and falling of the digital input signal DS1, and the output Dck of the clock counting means 400.
out 402 is input. In this embodiment, 2 is used as the counter block 902 in the storage unit control block 900.
Since a bit counter is used, the rising signal R
There are four registers from the storage register 223-0 to the storage register 223-3 for storing the output of the clock counting means 400 when the E or the falling signal FE is generated. The configuration of these storage registers is shown in FIG.
It is the same as FIG. 5A and FIG. Mselw0-M
By the signal of selw3, the storage registers 223-0-2
One of 23-3 is selected and the output Dckout 402 of the clock counting means 400 is stored in the selected storage register. Storage register 223-0-22
The outputs of 3-3 are connected to the count number measuring means B950 as 221-0 to 221-3. Further, the match detection signal SM and the read register selection signals Mselr0 to Ms
When elr3 is input to the 2-input ANDs 224-0 to 224-3 and the output of the 2-input AND becomes "H", VAL505 which is a bit indicating valid / invalid in the storage registers 223-0 to 223-4. Only "L" (see Figure 5)
Reset to.

【0023】図13は、カウント数計測手段B950の
一構成例を示す。記憶レジスタ223−0〜223−3
の出力221−0〜221−3は、4入力1出力のセレ
クタ880に接続される。この4入力からの選択を決定
するのは、DR0及びDR1の組み合わせである。選択
されたDmout502は、加算器501により遅延量
設定手段600の出力Ddelay503と加算され、
Dadd504として一致検出ブロック701に接続さ
れる。一致検出ブロック701では、Dadd504と
Dckout402の比較が行われ、一致した場合は、
一致信号SMが“H”として出力される。一致信号SM
は、一致検出制御ブロック881に接続される。一致信
号SMが“H”として入力された一致検出制御ブロック
881は、次のクロックCLKに同期して1クロックサ
イクルの期間中SEL804を“H”にし、同時に、エ
ッジ方向を示す記憶レジスタのn+1番目のビットED
をED'としてセレクタ803に出力する。D−FF8
02は、SEL804が“H”の期間にED'を取込
み、SEL804が“L”の期間はその取込んだ値を保
持する。同時に、一致検出制御ブロック881は、カウ
ンタブロック904をカウントするための許可信号RD
_buf951を、クロックCLKの1クロックサイク
ル期間中“H”にする。
FIG. 13 shows an example of the structure of the count number measuring means B950. Storage register 223-0 to 223-3
Outputs 221-0 to 221-3 are connected to a 4-input 1-output selector 880. It is the combination of DR0 and DR1 that determines the selection from these four inputs. The selected Dmout 502 is added to the output Ddelay 503 of the delay amount setting means 600 by the adder 501,
It is connected to the match detection block 701 as Dadd 504. In the match detection block 701, Dadd 504 and Dckout 402 are compared, and if they match,
The coincidence signal SM is output as "H". Match signal SM
Is connected to the match detection control block 881. The match detection control block 881 to which the match signal SM is input as "H" sets the SEL 804 to "H" during one clock cycle in synchronization with the next clock CLK, and at the same time, the (n + 1) th storage register indicating the edge direction. Bit ED
Is output as ED ′ to the selector 803. D-FF8
02 captures ED ′ while the SEL 804 is “H” and holds the captured value while the SEL 804 is “L”. At the same time, the match detection control block 881 causes the enable signal RD for counting the counter block 904.
_Buf951 is set to "H" during one clock cycle of the clock CLK.

【0024】図14及び図15は、それぞれカウンタブ
ロック902、カウンタブロック904の状態遷移図で
ある。カウンタブロック902は、RE|FE=Hのと
きに次の状態へ遷移し、カウンタブロック904はRD
_buf=Hのときに次へ遷移する。これらカウンタブ
ロックはお互いの影響を受けずに状態遷移を行い、記憶
レジスタ223−0〜223−3への書き込み及び読み
出しも別経路で行われるため、書き込みと読み出しは独
立して行うことができる。従って、本実施例の場合、デ
ジタル信号DS1の立ち上がり及び立ち下がりが4回ま
での遅延時間を、遅延量設定手段600に設定すること
が可能である。
14 and 15 are state transition diagrams of the counter block 902 and the counter block 904, respectively. The counter block 902 makes a transition to the next state when RE | FE = H, and the counter block 904 makes the RD
When _buf = H, the next transition is made. These counter blocks perform state transitions without being influenced by each other, and writing to and reading from the storage registers 223-0 to 223-3 are also performed by different paths, so that writing and reading can be performed independently. Therefore, in the case of the present embodiment, it is possible to set the delay time for the rising and falling of the digital signal DS1 up to four times in the delay amount setting means 600.

【0025】図16は、前記第一の実施例に係るタイム
チャート図である。時間t1において入力されたデジタ
ル入力DS1は、クロックカウント手段400の出力D
ckoutがaの時に立ち上がり検出信号REが生成さ
れる。この時のDckoutであるaが、クロックカウ
ント数記憶手段300に取込まれる。エッジ方向記憶手
段200のEDには、REが接続されているために、
“H”が設定される。遅延量設定手段600に遅延量b
が設定されている場合、カウント数計測手段500によ
りa+bの加算が行われて、Dckoutと比較され
る。時間txが経過したときに、クロックCLKのクロ
ック数がb回入力され、一致が検出される。この時、一
致信号SMが出力されて、DDS1として再生される。
FIG. 16 is a time chart diagram according to the first embodiment. The digital input DS1 input at time t1 is the output D of the clock counting means 400.
The rising edge detection signal RE is generated when ckout is a. The Dckout at this time, a, is taken into the clock count number storage means 300. Since ED of the edge direction storage means 200 is connected to RE,
"H" is set. The delay amount b is set in the delay amount setting means 600.
If is set, the count number measuring means 500 adds a + b and compares it with Dckout. When the time tx has elapsed, the number of clocks of the clock CLK is input b times, and a match is detected. At this time, the coincidence signal SM is output and reproduced as DDS1.

【0026】図17は、前記第二の実施例に係るタイム
チャート図である。基本的な動作は、図16のタイムチ
ャートと同じである。カウンタブロック902のDWで
書き込みをする記憶レジスタと、カウンタブロック90
4のDRで読み出す記憶レジスタとを指定する。遅延量
xは、デジタル入力信号DS1の立ち上がり立ち下がり
の数が記憶レジスタの数以内に収まる範囲yまで、取る
ことが可能である。次に詳細を説明する。デジタル入力
信号DS1が入力されると、立ち上がり信号REが
“H”となり記憶手段制御ブロック900に入力され
る。この時、カウンタブロック902の(DW1,DW
0)は、(0,0)を示している。この時のクロックカ
ウント手段400の出力をaとすると、Dckout=
aとなり、この値が記憶レジスタ223−0に書き込ま
れる。同時に(DW1,DW0)は(0,1)となり記
憶レジスタ223−1に対する書き込み準備ができる。
遅延量設定手段600には遅延量としてbが設定されて
いるとする。また、(DR1,DR0)=(0,0)
で、記憶レジスタ223−0からの読み出しを指定して
いる。ここで、Dckout=Dmout+bとなった
時に、一致信号SMが出力され、この信号はカウント数
計測手段B950内部に取込まれる。なお、Dmout
=aである。一致信号SMを受けたカウント数制御手段
B950は、RD_bufをクロックCLKの1周期だ
け“H”にし、且つD−FF802をEDと同じ値にセ
ットする。その結果、デジタル信号DS1をbだけ遅延
させた信号DDS1が再生される。このようにデジタル
入力DS1のエッジが変化するたびに、REないしはF
Eとして信号が生成され、これに基づいて(DW1,D
W0)が変化し書き込む記憶レジスタを223−0〜2
23−3のなかから特定する。一方、一致信号SMが生
成されるとそのたびに(DR1,DR0)に基づき記憶
レジスタのビットn+1に記憶されているEDを再生す
ることで、遅延させた信号DDS1を再生する。
FIG. 17 is a time chart diagram according to the second embodiment. The basic operation is the same as the time chart of FIG. Storage register for writing with DW of counter block 902, and counter block 90
The storage register to be read is designated by DR of 4. The delay amount x can be set within a range y in which the number of rising and falling edges of the digital input signal DS1 falls within the number of storage registers. Next, details will be described. When the digital input signal DS1 is input, the rising signal RE becomes "H" and is input to the storage means control block 900. At this time, the counter block 902 (DW1, DW
0) indicates (0, 0). If the output of the clock counting means 400 at this time is a, then Dckout =
a, and this value is written in the storage register 223-0. At the same time, (DW1, DW0) becomes (0, 1), and preparation for writing to the storage register 223-1 is possible.
It is assumed that b is set as the delay amount in the delay amount setting means 600. Also, (DR1, DR0) = (0,0)
Then, the reading from the storage register 223-0 is designated. Here, when Dckout = Dmout + b, the coincidence signal SM is output, and this signal is taken into the count number measuring means B950. In addition, Dmout
= A. Upon receiving the coincidence signal SM, the count number control means B950 sets RD_buf to "H" for one cycle of the clock CLK, and sets the D-FF 802 to the same value as ED. As a result, the signal DDS1 obtained by delaying the digital signal DS1 by b is reproduced. In this way, every time the edge of the digital input DS1 changes, RE or F
A signal is generated as E, and (DW1, D
W0) changes and the storage register to be written is 223-0 to 223
It is specified from 23-3. On the other hand, each time the coincidence signal SM is generated, the delayed signal DDS1 is reproduced by reproducing the ED stored in the bit n + 1 of the storage register based on (DR1, DR0).

【0027】[0027]

【発明の効果】以上詳細に説明したように、エッジ方向
記憶手段、記憶手段制御ブロックを有することによっ
て、従来では信号の立ち上がり及び立ち下がりでそれぞ
れに持たなければならなかった記憶レジスタ、一致検出
手段を一つにまとめることができ、回路の規模及びコス
トを押さえることができる。 また、内部のブロックを
全てクロックに同期させて動作させることで、ブロック
間のスキューにたいして強くなり、設計が容易になる。
As described in detail above, by including the edge direction storage means and the storage means control block, the storage register and the coincidence detection means which have conventionally had to be provided respectively at the rising edge and the falling edge of the signal. Can be combined into one, and the scale and cost of the circuit can be suppressed. Further, by operating all the internal blocks in synchronization with the clock, the skew between the blocks becomes stronger and the design becomes easier.

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

【図1】本発明のデジタル遅延回路のブロック図の第一
の実施例を示す図である。
FIG. 1 is a diagram showing a first embodiment of a block diagram of a digital delay circuit of the present invention.

【図2】従来技術であるデジタル遅延回路のブロック図
の一例を示す図である。
FIG. 2 is a diagram showing an example of a block diagram of a conventional digital delay circuit.

【図3】本発明に係る立ち上がり立ち下り検出手段の構
成を示す図である。
FIG. 3 is a diagram showing a configuration of rising / falling detection means according to the present invention.

【図4】本発明に係るクロックカウント手段の構成を示
す図である。
FIG. 4 is a diagram showing a configuration of clock counting means according to the present invention.

【図5】(a)は、本発明に係るエッジ方向記憶手段お
よびクロックカウント数記憶手段の構成を示す図であ
る。(b)は、本発明に係る記憶レジスタ内に記憶され
た情報を示す図である。
FIG. 5A is a diagram showing a configuration of edge direction storage means and clock count number storage means according to the present invention. (B) is a figure showing the information memorized in the memory register concerning the present invention.

【図6】本発明に係る遅延量設定手段の構成を示す図で
ある。
FIG. 6 is a diagram showing a configuration of delay amount setting means according to the present invention.

【図7】本発明に係るカウント数計測手段の構成を示す
図である。
FIG. 7 is a diagram showing a configuration of a count number measuring means according to the present invention.

【図8】本発明に係る遅延量検出手段およびデジタル信
号再生手段の構成を示す図である。
FIG. 8 is a diagram showing a configuration of a delay amount detecting means and a digital signal reproducing means according to the present invention.

【図9】本発明に係る一致検出制御ブロックの状態遷移
図である。
FIG. 9 is a state transition diagram of a match detection control block according to the present invention.

【図10】本発明のデジタル遅延回路のブロック図の第
二の実施例を示す図である。
FIG. 10 is a diagram showing a second embodiment of the block diagram of the digital delay circuit of the present invention.

【図11】本発明に係る記憶手段制御ブロックの構成を
示す図である。
FIG. 11 is a diagram showing a configuration of a storage unit control block according to the present invention.

【図12】本発明に係るエッジ方向/クロックカウント
数記憶手段Bの構成を示す図である。
FIG. 12 is a diagram showing a configuration of an edge direction / clock count number storage means B according to the present invention.

【図13】本発明に係るカウント数計測手段Bの構成を
示す図である。
FIG. 13 is a diagram showing a configuration of a count number measuring means B according to the present invention.

【図14】本発明に係る記憶手段制御ブロック内の書き
込み制御用カウンタブロックの状態遷移図である。
FIG. 14 is a state transition diagram of a write control counter block in the memory control block according to the present invention.

【図15】本発明に係る記憶手段制御ブロック内の読み
出し制御用カウンタブロックの状態遷移図である。
FIG. 15 is a state transition diagram of a read control counter block in the storage control block according to the present invention.

【図16】本発明の第一の実施例に係るタイミングチャ
ート図である。
FIG. 16 is a timing chart diagram according to the first embodiment of the present invention.

【図17】本発明の第二の実施例に係るタイミングチャ
ート図である。
FIG. 17 is a timing chart diagram according to the second embodiment of the present invention.

【図18】デジタル制御による機構制御を示すブロック
図である。
FIG. 18 is a block diagram showing mechanism control by digital control.

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

100 立ち上がり立ち下がり検出手段 200 エッジ方向記憶手段 300 クロックカウント数記憶手段 400 クロックカウント手段 500 カウント数計測手段 600 遅延量設定手段 700 遅延量検出手段 800 デジタル信号再生手段 100 Rise / fall detection means 200 Edge direction storage means 300 clock count storage means 400 clock counting means 500 count number measuring means 600 delay amount setting means 700 delay amount detecting means 800 Digital signal reproducing means

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 デジタル信号を遅延するデジタル遅延回
路において、 前記デジタル信号の立ち上がりもしくは立ち下りエッジ
を検出するエッジ検出手段と、 少なくとも1ビットのフリーランカウンタであるクロッ
クカウント手段と、 前記エッジ検出手段がエッジを検出した時の該クロック
カウント手段のクロックカウント数を記憶するクロック
カウント数記憶手段と、 前記デジタル信号の遅延量を設定する遅延量設定手段
と、 該遅延量設定手段に設定された遅延量と前記クロックカ
ウント記憶手段に記憶されたクロックカウント数との和
を求めるカウント数計測手段と、 該カウント数計測手段と前記クロックカウント手段との
クロックカウント数が一致したことを検出する遅延量検
出手段と、 該遅延量検出手段からの一致情報に基づいて遅延された
デジタル信号を再生するデジタル信号再生手段と、 を備えたことを特徴とするデジタル遅延回路。
1. A digital delay circuit for delaying a digital signal, edge detecting means for detecting a rising or falling edge of the digital signal, a clock counting means which is a free-run counter of at least 1 bit, and the edge detecting means. Clock count number storage means for storing the clock count number of the clock count means when an edge is detected, a delay amount setting means for setting the delay amount of the digital signal, and a delay set in the delay amount setting means. Count number measuring means for obtaining the sum of the amount and the clock count number stored in the clock count storage means, and a delay amount detection for detecting that the clock count numbers of the count number measuring means and the clock count means match each other. Means and the delay information based on the coincidence information from the delay amount detecting means. Digital delay circuit comprising: the digital signal reproducing means for reproducing a digital signal, a.
【請求項2】 更に、前記デジタル信号のエッジ方向を
記憶するエッジ方向記憶手段を有し、 前記遅延量検出手段からの一致情報に基づいて、該エッ
ジ方向記憶手段に記憶されたエッジ方向の有効無効情報
をクリアすること、を特徴とする請求項1に記載のデジ
タル遅延回路。
2. The edge direction storage means for storing the edge direction of the digital signal is further provided, and the edge direction stored in the edge direction storage means is valid based on the coincidence information from the delay amount detection means. The digital delay circuit according to claim 1, wherein invalid information is cleared.
【請求項3】 前記エッジ検出手段は、前記デジタル信
号の複数の立ち上がりもしくは立ち下りエッジを検出
し、 前記クロックカウント数記憶手段は、該複数のエッジを
検出した時の前記クロックカウント手段の複数のクロッ
クカウント数を記憶し、 該複数のクロックカウント数を前記クロックカウント数
記憶手段の特定の記憶レジスタに記憶する記憶手段制御
ブロックを有する、 ことを特徴とする請求項1または2のいずれか1項に記
載のデジタル遅延回路。
3. The edge detection means detects a plurality of rising or falling edges of the digital signal, and the clock count number storage means detects a plurality of rising edges or falling edges of the digital signal. 3. A storage unit control block that stores a clock count number and stores the plurality of clock count numbers in a specific storage register of the clock count number storage unit. The digital delay circuit described in.
JP2002136250A 2002-05-10 2002-05-10 Digital delay circuit Withdrawn JP2003332896A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002136250A JP2003332896A (en) 2002-05-10 2002-05-10 Digital delay circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002136250A JP2003332896A (en) 2002-05-10 2002-05-10 Digital delay circuit

Publications (1)

Publication Number Publication Date
JP2003332896A true JP2003332896A (en) 2003-11-21

Family

ID=29698339

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002136250A Withdrawn JP2003332896A (en) 2002-05-10 2002-05-10 Digital delay circuit

Country Status (1)

Country Link
JP (1) JP2003332896A (en)

Similar Documents

Publication Publication Date Title
US6963220B2 (en) Methods and circuitry for implementing first-in first-out structure
JP2000099193A (en) Device and method for synchronization, and interface circuit
JP3433426B2 (en) Method and apparatus for decoding Manchester encoded data
NL1021115C2 (en) Data recovery circuit for image processing system, has oversampling unit to sample input serial data by specific number of times based on clock signals, to generate pattern signal for selecting bits in sample data
US6639437B2 (en) Method and apparatus for data sampling
JPH0775343B2 (en) Synchronization detection circuit and method
EP1946475B1 (en) Data interface and method of seeking synchronization
JP4336860B2 (en) Serial interface circuit and serial receiver
JPS5923647A (en) Method of converting serial data signal and converting circuit
JP2003332896A (en) Digital delay circuit
US20070290732A1 (en) Reset method for digital circuit and related signal generating apparatus
JP3760902B2 (en) Disc playback apparatus and disc playback method
JPH0590970A (en) Cmi encoder circuit
JP3345501B2 (en) Delay circuit
CN117971756A (en) Clock phase determining method and device, electronic equipment and storage medium
JP2004038457A (en) Semiconductor circuit device
KR0172459B1 (en) Method and device for reproducing clock signal
JP3471275B2 (en) Synchronization circuit
JP3516652B2 (en) Synchronization method and circuit of multi-bit signal
JPH10135838A (en) Cmi/nrz conversion circuit
US20020097754A1 (en) Elastic store circuit
JP2000260131A (en) Method and circuit for protecting detection of synchronizing signal
US5521598A (en) RLL/NRZ decoder programmable for single/dual bit output data streams
JPH07120952B2 (en) CMI decoding circuit
JPH02134939A (en) Input data synchronizing circuit

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050802