Synchronous mirror delay circuit and synchronous mirror delay operation method
阅读说明:本技术 同步镜延迟电路和同步镜延迟操作方法 (Synchronous mirror delay circuit and synchronous mirror delay operation method ) 是由 何文乔 于 2018-08-27 设计创作,主要内容包括:本发明提供了一种同步镜延迟电路。同步镜延迟电路包括延迟监视电路、向前延迟电路、第一位移电路、向后延迟电路、第二位移电路,以及时脉频率检验电路。时脉频率检验电路包含复数时脉频率检验单元。每一时脉频率检验单元会判断外部输入时脉信号的频率是否比振荡器输出的参考时脉信号的频率慢,以产生一判断结果。每一时脉频率检验单元会将判断结果传送给第一位移电路和第二位移电路。第一位移电路和第二位移电路会根据判断结果,决定是否先延迟外部输入时脉信号。(The invention provides a synchronous mirror delay circuit. The synchronous mirror delay circuit includes a delay monitor circuit, a forward delay circuit, a first shift circuit, a backward delay circuit, a second shift circuit, and a clock frequency check circuit. The clock frequency checking circuit includes a plurality of clock frequency checking units. Each clock frequency checking unit will determine whether the frequency of the external input clock signal is slower than the frequency of the reference clock signal output by the oscillator, so as to generate a determination result. Each clock frequency checking unit will transmit the judgment result to the first shift circuit and the second shift circuit. The first shift circuit and the second shift circuit determine whether to delay the external input clock signal according to the determination result.)
1. A synchronous mirror delay circuit, the circuit comprising:
a delay monitor circuit coupled to an input buffer;
a forward delay circuit;
a first shift circuit coupled to said delay monitor circuit and said forward delay circuit;
a backward delay circuit;
a second shift circuit coupled to the backward delay circuit and a clock driver; and
a clock frequency checking circuit coupled to the first shift circuit and the second shift circuit,
wherein the clock frequency checking circuit determines whether a frequency of an externally input clock signal is slower than a frequency of a reference clock signal to generate a determination result, and transmits the determination result to the first and second shift circuits, and
the first shift circuit and the second shift circuit determine whether to delay the external input clock signal first according to the judgment result.
2. The synchronous mirror delay circuit of claim 1, wherein the delays produced by the first and second shift circuits are greater than the delays produced by the forward and backward delay circuits.
3. The synchronous mirror delay circuit of claim 1 wherein the clock frequency check circuit comprises a plurality of clock frequency check units.
4. The synchronous mirror delay circuit of claim 3, further comprising: a frequency divider coupled to the clock frequency checking circuit,
wherein the frequency dividing circuit divides the reference clock signal into frequencies according to different multiples and inputs the reference clock signals with different frequencies into each clock frequency checking unit respectively,
each clock pulse frequency checking unit respectively transmits the judgment result of the reference clock pulse signal corresponding to different frequencies to the first shift circuit and the second shift circuit.
5. The synchronous mirror delay circuit of claim 4 wherein the clock frequency verification circuit further comprises:
a plurality of decision logic circuits coupled to each of the clock frequency check units,
the majority logic circuit receives the judgment result of each clock frequency checking unit and ignores the unreasonable judgment result in all the judgment results according to all the judgment results.
6. The synchronous mirror delay circuit of claim 3, wherein the clock frequency verification unit comprises:
a first register for receiving the reference clock signal and the external input clock signal;
a second register for receiving a reverse reference clock signal and the external input clock signal;
an AND gate coupled to the first register and the second register and generating a flag signal according to output signals of the first register and the second register;
a third register coupled to the AND gate and receiving the flag signal and an inverted external input clock signal; and
an SR latch coupled to the third register and outputting the determination result according to the output signal of the third register.
7. The synchronous mirror delay circuit of claim 1, wherein the first and second displacement circuits each comprise:
a plurality of switching circuits; and
plural delay circuits, which will generate different delay values respectively;
wherein, according to the determination result, if the external input clock signal needs to be delayed first, one or more of the plurality of switch circuits are turned on to determine how long the external input clock signal should be delayed.
8. A synchronous mirror delay operation method is applied to a synchronous mirror delay circuit, and is characterized by comprising the following steps:
judging whether the frequency of an external input clock pulse signal is slower than that of a reference clock pulse signal through a clock pulse frequency check circuit of the synchronous mirror delay circuit so as to generate a judgment result;
a first shift circuit and a second shift circuit for transmitting the determination result to the synchronous mirror delay circuit, an
The first shift circuit and the second shift circuit determine whether to delay the external input clock signal first according to the judgment result.
9. The synchronous mirror delay operation of claim 8, wherein the delay generated by the first and second shift circuits is greater than the delay generated by a forward delay circuit and a backward delay circuit of the synchronous mirror delay circuit.
10. The synchronized mirror delay operation method of claim 8, further comprising:
when the frequency of the external input clock pulse signal is slower than that of the reference clock pulse signal, the judgment result generated by the clock pulse frequency inspection circuit is a first level; and
when the frequency of the external input clock pulse signal is not slower than the frequency of the reference clock pulse signal, the judgment result generated by the clock pulse frequency inspection circuit is a second level.
11. The synchronized mirror delay operation method of claim 10, further comprising:
when the judgment result is the first level, determining how long the external input clock signal is delayed by the first shift circuit and the second shift circuit according to the frequency of the reference clock signal; and
when the determination result is the second level, the external input clock signal is not delayed by the first shift circuit and the second shift circuit.
12. The method of claim 8, wherein the clock frequency checking circuit comprises a plurality of clock frequency checking units, the method further comprising:
reducing the frequency of the reference clock signal by different multiples through a frequency dividing circuit;
inputting the reference clock signals with different frequencies into each clock frequency checking unit for checking the clock frequency respectively; and
and respectively transmitting the judgment results of the reference clock signals corresponding to different frequencies to the first shift circuit and the second shift circuit through each clock frequency checking unit.
13. The synchronized mirror delay operation method of claim 12, further comprising:
receiving the judgment result of each clock frequency checking unit through a majority logic circuit; and
and ignoring unreasonable judgment results in all the judgment results according to all the judgment results through the majority logic circuit.
14. The synchronous mirror delay operation method of claim 8, wherein the first and second shift circuits respectively include a digital-to-analog converter and a delay control circuit, and the synchronous mirror delay operation method further comprises:
receiving the judgment result through the digital-to-analog converter, and generating a potential signal corresponding to the judgment result according to the judgment result; and
determining, by the delay control circuit, whether to delay the external input clock signal according to the potential signal, and determining how long the external input clock signal should be delayed if the external input clock signal needs to be delayed.
Technical Field
The present invention relates generally to a Synchronous Mirror Delay (SMD) circuit technology, and more particularly to a SMD circuit technology applicable to a wide bandwidth range.
Background
Synchronous mirror delay circuits are widely used in the design of memory circuits. The synchronous mirror delay circuit can be used for synchronizing an external input clock signal and an internal operation clock signal of the memory circuit according to different external input clock signals input into the memory circuit.
As shown in fig. 1, the memory circuit 100 may include an input buffer (input buffer)110, a synchronous mirror delay circuit 120, and a clock driver (clock driver) 130. In addition, the synchronous mirror delay circuit 120 may include a Delay Monitor Circuit (DMC) 121,A forward delay (forward delay) circuit 123, a phase detector (phase detector) circuit 124, and a backward delay (backward delay) circuit 125, wherein the forward delay circuit 123, the phase detector circuit 124, and the backward delay circuit 125 each include delay units of complex order. FIG. 2 shows an original external input clock signal CLKEXTInternal operation clock signal CLKINTAnd an externally input clock signal CLKEXTSignal at point B, D, E.
Referring to FIG. 2, in the conventional SMD operation, in order to externally input a clock signal CLKEXTAnd internal operation clock signal CLK of memory circuitEXTSynchronization can be achieved by making it necessary for the delay tV from point B to point D in the synchronous mirror delay circuit 120 to satisfy the condition of tV ═ tCK- (D1+ D2), where tV represents the delay generated by the front delay circuit 123 and the rear delay circuit 125, and tCK represents the externally input clock signal CLKEXTThe period of (c). Therefore, when the conditions are satisfied, the derivation is carried out (i.e. 2 × d1+ d2+2 × tV + d2 ═ 2 × d1+ d2+2 × tCK- (d1+ d2)]+ d2 ═ 2 × tCK), it is known that after 2 times tCK time, the clock signal CLK is inputted from the outsideEXTAnd internal operation clock signal CLK of memory circuitEXTSynchronization can be achieved.
However, in the conventional SMD operation, the externally input clock signal CLK is unknownEXTIs fast or slow, so that it is necessary to pre-configure a relatively multi-stage delay unit so that if the clock signal CLK is inputted externallyEXTWhen the period of the clock signal CLK is slow, the clock signal CLK is inputtedEXTAnd internal operation clock signal CLK of memory circuitEXTSynchronization can still be achieved.
However, these multi-step delay cells will cause the synchronous mirror delay circuit to generate larger current consumption and require larger size in the process of the synchronous mirror delay circuit.
Disclosure of Invention
In view of the foregoing problems, the present invention provides a synchronous mirror delay circuit, which is suitable for a wide period of an external input clock signal and has a smaller current consumption and a smaller size compared to the conventional SMD.
A synchronous mirror delay circuit is provided according to an embodiment of the present invention. The synchronous mirror delay circuit comprises a delay monitoring circuit, a forward delay circuit, a first shift circuit, a backward delay circuit, a second shift circuit and a clock frequency checking circuit. The delay monitor circuit is coupled to an input buffer. A first shift circuit couples the delay monitor circuit and the forward delay circuit. The second shift circuit is coupled to the backward delay circuit and a clock driver. The clock frequency checking circuit is coupled to an oscillator, the first shift circuit and the second shift circuit, and includes a plurality of clock frequency checking units. Each clock pulse frequency checking unit judges whether the frequency of an external input clock pulse signal is slower than that of a reference clock pulse signal output by the oscillator so as to generate a judgment result, and transmits the judgment result to the first shift circuit and the second shift circuit. The first shift circuit and the second shift circuit determine whether to delay the external input clock signal according to the judgment result.
A Synchronous Mirror Delay (SMD) operation method is provided according to an embodiment of the present invention. The synchronous mirror delay operation method is suitable for a synchronous mirror delay circuit. The synchronous mirror delay operation method comprises the following steps: judging whether the frequency of an external input clock pulse signal is slower than the frequency of a reference clock pulse signal output by the oscillator through a clock pulse frequency check circuit of the synchronous mirror delay circuit so as to generate a judgment result; and transmitting the judgment result to a first shift circuit and a second shift circuit of the synchronous mirror delay circuit, and determining whether to delay the external input clock pulse signal first through the first shift circuit and the second shift circuit according to the judgment result.
Other additional features and advantages of the present invention will be apparent to those skilled in the art, and it is intended that various modifications and variations can be made in the synchronous mirror delay circuit and the synchronous mirror delay operation method disclosed in the present application without departing from the spirit and scope of the invention.
Drawings
FIG. 1 is a block diagram of a conventional memory circuit.
FIG. 2 is a timing diagram showing the corresponding memory circuit.
FIG. 3 is a block diagram of a memory circuit according to an embodiment of the invention.
FIG. 4 is a circuit diagram of a clock frequency checking unit according to an embodiment of the present invention.
FIG. 5A is a timing diagram illustrating an embodiment of the present invention when the frequency of the external input clock signal is slower than the frequency of the reference clock signal.
FIG. 5B is a timing diagram illustrating an embodiment of the present invention when the frequency of the external input clock signal is faster than the frequency of the reference clock signal.
FIG. 5C is a timing diagram of the memory circuit according to the embodiment of the invention.
FIG. 6 is a diagram illustrating a clock frequency checking circuit according to an embodiment of the present invention.
FIG. 7 is a diagram illustrating a clock frequency checking circuit according to another embodiment of the present invention.
FIG. 8 is a diagram illustrating a shift circuit according to an embodiment of the present invention.
FIG. 9 is a diagram illustrating a shift circuit according to another embodiment of the present invention.
FIG. 10 is a flowchart of a method for delaying a synchronous mirror according to an embodiment of the present invention.
Reference numerals
100. 300
120. 320 synchronous mirror delay circuit
121. 321 delay monitor circuit
322
124. 324 phase detector circuit
125. 325 backward delay circuit 450 third register
326 second displacement circuit 460SR latch
327 clock
130. 330
340
410 OR
420 first register 830 third delay circuit
430
440 AND
CFC 0-CFC n-1 clock frequency checking unit
CLKBASE、CLKBASE/1、CLKBASE/2…CLKBASE/2(n-1)Reference clock signal
CLKEXTExternally inputting clock signal
CLKINTInternal operation clock signal
CLKSLOW, CLKSLOW [0] -CLKSLOW [ n-1] judgment results
FG generates flag signal RESET RESET signal
IN input SW0 first switch
OUT output terminal SW1 second switch
POR enable reset signal SW2 third switch
QoutOutput signal TRG2 second trigger signal
Vbias potential signal TRG1 first trigger signal
ZCLKBASEReverse reference clock signal
ZCLKEXTReverse external input clock signal
Detailed Description
The best mode for carrying out the invention is set forth in this section for the purpose of illustrating the spirit of the invention and not for the purpose of limiting the scope of the invention as defined by the appended claims.
FIG. 3 shows a block diagram of a
As shown in fig. 3, the synchronous
When the clock signal CLK is inputted from the outsideEXTAfter the clock signal CLK is inputted to the synchronous
As shown in fig. 4, the clock
As shown in FIG. 4, the OR gate 410 receives an enable reset signal POR or receives an externally input clock signal CLKEXT. When the OR gate 410 receives the power-on reset signal POR or the external input clock signal CLKEXTThe or gate 410 sends a RESET signal RESET to the pins RST of the first and second registers 420 and 430 to RESET the values of the pins Q of the first and second registers 420 and 430 (e.g., to RESET the value of Q to 0). That is, the reset signal POR is activated or the clock signal CLK is externally inputtedEXTThe value of the pin Q of the first register 420 and the second register 430 is reset (e.g., the value of Q is reset to 0).
In this embodiment, the pin CK of the first register 420 receives the reference clock signal CLKBASEAnd the pin D of the first register 420 receives the clock signal CLKEXT. At each reference clock signal CLKBASEPositive edge of (CLK), clock signalEXTThe value of (c) is sent to the pin Q of the first register 420 to output the first trigger signal TRG1 to the and gate 440 (see fig. 5A-5B). In addition, the pin CK of the second register 430 receives the reverse reference clock signal ZCLKBASEAnd the pin D of the second register 430 receives the clock signal CLKEXT. At each reverse reference clock signal ZCLKBASEPositive edge of (CLK), clock signalEXTThe value of (c) is sent to the pin Q of the second register 430 to output the second trigger signal TRG2 to the and gate 440 (see fig. 5A-5B). When the AND gate 440 receives the first trigger signal TRG1 and the second trigger signalWhen the signal TRG2 is asserted, the and gate 440 operates on the first trigger signal TRG1 and the second trigger signal TRG2 to generate the flag signal FG. Then, the AND gate 440 transmits the flag signal FG to the pin D of the third register 450.
In addition, in this embodiment, the pin CK of the third register 450 receives the inverted external input clock signal ZCLKEXT. At each reverse external input clock signal ZCLKEXTThe value of the flag signal FG is sent to the pin Q of the third register 450 to output the signal QoutTo SR latch 460. SR latch 460 receives output signal QoutThen, according to the output signal QoutA determination result CLKSLOW is generated. According to an embodiment of the present invention, when the determination result CLKSLOW is a first level (e.g., 1), it indicates that the external input clock signal CLK is assertedEXTIs compared with the reference clock signal CLKBASEIs slow; when the determination result CLKSLOW is at a second level (e.g., 0), it indicates that the external input clock signal CLK is assertedEXTHas a frequency no higher than that of the reference clock signal CLKBASEIs slow.
Referring to fig. 5A, the and gate 440 operates on the first trigger signal TRG1 and the second
Note that in the embodiment of the present invention, the
On the other hand, as shown in FIG. 5B, since the first trigger signal TRG1 and the second trigger signal TRG2 are both at the high level (e.g., 1), the flag signal FG is both at the low level (e.g., 0). Since the flag signal FG is at a low level (e.g., 0), the determination result CLKSLOW output by the SR latch 460 is at a low level (e.g., 0). When the determination result CLKSLOW is not at the high level, it indicates that the external input clock signal CLK is not presentEXTHas a frequency no higher than that of the reference clock signal CLKBASEIs slow. Therefore, the clock signal CLK is inputted from the outsideEXTWithout being delayed for a period of time by the first and
Referring to fig. 3 and 5C, according to an embodiment of the present invention,
As shown in FIG. 6, clock
As shown in FIG. 6, clock frequency checking unit CFC [0] of clock frequency checking circuit 327]~CFC[n-1]Will receive reference clock signal CLK with different frequencies respectivelyBASE/1、CLKBASE/2…CLKBASE/2(n-1). Clock frequency checking unit CFC [0]]~CFC[n-1]Will be based on the received reference clock signal CLKBASE/1、CLKBASE/2…CLKBASE/2(n-1)Respectively generate a determination result CLKSLOW [0]]、CLKSLOW[1]…CLKSLOW[n-1]. Each clock frequency checking unit CFC [0]]~CFC[n-1]Will generate the determination result CLKSLOW [0]]、CLKSLOW[1]…CLKSLOW[n-1]To the
As shown in FIG. 7, clock
According to one embodiment of the present invention, the
The
The
Referring to fig. 10, the Synchronous Mirror Delay (SMD) operation method may be applied to the synchronous mirror delay circuit of the present invention. In step S1010, a clock frequency checking circuit of the synchronous mirror delay circuit determines an external input clock signal CLKEXTWhether the frequency of the reference clock signal is higher than that of a reference clock signal CLK output by an oscillatorBASEIs slow to generate a determination result CLKSLOW. In step S1020, the clock frequency check circuit transmits the determination result CLKSLOW to a first shift circuit and a second shift circuit of the synchronous mirror delay circuit. In step S1030, the first and second shift circuits determine whether to delay the external input clock signal CLK first according to the determination result CLKSLOWEXT。
According to an embodiment of the present invention, in the synchronous mirror delay operation method, when the clock signal CLK is inputted externallyEXTIs compared with the reference clock signal CLKBASEWhen the clock frequency is slow, the determination result CLKSLOW generated by the clock frequency check circuit of the synchronous
According to an embodiment of the invention, the synchronous mirror delay operation methodThe method further includes that when the determination result CLKSLOW is at a first level, the first shift circuit and the second shift circuit will be based on the reference clock signal CLKBASEDetermines the frequency of the external input clock signal CLKEXTHow long the first is delayed. When the determination result CLKSLOW is at the second level, the first and second shift circuits do not delay the external input clock signal CLK firstEXT。
According to an embodiment of the present invention, the method further comprises a frequency divider circuit of the synchronous
According to an embodiment of the present invention, in the synchronous mirror delay operation method, the first shift circuit and the second shift circuit respectively include a plurality of switch circuits and a plurality of delay circuits. According to the determination result CLKSLOW, if the clock signal CLK is inputted externallyEXTThe first and second shift circuits are delayed to turn on one or more of the plurality of switch circuits to determine the external input clock signal CLKEXTHow long the delay is. According to another embodiment of the present invention, in the synchronous mirror delay operation method, the first shift circuit and the second shift circuit respectively include a digital-to-analog converter and a delay control circuit. The digital-to-analog converter receives the determination result CLKSLOW and generates a potential signal Vbias corresponding to the determination result CLKSLOW according to the determination result CLKSLOW. The delay control circuit determines whether to delay the external input clock signal according to the potential signal VbiasNumber CLKEXTAnd if the clock signal CLK is inputted externallyEXTNeeds to be delayed to determine the external input clock signal CLKEXTHow long this is delayed.
According to the embodiment of the invention, the synchronous mirror delay operation method is provided when the clock signal CLK is inputted externallyEXTWhen the period of the clock signal CLK is too slow, the clock signal CLK is inputtedEXTWill be delayed for a period of time. Therefore, the forward delay circuit, the phase detector circuit, and the backward delay circuit of the synchronous
Although the present disclosure has been described with reference to exemplary embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present disclosure.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:半导体器件和包括半导体器件的半导体系统