A discontinuous clock switching system and method

By using clock signal input terminals, selection signal input terminals, registers and combinational logic and state machine circuits in the flash memory controller for delayed beat processing and screening, the problem of glitch signals when switching discontinuous clock signals is solved and the clock signal is realized Stable switching ensures the accuracy of data reading.

CN114047799BActive Publication Date: 2024-09-06SHENZHEN CITY TECHWIN SEMICONDUCTOR COMPANY LIMITED
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111229431.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-21
Publication Date
2024-09-06
Estimated Expiration
2041-10-21

AI Technical Summary

Technical Problem

The existing technology easily generates glitch signals when switching discontinuous clock signals in flash memory controllers, leading to erroneous reading of data, and the existing methods of eliminating glitch signals are not applicable because the clock signals are discontinuous and the idle state is not uniform.

Method used

A non-continuous clock switching system and method is used to perform delayed beat processing and judgment screening of clock signals through clock signal input terminals, selection signal input terminals, registers, combinational logic and state machine circuits, and a specific encoding method is used to generate selection signals to stabilize the output clock signal.

Benefits of technology

It effectively eliminates burr signals generated when switching discontinuous clock signals, realizes stable switching of clock signals, solves the problem of switching failure, and ensures the stability of discontinuous clock signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114047799B
    Figure CN114047799B
Patent Text Reader

Abstract

The embodiment of the present invention provides a non-continuous clock switching system and method. The system includes: a clock signal input terminal, the clock signal input terminal is used to input a clock signal; a selection signal input terminal, the selection signal input terminal is used to input a selection signal; one or more registers, one or more registers are used to perform delayed beat processing on the clock signal according to the change of the selection signal after the clock signal is input; a combination logic and state machine circuit, the combination logic and state machine circuit is used to judge and filter the processed clock signal; a clock signal output terminal, used to output the clock signal after judgment and filtering. The above scheme can eliminate the glitch signal generated during the non-continuous clock switching and realize the stable switching of the non-continuous clock signal, solve the problem of non-continuous clock signal switching generating glitch signal or switching failure in the prior art, and achieve the technical effect of stable switching of non-continuous clock signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of clock signal switching, and in particular to a discontinuous clock switching system and method. Background Art

[0002] With the development of electronic technology and industrial demand, the operating frequency of integrated circuits continues to increase, and in the process of continuous performance improvement, some unavoidable problems have also been highlighted. In flash memory controllers, multiple clock signals are generally generated to communicate with storage units. Different clock signals are required in different working modes, and changing the working mode requires switching the clock signal. This process needs to consider the appearance of "glitch signals". In the prior art, when the selection signal changes, the clock signal switches from clock one to clock two, and then the output clock may have an unexpected glitch, and the tiny glitch signal brings additional clock edges, which will cause erroneous data reading in the storage controller.

[0003] In addition, the existing method for eliminating glitch signals is not applicable to flash memory controllers for two reasons. First, the clock signal is determined according to the data type and is not always continuous. Second, the idle state of the clock signal is not uniform (the default idle state of multiple clock signals is not always 0 or 1), which does not meet the conditions of conventional solutions. For example, since the switching signal needs to be based on the falling edge of clock one, but clock one is a discontinuous clock, the falling edge of clock one may never arrive after the selection signal is valid, resulting in the inability to switch the clock signal normally. Summary of the invention

[0004] In view of the above problems, an embodiment of the present invention provides a discontinuous clock switching system and method to reduce the generation of glitch signals during the discontinuous clock signal switching process, so as to achieve the effect of stable switching of the clock signal.

[0005] In a first aspect, an embodiment of the present invention provides a discontinuous clock switching system, including:

[0006] A clock signal input terminal, the clock signal input terminal is used to input a clock signal;

[0007] A selection signal input terminal, the selection signal input terminal is used to input a selection signal;

[0008] One or more registers, one or more registers are used to delay and beat the clock signal according to the change of the selection signal after the clock signal is input;

[0009] Combinatorial logic and state machine circuits, which are used to judge and screen the processed clock signals;

[0010] The clock signal output terminal and the clock signal input terminal are used to output the clock signal after judgment and screening.

[0011] Furthermore, the selection signal adopts a specific encoding method to stabilize the output clock.

[0012] Preferably, the clock signal comprises a synchronous clock signal or an asynchronous clock signal.

[0013] Furthermore, a clock switching unit is included, which is used to generate a selection signal when a clock switching request is obtained.

[0014] Preferably, the clock signal includes at least a first clock signal and a second clock signal.

[0015] In a second aspect, an embodiment of the present invention further provides a discontinuous clock switching method, including:

[0016] inputting a clock signal to one or more registers;

[0017] inputting a selection signal to one or more registers;

[0018] One or more registers perform delayed beat processing on the clock signal according to the change of the selection signal, and input the processed clock signal into the combinational logic and state machine circuit;

[0019] Judging and screening the processed clock signal;

[0020] Output the clock signal after judgment and screening.

[0021] Preferably, the selection signal adopts a specific encoding method to stabilize the output clock.

[0022] Preferably, the clock signal comprises a synchronous clock signal or an asynchronous clock signal.

[0023] Furthermore, before inputting the selection signal to one or more registers, the method further includes: generating a selection signal when a clock switching request is obtained.

[0024] Preferably, the selection signal at least includes: a first clock signal and a second clock signal.

[0025] According to the above scheme, after the clock signal is input, the register performs a corresponding delayed beat process according to the change of the selection signal, and then sends the processed clock signal to the combinational logic and state machine for judgment and screening, thereby obtaining and outputting the final clock signal for use at the next level. The glitch signal generated during the non-continuous clock switching is eliminated and the stable switching of the non-continuous clock signal is achieved, which solves the problem in the prior art that the non-continuous clock signal switching will generate a glitch signal or fail to switch, and achieves the technical effect of stable switching of the non-continuous clock signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 is a structural schematic diagram of a discontinuous clock switching system provided by Embodiment 1 of the present invention;

[0027] Figure 2 1 is a comparison diagram of the results of direct switching of the clock signal and switching after delayed beat processing in the first embodiment of the present invention;

[0028] Figure 3 It is a flowchart of a discontinuous clock switching method provided in Embodiment 2 of the present invention. DETAILED DESCRIPTION

[0029] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0030] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0031] In addition, the terms "first", "second", etc. may be used in this article to describe various directions, actions, steps or elements, but these directions, actions, steps or elements are not limited by these terms. These terms are only used to distinguish a first direction, action, step or element from another direction, action, step or element. For example, without departing from the scope of the present application, the first clock signal may be referred to as the second clock signal, and similarly, the second clock signal may be referred to as the first clock signal. Both the first clock signal and the second clock signal are clock signals, but they are not the same clock signal. The terms "first", "second", etc. should not be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0032] Embodiment 1

[0033] Figure 1It is a structural diagram of a non-continuous clock switching system provided in Example 1 of the present invention. This embodiment is applicable to the scenario of non-continuous clock signal switching. The system can be implemented in software and / or hardware and can be integrated on a server.

[0034] like Figure 1 As shown, the discontinuous clock switching system provided in the first embodiment of the present invention includes: a clock signal input terminal 100, a selection signal input terminal 200, one or more registers 300, a combinational logic and state machine circuit 400 and a clock signal output terminal 500.

[0035] Among them, the clock signal input terminal 100 is used to input the clock signal; the selection signal input terminal 200 is used to input the selection signal; the one or more registers 300 are used to delay the clock signal according to the change of the selection signal after the clock signal is input; the combinational logic and state machine circuit 400 is used to judge and filter the processed clock signal; the clock signal output terminal 500 is used to output the clock signal after judgment and screening.

[0036] In an embodiment of the present invention, the clock signal input terminal 100 may include a clock generator, and the clock signal is generated by the clock generator, which has only two levels, one is a low level and the other is a high level. In actual implementation, the clock signal input terminal 100 has the function of generating a clock signal and inputting the clock signal into a register, which may be an oscillator or a specific component. Among them, an oscillator is an energy conversion device that can convert direct current power into alternating current power with a certain frequency. The clock signal is a type of alternating current power. The specific component can perform frequency conversion processing on an external clock signal of a certain frequency through a frequency changing circuit or a frequency conversion device, and output a clock signal with a frequency different from that of the original clock signal. In an embodiment of the present invention, the clock signal includes a synchronous clock signal or an asynchronous clock signal. In addition, the clock signal input terminal may include a multi-bit clock signal, and may also include an enable signal and a clock signal.

[0037] The selection signal input terminal 200 is used to input the selection signal. In actual implementation, the selection signal adopts a specific encoding method to stabilize the output clock. If the selection signal has multiple bits, it is encoded in the form of Gray code. The advantage of this is that the number of bits that change when the selection signal is switched can be reduced; if the selection signal changes from 7 to 8, the ordinary 8421 encoding method is reflected as 0111 changes to 1000, and the four binary digits are all changed. In this embodiment, the risk of output clock errors increases, while the Gray code encoding method is reflected as 0100 changes to 1100, and only one binary digit changes, and the probability of error is smaller, so the purpose of stabilizing the output clock can be achieved.

[0038] Furthermore, an embodiment of the present invention also includes a clock switching unit, which is used to generate the selection signal when a clock switching request is obtained. The clock signal includes at least a first clock signal and a second clock signal. When the clock switching request is obtained, such as when the first clock signal is switched to the second clock signal, the selection signal is generated. In actual implementation, the clock switching unit will generate different selection signals according to the different functions required, thereby switching different clocks in the subsequent process to achieve the desired function. For example, in a data acquisition device, if you want to achieve the conversion between the operation of sending a command address and the operation of sending data, you need to judge and process the input clock signal or enable signal through a specific selection signal.

[0039] Specifically, after the clock signal is input to the one or more registers 300, the clock signal is delayed and beat according to the change of the selection signal. The advantage of such processing is that no matter whether a synchronous clock signal or an asynchronous clock signal is used, whether a continuous clock signal or a discontinuous clock signal is used, the generation of glitch signals when the clock signal is switched can be avoided, and it has excellent universality. In actual implementation, the delayed beat processing of the clock signal can be achieved by cascading two levels of edge-synchronous triggers, which can prevent the occurrence of metastable states and the phenomenon of delaying one clock cycle, so that multiple clock signals can be distinguished for stable clock selection and switching. For example, Figure 2 As shown, when the first clock signal clk_1 is an enable (we_n) signal, when we_n has a signal, the write valid signal w_valid will be set to 1, which is one of the conditions for write data transmission, and then the write data transmission will start. The second clock signal clk_2 is a dqs signal, which is a working clock to ensure data transmission. Due to the limitation of the circuit, when the selection signal changes, the first clock signal (i.e., we_n) cannot be immediately shielded and converted into the second clock signal (i.e., dqs) for data transmission by directly selecting in a traditional way, and a burr signal will be generated, resulting in erroneous sampling of data. In an embodiment of the present invention, the selection signal is first used as a trigger condition. If the selection signal is set to 1, the edge of the next second clock signal to arrive is waited. If the edge of the next second clock signal is indeed the expected edge, the output clock is switched to the second clock signal. The edge to be waited for can be a rising edge or a falling edge, depending on the clock signal that the user expects to convert. The embodiment of the present invention does not impose specific restrictions, thereby achieving stable switching of the clock signal.

[0040] Further, the combinational logic and state machine circuit 400 is used to judge and filter the processed clock signal. In the embodiment of the present invention, the combinational logic and state machine circuit 400 performs different processing according to different conversion modes. For example, when mode 1 requires a write enable (we_n) signal as a working clock, mode 2 requires dqs as a working clock, and mode 3 requires a read enable (re_n) signal as a working clock, when switching between the three modes, it is necessary to first filter the clock signals for their work, that is, it is necessary to determine the current clock and the clock to be switched next. For example, mode 1 represents the transmission of command and address signals, mode 2 represents the writing of data, and mode 3 represents the reading of data. When switching from mode 1 to mode 2 is a conversion mode, switching from mode 1 to mode 3 is another conversion mode. The combinational logic and state machine circuit completes the clock switching according to the relationship between the clock signals after screening after considering the conversion conditions of several modes. Further, the clock signal output terminal 500 is used to output the clock signal after judgment and screening.

[0041] According to the above scheme, after the clock signal is input, the register performs a corresponding delayed beat process according to the change of the selection signal, and then sends the processed clock signal to the combinational logic and state machine for judgment and screening, thereby obtaining and outputting the final clock signal for use at the next level. The glitch signal generated during the non-continuous clock switching is eliminated and the stable switching of the non-continuous clock signal is achieved, which solves the problem in the prior art that the non-continuous clock signal switching will generate a glitch signal or fail to switch, and achieves the technical effect of stable switching of the non-continuous clock signal.

[0042] Embodiment 2

[0043] Figure 3 This is a flow chart of a discontinuous clock signal switching method provided by Embodiment 2 of the present invention. This embodiment is applicable to the scenario of discontinuous clock signal switching, and the method can be executed by a discontinuous clock signal switching system and can be integrated on a server.

[0044] like Figure 3 As shown, the discontinuous clock signal switching method provided by the second embodiment of the present invention includes:

[0045] S110, inputting a clock signal into one or more registers;

[0046] S120, inputting a selection signal to the one or more registers;

[0047] S130, the one or more registers perform delayed beat processing on the clock signal according to the change of the selection signal, and input the processed clock signal into the combinational logic and state machine circuit;

[0048] S140, judging and screening the processed clock signal;

[0049] S150, output the clock signal after judgment and screening.

[0050] In an embodiment of the present invention, the clock signal can be input into one or more registers through the clock signal input terminal; the selection signal can be input into the one or more registers through the selection signal input terminal; the one or more registers perform delayed beat processing on the clock signal according to the change of the selection signal, and input the processed clock signal into the combinational logic and state machine circuit; the processed clock signal is judged and screened through the combinational logic and state machine circuit; finally, the clock signal after judgment and screening is output from the clock signal output terminal for use by the next stage.

[0051] Before the selection signal is input to the one or more registers, it also includes: when a clock switching request is obtained, the selection signal is generated. Wherein, the clock signal includes at least a first clock signal and a second clock signal. When the clock switching request is obtained, such as when the first clock signal is switched to the second clock signal, the selection signal is generated. In actual implementation, the clock switching unit will generate different selection signals according to the different functions required, so as to switch different clocks in the subsequent process to achieve the desired function. For example, in a data acquisition device, if you want to realize the conversion between the operation of sending a command address and the operation of sending data, you need to judge and process the input clock signal or enable signal through a specific selection signal.

[0052] In the embodiment of the present invention, the clock signal includes a synchronous clock signal or an asynchronous clock signal.

[0053] In actual implementation, the selection signal adopts a specific encoding method to stabilize the output clock. If the selection signal has multiple bits, it is encoded in the form of Gray code. The advantage of this is that the number of bits that change when the selection signal is switched can be reduced; if the selection signal changes from 7 to 8, the ordinary 8421 encoding method is reflected in 0111 changing to 1000, and all four binary digits are changed. In this embodiment, the risk of output clock errors increases, while the Gray code encoding method is reflected in 0100 changing to 1100, and only one binary digit changes, and the probability of error is smaller, so the purpose of stabilizing the output clock can be achieved.

[0054] Specifically, after the clock signal is input to the one or more registers, the clock signal is delayed and beat according to the change of the selection signal. The advantage of such processing is that no matter whether a synchronous clock signal or an asynchronous clock signal is used, whether a continuous clock signal or a discontinuous clock signal is used, a glitch signal can be avoided when the clock signal is switched, and it has excellent universality. Furthermore, the combinational logic and state machine circuit 400 is used to judge and filter the processed clock signal. In an embodiment of the present invention, the combinational logic and state machine circuit 400 performs different processing according to different conversion modes, and then outputs the desired clock signal.

[0055] According to the above scheme, after the clock signal is input, the register performs a corresponding delayed beat process according to the change of the selection signal, and then sends the processed clock signal to the combinational logic and state machine for judgment and screening, thereby obtaining and outputting the final clock signal for use at the next level. The glitch signal generated during the non-continuous clock switching is eliminated and the stable switching of the non-continuous clock signal is achieved, which solves the problem in the prior art that the non-continuous clock signal switching will generate a glitch signal or fail to switch, and achieves the technical effect of stable switching of the non-continuous clock signal.

[0056] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A discontinuous clock switching system, characterized in that: include: A clock signal input terminal, wherein the clock signal input terminal is used to input a clock signal; A selection signal input terminal, wherein the selection signal input terminal is used to input a selection signal; One or more registers, wherein the one or more registers are used to delay and beat the clock signal according to the change of the selection signal after the clock signal is input; A combinational logic and state machine circuit, wherein the combinational logic and state machine circuit is used to judge and filter the processed clock signal, and the combinational logic and state machine circuit completes the clock switching according to the relationship between the filtered clock signals after considering the conversion conditions of several modes; A clock signal output terminal, wherein the clock signal input terminal is used to output the clock signal after judgment and screening; The clock signal comprises a synchronous clock signal or an asynchronous clock signal; It also includes a clock switching unit, which is used to generate the selection signal when a clock switching request is obtained; The selection signal is used as a trigger condition. If the selection signal is set to one, the next edge of the second clock signal is waited for. If the next edge of the second clock signal is indeed the expected edge, the output clock is switched to the second clock signal.

2. The discontinuous clock switching system according to claim 1, characterized in that: The selection signal adopts a specific encoding method to stabilize the output clock.

3. The discontinuous clock switching system according to claim 1, characterized in that: The clock signal includes at least a first clock signal and a second clock signal.

4. A method for switching a discontinuous clock, characterized in that: include; inputting a clock signal to one or more registers; inputting a selection signal to the one or more registers; The one or more registers perform delayed beat processing on the clock signal according to the change of the selection signal, and input the processed clock signal to the combinational logic and state machine circuit, the combinational logic and state machine circuit is used to judge and filter the processed clock signal, and the combinational logic and state machine circuit completes the clock switching according to the relationship between the filtered clock signals after considering the conversion conditions of several modes; Judging and screening the processed clock signal; Output the clock signal after judgment and screening; The clock signal comprises a synchronous clock signal or an asynchronous clock signal; Before inputting the selection signal to the one or more registers, the method further includes: generating the selection signal when a clock switching request is obtained; The selection signal is used as a trigger condition. If the selection signal is set to one, the next edge of the second clock signal is waited for. If the next edge of the second clock signal is indeed the expected edge, the output clock is switched to the second clock signal.

5. The discontinuous clock switching method according to claim 4, characterized in that: The selection signal adopts a specific encoding method to stabilize the output clock.

6. The discontinuous clock switching method according to claim 4, characterized in that: The selection signal at least includes: a first clock signal and a second clock signal.