Regulation circuit of reset signal and system-on-chip

By designing a reset signal adjustment circuit in the asynchronous reset circuit, synchronizing the initial reset signal and loading the identification signal, and adjusting the release edge of the reset signal, so that it is located within the gated period of the gated clock signal, the reset signal in the asynchronous reset circuit is solved The issue of uncertain release time improves the stability of the chip circuit.

CN119010849APending Publication Date: 2024-11-22HAINING ESWIN IC DESIGN CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411035687.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the asynchronous reset circuit, the release time of the reset signal is uncertain, making it difficult to ensure the recovery time and removal time, resulting in metastable state and affecting the stability of the chip circuit.

Method used

A reset signal adjustment circuit is designed, and the initial reset signal and the load mark signal are synchronized through the preprocessing circuit to generate the first reset signal and the first load mark signal, and the reset signal output circuit is used to adjust the release edge of the reset signal, so that the It is located during the gated period of the gated clock signal, ensuring that the release edge of the reset signal meets the recovery time and removal time.

Benefits of technology

It effectively avoids the emergence of metastable state, improves the operating stability of the circuit in the chip, ensures that the reset signal is released at the appropriate time, and avoids hardware crashes caused by the circuit due to the unstable state.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119010849A_ABST
    Figure CN119010849A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of integrated circuits, and discloses a reset signal adjusting circuit and a system-on-chip. The reset signal adjusting circuit comprises a preprocessing circuit configured to receive an initial reset signal, an initial loading identification signal and an initial clock signal, and synchronize the initial reset signal and the initial loading identification signal in response to the initial clock signal to obtain a first reset signal and a first loading identification signal; the reset signal output circuit is configured to adjust the release edge based on the first reset signal and generate an adjusted reset signal; and the clock gating circuit is configured to gate the initial clock signal based on the first loading identification signal to generate a gated clock signal. Wherein a release edge of the modulated reset signal is located within a gating period of the gated clock signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of integrated circuits, and in particular to a reset signal adjustment circuit and a system-on-chip. Background Art

[0002] Reset circuits play a very important role in digital circuits. Reset circuits can generate reset signals, which are used to restore the circuit to its initial state. For example, during simulation, the reset signal can make the simulation circuit enter an initialization state or a known specific state, and then the simulation circuit can perform subsequent simulation operations based on the specific state. For another example, in integrated circuit design, the reset signal can make the designed hardware circuit enter a stable and certain state, thereby avoiding hardware crashes caused by the circuit entering a random state after power-on.

[0003] Asynchronous reset means that the reset signal does not work with the edge trigger of the clock signal. Asynchronous reset can ensure that there is no reset signal on the data path, so that the data path converges better. At the same time, reset can be completed without a clock signal. However, in the asynchronous reset circuit, since the release time of the reset signal is uncertain, it is difficult to ensure that the recovery time (Recovery Time) and removal time (Removal Time) are met, which will cause metastable state. Summary of the invention

[0004] In view of this, the embodiments of the present disclosure provide a reset signal adjustment circuit and a system-on-chip, which can avoid the occurrence of a metastable state and improve the stability of circuit operation in the chip.

[0005] The technical solution of the embodiment of the present disclosure is implemented as follows:

[0006] An embodiment of the present disclosure provides an adjustment circuit for a reset signal, comprising: a preprocessing circuit, configured to receive an initial reset signal, an initial loading identification signal and an initial clock signal, and synchronize the initial reset signal and the initial loading identification signal in response to the initial clock signal to obtain a first reset signal and a first loading identification signal; a reset signal output circuit, coupled to the preprocessing circuit, configured to adjust a release edge based on the first reset signal to generate an adjusted reset signal; a clock gating circuit, coupled to the preprocessing circuit, configured to gate the initial clock signal based on the first loading identification signal to generate a gated clock signal; wherein the release edge of the adjusted reset signal is within a gating period of the gated clock signal.

[0007] Optionally, the reset signal output circuit is further configured to generate a second reset signal based on the first reset signal and the first loading identification signal, and to adjust the release edge of the second reset signal to generate the adjusted reset signal.

[0008] Optionally, the reset signal output circuit includes: a first delay module, configured to receive the first reset signal or the second reset signal, delay the release edge, and generate the adjusted reset signal; wherein the delay amount of the first delay module is less than the gating period of the gated clock signal.

[0009] Optionally, the first delay module includes: n levels of cascaded first synchronizers; n is greater than or equal to 1; the data input end of the first synchronizer of the first level receives the first reset signal or the second reset signal; the in-phase output end of the first synchronizer of the nth level outputs the adjusted reset signal; the clock end of each level of the first synchronizer receives the initial clock signal, and the reset end of each level of the first synchronizer receives the first reset signal.

[0010] Optionally, the reset signal output circuit further includes: a first logic gate configured to receive the first reset signal and the first loading identification signal to generate the second reset signal.

[0011] Optionally, the clock gating circuit includes: a gating enable signal generating circuit, configured to generate a gating enable signal based on the first loading identification signal; a gated clock signal generating circuit, coupled to the gating enable signal generating circuit, configured to gate the initial clock signal based on the gating enable signal to generate the gated clock signal.

[0012] Optionally, the gating enable signal generating circuit includes: a second delay module, configured to receive the first loading identification signal, delay the changing edge of the first loading identification signal, and generate a second loading identification signal; wherein the delay amount of the second delay module is equal to the gating period of the gating clock signal; an inverter, the input end of the inverter is coupled to the output end of the second delay module; a second logic gate, the first input end of the second logic gate is coupled to the output end of the second delay module, the second input end of the second logic gate is coupled to the output end of the inverter, and the second logic gate outputs the gating enable signal.

[0013] Optionally, the second delay module includes: m levels of second synchronizers connected in series; m is greater than n; the data input end of the first level of the second synchronizer receives the first loading identification signal; the in-phase output end of the mth level of the second synchronizer outputs the second loading identification signal; the clock end of each level of the second synchronizer receives the initial clock signal, and the reset end of each level of the second synchronizer receives the first reset signal.

[0014] Optionally, the gated clock signal generating circuit includes: a latch, a control end of the latch receiving the gated enable signal, a clock end of the latch receiving the initial clock signal, and an in-phase output end of the latch outputting the gated clock signal.

[0015] Optionally, the preprocessing circuit includes: a third synchronizer, configured to synchronize the initial reset signal in response to the initial clock signal to obtain the first reset signal; wherein the clock end of the third synchronizer receives the initial clock signal, the reset end of the third synchronizer receives the initial reset signal, the data input end of the third synchronizer is set to a high level, and the in-phase output end of the third synchronizer outputs the first reset signal; a fourth synchronizer, configured to synchronize the initial loading identification signal in response to the initial clock signal to obtain the first loading identification signal; wherein the clock end of the fourth synchronizer receives the initial clock signal, the data input end of the fourth synchronizer receives the initial loading identification signal, the reset end of the fourth synchronizer receives the first reset signal, and the in-phase output end of the fourth synchronizer outputs the first loading identification signal.

[0016] The embodiment of the present disclosure further provides a system-level chip, comprising: at least one reset signal adjustment circuit as described in the above solution.

[0017] Optionally, the system-level chip also includes: at least one intellectual property core; wherein each adjustment circuit of the reset signal is coupled to a corresponding one of the intellectual property cores to provide the adjusted reset signal and the gated clock signal to the corresponding one of the intellectual property cores.

[0018] It can be seen that in the disclosed embodiment, the release edge of the reset signal can be adjusted and a gated clock signal corresponding to the timing can be generated so that the release edge of the adjusted reset signal is within the gated period of the gated clock signal. In this way, the release edge of the adjusted reset signal can meet the recovery time and the removal time, thereby avoiding the occurrence of a metastable state and improving the stability of the circuit operation in the chip. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 The signal waveform provided by the embodiment of the present disclosure is shown as follows: Figure 1 ;

[0021] Figure 2 The signal waveform provided by the embodiment of the present disclosure is shown as follows: Figure 2 ;

[0022] Figure 3 A schematic diagram of a reset signal adjustment circuit provided in an embodiment of the present disclosure Figure 1 ;

[0023] Figure 4 A schematic diagram of a reset signal adjustment circuit provided in an embodiment of the present disclosure Figure 2 ;

[0024] Figure 5 A schematic diagram of a reset signal adjustment circuit provided in an embodiment of the present disclosure Figure 3 ;

[0025] Figure 6 A schematic diagram of a reset signal adjustment circuit provided in an embodiment of the present disclosure Figure 4 ;

[0026] Figure 7 The signal waveform provided by the embodiment of the present disclosure is shown as follows: Figure 3 ;

[0027] Figure 8 The signal waveform provided by the embodiment of the present disclosure is shown as follows: Figure 4 ;

[0028] Fig. 9 A schematic diagram of the structure of a system-on-chip provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the specific embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0030] In the following description, a large number of specific details are given to provide a more thorough understanding of the present disclosure. However, it is obvious to those skilled in the art that the present disclosure can be implemented without one or more of these details. In other examples, in order to avoid confusion with the present disclosure, some technical features known in the art are not described; that is, all features of actual embodiments are not described here, and well-known functions and structures are not described in detail.

[0031] In the drawings, the sizes of layers, regions, elements and their relative sizes may be exaggerated for clarity. Like reference numerals denote like elements throughout.

[0032] It should be understood that although the terms first, second, third, etc. can be used to describe various elements, components, regions, layers and / or parts, these elements, components, regions, layers and / or parts should not be limited by these terms. These terms are only used to distinguish an element, component, region, layer or part from another element, component, region, layer or part. Therefore, without departing from the teachings of the present disclosure, the first element, component, region, layer or part discussed below can be represented as a second element, component, region, layer or part. And when the second element, component, region, layer or part discussed, it does not indicate that the present disclosure necessarily has a first element, component, region, layer or part.

[0033] The purpose of the terms used herein is only to describe specific embodiments and is not intended to be a limitation of the present disclosure. When used herein, the singular "one", "an" and "said / the" are also intended to include plural forms, unless the context clearly indicates another way. It should also be understood that the terms "composition" and / or "comprising" when used in this specification determine the existence of the features, integers, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, integers, steps, operations, elements, parts and / or groups. When used herein, the term "and / or" includes any and all combinations of the relevant listed items. All numerical ranges herein include endpoint values.

[0034] It should be noted that Figure 1 and Figure 2 In the example, the effective edge of the clock signal CLK is the rising edge, that is, the rising edge of the clock signal CLK will act on the trigger. Figure 1 , recovery time trc, refers to the minimum time interval between the release edge of the reset signal RST and the next valid edge of the clock signal CLK. Figure 2 , the removal time trm, refers to the minimum time interval between the release edge of the reset signal RST and the last valid edge of the clock signal CLK.

[0035] It takes a certain amount of time for the signal to reach a stable state during the transition process. If the reset signal RST cannot meet the recovery time trc and the removal time trm, then when the effective edge of the clock signal CLK arrives, the reset signal RST may not reach a stable state. In this way, the trigger acted by the reset signal RST and the clock signal CLK will be metastable, that is, the trigger cannot reach a verifiable state within the specified time period, which will cause the voltage of the trigger to float, and in severe cases, it may cause the system to crash.

[0036] Figure 3 FIG. 1 is an optional structural diagram of a reset signal adjustment circuit provided in an embodiment of the present disclosure. Figure 3 As shown, the reset signal adjustment circuit 100 includes: a pre-processing circuit 110, a reset signal output circuit 120 and a clock gating circuit.

[0037] The preprocessing circuit 110 is configured to receive an initial reset signal rstn_i, an initial load identification signal ld (ie, load_done) and an initial clock signal clk_i, and synchronize the initial reset signal rstn_i and the initial load identification signal ld in response to the initial clock signal clk_i to obtain a first reset signal rstn_1 and a first load identification signal ld_1.

[0038] The reset signal output circuit 120 is coupled to the pre-processing circuit 110. The reset signal output circuit 120 is configured to adjust a release edge based on the first reset signal rstn_1 to generate an adjusted reset signal rstn_o.

[0039] The clock gating circuit 130 is coupled to the preprocessing circuit 110. The clock gating circuit 130 is configured to gate the initial clock signal clk_i based on the first loading identification signal ld_1 to generate a gated clock signal clk_o, wherein the release edge of the adjusted reset signal rstn_o is within the gating period of the gated clock signal clk_o.

[0040] In the disclosed embodiment, the preprocessing circuit 110 can synchronize the initial reset signal rstn_i and the initial loading identification signal ld with the initial clock signal clk_i. In this way, subsequent signal processing can be performed based on the synchronized first reset signal rstn_1 and the first loading identification signal ld_1, and the subsequent signals can be synchronized with the clock signal, ensuring the accuracy of the timing of the signal.

[0041] At the same time, since the first reset signal rstn_1 and the first loading identification signal ld_1 are both synchronized with the initial clock signal clk_i, the timing relationship between the first reset signal rstn_1 and the first loading identification signal ld_1 is determined. The reset signal rstn_o and the gated clock signal clk_o are obtained based on the reset signal rstn_1 and the first loading identification signal ld_1. On this basis, the timing relationship between the reset signal rstn_o and the gated clock signal clk_o can be accurately controlled, so that the release edge of the adjusted reset signal rstn_o can be located within the gated period of the gated clock signal clk_o.

[0042] In addition, by synchronizing the initial reset signal rstn_i and the initial load identification signal ld, glitches in the initial reset signal rstn_i and the initial load identification signal ld can be eliminated, thereby improving the accuracy of the final output adjusted reset signal rstn_o and the gated clock signal clk_o.

[0043] In the embodiment of the present disclosure, the reset signal output circuit 120 can adjust the release edge based on the first reset signal rstn_1. The release edge of the reset signal refers to the change edge of the reset signal from the valid level to the invalid level; correspondingly, the valid edge of the reset signal refers to the change edge of the reset signal from the invalid level to the valid level. Figure 7 or Figure 8 , the low level of the adjusted reset signal rstn_o is the valid level, the high level of the adjusted reset signal rstn_o is the invalid level, and accordingly, the rising edge of the adjusted reset signal rstn_o is the release edge.

[0044] In the embodiment of the present disclosure, the clock gating circuit 130 can gate the initial clock signal clk_i based on the first loading identification signal ld_1. Figure 7 or Figure 8 , within a certain period (i.e., the gating period), the clock transition in the initial clock signal clk_i is turned off and a level is maintained ( Figure 7 and Figure 8 , where the gated clock signal clk_o is obtained.

[0045] It can be understood that the gated clock signal clk_o maintains a level during the gated period without jumping, that is, there is no change edge. Therefore, the release edge of the adjusted reset signal rstn_o is located within the gated period of the gated clock signal clk_o, which means that there is a sufficient time interval between the release edge of the adjusted reset signal rstn_o and the last valid edge of the clock signal CLK, and there is also a sufficient time interval between the release edge of the adjusted reset signal rstn_o and the next valid edge of the clock signal CLK. In this way, the release edge of the adjusted reset signal rstn_o can meet the recovery time and removal time, thereby avoiding the occurrence of metastable state and improving the stability of circuit operation in the chip.

[0046] Figure 4 FIG. 1 is an optional structural diagram of a reset signal adjustment circuit provided in an embodiment of the present disclosure. Figure 4 As shown, in some embodiments of the present disclosure, the reset signal output circuit 120 is further configured to generate a second reset signal based on the first reset signal rstn_1 and the first loading identification signal ld_1, and to adjust the release edge of the second reset signal to generate an adjusted reset signal rstn_o.

[0047] In the embodiment of the present disclosure, the release edge of the reset signal rstn_o can be generated based on the first reset signal rstn_1 and the first load identification signal ld_1, that is, based on the change edge of the initial reset signal rstn_i and the initial load identification signal ld. Figure 7 , the initial reset signal rstn_i maintains a high level without a change edge, and the initial load identification signal ld contains a rising edge, then the release edge of the adjusted reset signal rstn_o is generated based on the rising edge of the initial load identification signal ld. Figure 8 , the initial reset signal rstn_i contains a rising edge, and the initial load identification signal ld maintains a high level without a changing edge, then the release edge of the adjusted reset signal rstn_o is generated based on the rising edge of the initial reset signal rstn_i.

[0048] It can be understood that the release edge of the adjusted reset signal rstn_o is generated based on the change edges in the initial reset signal rstn_i and the initial loading identification signal ld. In this way, it is possible to avoid the failure to generate the release edge of the adjusted reset signal rstn_o due to the lack of a change edge in the initial reset signal rstn_i, thereby ensuring that the release edge of the adjusted reset signal rstn_o can be effectively generated.

[0049] In some embodiments of the present disclosure, reference Figure 5 or Figure 6The reset signal output circuit 120 includes: a first delay module 121. The first delay module 121 is configured to receive the first reset signal rstn_1 or the second reset signal rstn_2, delay the release edge, and generate the adjusted reset signal rstn_o. The delay amount of the first delay module 121 is less than the gate period of the gated clock signal clk_o.

[0050] In the embodiments of the present disclosure, reference Figure 5 Since the first reset signal rstn_1 and the first load identification signal ld_1 are both synchronized, the timing relationship between the first reset signal rstn_1 and the first load identification signal ld_1 is determined. Furthermore, since the gated period of the gated clock signal clk_o is set based on the first load identification signal ld_1, the release edge of the first reset signal rstn_1 is delayed, and the delay amount is made smaller than the gated period of the gated clock signal clk_o, so that the release edge of the adjusted reset signal rstn_o can be located within the gated period of the gated clock signal clk_o.

[0051] In the embodiments of the present disclosure, reference Figure 6 Since the first reset signal rstn_1 and the first load identification signal ld_1 are both synchronized, and the second reset signal rstn_2 is obtained based on the first reset signal rstn_1 and the first load identification signal ld_1, the timing relationship between the second reset signal rstn_2 and the first load identification signal ld_1 is determined. Furthermore, since the gated period of the gated clock signal clk_o is set based on the first load identification signal ld_1, the release edge of the second reset signal rstn_2 is delayed, and the delay amount is made smaller than the gated period of the gated clock signal clk_o, so that the release edge of the adjusted reset signal rstn_o can be located within the gated period of the gated clock signal clk_o.

[0052] In some embodiments of the present disclosure, reference Figure 5 or Figure 6 The first delay module 121 includes: n-stage first synchronizers connected in cascade, where n is greater than or equal to 1. The data input terminal D of the first-stage first synchronizer receives the first reset signal rstn_1 or the second reset signal rstn_2. The in-phase output terminal Q of the n-stage first synchronizer outputs the adjusted reset signal rstn_o. The clock terminal ck of each stage of the first synchronizer receives the initial clock signal clk_i, and the reset terminal of each stage of the first synchronizer receives the first reset signal rstn_1.

[0053] In the disclosed embodiment, the delay amount of the first delay module 121 is the sum of the delay amounts of n-level first synchronizers. For example, two levels of first synchronizers can be set, and the delay amount of each level of first synchronizer is 3 clock cycles, then the delay amount of the first delay module 121 is 6 clock cycles, expressed as syn3*2.

[0054] In some embodiments of the present disclosure, reference Figure 6 The reset signal output circuit 120 further includes: a first logic gate 122. The first logic gate 122 is configured to receive the first reset signal rstn_1 and the first load identification signal ld_1, and generate a second reset signal rstn_2.

[0055] In the embodiment of the present disclosure, the first logic gate 122 can be configured as an AND gate.

[0056] For example, combined with Figure 6 and Figure 7 , the initial reset signal rstn_i maintains a high level without a changing edge, and the first reset signal rstn_1 maintains a high level without a changing edge; at the same time, the initial loading identification signal ld contains a rising edge, and the first loading identification signal ld_1 contains a rising edge; then, the second reset signal rstn_2 generated by the first reset signal rstn_1 and the first loading identification signal ld_1 through a logical AND operation contains a release edge (rising edge); thus, the adjusted reset signal rstn_o contains a release edge (rising edge), wherein the release edge of the adjusted reset signal rstn_o is generated based on the rising edge in the initial loading identification signal ld.

[0057] For example, combined Figure 6 and Figure 8 , the initial reset signal rstn_i contains a release edge (rising edge), then the first reset signal rstn_1 contains a release edge (rising edge); at the same time, the initial loading identification signal ld maintains a high level without a change edge, then the first loading identification signal ld_1 maintains a high level without a change edge; then, the second reset signal rstn_2 generated by the first reset signal rstn_1 and the first loading identification signal ld_1 through a logical AND operation contains a release edge (rising edge); thus, the adjusted reset signal rstn_o contains a release edge (rising edge), wherein the release edge of the adjusted reset signal rstn_o is generated based on the rising edge in the initial reset signal rstn_i.

[0058] It should be noted that the first logic gate 122 can be set according to the valid level of the initial reset signal rstn_i and the valid level of the initial loading identification signal ld, that is, the first logic gate 122 can also be set to other types of logic gates, such as an OR gate. The present disclosure is not limited here.

[0059] It can be understood that the delay amount of the first delay module 121 is set so that the delay amount of the first delay module 121 is less than the gate period of the gated clock signal clk_o. In this way, the release edge of the adjusted reset signal rstn_o can be located within the gate period of the gated clock signal clk_o. Therefore, the release edge of the adjusted reset signal rstn_o can meet the recovery time and removal time, avoid the occurrence of metastable state, and improve the stability of circuit operation in the chip.

[0060] In some embodiments of the present disclosure, reference Figure 5 or Figure 6 The clock gating circuit 130 includes: a gating enable signal generating circuit 131 and a gating clock signal generating circuit 132. The gating enable signal generating circuit 131 is configured to generate a gating enable signal clk_en based on the first loading identification signal ld_1. The gating clock signal generating circuit 132 is coupled to the gating enable signal generating circuit 131. The gating clock signal generating circuit 132 is configured to gate the initial clock signal clk_i based on the gating enable signal clk_en to generate a gated clock signal clk_o.

[0061] In the embodiments of the present disclosure, reference Figure 7 The low level interval of the gated enable signal clk_en corresponds to the gated period of the gated clock signal clk_o. During the gated period, the gated clock signal clk_o maintains a low level without jumping.

[0062] In some embodiments of the present disclosure, reference Figure 5 or Figure 6 , the gated enable signal generating circuit 131 includes: a second delay module 133, an inverter Inv and a second logic gate 134. The second delay module 133 is configured to receive the first load identification signal ld_1, delay the change edge of the first load identification signal ld_1, and generate the second load identification signal ld_2; wherein the delay amount of the second delay module 133 is equal to the gated period of the gated clock signal clk_o. Inverter Inv, the input end of the inverter Inv is coupled to the output end of the second delay module 133. Second logic gate 134, the first input end of the second logic gate 134 is coupled to the output end of the second delay module 133, the second input end of the second logic gate 134 is coupled to the output end of the inverter Inv, and the second logic gate 134 outputs the gated enable signal clk_en.

[0063] In the disclosed embodiment, the delay amount of the second delay module 133 determines the width of the low level interval of the gated enable signal clk_en, thereby determining the gated period of the gated clock signal clk_o. For example, if the delay amount of the second delay module 133 is 15 clock cycles, the gated period of the gated clock signal clk_o is 15 clock cycles.

[0064] In the embodiment of the present disclosure, the second logic gate 134 may be a NAND gate. Figure 6 and Figure 7 The initial loading identification signal ld contains a rising edge, so the first loading identification signal ld_1 obtained after sampling contains a rising edge; further, the first loading identification signal ld_1 is delayed and inverted, and then a logic AND operation is performed with the first loading identification signal ld_1 to obtain a gated enable signal clk_en with a low level interval.

[0065] It should be noted that the second logic gate 134 can be set according to the change edge of the initial loading identification signal ld, that is, the second logic gate 134 can also be set to other types of logic gates, such as an OR gate. The present disclosure is not limited here.

[0066] In some embodiments of the present disclosure, reference Figure 5 or Figure 6 The second delay module 133 includes: m-level second synchronizers connected in cascade, where m is greater than n. The data input terminal D of the first-level second synchronizer receives the first loading identification signal ld_1. The in-phase output terminal Q of the m-th-level second synchronizer outputs the second loading identification signal ld_2. The clock terminal ck of each level of the second synchronizer receives the initial clock signal clk_i, and the reset terminal of each level of the second synchronizer receives the first reset signal rstn_1.

[0067] In the disclosed embodiment, the delay amount of the second delay module 133 is the sum of the delay amounts of the m-level second synchronizers. For example, 5 levels of second synchronizers can be set, and the delay amount of each level of second synchronizer is 3 clock cycles, then the delay amount of the second delay module 133 is 15 clock cycles, expressed as syn3*5.

[0068] In the disclosed embodiment, if the delay amount of each second synchronizer is equal to the delay amount of each first synchronizer, for example, both are 3 clock cycles, then the level m of the second synchronizer needs to be greater than the level n of the first synchronizer to ensure that the delay amount of the second delay module 133 is greater than the delay amount of the first delay module 121, so that the delay amount of the first delay module 121 is less than the gating period of the gated clock signal clk_o, that is, the release edge of the adjusted reset signal rstn_o is within the gating period of the gated clock signal clk_o.

[0069] In some embodiments of the present disclosure, reference Figure 5 or Figure 6 The gated clock signal generating circuit 132 includes a latch Lat. The control terminal EN of the latch Lat receives the gated enable signal clk_en, the clock terminal ck of the latch Lat receives the initial clock signal clk_i, and the in-phase output terminal Q of the latch Lat outputs the gated clock signal clk_o.

[0070] It can be understood that the delay amount of the second delay module 133 is set so that the delay amount of the second delay module 133 is equal to the gate period of the gated clock signal clk_o, that is, the delay amount of the second delay module 133 is greater than the delay amount of the first delay module 121. In this way, the release edge of the adjusted reset signal rstn_o can be located within the gate period of the gated clock signal clk_o. Therefore, the release edge of the adjusted reset signal rstn_o can meet the recovery time and removal time, avoid the occurrence of metastable state, and improve the stability of circuit operation in the chip.

[0071] In some embodiments of the present disclosure, reference Figure 5 or Figure 6 The preprocessing circuit 110 includes: a third synchronizer 111 and a fourth synchronizer 112. The third synchronizer 111 is configured to synchronize the initial reset signal rstn_i in response to the initial clock signal clk_i to obtain the first reset signal rstn_1. The clock terminal ck of the third synchronizer 111 receives the initial clock signal clk_i, the reset terminal of the third synchronizer 111 receives the initial reset signal rstn_i, the data input terminal D of the third synchronizer 111 is set to a high level (i.e., D=1), and the in-phase output terminal Q of the third synchronizer 111 outputs the first reset signal rstn_1. The fourth synchronizer 112 is configured to synchronize the initial load identification signal ld in response to the initial clock signal clk_i to obtain the first load identification signal ld_1. Among them, the clock terminal ck of the fourth synchronizer 112 receives the initial clock signal clk_i, the data input terminal D of the fourth synchronizer 112 receives the initial loading identification signal ld, the reset terminal of the fourth synchronizer 112 receives the first reset signal rstn_1, and the in-phase output terminal Q of the fourth synchronizer outputs the first loading identification signal ld_1.

[0072] In some embodiments of the present disclosure, the delay amount of the third synchronizer 111 may be 3 clock cycles, denoted as syn3. The delay amount of the fourth synchronizer 112 may be 1 clock cycle, denoted as syn1.

[0073] It can be understood that the initial reset signal rstn_i and the initial loading identification signal ld are synchronized respectively by the third synchronizer 111 and the fourth synchronizer 112. In this way, on the one hand, the signals obtained subsequently can be synchronized with the clock signal, ensuring the accuracy of the timing of the signal; on the other hand, the timing relationship between the reset signal rstn_o and the gated clock signal clk_o can be accurately controlled subsequently, so that the release edge of the adjusted reset signal rstn_o can be located within the gated period of the gated clock signal clk_o; on the other hand, the burrs in the initial reset signal rstn_i and the initial loading identification signal ld can be eliminated, thereby improving the accuracy of the adjusted reset signal rstn_o and the gated clock signal clk_o finally output.

[0074] Fig. 9 FIG. 1 is an optional structural diagram of a system on chip (SOC) provided in an embodiment of the present disclosure. Fig. 9 As shown, the system-on-chip 800 includes: at least one reset signal adjustment circuit (adjustment circuit 101 and adjustment circuit 102). The adjustment circuit 101 and the adjustment circuit 102 have the technical features described in the above embodiments.

[0075] In some embodiments of the present disclosure, reference Fig. 9 , the system-level chip 800 also includes: at least one intellectual property core (IP core 201 and IP core 202). Among them, the adjustment circuit of each reset signal is coupled to a corresponding intellectual property core, and provides an adjusted reset signal and a gated clock signal to the corresponding intellectual property core. That is, the adjustment circuit 101 is coupled to the IP core 201, and the adjustment circuit 101 provides the IP core 201 with an adjusted reset signal ip1_rstn and a gated clock signal ip1_clk; the adjustment circuit 102 is coupled to the IP core 202, and the adjustment circuit 102 provides the IP core 202 with an adjusted reset signal ip2_rstn and a gated clock signal ip2_clk.

[0076] In the embodiments of the present disclosure, reference Fig. 9 The clock reset generation module (Clock and Reset Generation, CRG) 300 transmits the initial reset signal crg_ip1_rstn, the initial load identification signal load_done and the initial clock signal crg_ip1_clk to the adjustment circuit 101. Then, the adjustment circuit 101 generates the adjusted reset signal ip1_rstn and the gated clock signal ip1_clk. The release edge of the adjusted reset signal ip1_rstn is located within the gated period of the gated clock signal ip1_clk.

[0077] Accordingly, the clock reset generation module 300 transmits the initial reset signal crg_ip2_rstn, the initial load identification signal load_done and the initial clock signal crg_ip2_clk to the adjustment circuit 102; further, the adjustment circuit 102 generates the adjusted reset signal ip2_rstn and the gated clock signal ip2_clk. The release edge of the adjusted reset signal ip2_rstn is within the gated period of the gated clock signal ip2_clk.

[0078] It can be understood that the initial reset signal crg_ip1_rstn and the initial clock signal crg_ip1_clk generated by the clock reset generation module 300 are transmitted to the IP cores 201 and 202 after being adjusted by the adjustment modules 101 and 102. In this way, it is ensured that the adjusted reset signal reaching the IP core can be released within the gating period of the gated clock signal, meeting the requirements of the recovery time and the removal time, thereby avoiding the occurrence of metastable state and improving the stability of the IP core operation.

[0079] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0080] The serial numbers of the embodiments of the present disclosure are for description only and do not represent the advantages and disadvantages of the embodiments. The methods disclosed in the several method embodiments provided by the present disclosure can be arbitrarily combined without conflict to obtain new method embodiments. The features disclosed in the several product embodiments provided by the present disclosure can be arbitrarily combined without conflict to obtain new product embodiments. The features disclosed in the several method or device embodiments provided by the present disclosure can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0081] The above description is only a specific implementation mode of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure.

Claims

1. A reset signal adjustment circuit, characterized in that: include: a preprocessing circuit configured to receive an initial reset signal, an initial loading identification signal and an initial clock signal, and synchronize the initial reset signal and the initial loading identification signal in response to the initial clock signal to obtain a first reset signal and a first loading identification signal; A reset signal output circuit, coupled to the preprocessing circuit, configured to adjust a release edge based on the first reset signal to generate an adjusted reset signal; A clock gating circuit is coupled to the preprocessing circuit and is configured to gate the initial clock signal based on the first loading identification signal to generate a gated clock signal; wherein the release edge of the adjusted reset signal is located within a gating period of the gated clock signal.

2. The reset signal adjustment circuit according to claim 1, characterized in that: The reset signal output circuit is further configured to generate a second reset signal based on the first reset signal and the first load identification signal, and to adjust the release edge of the second reset signal to generate the adjusted reset signal.

3. The reset signal adjustment circuit according to claim 1 or 2, characterized in that: The reset signal output circuit comprises: The first delay module is configured to receive the first reset signal or the second reset signal, delay the release edge, and generate the adjusted reset signal; wherein the delay amount of the first delay module is less than the gating period of the gating clock signal.

4. The reset signal adjustment circuit according to claim 3, characterized in that: The first delay module comprises: n-stage first synchronizers connected in cascade; n is greater than or equal to 1; The data input terminal of the first synchronizer at the 1st level receives the first reset signal or the second reset signal; the in-phase output terminal of the first synchronizer at the nth level outputs the adjusted reset signal; the clock terminal of the first synchronizer at each level receives the initial clock signal, and the reset terminal of the first synchronizer at each level receives the first reset signal.

5. The reset signal adjustment circuit according to claim 2, characterized in that: The reset signal output circuit further includes: The first logic gate is configured to receive the first reset signal and the first loading identification signal and generate the second reset signal.

6. The reset signal adjustment circuit according to claim 1 or 2, characterized in that: The clock gating circuit comprises: a gating enable signal generating circuit, configured to generate a gating enable signal based on the first loading identification signal; The gated clock signal generating circuit is coupled to the gated enable signal generating circuit and is configured to gate the initial clock signal based on the gated enable signal to generate the gated clock signal.

7. The reset signal adjustment circuit according to claim 6, characterized in that: The gated enable signal generating circuit comprises: a second delay module, configured to receive the first loading identification signal, delay the changing edge of the first loading identification signal, and generate a second loading identification signal; wherein the delay amount of the second delay module is equal to the gating period of the gating clock signal; an inverter, wherein an input end of the inverter is coupled to an output end of the second delay module; A second logic gate, wherein a first input terminal of the second logic gate is coupled to the output terminal of the second delay module, a second input terminal of the second logic gate is coupled to the output terminal of the inverter, and the second logic gate outputs the gating enable signal.

8. The reset signal adjustment circuit according to claim 7, characterized in that: The second delay module comprises: m-stage second synchronizers connected in cascade; m is greater than n; The data input end of the second synchronizer of the first level receives the first loading identification signal; the in-phase output end of the second synchronizer of the mth level outputs the second loading identification signal; the clock end of each level of the second synchronizer receives the initial clock signal, and the reset end of each level of the second synchronizer receives the first reset signal.

9. The reset signal adjustment circuit according to claim 6, characterized in that: The gated clock signal generating circuit comprises: A latch, wherein a control terminal of the latch receives the gating enable signal, a clock terminal of the latch receives the initial clock signal, and a non-inverting output terminal of the latch outputs the gating clock signal.

10. The reset signal adjustment circuit according to claim 1 or 2, characterized in that: The preprocessing circuit comprises: A third synchronizer is configured to synchronize the initial reset signal in response to the initial clock signal to obtain the first reset signal; wherein the clock end of the third synchronizer receives the initial clock signal, the reset end of the third synchronizer receives the initial reset signal, the data input end of the third synchronizer is set to a high level, and the in-phase output end of the third synchronizer outputs the first reset signal; A fourth synchronizer is configured to synchronize the initial load identification signal in response to the initial clock signal to obtain the first load identification signal; wherein the clock end of the fourth synchronizer receives the initial clock signal, the data input end of the fourth synchronizer receives the initial load identification signal, the reset end of the fourth synchronizer receives the first reset signal, and the in-phase output end of the fourth synchronizer outputs the first load identification signal.

11. A system-on-chip, characterized in that: include: At least one reset signal conditioning circuit as claimed in any one of claims 1 to 10.

12. The system-on-chip according to claim 11, characterized in that: The system-on-chip further comprises: at least one intellectual property core; Each of the reset signal adjustment circuits is coupled to a corresponding one of the intellectual property cores to provide the adjusted reset signal and the gated clock signal to the corresponding one of the intellectual property cores.