Burr-free delay chain switching circuit and switching method

CN118740119APending Publication Date: 2024-10-01SHENZHEN PANGO MICROSYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410789252.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-01

Smart Images

  • Figure CN118740119A_ABST
    Figure CN118740119A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of integrated circuits, and discloses a burr-free delay chain switching circuit and method, and the circuit comprises a delay chain unit which is used for receiving a target signal, delaying the target signal for a first delay time, and outputting a first delay signal, delaying the target signal for a second delay time and then outputting a second delay signal; the delay switching unit is connected with the delay chain unit; the trigger unit is connected with the delay chain unit and is used for receiving the first delay signal and the second delay signal and outputting a trigger signal when the first delay signal and the second delay signal are changed from different signals to the same signal; and the first trigger unit is respectively connected with the trigger unit and the delay chain unit. By using the delay chain switching circuit disclosed by the invention, the problem that in the prior art, when the delay chain circuit switches the delay time, the signal output by the delay chain circuit cannot be burr-free while the delay circuit continuously inputs the signal can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of integrated circuits, and in particular relates to a burr-free delay chain switching circuit and a switching method. Background Art

[0002] The existing mainstream delay chain is designed as a delay chain in which the delayed signal enters several delay units in series. Different numbers of delay units are selected through the selection signal output by the selector, or different numbers of delay units are enabled by switching the delay unit, thereby realizing the switching of the delay time.

[0003] However, the current mainstream delay chain design may re-establish the delay chain when the delay time is switched, which may cause glitches in the output of the delayed signal, thereby posing a risk to the transmission system.

[0004] Therefore, in order to ensure that the output delayed signal does not produce glitches, in mainstream designs, it is generally required that there is no signal input to the delay chain when changing the delay time. It is necessary to wait until the delay control code (i.e., the switching instruction) is stable before continuing to transmit the signal, which has great limitations on design applications. Summary of the invention

[0005] The present invention provides a glitch-free delay chain switching circuit and a switching method, which are used to solve the problem in the prior art that when the delay chain circuit switches the delay time, it is impossible to keep the delay circuit continuously inputting a signal while making the signal output by the delay chain circuit glitch-free.

[0006] In order to solve the above technical problems, in a first aspect, the present invention provides a glitch-free delay chain switching circuit, the delay chain circuit comprising:

[0007] A delay chain unit, configured to receive a target signal, and output a first delayed signal after delaying the target signal by a first delay time, and output a second delayed signal after delaying the target signal by a second delay time, wherein the first delay time is different from the second delay time;

[0008] a delay switching unit, connected to the delay chain unit, configured to receive a delay switching instruction and output a switching signal upon receiving the delay switching instruction to switch the duration of the first delay time and / or the duration of the second delay time, wherein the time difference between the first delay time and the second delay time remains unchanged after switching;

[0009] a trigger unit connected to the delay chain unit, configured to receive the first delay signal and the second delay signal, and output a trigger signal when the first delay signal and the second delay signal change from being different to being the same;

[0010] The first trigger unit is connected to the trigger unit and the delay chain unit respectively, and is used to receive the trigger signal and the first delay signal, and output the first delay signal when receiving the trigger signal.

[0011] Optionally, the trigger unit includes an XEN_OR gate, an input port of the XEN_OR gate is connected to the delay chain unit to input the first delay signal and the second delay signal respectively, and an output port of the XEN_OR gate is connected to the first trigger unit.

[0012] Optionally, the first trigger unit includes a D trigger, a clock port of the D trigger is connected to the output port of the XNOR gate, and a data input port of the D trigger is connected to the delay chain unit to receive a first delayed signal output by the delay chain unit.

[0013] Optionally, the delay chain unit comprises:

[0014] a first delay chain, connected to the trigger unit and the first trigger unit, respectively, the first delay chain comprising a first delay sub-unit, configured to receive the target signal and output a first delayed signal after delaying the target signal by a first delay time;

[0015] A second delay chain is connected to the trigger unit, and the second delay chain includes a second delay sub-unit, which is used to receive the target signal and output a second delayed signal after delaying the target signal by a second delay time, wherein the second number of the second delay sub-units is different from the first number of the first delay sub-units.

[0016] Optionally, the glitch-free delay chain switching circuit further includes a second trigger unit, and a data input port of the second trigger unit is connected to an output port of the second delay chain.

[0017] Optionally, the first quantity and the second quantity have a quantitative relationship as shown in the following formula:

[0018] NX=V1,NX+(N / 2)=V2;

[0019] Wherein, N is a first preset value and is an even number, X is a second preset value and is a positive integer, V1 is the value of the first number, and V2 is the value of the second number.

[0020] In a second aspect, the present invention provides a glitch-free delay chain switching method, the delay chain switching method comprising:

[0021] Inputting a target signal into a delay chain unit, and delaying the target signal by a first delay time through the delay chain unit to obtain a first delayed signal;

[0022] Inputting the target signal into the delay chain unit, and delaying the target signal by a second delay time through the delay chain unit to obtain a second delayed signal;

[0023] Switching the values ​​of the first delay time and / or the second delay time, and outputting the switched first delay signal and / or the second delay signal, wherein the time difference between the first delay time and the second delay time remains unchanged after switching;

[0024] When the first delay signal and the second delay signal after switching change from being different to being the same, the first delay signal is output through the first trigger unit.

[0025] Optionally, the switching of the value of the first delay time and / or the second delay time includes:

[0026] Controlling the number of first delay subunits in the delay chain unit to switch between different first delay times;

[0027] The number of second delay subunits in the delay chain unit that are enabled is controlled to switch between different second delay times.

[0028] Optionally, the switching of the value of the first delay time and / or the second delay time includes:

[0029] Controlling the gating of a preset number of delay subunits by any bit of the thermometer code, wherein the delay subunit is the first delay subunit or the second delay subunit, and the even bits of the thermometer code are used to control the first delay subunit, and the odd bits of the thermometer code are used to control the second delay subunit;

[0030] Keeping a third number of second delay subunits always in a strobe state, wherein the third number is half of the preset number, and the preset number is an even number;

[0031] The number of bits of the thermometer code is switched to switch the first delay time and / or the second delay time.

[0032] Optionally, the switching range of the number of bits of the thermometer code is (1, +∞).

[0033] Compared with the prior art, the present invention provides a glitch-free delay chain switching circuit, which has the following features:

[0034] Beneficial effects:

[0035] When the delayed switching of the first delayed signal or the second delayed signal generates a glitch (i.e., the target signal suddenly changes to the opposite original signal), if the signal output from the output port of the first trigger unit will also generate a glitch (i.e., the signal suddenly changes), two conditions need to be met. The first condition is that the trigger unit can output a trigger signal during the delayed switching (i.e., the first delayed signal and the second delayed signal change from different to the same), and the second condition is that the output signal of the first trigger unit at the time of delayed switching is opposite to the first delayed signal;

[0036] In the first condition, it is necessary to satisfy that the first delay signal is different from the second delay signal before the delay switching. Obviously, this will result in that the trigger unit will not generate a trigger signal before the delay switching. Therefore, the output of the first trigger unit keeps the original signal unchanged before the delay switching, and the first delay signal generates a burr at the delay switching moment, which will cause the first delay signal to suddenly change back to the original signal after the delay switching moment. Therefore, when the first condition is met, the output signal of the first trigger unit at the delay switching moment cannot be opposite to the first delay signal. Therefore, the first condition and the second condition obviously cannot exist at the same time, and naturally no burr will be generated at the output port of the first trigger unit;

[0037] In addition, since the first delay signal and the second delay signal both have a delay time difference before or after the delay switching, a trigger signal can be generated in the delay time difference stage of the first delay signal and the second delay signal to trigger the first trigger unit to output the first delay signal, thereby achieving the effect of outputting a glitch-free delay signal, and in the scheme of the present invention, the input of the target signal is not stopped when the glitch is generated, so that the input signal to the delay circuit can be kept. In summary, the present invention can solve the problem in the prior art that when the delay chain circuit switches the delay time, it is impossible to keep the delay circuit continuously inputting the signal while making the signal output by the delay chain circuit free of glitches. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only part of the embodiments of the present invention, rather than all of the embodiments. For ordinary technicians in this field, without paying creative work, other drawings obtained based on these drawings all fall within the scope of protection of the present invention.

[0039] Figure 1 is a structural diagram of a glitch-free delay chain switching circuit provided by an embodiment of the present invention;

[0040] Figure 2 is a structural diagram of another glitch-free delay chain switching circuit provided by an embodiment of the present invention;

[0041] Figure 3 is a structural diagram of another glitch-free delay chain switching circuit provided by an embodiment of the present invention;

[0042] Figure 4 is a structural diagram of a delay chain unit provided by an embodiment of the present invention;

[0043] Figure 5 is a structural diagram of another glitch-free delay chain switching circuit provided by an embodiment of the present invention;

[0044] Figure 6 is a flow chart of a glitch-free delay chain switching method provided by an embodiment of the present invention;

[0045] Figure 7-Figure 22 1 is a timing diagram of output of a glitch-free delayed signal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0047] In order to make the description of the disclosed content more detailed and complete, the following is an illustrative description of the implementation mode and specific examples of the present invention; however, this is not the only form of implementing or applying the specific embodiments of the present invention. The implementation mode covers the features of multiple specific embodiments and the method steps and their sequence for constructing and operating these specific embodiments. However, other specific embodiments can also be used to achieve the same or equal functions and step sequences. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0048] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.

[0049] In the description of the embodiments of the present invention, "multiple" means two or more than two, and other quantifiers are similar and should be understood. The preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention. In addition, the embodiments of the present invention and the features therein may be combined with each other without conflict.

[0050] like Figure 1 FIG. 1 is a structural diagram of a glitch-free delay chain switching circuit provided by an embodiment of the present invention, wherein the delay chain circuit comprises:

[0051] The delay chain unit 100 is used to receive a target signal, and output a first delayed signal after delaying the target signal by a first delay time, and output a second delayed signal after delaying the target signal by a second delay time;

[0052] A delay switching unit 200, connected to the delay chain unit 100, for receiving a delay switching instruction and outputting a switching signal upon receiving the delay switching instruction to switch the duration of the first delay time and / or the duration of the second delay time;

[0053] A trigger unit 300, connected to the delay chain unit 100, configured to receive the first delay signal and the second delay signal, and output a trigger signal when the first delay signal and the second delay signal change from being different to being the same;

[0054] The first trigger unit 400 is connected to the trigger unit 300 and the delay chain unit 100 respectively, and is used to receive the trigger signal and the first delay signal, and output the first delay signal when receiving the trigger signal.

[0055] The first delay time is different from the second delay time, and the time difference between the first delay time and the second delay time remains unchanged after switching.

[0056] It should be noted that the delay chain unit 100 is any unit that can convert the target signal into two delayed signals (i.e., the first delayed signal and the second delayed signal), and can keep the delay difference between the first delayed signal and the second delayed signal unchanged after the delay switching. For example, the delay chain unit 100 may include a plurality of delay sub-units (such as buffers or inverters, etc.), and by controlling the number or switching of the delay sub-units, a delay chain unit 100 that can provide different delay times can be obtained.

[0057] It should be noted that the time difference between the first delay time and the second delay time remains unchanged after switching, including the following situations: 1. The first delay time is ahead of the second delay time by the preset time difference before switching, and the first delay time lags behind the second delay time by the preset time difference after switching; 2. The first delay time is ahead of the second delay time by the preset time difference before switching, and the first delay time is still ahead of the second delay time by the preset time difference after switching; 3. The first delay time lags behind the second delay time by the preset time difference before switching, and the first delay time still lags behind the second delay time by the preset time difference after switching; 4. The first delay time lags behind the second delay time by the preset time difference before switching, and the first delay time is ahead of the second delay time by the preset time difference after switching.

[0058] It should be noted that the delay switching unit 200 can be any structural unit that can receive a delay switching instruction and output a switching signal when receiving the delay switching instruction. For example, the switching chain unit 100 can include multiple delay sub-units. The switching signal of the delay switching unit 200 can control the delay length of the first delay signal by controlling the number of selections of the delay sub-units, or control the delay length of the second delay signal.

[0059] It should be noted that the trigger signal output by the trigger unit 300 is a signal that can trigger the first trigger unit 400. For example, if the first trigger unit 400 is triggered by a falling edge, the trigger signal is a signal that changes from 1 to 0. If the first trigger unit 400 is triggered by a rising edge, the trigger signal is a signal that changes from 0 to 1.

[0060] It should be noted that the trigger unit 300 can be any unit structure that can receive the first delay signal and the second delay signal, and output a trigger signal when the first delay signal and the second delay signal change from different to the same. For example, if the trigger signal changes from 1 to 0, the trigger unit 300 may include an XOR gate, so that the XOR gate outputs 1 when receiving different first delay signals and second delay signals, and outputs 0 when receiving the same first delay signal and second delay signal, thereby realizing a change from 1 to 0.

[0061] It should be noted that the first trigger unit 400 may be any trigger unit that can output the first delayed signal when receiving a trigger signal, and is not limited in detail herein.

[0062] It should be noted that Figure 1 OUT is the delayed signal output by the first trigger unit 400 .

[0063] In this way, when the delayed switching of the first delayed signal or the second delayed signal generates a burr (i.e., the target signal suddenly changes to the opposite original signal), if the signal output from the output port of the first trigger unit 400 will also generate a burr (i.e., the signal suddenly changes), two conditions need to be met. The first condition is that the trigger unit 300 can output a trigger signal during the delayed switching (i.e., the first delayed signal and the second delayed signal change from different to the same), and the second condition is that the output signal of the first trigger unit 400 at the time of delayed switching is opposite to the first delayed signal;

[0064] In the first condition, it is required that the first delay signal is different from the second delay signal before the delay switching. Obviously, this will result in that the trigger unit 300 will not generate a trigger signal before the delay switching. Therefore, the output of the first trigger unit 400 keeps the original signal unchanged before the delay switching, and the first delay signal generates a burr at the delay switching moment, which will cause the first delay signal to suddenly change back to the original signal after the delay switching moment. Therefore, when the first condition is met, the output signal of the first trigger unit 400 at the delay switching moment cannot be opposite to the first delay signal. Therefore, the first condition and the second condition obviously cannot exist at the same time, and naturally no burr will be generated at the output port of the first trigger unit 400;

[0065] In addition, since the first delay signal and the second delay signal both have a delay time difference before or after the delay switching, a trigger signal can be generated in the delay time difference stage of the first delay signal and the second delay signal to trigger the first trigger unit 400 to output the first delay signal, thereby achieving the effect of outputting a glitch-free delay signal, and in the scheme of the embodiment of the present invention, the input of the target signal is not stopped when the glitch is generated, so that the input signal to the delay circuit can be kept. In summary, the embodiment of the present invention can solve the problem in the prior art that when the delay chain circuit switches the delay time, it is impossible to keep the delay circuit continuously inputting the signal while making the signal output by the delay chain circuit free of glitches.

[0066] In an optional implementation, Figure 2 As shown is a structural diagram of another glitch-free delay chain switching circuit provided by an embodiment of the present invention, the trigger unit 300 includes an XNOR gate 310, the input port of the XNOR gate 310 is connected to the delay chain unit 100 to input the first delay signal and the second delay signal respectively, and the output port of the XNOR gate 310 is connected to the first trigger unit 400.

[0067] It should be noted that the input of the XNOR gate 310 may have only two inputs for inputting the first delayed signal and the second delayed signal, or may have multiple inputs. For input ports that do not transmit signals, these input ports may be connected in parallel with input ports in use, or these input ports may be connected to a fixed level, etc.

[0068] It should be noted that the first trigger unit 400 in this implementation is rising edge triggered.

[0069] It can be understood that, through the XEN-NOR gate 310, a high-level signal can be output when the first delay signal and the second delay signal are the same, and a low-level signal can be output when the first delay signal and the second delay signal are different. In this way, when the first delay signal and the second delay signal change from being different to being the same, the trigger signal output by the XEN-NOR gate 310 can generate a rising edge signal, thereby triggering the first trigger unit 400 (here the first trigger unit 400 is rising edge triggered), so that the first trigger unit 400 can transmit the first delay signal of its input port to the output port.

[0070] It can be understood that by using the XNOR gate 310 as the trigger unit 300, the number of internal components of the trigger unit 300 can be effectively reduced on the basis of realizing the function of the trigger unit 300, thereby effectively saving costs. Moreover, since the number of components is greater, the components themselves will bring more delay to the delayed signal. Therefore, by setting the XNOR gate 310, it can be avoided that the delayed signal output by the first trigger unit 400 is greater than the expected delay time, causing adverse consequences.

[0071] It should be noted that Figure 2 OUT in is the delayed signal output by the first trigger unit 400.

[0072] In an optional implementation, Figure 3 As shown is a structural diagram of another glitch-free delay chain switching circuit provided by an embodiment of the present invention, the first trigger unit 400 includes a D trigger 410, the clock port of the D trigger 410 is connected to the output port of the XNOR gate 310, and the data input port of the D trigger 410 is connected to the delay chain unit 100 to receive the first delay signal output by the delay chain unit 100.

[0073] It should be noted that the D flip-flop 410 in this implementation is rising edge triggered.

[0074] It can be understood that in this implementation, the clock port of the D flip-flop 410 is connected to the output port of the XNOR gate 310, so that when the XNOR gate 310 generates a rising edge signal, the D flip-flop 410 can be triggered, so that the first delayed signal input by its data input port can be output to the output port of the D flip-flop 410.

[0075] In an optional implementation, Figure 4 As shown is a structural schematic diagram of a delay chain unit 100 provided in an embodiment of the present invention, the delay chain unit 100 includes: a first delay chain 110, which is respectively connected to the trigger unit 300 and the first trigger unit 400, the first delay chain 110 includes a first delay sub-unit 111, which is used to receive the target signal and output a first delayed signal after delaying the target signal by a first delay time; a second delay chain 120, which is connected to the trigger unit 300, the second delay chain 120 includes a second delay sub-unit 121, which is used to receive the target signal and output a second delayed signal after delaying the target signal by a second delay time, wherein the second number of the second delay sub-units 121 is different from the first number of the first delay sub-units 111.

[0076] It should be noted that, in the present implementation, the first delay sub-unit 111 and the second delay sub-unit 121 can be any unit module with an enable delay function. When the enable signal is valid, the delay sub-unit delays the input signal by t1 time and outputs it. When the enable signal is invalid, the delay sub-unit delays the input signal by t2 time and outputs it, wherein t1>t2, and the value of t2 is close to 0. Different delay sub-units can be connected in series. For example, the delay sub-unit can be a switch RC delay circuit, or a voltage-controlled delay line, etc.

[0077] It can be understood that the delay time of the first delay chain 110 and the second delay chain 120 to the target signal can be controlled by controlling the number of the delay sub-units that are enabled in the first delay chain 110 and the second delay chain 120. It can be further understood that in order to control the enabling of the delay sub-units, an enable port can be set on the delay sub-unit, so that the delay sub-unit can be enabled or disabled by outputting an invalid enable signal or a valid enable signal to the enable port.

[0078] As a specific example, in order to keep the time difference between the first delay time of the first delay signal and the second delay time of the second delay signal before and after the delay switching unchanged, the delay difference between the second delay time and the first delay time can be set to the delay value of a delay sub-unit. In this way, each time the first delay time and the second delay time are switched, it is only necessary to control the first delay chain 110 and the second delay chain 120 to differ by one delay sub-unit.

[0079] It should be noted that, as a specific example, Figure 4 Medium C0-C 2n-1 It is the enable signal of each delay sub-unit, that is, when the enable signal is 1, the delay sub-unit controlled by the enable signal is enabled, and IN is the input target signal.

[0080] In an optional implementation, Figure 5 The structure diagram of another glitch-free delay chain switching circuit provided by an embodiment of the present invention is shown. The glitch-free delay chain switching circuit also includes a second trigger unit 500, and the data input port of the second trigger unit 500 is connected to the output port of the second delay chain 120.

[0081] It can be understood that the output port of the first delay chain 110 is connected to the trigger unit 300 and the first trigger unit 400, while the output port of the second delay chain 120 is only connected to the trigger unit 300. In this way, the first load (i.e., the trigger unit 300 and the first trigger unit 400) connected to the output port of the first delay chain 110 and the second load (i.e., the trigger unit 300) connected to the output port of the second delay chain 120 are unbalanced, resulting in a large difference in the intrinsic delay between the first delay chain 110 and the second delay chain 120.

[0082] Therefore, in this implementation, by connecting the data input port of the second flip-flop unit 500 to the output port of the second delay chain 120, the load carried by the output port of the second delay chain 120 and the load carried by the output port of the first delay chain 110 can be balanced as much as possible, thereby reducing the intrinsic delay difference between the first delay chain 110 and the second delay chain 120. Optionally, in order to balance the loads carried by the first delay chain 110 and the second delay chain 120 as much as possible, the second flip-flop unit 500 can be made the same as the first flip-flop unit 400.

[0083] It should be noted that the clock input port of the second flip-flop unit 500 can be connected to a fixed level 0 or 1.

[0084] In an optional implementation, the first quantity and the second quantity have a quantitative relationship shown in the following formula:

[0085] NX=V1,NX+(N / 2)=V2;

[0086] Wherein, N is a first preset value and is an even number, X is a second preset value and is a positive integer, V1 is the value of the first number, and V2 is the value of the second number.

[0087] It can be understood that the number of first delay sub-units 111 in the first delay chain 110 is N / 2 less than the number of second delay sub-units 121 in the second delay chain 120. In this way, N / 2 second delay sub-units in the second delay chain 120 are always enabled. If N delay sub-units are enabled by a control signal, when the control signal of the first delay sub-unit 111 in the first delay chain 110 is one more than the control signal of the second delay sub-unit 121 in the second delay chain 120, the number of first delay sub-units 111 in the first delay chain 110 is N / 2 more than the number of second delay sub-units 121. When the control signal of the first delay sub-unit 111 in the first delay chain 110 is one less than the control signal of the second delay sub-unit 121, the number of first delay sub-units 111 in the first delay chain 110 is N / 2 less than the number of second delay sub-units 121. In this way, when it is necessary to switch the delay of the delay chain unit 100, by controlling the number of output control signals, the first delay signal and the second delay signal output by the delay chain unit 100 can always differ by the delay of N / 2 delay sub-units, that is, the delay time difference between the first delay signal and the second delay signal of the delay chain unit 100 can be always equal after switching.

[0088] like Figure 6 FIG. 1 is a flow chart of a glitch-free delay chain switching method provided by an embodiment of the present invention. The delay chain switching method includes:

[0089] Step S601 : inputting a target signal into a delay chain unit, and delaying the target signal by a first delay time through the delay chain unit to obtain a first delayed signal.

[0090] It should be noted that the delay chain unit may include a plurality of delay sub-units, and these delay sub-units may be connected in series in sequence, so that the first delay time of the target signal in the delay chain unit may be controlled by controlling the number of the delay sub-units;

[0091] It should be noted that the delay subunit can be any digital component that can achieve a delay effect, and is not limited in detail here.

[0092] Step S602: input the target signal into the delay chain unit, and delay the target signal by a second delay time through the delay chain unit to obtain a second delayed signal.

[0093] The method of delaying the target signal by the second delay time in this step can refer to the method of delaying the target signal by the first delay time in step S601, and will not be described in detail here.

[0094] Step S603: Switch the value of the first delay time and / or the second delay time, and output the switched first delay signal and / or second delay signal.

[0095] The time difference between the first delay time and the second delay time remains unchanged after switching.

[0096] It should be noted that the method of switching the values ​​of the first delay time and / or the second delay time can be any feasible method. For example, the first delay time can be switched by controlling the number of first delay sub-units, and the second delay time can be switched by controlling the number of second delay sub-units.

[0097] Step S604: when the first delayed signal and the second delayed signal after switching change from being different to being the same, outputting the first delayed signal through a first trigger unit.

[0098] It should be noted that the method of implementing this step can be any feasible method. For example, the first delay signal and the second delay signal can be monitored by a signal monitoring device. When it is monitored that the first delay signal and the second delay signal change from different to the same, a trigger signal of the first trigger unit can be output, so that the first trigger unit is triggered, thereby outputting the first delay signal of its own data input end to the output end.

[0099] In this way, when the delayed switching of the first delayed signal or the second delayed signal generates a glitch (i.e., the target signal suddenly changes to the opposite original signal), if the signal output from the output port of the first trigger unit will also generate a glitch (i.e., the signal suddenly changes), two conditions need to be met. The first condition is that the first delayed signal and the second delayed signal can be changed from different to the same (i.e., the trigger signal of the first trigger unit is generated) during the delayed switching, and the second condition is that the output signal of the first trigger unit at the time of delayed switching is opposite to the first delayed signal;

[0100] In the first condition, it is necessary to satisfy that the first delay signal is different from the second delay signal before the delay switching. Obviously, this will result in no trigger signal being generated before the delay switching. Therefore, the output of the first trigger unit keeps the original signal unchanged before the delay switching, and the first delay signal generates a burr at the delay switching moment, which will cause the first delay signal to suddenly change back to the original signal after the delay switching moment. Therefore, when the first condition is met, the output signal of the first trigger unit at the delay switching moment cannot be opposite to the first delay signal. Therefore, the first condition and the second condition obviously cannot exist at the same time, and naturally no burr will be generated at the output port of the first trigger unit;

[0101] In addition, since the first delay signal and the second delay signal both have a delay time difference before or after the delay switching, a trigger signal can be generated in the delay time difference stage of the first delay signal and the second delay signal to trigger the first trigger unit to output the first delay signal, thereby achieving the effect of outputting a glitch-free delay signal, and in the scheme of the embodiment of the present invention, the input of the target signal is not stopped when the glitch is generated, so that the input signal to the delay circuit can be kept. In summary, the embodiment of the present invention can solve the problem in the prior art that when the delay chain circuit switches the delay time, it is impossible to keep the delay circuit continuously inputting the signal while making the signal output by the delay chain circuit free of glitches.

[0102] In an optional implementation manner, switching the value of the first delay time and / or the second delay time includes:

[0103] Controlling the number of first delay subunits in the delay chain unit to switch between different first delay times;

[0104] The number of second delay subunits in the delay chain unit that are enabled is controlled to switch between different second delay times.

[0105] It should be noted that, in the present implementation, the first delay sub-unit and the second delay sub-unit may be any unit structure that can achieve a delay effect, for example, an inverter or a common-source amplifier.

[0106] It should be noted that the method for selecting the number of the first delay sub-unit or the second delay sub-unit can be any feasible method, for example, it can be selected through a selector, or an enable port can be set on the first delay sub-unit or the second delay sub-unit, and the number of the first delay sub-unit or the second delay sub-unit selected can be controlled by outputting an enable signal to the enable port.

[0107] It can be understood that, through this implementation, the first delay time or the second delay time can be switched.

[0108] In an optional implementation manner, switching the value of the first delay time and / or the second delay time includes:

[0109] Controlling the gating of a preset number of delay subunits by any bit of the thermometer code, wherein the delay subunit is the first delay subunit or the second delay subunit, and the even bits of the thermometer code are used to control the first delay subunit, and the odd bits of the thermometer code are used to control the second delay subunit;

[0110] Keeping a third number of second delay subunits always in a strobe state, wherein the third number is half of the preset number, and the preset number is an even number;

[0111] The number of bits of the thermometer code is switched to switch the first delay time and / or the second delay time.

[0112] It should be noted that the characteristic of the thermometer code is that when the numerical value increases or decreases, the increase or decrease in the number of 1 values ​​in the code corresponds to the increase or decrease in the numerical value. For example, the thermometer code corresponding to 0 is 0000, the thermometer code corresponding to 1 is 0001, the thermometer code corresponding to 2 is 0011, the thermometer code corresponding to 3 is 0111, and the thermometer code corresponding to 4 is 1111.

[0113] It can be understood that when the thermometer code is an odd number, the even bits (herein, the even bits include 0) of the thermometer code are the same as the odd bits of the thermometer code. At this time, since the third number of second delay subunits are always in the enabled state, the number of the enabled second delay subunits is greater than the number of the first delay subunits by a third number, that is, half of the preset number.

[0114] When the thermometer code is an even number, the even number bit of the thermometer code is one more than the odd number bit of the thermometer code, therefore, the number of the first delay subunits controlled by the thermometer code is more than the number of the second delay subunits controlled by the thermometer code by a preset number, but since the third number of second delay subunits is always kept enabled, and the third number is half of the preset number, therefore at this time, the number of the first delay subunits is more than the number of the second delay subunits by half of the preset number;

[0115] In summary, when the thermometer code switches from an even number to an even number, the first delay time of the first delay subunit is always longer than the second delay time of the second delay subunit by the delay time corresponding to the third number of delay subunits; when the thermometer code switches from an odd number to an odd number, the second delay time of the second delay subunit is always longer than the first delay time of the first delay subunit by the delay time corresponding to the third number of delay subunits; when the thermometer code switches from an odd number to an even number, the second delay time of the second delay subunit changes from being longer than the first delay time of the first delay subunit by the delay time corresponding to the third number of delay subunits to being longer than the second delay time of the second delay subunit. Compared with the first delay time of the first delay subunit, the delay time corresponding to the third number of delay subunits is reduced; when the thermometer code is switched from an even number to an odd number, the second delay time of the second delay subunit is changed from compared with the first delay time of the first delay subunit, which is reduced by the third number of delay subunits, to the second delay time of the second delay subunit is compared with the first delay time of the first delay subunit, which is increased by the third number of delay subunits. In this way, the switching between the first delay time and the second delay time can be controlled by a simple thermometer code, and the time difference between the first delay time and the second delay time can be kept unchanged after the thermometer code is switched.

[0116] In an optional implementation, the switching range of the number of bits of the thermometer code is (1, +∞).

[0117] It can be understood that, since the first trigger unit is used in the embodiment of the present invention to output the final glitch-free output signal, and the first trigger unit is edge triggered, that is, the first delay signal can be output to the output port of the first trigger unit only when the first delay signal and the second delay signal change from different to the same, so that when the switching range of the number of bits of the thermometer code is at any value greater than 1, the first delay signal output by the first trigger unit is glitch-free.

[0118] like Figure 7-Figure 22 1 is a graph showing the change of the output signal output by the first trigger unit when different target signals are input under different conditions, wherein netA is the first delayed signal, netB is the second delayed signal, net XNOR is the trigger signal of the first trigger unit (i.e., the output signal of the XNOR gate after the first delayed signal and the second delayed signal are input into the XNOR gate), OUT is the output signal of the first trigger unit, and the dotted line moment represents the delay switching moment ( Figure 9-Figure 22The time indicated by CodeDelay Switching in the code is 1, and any bit of the thermometer code controls the gating of a preset number (the preset number is two) of delay subunits, and the even bits of the thermometer code are used to control the first delay subunit, and the odd bits of the thermometer code are used to control the second delay subunit, and half of the preset number (i.e., 1) of the second delay subunits are always kept on;

[0119] like Figure 7 The figure shows a delay chain unit in normal operation (i.e., the delay time will not be switched during operation). At this time, the thermometer code is 2m-1 (m is a positive integer). At this time, the first delay signal is delayed by 2m unit delays (the unit delay is the delay time corresponding to each delay subunit, and the delay subunit is the first delay subunit or the second delay subunit) compared to the target signal (the target signal is 1) input to the delay chain unit, and the second delay signal is delayed by 2m+1 unit delays compared to the target signal. It can be seen that no glitches are generated in the whole process; Figure 8 The figure shows the delay chain unit under normal operation. At this time, the thermometer code is 2m. At this time, the first delayed signal is delayed by 2m+2 unit delays compared to the target signal, and the second delayed signal is delayed by 2m+1 unit delays compared to the target signal. It can be seen that no glitches are generated in the whole process.

[0120] like Fig. 9 As shown, the first delay signal and the second delay signal are completely established as 1 (that is, the target signal input to the delay chain unit is 1, and all the first delay sub-units and the second delay sub-units are established). In this way, when the thermometer code is switched, the first delay signal and the second delay signal will remain stable without generating glitches. When the thermometer code is switched from 2m-1 to 2q (q is any positive integer not equal to m), the first delay signal after switching lags behind the second delay signal by one unit delay. It can be seen that the final output signal has no glitches. Fig.10 As shown, when the thermometer code is switched from 2m to 2q-1, the second delayed signal after switching lags behind the first delayed signal by one unit delay, and it can be seen that no burrs are generated in the final output signal;

[0121] like Fig.11 It is shown that both the first delay signal and the second delay signal are completely established to 0 (that is, the target signal of the delay chain unit input is 0). When the thermometer code switches from 2m-1 to 2q, the first delay signal lags behind the second delay signal by one unit delay. It can be seen that no glitches are generated in the final output signal.

[0122] like Fig.12It is shown that some delay units in the first delay unit and the second delay unit have not completed the establishment of 1 (at this time, the first delay signal or the second delay signal has not completed the establishment of 1, and because the delay unit has not been established, when switching the delay, if the delay time after the switch is longer, the first delay signal or the second delay signal needs to further establish the delay sub-unit, which will cause the delay signal to generate burrs, and the target signal is 1 at this time). Assuming that the first delay signal is established as 1 and the second delay signal is 0, and the thermometer code is switched from 2m-1 to 2q (where q is greater than m), after the switch, the first delay signal lags behind the second delay signal by one unit delay. It can be seen that the final output signal has no burrs, as shown in FIG. Fig.13 As shown in FIG. 1 , when the thermometer code switches from 2m-1 to 2q-1, the first delayed signal lags behind the second delayed signal by one unit delay. It can be seen that the final output signal has no glitches, as shown in FIG. Fig.14 As shown, if the first delay signal is still 0, and the second delay signal is established as 1, when the thermometer code switches from 2m to 2q-1, the second delay signal after switching lags behind the first delay signal by one unit delay. It can be seen that the final output signal has no burrs, such as Fig.15 As shown, when the thermometer code is switched from 2m to 2q, the first delayed signal lags behind the second delayed signal by one unit delay after the switching;

[0123] like Fig.16 As shown in FIG. 1 , when some delay units in the first delay unit and the second delay unit have not completed the establishment of 1, the target signal is 1 at this time. Assuming that the first delay signal and the second delay signal are both established as 1, when the thermometer code 2m-1 is switched to 2q-1 (at this time q is greater than m), the switched second delay signal lags behind the first delay signal by one unit delay. It can be seen that the final output signal has no burrs, and as shown in FIG. Fig.17 As shown, when the thermometer code is switched from 2m-1 to 2q, the first delayed signal after switching lags behind the second delayed signal by one unit delay, and it can be seen that no burrs are generated in the final output signal.

[0124] exist Fig.16 and Fig.17 In the case of, if the time between the switching moment of the thermometer code value and the triggering moment of the first trigger unit is short, so that the holding time of the first delay signal (the holding time is the time distance from the triggering moment to the code value switching moment) is not enough for the first trigger unit to complete the establishment, the first trigger unit cannot output the first delay signal to its own output end when triggered, and then outputs the first delay signal at the next triggering moment of the first trigger unit, such as Fig.18As shown in this case, when the thermometer code value 2m-1 is switched to 2q-1, the second delayed signal after switching lags behind the first delayed signal by one unit delay. It can be seen that the final output signal has no glitches, such as Fig.19 As shown in this case, when 2m-1 is switched to 2q, the first delayed signal after switching lags behind the first delayed signal by one delay unit. It can be seen that no burrs are generated in the final output signal.

[0125] like Fig. 20 As shown in the figure, when the target signal input is 0, if some delay units in the first delay subunit and the second delay subunit are not established as 0, if the first delay signal is established as 0 and the second delay signal is still 1, the thermometer code is switched from 2m-1 to 2q (at this time q is greater than m), and the first delay signal after switching lags behind the second delay signal by one delay unit. It can be seen that the final output signal has no burrs, and Fig.21 When the thermometer code is switched from 2m-1 to 2q-1, the second delayed signal after switching lags behind the first delayed signal by one delay unit. It can be seen that no burrs are generated in the final output signal.

[0126] like Fig. 22 As shown, when the target signal input is 1, if some delay units of the first delay subunit and the second delay subunit are not established as 1, and the first delay signal is established as 1, and the second delay signal is still 0, if the thermometer code is reduced from 2m-1 to 2q-1 or 2q (at this time q is less than m), then since the delay unit that needs to be established after the delay is less than the delay unit that needs to be established before the delay, only the unit that has been established before the delay can provide the delay required after the switch, so there is no need to establish the delay unit again. In this way, the first delay signal or the second delay signal will be established as 1 during the switch, and it can be seen that the final output signal has no glitches.

[0127] The technical solution provided by the present invention is introduced in detail above. The present invention applies specific examples to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

[0128] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0129] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0130] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0131] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0132] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A glitch-free delay chain switching circuit, characterized in that: include: A delay chain unit, configured to receive a target signal, and output a first delayed signal after delaying the target signal by a first delay time, and output a second delayed signal after delaying the target signal by a second delay time, wherein the first delay time is different from the second delay time; a delay switching unit, connected to the delay chain unit, configured to receive a delay switching instruction and output a switching signal upon receiving the delay switching instruction to switch the duration of the first delay time and / or the duration of the second delay time, wherein the time difference between the first delay time and the second delay time remains unchanged after switching; a trigger unit connected to the delay chain unit, configured to receive the first delay signal and the second delay signal, and output a trigger signal when the first delay signal and the second delay signal change from being different to being the same; The first trigger unit is connected to the trigger unit and the delay chain unit respectively, and is used to receive the trigger signal and the first delay signal, and output the first delay signal when receiving the trigger signal.

2. The glitch-free delay chain switching circuit according to claim 1, characterized in that: The trigger unit includes an XNOR gate, an input port of the XNOR gate is connected to the delay chain unit to input the first delay signal and the second delay signal respectively, and an output port of the XNOR gate is connected to the first trigger unit.

3. The glitch-free delay chain switching circuit according to claim 2, characterized in that: The first trigger unit includes a D trigger, a clock port of the D trigger is connected to the output port of the XNOR gate, and a data input port of the D trigger is connected to the delay chain unit to receive a first delay signal output by the delay chain unit.

4. The glitch-free delay chain switching circuit according to claim 1, characterized in that: The delay chain unit comprises: a first delay chain, connected to the trigger unit and the first trigger unit, respectively, the first delay chain comprising a first delay sub-unit, configured to receive the target signal and output a first delayed signal after delaying the target signal by a first delay time; A second delay chain is connected to the trigger unit, and the second delay chain includes a second delay sub-unit, which is used to receive the target signal and output a second delayed signal after delaying the target signal by a second delay time, wherein the second number of the second delay sub-units is different from the first number of the first delay sub-units.

5. The glitch-free delay chain switching circuit according to claim 4, characterized in that: It also includes a second trigger unit, wherein a data input port of the second trigger unit is connected to an output port of the second delay chain.

6. The glitch-free delay chain switching circuit according to claim 4, characterized in that: The first quantity and the second quantity have a quantitative relationship as shown in the following formula: NX=V1,NX+(N / 2)=V2; Wherein, N is a first preset value and is an even number, X is a second preset value and is a positive integer, V1 is the value of the first number, and V2 is the value of the second number.

7. A glitch-free delay chain switching method, characterized in that: include: Inputting a target signal into a delay chain unit, and delaying the target signal by a first delay time through the delay chain unit to obtain a first delayed signal; Inputting the target signal into the delay chain unit, and delaying the target signal by a second delay time through the delay chain unit to obtain a second delayed signal; Switching the values ​​of the first delay time and / or the second delay time, and outputting the switched first delay signal and / or the second delay signal, wherein the time difference between the first delay time and the second delay time remains unchanged after switching; When the first delay signal and the second delay signal after switching change from being different to being the same, the first delay signal is output through the first trigger unit.

8. The glitch-free delay chain switching method according to claim 7, characterized in that: The switching of the value of the first delay time and / or the second delay time includes: Controlling the number of first delay subunits in the delay chain unit to switch between different first delay times; The number of second delay subunits in the delay chain unit that are enabled is controlled to switch between different second delay times.

9. The glitch-free delay chain switching method according to claim 8, characterized in that: The switching of the value of the first delay time and / or the second delay time includes: Controlling the gating of a preset number of delay subunits by any bit of the thermometer code, wherein the delay subunit is the first delay subunit or the second delay subunit, and the even bits of the thermometer code are used to control the first delay subunit, and the odd bits of the thermometer code are used to control the second delay subunit; Keeping a third number of the second delay subunits always in a strobed state, wherein the third number is half of the preset number, and the preset number is an even number; The number of bits of the thermometer code is switched to switch the first delay time and / or the second delay time.

10. The glitch-free delay chain switching method according to claim 9, characterized in that: The switching range of the number of bits of the thermometer code is (1, +∞).