Peripheral management devices and chips

By designing peripheral management devices in the chip system, including reset management, clock management and bus access management modules, the problem of diverse types of peripheral modules and different implementation styles is solved, and unified management and reuse of peripheral modules are realized. Simplifies chip system maintenance and management.

CN118394677BActive Publication Date: 2024-09-17合肥智芯半导体有限公司
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410846685.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-17
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

In general integrated circuit chip systems, there are various types of peripheral modules and different implementation styles, which makes it difficult to implement system memory access management within the module alone, which is prone to errors and inconvenient for maintenance and unified management.

Method used

Design a peripheral management device, including a peripheral reset management module, a peripheral clock management module and a bus access management module. Through these modules, unified management and reuse of peripheral modules are realized, and they are respectively responsible for reset control, clock management and bus access. ,The modular design makes each module responsible for a ,function without affecting each other.

Benefits of technology

It realizes the unified management and reuse of different peripheral modules, simplifies the maintenance and management of the chip system, avoids errors and complexity when managing peripheral modules individually, supports the standardized reuse of multiple peripheral modules, and Keep the hardware overhead small.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118394677B
    Figure CN118394677B
Patent Text Reader

Abstract

The present invention discloses a peripheral management device and a chip, and relates to the field of chip technology. The device is used to manage peripheral modules, and the device includes: a peripheral reset management module, connected to the peripheral module, used to output a peripheral bus domain reset signal according to a system clock signal and a peripheral reset configuration request to reset the configuration clock domain of the peripheral module; a peripheral clock management module, connected to the peripheral reset management module and the peripheral module respectively, used to output a peripheral configuration clock according to a peripheral bus domain reset signal, a system clock signal and a peripheral clock enable configuration request to provide a configuration clock for the peripheral module; a bus access management module, connected to the peripheral reset management module, the peripheral clock management module and the peripheral module respectively, used to output a peripheral access bus signal according to a peripheral bus domain reset signal, a peripheral clock enable configuration request and a bus access signal to access the peripheral module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of chip technology, and in particular to a peripheral management device and a chip. Background Art

[0002] In general integrated circuit chip systems, as the scale of circuits continues to grow, the functions and number of peripheral modules also continue to grow. In addition, peripheral modules generally require independent reset control and clock control to implement module memory access management. However, since there are many types of peripheral modules and each peripheral module has a different implementation style, if the system memory access management is only implemented separately inside the peripheral module, it is easy to make mistakes, and it is inconvenient to maintain and trace, and it is impossible to reuse and uniformly manage. Summary of the invention

[0003] The present invention aims to solve one of the technical problems in the related art at least to a certain extent. To this end, the first object of the present invention is to provide a peripheral management device to achieve device reuse and unified management of peripheral modules.

[0004] The second objective of the present invention is to provide a chip.

[0005] To achieve the above-mentioned purpose, the first aspect of the present invention proposes a peripheral management device for managing peripheral modules, the peripheral management device comprising: a peripheral reset management module, a peripheral clock management module and a bus access management module; wherein the peripheral reset management module is connected to the peripheral module, and is used to output a peripheral bus domain reset signal according to a system clock signal and a peripheral reset configuration request to reset the configuration clock domain of the peripheral module; the peripheral clock management module is respectively connected to the peripheral reset management module and the peripheral module, and is used to output a peripheral configuration clock according to the peripheral bus domain reset signal, the system clock signal and a peripheral clock enable configuration request to provide a configuration clock for the peripheral module; the bus access management module is respectively connected to the peripheral reset management module, the peripheral clock management module and the peripheral module, and is used to output a peripheral access bus signal according to the peripheral bus domain reset signal, the peripheral clock enable configuration request and a bus access signal to access the peripheral module.

[0006] In addition, the peripheral management device according to the embodiment of the present invention may also have the following additional technical features:

[0007] In one embodiment of the present invention, the peripheral reset management module is also used to output a peripheral function domain reset signal according to the peripheral working clock signal and the peripheral reset configuration request to reset the working clock domain of the peripheral module; the peripheral clock management module is also used to output the peripheral working clock signal according to the peripheral clock selection configuration request, and output the peripheral working clock according to the peripheral function domain reset signal, the peripheral working clock signal and the peripheral clock division configuration request to provide a working clock for the peripheral module.

[0008] In one embodiment of the present invention, the peripheral reset management module includes: a first synchronous releaser, a peripheral reset configuration unit and a first AND gate; wherein the peripheral reset configuration unit is connected to the first input end of the first AND gate, and is used to output a low-level reset signal when receiving the peripheral reset configuration request; the second input end of the first AND gate is used to input a system reset signal; the first input end of the first synchronous releaser is used to input the system clock signal, the second input end of the first synchronous releaser is connected to the output end of the first AND gate, and the output end of the first synchronous releaser is connected to the peripheral module, wherein when the level signal input to the second input end of the first synchronous releaser changes from a high level to a low level, the first synchronous releaser outputs a low-level reset signal of the peripheral bus domain.

[0009] In one embodiment of the present invention, the peripheral reset management module also includes: a second synchronous release; the first input end of the second synchronous release is connected to the peripheral clock management module to receive the peripheral working clock signal, the second input end of the second synchronous release is connected to the output end of the first AND gate, and the output end of the second synchronous release is connected to the peripheral module, wherein when the level signal input to the second input end of the second synchronous release changes from a high level to a low level, the second synchronous release outputs a low level reset signal of the peripheral function domain.

[0010] In one embodiment of the present invention, the first synchronous releaser also has a third input terminal for inputting a preset high-level signal. After outputting the low-level peripheral bus domain reset signal, the first synchronous releaser waits for at least two system clock cycles to release the peripheral bus domain reset signal to a high level; the second synchronous releaser also has a third input terminal for inputting a preset high-level signal. After outputting the low-level peripheral function domain reset signal, the second synchronous releaser waits for at least two clock cycles of the peripheral clock working signal to release the peripheral function domain reset signal to a high level.

[0011] In one embodiment of the present invention, the peripheral clock management module includes: a peripheral clock enable configuration module, a synchronizer and a clock synchronization shutdown unit; wherein the peripheral clock enable configuration module is connected to the first input end of the synchronizer, and is used to output a clock enable signal when receiving the peripheral clock enable configuration request, wherein when the clock enable signal is at a low level, it indicates that the clock is turned off; the second input end of the synchronizer is used to input the system clock signal, the third input end of the synchronizer is connected to the peripheral reset management module to receive the peripheral bus domain reset signal, the output end of the synchronizer is connected to the first input end of the clock synchronization shutdown unit, and the synchronizer is used to When the peripheral bus domain reset signal is at a low level, or after the peripheral bus domain reset signal changes from a low level to a high level and the clock enable signal is at a low level, a low-level synchronization signal is output, and after the peripheral bus domain reset signal changes from a low level to a high level and the clock enable signal is at a high level, a high-level synchronization signal is output; the second input end of the clock synchronization shutdown unit is used to input the system clock signal, the output end of the clock synchronization shutdown unit is connected to the peripheral module, and the clock synchronization shutdown unit is used to shut down the peripheral configuration clock according to the low-level synchronization signal, and output the peripheral configuration clock according to the high-level synchronization signal.

[0012] In one embodiment of the present invention, the peripheral clock management module further includes: a peripheral clock selection configuration unit, a peripheral clock frequency division configuration unit, a peripheral clock frequency division circuit, and a selector; wherein the peripheral clock selection configuration unit is connected to the control end of the selector, and is used to output a clock selection signal when receiving the peripheral clock selection configuration request; the multiple input ends of the selector are used to input multiple working clock signals in a one-to-one correspondence, the output end of the selector is respectively connected to the peripheral reset management module and the first input end of the peripheral clock frequency division circuit, and the selector is used to select the peripheral working clock signal from the multiple working clock signals according to the clock selection signal and output it; The peripheral clock division configuration unit is connected to the second input end of the peripheral clock division circuit, and is used to output a clock division signal when receiving the peripheral clock division configuration request; the third input end of the peripheral clock division circuit is connected to the peripheral reset management module to receive the peripheral function domain reset signal, and the output end of the peripheral clock division circuit is connected to the peripheral module. The peripheral clock division circuit is used to output a low-level peripheral working clock when the peripheral function domain reset signal is at a low level, and after the peripheral function domain reset signal changes from a low level to a high level, divide the peripheral working clock signal according to the clock division signal and output it as the peripheral working clock.

[0013] In one embodiment of the present invention, the bus access management module includes: a second AND gate and a third AND gate; wherein the first input end of the second AND gate is connected to the peripheral reset management module to receive the peripheral bus domain reset signal, the second input end of the second AND gate is connected to the peripheral clock enable configuration module to receive the clock enable signal, and the output end of the second AND gate is connected to the first input end of the third AND gate; the second input end of the third AND gate is used to input the bus access signal, and the output end of the third AND gate is connected to the peripheral module.

[0014] In one embodiment of the present invention, the bus access management module also includes: a fourth AND gate and an inverter; wherein the input end of the inverter is connected to the output end of the second AND gate, and the output end of the inverter is connected to the first input end of the fourth AND gate; the second input end of the fourth AND gate is used to input the bus access signal, and the output end of the fourth AND gate is used to output an access abnormality alarm signal to the system bus.

[0015] To achieve the above objectives, a second embodiment of the present invention proposes a chip, comprising: M peripheral modules and M peripheral management devices of the above embodiments, wherein the M peripheral modules and the M peripheral management devices are connected one-to-one, wherein M is a positive integer.

[0016] According to the embodiment of the present invention, the peripheral management device and chip are used to manage peripheral modules, and the peripheral management device includes: a peripheral reset management module, a peripheral clock management module and a bus access management module; wherein the peripheral reset management module is connected to the peripheral module, and is used to output a peripheral bus domain reset signal according to a system clock signal and a peripheral reset configuration request to reset the configuration clock domain of the peripheral module; the peripheral clock management module is respectively connected to the peripheral reset management module and the peripheral module, and is used to output a peripheral configuration clock according to a peripheral bus domain reset signal, a system clock signal and a peripheral clock enable configuration request to provide a configuration clock for the peripheral module; the bus access management module is respectively connected to the peripheral reset management module, the peripheral clock management module and the peripheral module, and is used to output a peripheral access bus signal according to a peripheral bus domain reset signal, a peripheral clock enable configuration request and a bus access signal to access the peripheral module. Therefore, by designing a modular peripheral management device, each module of the peripheral management device is used to implement one function, so that the functions required for managing the peripheral modules can be allocated to each module for execution without affecting each other, facilitating unified management of the chip system, thereby supporting management of different peripheral modules.

[0017] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a structural block diagram of a peripheral management device according to an embodiment of the present invention;

[0019] Figure 2 It is a structural diagram of a peripheral management device according to a specific embodiment of the present invention;

[0020] Figure 3 is a structural diagram of a peripheral management device according to another specific embodiment of the present invention;

[0021] Figure 4 is a workflow diagram of an example of a peripheral management device of the present invention;

[0022] Figure 5 It is a structural block diagram of a chip according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0024] The following describes a peripheral management device and a chip according to an embodiment of the present invention with reference to the accompanying drawings.

[0025] Figure 1 It is a structural block diagram of a peripheral management device according to an embodiment of the present invention.

[0026] like Figure 1 As shown, the peripheral management device 100 is used to manage the peripheral module 200, and the peripheral management device 100 includes: a peripheral reset management module 10, a peripheral clock management module 20 and a bus access management module 30; wherein the peripheral reset management module 10 is connected to the peripheral module 200, and is used to output a peripheral bus domain reset signal according to a system clock signal and a peripheral reset configuration request, so as to reset the configuration clock domain of the peripheral module 200; the peripheral clock management module 20 is respectively connected to the peripheral reset management module 10 and the peripheral module 200, and is used to output a peripheral configuration clock according to a peripheral bus domain reset signal, a system clock signal and a peripheral clock enable configuration request, so as to provide a configuration clock for the peripheral module 200; the bus access management module 30 is respectively connected to the peripheral reset management module 10, the peripheral clock management module 20 and the peripheral module 200, and is used to output a peripheral access bus signal according to a peripheral bus domain reset signal, a peripheral clock enable configuration request and a bus access signal, so as to access the peripheral module 200.

[0027] Specifically, in order to achieve unified management of the peripheral modules 200 , a reusable peripheral management device 100 is designed. The peripheral management device 100 is a universal device, that is, a corresponding peripheral management device 100 can be configured for each peripheral module 200 .

[0028] The above-mentioned peripheral management device 100 includes a peripheral reset management module 10 , a peripheral clock management module 20 and a bus access management module 30 . The peripheral reset management module 10 is used for resetting, the peripheral clock management module 20 is used for managing clocks, and the bus access management module 30 is used for accessing the peripheral module 200 .

[0029] That is to say, since there are many types of peripheral modules 200 and the implementation styles of each peripheral module 200 are also different, in this case, in order to realize a reusable peripheral management device 100, the peripheral management device 100 is modularly designed, that is, the peripheral management device 100 is divided into three modules according to the functions to be realized, namely the above-mentioned peripheral reset management module 10, the peripheral clock management module 20 and the bus access management module 30, and each module is used to realize one function.

[0030] Therefore, by designing a modular peripheral management device 100, each module of the peripheral management device 100 is used to implement one function, so that the functions required for managing the peripheral module 200 can be allocated to each module for execution without affecting each other, facilitating unified management of the chip system, thereby supporting management of different peripheral modules 200.

[0031] Moreover, in order to simplify the design, the peripheral bus domain reset signal output by the peripheral reset management module 10 is also set as the input signal of the peripheral clock management module 20, so that the peripheral clock management module 20 is affected by the peripheral reset management module 10. When the peripheral reset management module 10 outputs the peripheral bus domain reset signal to reset the configuration clock domain of the peripheral module 200, the peripheral clock management module 20 processes the output peripheral configuration clock according to the peripheral bus domain reset signal, thereby supporting the stopping of providing the configuration clock when the peripheral reset management module 10 resets the configuration clock domain.

[0032] At the same time, due to the modular design, the peripheral management device is divided into three modules: a peripheral reset management module 10, a peripheral clock management module 20, and a bus access management module 30. Therefore, the bus access management module 30 can receive information from the peripheral reset management module 10 and the peripheral clock management module 20, that is, according to the peripheral bus domain reset signal provided by the peripheral reset management module 10 and the peripheral clock enable configuration request provided by the peripheral clock management module 20, it is determined whether bus access is currently allowed, thereby accessing the peripheral module 200 according to the judgment result and the bus access signal.

[0033] In some embodiments of the present invention, the peripheral reset management module 10 is also used to output a peripheral function domain reset signal according to the peripheral working clock signal and the peripheral reset configuration request to reset the working clock domain of the peripheral module 200; the peripheral clock management module 20 is also used to output a peripheral working clock signal according to the peripheral clock selection configuration request, and output a peripheral working clock according to the peripheral function domain reset signal, the peripheral working clock signal and the peripheral clock division configuration request to provide a working clock for the peripheral module 200.

[0034] Specifically, in order to manage the peripheral module 200 , the peripheral reset management module 10 is used not only to manage the reset of the configuration clock domain of the peripheral module 200 , but also to manage the reset of the working clock domain of the peripheral module 200 .

[0035] Moreover, since the peripheral management device 100 adopts a modular design, the peripheral clock management module 20 can also be set to receive the peripheral function domain reset signal output by the peripheral reset management module 10 to support stopping the provision of the working clock to the peripheral module 200 when the peripheral reset management module 10 resets the working clock domain of the peripheral module 200.

[0036] In some embodiments of the present invention, the peripheral reset management module 10 includes: a first synchronous releaser, a peripheral reset configuration unit and a first AND gate; wherein the peripheral reset configuration unit is connected to the first input end of the first AND gate, and is used to output a low-level reset signal when receiving a peripheral reset configuration request; the second input end of the first AND gate is used to input a system reset signal; the first input end of the first synchronous releaser is used to input a system clock signal, the second input end of the first synchronous releaser is connected to the output end of the first AND gate, and the output end of the first synchronous releaser is connected to the peripheral module 200, wherein when the level signal input to the second input end of the first synchronous releaser changes from a high level to a low level, the first synchronous releaser outputs a low-level peripheral bus domain reset signal.

[0037] The output end of the above-mentioned peripheral reset configuration unit is connected to the first input end of the first AND gate, and the second input end of the first AND gate is used to input the system reset signal. When the system reset signal and the signal output by the peripheral reset configuration unit are both high-level signals, the first AND gate outputs a high-level signal. When there is a low-level signal between the system reset signal and the signal output by the peripheral reset configuration unit, the first AND gate outputs a low-level signal.

[0038] The input end of the first AND gate is connected to the second input end of the first synchronous releaser, and the first input end of the first synchronous releaser is used to input the system clock signal, and the output end of the first synchronous releaser is used to output the peripheral bus domain reset signal.

[0039] Specifically, the peripheral bus domain reset signal is set to be valid at a low level, that is, when the peripheral bus domain reset signal output by the first synchronous releaser is a high level signal, the configuration clock domain of the peripheral module 200 is not reset, and the configuration clock domain of the peripheral module 200 is reset only when the peripheral bus domain reset signal output by the first synchronous releaser is a low level signal.

[0040] When there is a low level signal between the system reset signal and the signal output by the peripheral reset configuration unit, the first AND gate outputs a first level signal to the second input end of the first synchronous releaser. After receiving the low level signal at its second input end, the first synchronous releaser outputs a low level peripheral bus domain reset signal.

[0041] In some embodiments of the present invention, the peripheral reset management module 10 also includes: a second synchronous release; the first input end of the second synchronous release is connected to the peripheral clock management module 20 to receive the peripheral working clock signal, the second input end of the second synchronous release is connected to the output end of the first AND gate, and the output end of the second synchronous release is connected to the peripheral module 200, wherein when the level signal input to the second input end of the second synchronous release changes from a high level to a low level, the second synchronous release outputs a low level peripheral function domain reset signal.

[0042] Specifically, the peripheral function domain reset signal is set to be valid at a low level, that is, when the peripheral function domain reset signal output by the second synchronous releaser is a high level signal, the working clock domain of the peripheral module 200 is not reset, and the working clock domain of the peripheral module 200 is reset only when the peripheral function domain reset signal output by the second synchronous releaser is a low level signal.

[0043] In order to realize synchronous reset of the configuration clock domain and the working clock domain of the peripheral module 200, the second input end of the second synchronous releaser is connected to the output end of the first AND gate, that is, the output end of the first AND gate is connected to the second input end of the first synchronous releaser and the second input end of the second synchronous releaser. When the first AND gate outputs a low-level signal, the second input end of the first synchronous releaser and the second input end of the second synchronous releaser synchronously receive the low-level signal, so that the first synchronous releaser outputs a low-level peripheral bus domain reset signal, and the second synchronous releaser outputs a low-level peripheral function domain reset signal.

[0044] In some embodiments of the present invention, the first synchronous releaser also has a third input terminal for inputting a preset high-level signal. After outputting a low-level peripheral bus domain reset signal, the first synchronous releaser waits for at least two system clock cycles and releases the peripheral bus domain reset signal to a high level; the second synchronous releaser also has a third input terminal for inputting a preset high-level signal. After outputting a low-level peripheral function domain reset signal, the second synchronous releaser waits for at least two clock cycles of the peripheral clock working signal and releases the peripheral function domain reset signal to a high level.

[0045] Specifically, the first synchronous releaser includes a first input terminal, a second input terminal and a third input terminal. The first input terminal receives a system clock signal, the second input terminal receives an output signal of the first AND gate, and the third input terminal receives a preset high-level signal. When the second input terminal receives a low-level signal output by the first AND gate, the first synchronous releaser will convert the output peripheral bus domain reset signal from a high level to a low level, and reset the configuration clock domain of the peripheral module 200.

[0046] When the first AND gate outputs a high level again, that is, the output signal of the first AND gate changes from a low level to a high level, the first synchronization releaser will perform timing, and after the first AND gate outputs a high level again, two system clock cycles will be interval to release the reset state of the configuration clock domain of the peripheral module 200.

[0047] Of course, after the output signal of the first AND gate changes from low level to high level, the specific interval for the first synchronous releaser to release the reset state of the configuration clock domain of the peripheral module 200 can be configured by the user, as long as it is greater than or equal to two system clock cycles.

[0048] Similarly, for the second synchronous release, it includes a first input terminal, a second input terminal and a third input terminal. The first input terminal receives the peripheral working clock signal output by the peripheral clock management module 20, the second input terminal receives the output signal of the first AND gate, and the third input terminal receives a preset high level signal. When the second input terminal receives the low level signal output by the first AND gate, the second synchronous release will convert the output peripheral function domain reset signal from a high level to a low level, and reset the working clock domain of the peripheral module 200.

[0049] When the first AND gate outputs a high level again, that is, the output signal of the first AND gate changes from a low level to a high level, the second synchronous releaser will perform timing, and after the first AND gate outputs a high level again, it will release the reset state of the working clock domain of the peripheral module 200 after two system clock cycles.

[0050] Of course, after the output signal of the first AND gate changes from low level to high level, the specific interval for the second synchronous releaser to release the reset state of the working clock domain of the peripheral module 200 can be configured by the user, as long as it is greater than or equal to two system clock cycles.

[0051] In some embodiments of the present invention, the peripheral clock management module 20 includes: a peripheral clock enable configuration module, a synchronizer and a clock synchronization shutdown unit; wherein the peripheral clock enable configuration module is connected to the first input terminal of the synchronizer, and is used to output a clock enable signal when receiving a peripheral clock enable configuration request, wherein when the clock enable signal is at a low level, it indicates that the clock is turned off; the second input terminal of the synchronizer is used to input a system clock signal, the third input terminal of the synchronizer is connected to the peripheral reset management module 10 to receive a peripheral bus domain reset signal, the output terminal of the synchronizer is connected to the first input terminal of the clock synchronization shutdown unit, and the synchronizer It is used to output a low-level synchronization signal when the peripheral bus domain reset signal is at a low level, or after the peripheral bus domain reset signal changes from a low level to a high level and the clock enable signal is at a low level, and to output a high-level synchronization signal after the peripheral bus domain reset signal changes from a low level to a high level and the clock enable signal is at a high level; the second input end of the clock synchronization shutdown unit is used to input the system clock signal, the output end of the clock synchronization shutdown unit is connected to the peripheral module 200, and the clock synchronization shutdown unit is used to shut down the peripheral configuration clock according to the low-level synchronization signal, and output the peripheral configuration clock according to the high-level synchronization signal.

[0052] Specifically, the synchronizer in the peripheral clock management module 20 is set to include a first input terminal, a second input terminal and a third input terminal. The first input terminal is used to receive the clock enable signal output by the peripheral clock enable configuration module, the second input terminal is used to receive the system clock signal, and the third input terminal is used to receive the peripheral bus domain reset signal output by the peripheral reset management module 10.

[0053] Moreover, a first input terminal of the clock synchronization shutdown unit is connected to the output terminal of the synchronizer, a second input terminal of the clock synchronization shutdown unit is used to receive a system clock signal, and an output terminal of the clock synchronization shutdown unit is connected to the peripheral module 200. The clock synchronization shutdown unit is used to provide the peripheral configuration clock to the peripheral module 200.

[0054] When the peripheral reset management module 10 converts the output peripheral bus domain reset signal from a high level to a low level, it indicates that the peripheral reset management module 10 resets the configuration clock domain of the peripheral module 200. At this time, it is necessary to stop providing the configuration clock to the peripheral module 200. Therefore, the third input terminal of the synchronizer is used to receive the peripheral bus domain reset signal output by the peripheral reset management module 10. When the synchronizer receives a low-level peripheral bus domain reset signal through the third input terminal, the synchronization signal output to the first input terminal of the clock synchronization shutdown unit is converted from a high level to a low level. When the clock synchronization shutdown unit receives a low-level synchronization signal, it stops providing the peripheral configuration clock.

[0055] When the third input terminal of the synchronizer receives a high-level peripheral bus domain reset signal, it means that there is no need to reset the configuration clock domain at this time. At this time, if the clock enable signal output by the peripheral clock enable configuration module is at a low level, it means that a peripheral clock enable configuration request has been received, and it is determined that the external instruction to stop providing the peripheral configuration clock has been issued through the system bus. Therefore, the synchronizer converts the synchronization signal output to the first input terminal of the clock synchronization shutdown unit from a high level to a low level. When the clock synchronization shutdown unit receives a low-level synchronization signal, it stops providing the peripheral configuration clock.

[0056] When the third input terminal of the synchronizer receives a high-level peripheral bus domain reset signal and the first input terminal of the synchronizer receives a high-level clock enable signal, it means that there is no need to reset the configuration clock domain of the peripheral module 200, and no instruction to stop providing the peripheral configuration clock has been received. At this time, the synchronizer outputs a high-level enable signal, and the clock synchronization shutdown unit provides the peripheral configuration clock to the peripheral module 200 when receiving the high-level synchronization signal.

[0057] In some embodiments of the present invention, the peripheral clock management module 20 also includes: a peripheral clock selection configuration unit, a peripheral clock frequency division configuration unit, a peripheral clock frequency division circuit, and a selector; wherein the peripheral clock selection configuration unit is connected to the control end of the selector, and is used to output a clock selection signal when receiving a peripheral clock selection configuration request; the multiple input ends of the selector are used to input multiple working clock signals in a one-to-one correspondence, and the output end of the selector is respectively connected to the peripheral reset management module 10 and the first input end of the peripheral clock frequency division circuit, and the selector is used to select and output the peripheral working clock signal from the multiple working clock signals according to the clock selection signal; the peripheral clock frequency division configuration unit It is connected to the second input end of the peripheral clock division circuit, and is used to output a clock division signal when receiving a peripheral clock division configuration request; the third input end of the peripheral clock division circuit is connected to the peripheral reset management module 10 to receive the peripheral function domain reset signal, and the output end of the peripheral clock division circuit is connected to the peripheral module 200. The peripheral clock division circuit is used to output a low-level peripheral working clock when the peripheral function domain reset signal is at a low level, that is, in this case, the peripheral working clock is always at a low level, and after the peripheral function domain reset signal changes from a low level to a high level, the peripheral working clock signal is divided according to the clock division signal and output as the peripheral working clock.

[0058] Specifically, a selector is provided including a plurality of input terminals and a plurality of working clocks, the input terminals of the selector are connected to the output terminals of the working clocks in a one-to-one correspondence, the control terminal of the selector is connected to the output terminal of the peripheral clock selection configuration unit, and the output terminal of the selector is connected to the first input terminal of the peripheral clock frequency division circuit. The selector is used to select a peripheral working clock signal from working clock signals provided by a plurality of working clocks under the control of the peripheral clock selection configuration unit, and provide the peripheral working clock signal to the peripheral clock frequency division circuit.

[0059] A peripheral clock frequency division configuration unit is also provided, and an output end of the peripheral clock frequency division configuration unit is connected to a first input end of the peripheral clock frequency division circuit.

[0060] A third input terminal of the peripheral clock frequency dividing circuit is further provided for receiving a peripheral function domain reset signal output by the peripheral reset management module 10 , and an output terminal of the peripheral clock frequency dividing circuit is used for providing a working clock to the peripheral module 200 .

[0061] Therefore, when the peripheral clock frequency dividing circuit receives a low-level peripheral function domain reset signal, it outputs a peripheral working clock that is constantly at a low level, thereby not providing a working clock to the peripheral module 200 .

[0062] When the peripheral clock frequency division circuit receives a high-level peripheral function domain reset signal, it is determined that the peripheral clock domain of the peripheral module 200 does not need to be reset. At this time, the peripheral working clock signal is divided according to the clock frequency division signal and output as the peripheral working clock, that is, the peripheral working clock signal is divided according to the clock frequency division signal provided by the peripheral clock frequency division configuration module. Moreover, for the peripheral clock frequency division circuit, the frequency division of the peripheral working clock signal is configured by the peripheral clock frequency division configuration unit, which can be odd frequency division or even frequency division, and the specific frequency division duty ratio can also be configured by the peripheral clock frequency division configuration unit.

[0063] In some embodiments of the present invention, the bus access management module 30 includes: a second AND gate and a third AND gate; wherein the first input end of the second AND gate is connected to the peripheral reset management module 10 to receive the peripheral bus domain reset signal, the second input end of the second AND gate is connected to the peripheral clock enable configuration module to receive the clock enable signal, and the output end of the second AND gate is connected to the first input end of the third AND gate; the second input end of the third AND gate is used to input the bus access signal, and the output end of the third AND gate is connected to the peripheral module 200.

[0064] Specifically, a second AND gate is provided in the bus access management module 30 , a first input terminal of the second AND gate is used to receive a peripheral bus domain reset signal, and a second input terminal of the second AND gate is used to receive a clock enable signal.

[0065] The above peripheral bus domain reset signal is valid at a low level, that is, when the peripheral reset management module 10 determines to reset the configuration clock domain of the peripheral module 200, the output peripheral bus domain reset signal is converted from a high level to a low level. Moreover, the above clock enable signal is also valid at a low level, that is, when the peripheral clock management module 20 determines that the clock needs to be turned off, the output clock enable signal is converted from a high level to a low level.

[0066] Therefore, by setting the two input ends of the second AND gate to respectively receive the peripheral bus domain reset signal and the clock enable signal, it is possible to output a high level when both the peripheral bus domain reset signal and the clock enable signal are high levels and it is determined that neither the configuration clock domain of the peripheral module 200 needs to be reset nor the clock needs to be shut down.

[0067] At the same time, the two input ends of the third AND gate are respectively connected to the output end of the second AND gate and the system bus. Since the second AND gate outputs a high level only when there is no need to reset the configuration clock domain of the peripheral module 200 or shut down the clock, at this time, if the system bus outputs a bus access signal, the two input ends of the third AND gate are both high levels, and the third AND gate outputs a high level. If the system bus does not output a bus access signal, one of the two input ends of the third AND gate receives a high level and the other receives a low level, and the third AND gate outputs a low level.

[0068] When the configuration clock domain of the peripheral module 200 needs to be reset, or the clock needs to be turned off, the second AND gate will output a low level to the first input terminal of the third AND gate, so that the third AND gate will output a fixed low level.

[0069] In some embodiments of the present invention, the bus access management module 30 further includes: a fourth AND gate and an inverter; wherein the input end of the inverter is connected to the output end of the second AND gate, and the output end of the inverter is connected to the first input end of the fourth AND gate; the second input end of the fourth AND gate is used to input the bus access signal, and the output end of the fourth AND gate is used to output the access abnormality alarm signal to the system bus. That is to say, at this time, the bus access management module 30 not only includes the second AND gate and the third AND gate, but also includes an inverter and a fourth AND gate.

[0070] Specifically, the input end of the inverter is connected to the output end of the second AND gate. When the configuration clock domain of the peripheral module 200 needs to be reset, or the clock needs to be turned off, the second AND gate will output a low level, and the signal will become a high level after passing through the inverter. At this time, if the system bus outputs a bus access signal, the two input ends of the fourth AND gate are both high levels, so that the fourth AND gate outputs a high level and issues an access abnormality alarm.

[0071] When there is no need to reset the configuration clock domain of the peripheral module 200 or shut down the clock, the second AND gate outputs a high level, and the signal becomes a low level after passing through the inverter, so that the output of the fourth AND gate is fixed at a low level, and no access abnormality alarm is issued.

[0072] Combine the following Figure 2 Provide specific instructions.

[0073] exist Figure 2 In the figure, 200m refers to the peripheral module 200 numbered m, and 100m refers to the peripheral management device 100 numbered m, that is, m represents the numbers of the peripheral management device 100 and the corresponding peripheral module 200.

[0074] The above peripheral management device 100 is suitable for a scenario where there is only one clock inside the chip, or there are multiple system clocks. Figure 2 Taking the management of a single peripheral module 200 numbered m as an example, one peripheral management device 100 corresponds to one peripheral module 200 .

[0075] If multiple peripheral modules are to be managed, only the above peripheral management device 100 needs to be reused. For example, if there are 100 peripheral modules 200, only 100 peripheral management devices 100 need to be reused to implement memory access management for the 100 peripheral modules 200. Each peripheral management device 100 has independent clock configuration and reset configuration, and does not affect each other.

[0076] The input of the peripheral management device 100 is a system clock of the current chip, one or more working clocks (i.e. Figure 2 The clock 1 to clock n in the system are clocked in, a system reset signal, and the system's bus access signal.

[0077] Combine the following Figure 3 Provide specific instructions.

[0078] See also Figure 3 The above peripheral management device 100 includes a peripheral reset management module 10, a peripheral clock management module 20 and a bus access management module 30. The peripheral reset management module 10 includes a first synchronous releaser 11, a peripheral reset configuration unit 12, a first AND gate AND1, and a second synchronous releaser 13. The peripheral clock management module 20 includes a peripheral clock enable configuration unit 21, a synchronizer 22, a clock synchronization shutdown unit 23, a peripheral clock selection configuration unit 24, a peripheral clock frequency division configuration unit 25, a peripheral clock frequency division circuit 26, and a selector MUX. The bus access management module 30 includes a second AND gate AND2, a third AND gate AND3, a fourth AND gate AND4, and an inverter 31. The signal 1 received by the first synchronous releaser 11 and the second synchronous releaser 13 refers to the reception of a high-level signal.

[0079] The peripheral reset management module 10 is specifically used for:

[0080] The peripheral reset management module 10 can provide the corresponding peripheral module 200 with a soft reset function that is flexibly configured by software in addition to the system reset, which is convenient to use. It has three inputs and two outputs. The inputs are the system reset signal, the system clock, and the peripheral working clock signal mux_clk output by the selector MUX. The outputs are the peripheral bus domain reset signal and the peripheral function domain reset signal. The peripheral bus domain reset signal and the peripheral function domain reset signal are both low level valid, indicating that a reset has occurred.

[0081] In the peripheral reset management module 10, the first synchronous releaser 11 has three input terminals D1, clk1, CLR1 and an output terminal Q1. The signal at the input clk1 terminal comes from the current system clock. The input terminal D1 is connected to a fixed high level. CLR1 is an asynchronous reset terminal, and the low level is valid. It comes from the output of AND1. The output terminal Q1 is used as the port for the peripheral reset management module 10 to output the peripheral bus domain reset signal, which is given to the corresponding peripheral module 200 and used to reset the configuration clock domain of the peripheral module 200. Every time the signal received by the CLR1 port changes from a high level to a low level, Q1 will simultaneously change to a low level, and wait for at least 2 clk1 cycles before being synchronously released to a high level.

[0082] The second synchronous releaser 13 has three input terminals D2, clk2, CLR2 and an output terminal Q2. The signal at the input clk2 terminal is the peripheral working clock signal mux_clk output by the selector MUX. The input terminal D2 is connected to a fixed high level. CLR2 is an asynchronous reset terminal, and the low level is effective. It comes from the output of AND1. The output terminal Q2 is used as the port for the peripheral reset management module 10 to output the reset signal of the peripheral function domain, which is given to the corresponding peripheral module 200 and used as the reset of the working clock domain of the peripheral module 200. Every time CLR2 changes from a high level to a low level, Q2 will simultaneously change to a low level, and wait for at least 2 clk2 cycles before being synchronously released to a high level.

[0083] The peripheral reset configuration unit 12 provides a configurable reset signal rst_n, which is valid at a low level, indicating that a reset occurs. When rst_n becomes a low level, both the peripheral bus domain reset and the peripheral function domain reset will take effect, resetting the configuration clock domain and the working clock domain of the peripheral module 200.

[0084] The two inputs of the first AND gate AND1 are the system reset signal and the output rst_n of the peripheral reset configuration unit 12 , respectively, and the output is connected to the CLR1 of the first synchronous releaser 11 and the CLR2 of the second synchronous releaser 13 .

[0085] The peripheral clock management module 20 is specifically used for:

[0086] The peripheral clock management module 20 mainly provides the peripheral configuration clock and peripheral working clock required for the corresponding peripheral module 200. It should be noted that if the peripheral module 200 has only one clock, then the peripheral management module 100 only needs to output the peripheral working clock, that is, in this case, the clock synchronization shutdown unit 23 for outputting the peripheral configuration clock may not work.

[0087] The peripheral clock selection configuration unit 24 mainly provides different clock selection signals sel. The selector MUX receives multiple working clock signals in_1~in_n, selects the working clock inside the chip according to the clock selection signal sel output by the peripheral clock selection configuration unit 24, and outputs mux_clk to the peripheral reset management module 10 and the clk3 port of the peripheral clock frequency division circuit 26.

[0088] The peripheral clock frequency division configuration unit 25 is mainly used to provide different clock frequency division signals div_val to the input terminal D3 of the peripheral clock frequency division circuit 26 .

[0089] The reset terminal CLR3 of the peripheral clock frequency division circuit 26 comes from the peripheral function domain reset signal output by the peripheral reset management module 10. The output terminal Q3 of the peripheral clock frequency division circuit 26 is used as a port for the peripheral clock management module to provide the peripheral working clock. The input terminal D3 comes from the output div_val of the peripheral clock frequency division configuration unit 25, and is used to generate the peripheral working clock after frequency division according to the frequency division configuration provided by the peripheral clock frequency division configuration unit 25. Therefore, by setting the peripheral clock management module 20 to perform frequency division, there is no need for the peripheral module 200 to perform frequency division separately, thereby improving the adaptability of the peripheral management device 100 to the peripheral module 200.

[0090] The peripheral clock enable configuration unit 21 mainly provides a separate clock enable signal gate_n, which is valid at a low level, indicating that the clock is turned off.

[0091] The clk4 port of the synchronizer 22 receives a signal from the system clock, the input terminal D4 receives the output gate_n from the peripheral clock enable configuration unit 21, the input terminal CLR4 receives the peripheral bus domain reset signal output by the first synchronization releaser 11, and the output Q4 is connected to the input EN of the clock synchronization shutdown unit 23. The synchronizer 22 is mainly used to ensure that the configuration clock of the peripheral module 200 can be synchronously turned off.

[0092] The input terminal clk5 of the clock synchronization shutdown unit 23 is connected to the system clock, and the output clk_gc is connected to the peripheral module 200 to provide the peripheral configuration clock. When the EN terminal of the clock synchronization shutdown unit 23 receives a high level, the signal output by the clk_gc terminal directly adopts the signal from the input clk5 terminal. When EN changes from a high level to a low level, the signal output by the clk_gc terminal will change to a low level after two rising edges of the signal received by the clk5 terminal appear.

[0093] Among them, for the peripheral clock frequency division circuit 26, as long as its input terminal CLR3 receives a low level, it indicates that the current peripheral clock frequency division circuit 26 needs to be reset, and the output terminal Q3 outputs a low level. If the signal received from the input terminal CLR3 changes from a low level to a high level, the signal output by the output terminal Q3 will generate a corresponding frequency division clock according to the different clock frequency division signals received by the input terminal D3. For example, D=0, the clock signal output by the output terminal Q3 is the peripheral working clock signal received by the input terminal clk3; D=1, the clock signal output by the output terminal Q3 is the clock after the peripheral working clock signal received by the input terminal clk3 is divided by 2; D=2, the clock signal output by the output terminal Q3 is the clock after the peripheral working clock signal received by the input terminal clk3 is divided by 3; D=n, the clock signal output by the output terminal Q3 is the clock after the peripheral working clock signal received by the input terminal clk3 is divided by n.

[0094] The bus access management module 30 is specifically used for:

[0095] The bus access management module 30 has three inputs and two outputs. The inputs are respectively the reset signal of the peripheral function domain, the gate_n provided by the peripheral clock enable configuration unit 21, and the bus access signal of the bus to the peripheral. One output is an access exception alarm signal, which is fed back to the system bus for processing, and the other output is the peripheral access bus signal. The two inputs of AND2 are respectively the reset signal of the peripheral function domain and the gate_n provided by the peripheral clock enable configuration unit 21, and the output is connected to the input of the inverter 31. The output of the inverter 31 is connected to one input of AND4, and the other input of AND4 comes from the bus access signal of the system. The output of AND4 is an access exception alarm signal, which is fed back to the system bus. The two inputs of AND3 are respectively the bus access signal of the system and the output of AND2, and its output is the peripheral access bus signal, which is connected to the peripheral module 200. When the peripheral bus domain reset signal is generated, or the peripheral configuration clock is turned off, if the system bus still has a bus access signal to the peripheral, then the bus access management module 30 will generate an access exception alarm signal to remind the bus to process.

[0096] Combine the following Figure 4 Provide explanation.

[0097] Step 1: The chip is powered on and started normally, and the system reset is released.

[0098] Step 2: The peripheral bus domain reset signal and the peripheral function domain reset signal output by the peripheral management device 100 are both in a low-level reset state, the gate_n output by the peripheral clock enable configuration unit 21 is 0, the peripheral configuration clock and the peripheral working clock are also in the off state, and the system bus outputs rst_n=1 by configuring the peripheral reset configuration unit 12 in the peripheral reset management module 10 to release the peripheral reset state.

[0099] Step 3: The system bus generates a peripheral working clock by configuring div_val output by the peripheral clock division configuration unit 25 in the peripheral clock management module 20 and the peripheral working clock signal output by the selector MUX.

[0100] Step 4: The system bus generates a peripheral configuration clock by configuring the gate_n output by the peripheral clock enable configuration unit 21 to be 1.

[0101] Step 5: The reset configuration and clock configuration required by the peripheral module 200 are normal, and the peripheral management device 100 can generate a correct peripheral access bus signal to configure the specific internal functions of the peripheral module 200, and the peripheral module 200 can start working.

[0102] Therefore, through the above Step 1 to Step 5, it is possible to release the default state of the peripheral management device 100 after the chip is powered on, and enable the peripheral module 200 to start working.

[0103] After that, if the system bus configuration peripheral reset configuration unit 12 outputs rst_n=0, the process returns to the above step 2, that is, the peripheral management device 100 returns to the default state. At this time, if a bus access request is received, an access abnormality alarm signal is output.

[0104] If the system bus is not configured with the peripheral reset configuration unit 12 outputting rst_n=0, it is determined whether the system bus is configured with the peripheral clock enable configuration unit 21 outputting gate_n=0. If so, when a bus access request is received, an access abnormality alarm signal is output.

[0105] Among them, in Step 1, the system reset is released, which means that the system reset signal changes from a low level to a high level.

[0106] In Step 2, when rst_n is low level (0), the peripheral bus domain reset signal and the peripheral function domain reset signal are both in a low level reset state. After rst_n changes from low level to high level, it will pass through the first synchronous releaser 11 to release the reset state of the peripheral module 200. When gate_n=0, the input EN of the clock synchronization shutdown unit 23=0, and the peripheral configuration clock is not output at this time.

[0107] The configuration clock domain inside the peripheral module 200 is used for basic configuration of the peripheral module 200 , and the internal working clock domain is used to implement basic functions of the peripheral module 200 .

[0108] In Step 5, assuming that the peripheral module 200 is a transceiver module, the specific functions inside the peripheral module 200 are configured, which may be module enable, master-slave mode selection, rate selection, interrupt enable, and data received and sent of the peripheral module 200.

[0109] In summary, the peripheral management device of the embodiment of the present invention is used to manage peripheral modules, and the peripheral management device includes: a peripheral reset management module, a peripheral clock management module and a bus access management module; wherein the peripheral reset management module is connected to the peripheral module, and is used to output a peripheral bus domain reset signal according to a system clock signal and a peripheral reset configuration request to reset the configuration clock domain of the peripheral module; the peripheral clock management module is respectively connected to the peripheral reset management module and the peripheral module, and is used to output a peripheral configuration clock according to a peripheral bus domain reset signal, a system clock signal and a peripheral clock enable configuration request to provide a configuration clock for the peripheral module; the bus access management module is respectively connected to the peripheral reset management module, the peripheral clock management module and the peripheral module, and is used to output a peripheral access bus signal according to a peripheral bus domain reset signal, a peripheral clock enable configuration request and a bus access signal to access the peripheral module. Therefore, by designing a modular peripheral management device, each module of the peripheral management device is used to realize a function, so that the functions required for managing the peripheral modules are allocated to each module for execution, without affecting each other, facilitating the unified management of the chip system, and thus supporting the management of different peripheral modules. It is possible to effectively realize the reset control, clock control and peripheral memory access bus management for only a single peripheral module through an independent management device, without affecting other peripheral modules, and without relying on the reset and clock selection of the chip system. Each peripheral management device can be standardized and reused to realize the management of memory access for multiple peripheral modules. For the management of multiple different peripherals, only multiple peripheral management devices need to be reused. And each independent peripheral management device has independent clock control and reset control, without affecting each other's functions. The above peripheral management devices are all pure digital logic designs, with low hardware overhead, and are easy to implement in circuit design. When the configuration clock of any peripheral module is lost or in the module reset state, if the bus is still accessing the peripheral module, the peripheral management device will report an access abnormality alarm signal to perform a higher level of processing on the system bus.

[0110] Furthermore, the present invention provides a chip.

[0111] Figure 5 It is a structural block diagram of a chip according to an embodiment of the present invention.

[0112] like Figure 5 As shown, the chip 1000 includes: M peripheral modules 200 and M peripheral management devices 100 according to the above embodiment, the M peripheral modules 200 and the M peripheral management devices 100 are connected in a one-to-one correspondence, wherein M is a positive integer.

[0113] In summary, the chip of the embodiment of the present invention, through the peripheral management device of the above embodiment, through the design of modular peripheral management device, each module of the peripheral management device is used to realize a function, and the functions required for managing the peripheral modules are allocated to each module for execution, without affecting each other, which is convenient for unified management of the chip system, thereby supporting the management of different peripheral modules. It is possible to effectively realize reset control, clock control and peripheral memory access bus management for only a single peripheral module through an independent management device, without affecting other peripheral modules, and without relying on the reset and clock selection of the chip system. Each peripheral management device can be standardized and reused to realize the management of memory access of multiple peripheral modules. For the management of multiple different peripherals, only multiple peripheral management devices need to be reused. And each independent peripheral management device has independent clock control and reset control, and the functions do not affect each other. The above peripheral management devices are all pure digital logic designs, and the hardware overhead is small, which is easy to implement in circuit design. When the configuration clock of any peripheral module is lost or in module reset state, if the bus is still accessing the peripheral module, the peripheral management device will report an access abnormality alarm signal and perform a higher level of processing on the system bus.

[0114] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0115] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0116] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0117] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0118] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0119] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0120] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.

[0121] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A peripheral management device, It is characterized in that Used to manage peripheral modules, the peripheral management device includes: a peripheral reset management module, a peripheral clock management module and a bus access management module; wherein, The peripheral reset management module is connected to the peripheral module and is used to output a peripheral bus domain reset signal according to the system clock signal and the peripheral reset configuration request to reset the configuration clock domain of the peripheral module; The peripheral clock management module is connected to the peripheral reset management module and the peripheral module respectively, and is used to output a peripheral configuration clock according to the peripheral bus domain reset signal, the system clock signal and the peripheral clock enable configuration request, so as to provide a configuration clock for the peripheral module; The bus access management module is connected to the peripheral reset management module, the peripheral clock management module and the peripheral module respectively, and is used to output a peripheral access bus signal according to the peripheral bus domain reset signal, the peripheral clock enable configuration request and the bus access signal to access the peripheral module; The peripheral reset management module is further used to output a peripheral function domain reset signal according to the peripheral working clock signal and the peripheral reset configuration request, so as to reset the working clock domain of the peripheral module; The peripheral clock management module is further used to output the peripheral working clock signal according to the peripheral clock selection configuration request, and output the peripheral working clock according to the peripheral function domain reset signal, the peripheral working clock signal and the peripheral clock division configuration request, so as to provide the working clock for the peripheral module; Wherein, the peripheral clock management module is further used to output a peripheral bus domain reset signal to the peripheral reset management module, and stop providing the configuration clock to the peripheral module when resetting the configuration clock domain of the peripheral module; The peripheral clock management module is also used to output a peripheral function domain reset signal to the peripheral reset management module, and stop providing the working clock to the peripheral module when resetting the working clock domain of the peripheral module.

2. The peripheral management device according to claim 1, It is characterized in that The peripheral reset management module includes: a first synchronous releaser, a peripheral reset configuration unit and a first AND gate; wherein, The peripheral reset configuration unit is connected to the first input terminal of the first AND gate, and is used to output a low-level reset signal when receiving the peripheral reset configuration request; The second input terminal of the first AND gate is used to input a system reset signal; The first input end of the first synchronous releaser is used to input the system clock signal, the second input end of the first synchronous releaser is connected to the output end of the first AND gate, and the output end of the first synchronous releaser is connected to the peripheral module, wherein when the level signal input to the second input end of the first synchronous releaser changes from a high level to a low level, the first synchronous releaser outputs a low level reset signal of the peripheral bus domain.

3. The peripheral management device according to claim 2, It is characterized in that The peripheral reset management module further includes: a second synchronization releaser; The first input end of the second synchronous releaser is connected to the peripheral clock management module to receive the peripheral working clock signal, the second input end of the second synchronous releaser is connected to the output end of the first AND gate, and the output end of the second synchronous releaser is connected to the peripheral module, wherein when the level signal input to the second input end of the second synchronous releaser changes from a high level to a low level, the second synchronous releaser outputs a low level reset signal of the peripheral function domain.

4. The peripheral management device according to claim 3, It is characterized in that The first synchronous releaser also has a third input terminal for inputting a preset high-level signal. After outputting the low-level peripheral bus domain reset signal, the first synchronous releaser waits for at least two system clock cycles and releases the peripheral bus domain reset signal to a high level. The second synchronous releaser also has a third input terminal for inputting a preset high-level signal. After outputting the low-level peripheral function domain reset signal, the second synchronous releaser waits for at least two clock cycles of the peripheral clock working signal and releases the peripheral function domain reset signal to a high level.

5. The peripheral management device according to claim 1, It is characterized in that The peripheral clock management module includes: a peripheral clock enable configuration module, a synchronizer and a clock synchronization shutdown unit; wherein, The peripheral clock enable configuration module is connected to the first input terminal of the synchronizer, and is used to output a clock enable signal when receiving the peripheral clock enable configuration request, wherein when the clock enable signal is at a low level, it indicates that the clock is turned off; The second input end of the synchronizer is used to input the system clock signal, the third input end of the synchronizer is connected to the peripheral reset management module to receive the peripheral bus domain reset signal, the output end of the synchronizer is connected to the first input end of the clock synchronization shutdown unit, and the synchronizer is used to output a low-level synchronization signal when the peripheral bus domain reset signal is at a low level, or after the peripheral bus domain reset signal changes from a low level to a high level and the clock enable signal is at a low level, and output a high-level synchronization signal when the peripheral bus domain reset signal changes from a low level to a high level and the clock enable signal is at a high level; The second input end of the clock synchronization shutdown unit is used to input the system clock signal, the output end of the clock synchronization shutdown unit is connected to the peripheral module, and the clock synchronization shutdown unit is used to shut down the peripheral configuration clock according to the low-level synchronization signal, and output the peripheral configuration clock according to the high-level synchronization signal.

6. The peripheral management device according to claim 5, It is characterized in that The peripheral clock management module further includes: a peripheral clock selection configuration unit, a peripheral clock frequency division configuration unit, a peripheral clock frequency division circuit, and a selector; wherein, The peripheral clock selection configuration unit is connected to the control end of the selector, and is used to output a clock selection signal when receiving the peripheral clock selection configuration request; The multiple input ends of the selector are used to input multiple working clock signals in a one-to-one correspondence, the output end of the selector is connected to the peripheral reset management module and the first input end of the peripheral clock frequency division circuit respectively, and the selector is used to select the peripheral working clock signal from the multiple working clock signals according to the clock selection signal and output it; The peripheral clock frequency division configuration unit is connected to the second input terminal of the peripheral clock frequency division circuit, and is used to output a clock frequency division signal when receiving the peripheral clock frequency division configuration request; The third input end of the peripheral clock frequency division circuit is connected to the peripheral reset management module to receive the peripheral function domain reset signal. The output end of the peripheral clock frequency division circuit is connected to the peripheral module. The peripheral clock frequency division circuit is used to output a low-level peripheral working clock when the peripheral function domain reset signal is at a low level, and after the peripheral function domain reset signal changes from a low level to a high level, divide the peripheral working clock signal according to the clock frequency division signal and output it as the peripheral working clock.

7. The peripheral management device according to claim 5, It is characterized in that The bus access management module includes: a second AND gate and a third AND gate; wherein, The first input end of the second AND gate is connected to the peripheral reset management module to receive the peripheral bus domain reset signal, the second input end of the second AND gate is connected to the peripheral clock enable configuration module to receive the clock enable signal, and the output end of the second AND gate is connected to the first input end of the third AND gate; The second input end of the third AND gate is used to input the bus access signal, and the output end of the third AND gate is connected to the peripheral module.

8. The peripheral management device according to claim 7, It is characterized in that The bus access management module further includes: a fourth AND gate and an inverter; wherein, The input end of the inverter is connected to the output end of the second AND gate, and the output end of the inverter is connected to the first input end of the fourth AND gate; The second input end of the fourth AND gate is used to input the bus access signal, and the output end of the fourth AND gate is used to output an access abnormality alarm signal to the system bus.

9. A chip, It is characterized in that include: M peripheral modules and M peripheral management devices according to any one of claims 1 to 8, the M peripheral modules and the M peripheral management devices are connected in a one-to-one correspondence, wherein M is a positive integer.

Citation Information

Patent Citations

  • Processor communications

    CN103198048A

  • Numerical control machine tool motion control card based on WIFI communication

    CN109062145A

  • Flexible-application serial peripheral interface host circuit

    CN116627885A

  • Pulse generator

    US20140355365A1

  • Mechanism for managing access to at least one shared integrated peripheral of a processing unit and a method of operating thereof

    US20160077984A1