A system for chip frequency conversion

By introducing a clock generation module and a signal feedback module into the chip, combined with a PLL nested DDS scheme, the frequency is dynamically adjusted to match the peripheral requirements, solving the problem that the chip cannot operate at a suitable frequency and improving the peripheral performance.

CN117311445BActive Publication Date: 2026-11-24SHANDONG INSPUR SCI RES INST CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311214861.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-20
Publication Date
2026-11-24
Estimated Expiration
2043-09-20

AI Technical Summary

Technical Problem

In existing technologies, the chip itself cannot operate at a suitable operating frequency, causing peripherals to fail to achieve optimal performance.

Method used

The system employs a clock generation module, an AXI signal control module, an AXI2AHB conversion module, an AHB module, an AHB2APB conversion module, a signal feedback module, and a peripheral module. The signal feedback module determines the frequency requirements of the peripherals, and a PLL-nested DDS scheme is used for frequency division to achieve dynamic frequency adjustment to match the optimal operating frequency of the peripherals.

Benefits of technology

It enables the chip and its peripherals to operate at the optimal operating frequency, thus optimizing performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117311445B_ABST
    Figure CN117311445B_ABST
Patent Text Reader

Abstract

This invention relates to the field of chip information transmission technology, specifically to a system for chip frequency conversion. The system comprises a clock generation module, an AXI signal control module, an AXI2AHB conversion module, an AHB module, an AHB2APB conversion module, an APB module, a signal feedback module, and peripheral modules. The beneficial effects are as follows: The chip frequency conversion system proposed in this invention, through the cooperation of relevant signals and modules, improves the relevant protocols of the AXI bus by adding relevant signals to perfect the current AXI bus protocol. Specifically, it interacts with the clock through the AXI TUSER signal and outputs feedback signals through the frequency matching module, enabling the clock generation module to up-clock and down-clock. This allows for dynamic frequency adjustment of the chip, thereby ensuring that related peripherals operate at their optimal operating frequencies, thus optimizing the performance of the chip and its peripherals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of information transmission technology for chips, specifically a system for chip frequency conversion. Background Technology

[0002] In the process of designing a processor, it is often difficult for the processor itself to complete certain tasks, which can also be attributed to the limitations of the power consumption of a small MCU.

[0003] In existing technologies, chips themselves cannot perform a wide range of functions. Generally speaking, from a designer's perspective, we can reserve interfaces for general protocols and attach peripherals according to our needs. At this point, a problem arises: how to make the peripherals work at a suitable operating frequency? Bus protocols such as AHB or APB generally provide a fixed operating frequency. This operating frequency can usually adapt to the operating frequency of the peripherals, but it may not be able to bring out the best performance of the peripherals. Summary of the Invention

[0004] The purpose of this invention is to provide a system for chip frequency conversion to solve the problems mentioned in the background art.

[0005] To achieve the above objectives, the present invention provides the following technical solution: a system for chip frequency conversion, the system comprising a clock generation module, an AXI signal control module, an AXI2AHB conversion module, an AHB module, an AHB2APB conversion module, an APB module, a signal feedback module, and a peripheral module;

[0006] The clock generation module is the IP for generating relevant signals;

[0007] The AXI2AHB conversion module converts the AXI to AHB protocols.

[0008] The AHB module supports all transmission types of the AXI4 protocol and enables AXI protocol transmission.

[0009] The AHB2APB module implements the conversion from AHB to APB protocol;

[0010] The signal feedback module is placed after each peripheral module and determines the up / down frequency requirements of the module through relevant judgment conditions.

[0011] Peripheral modules are placed in the AHB or APB signal layer.

[0012] Preferably, the clock generation module uses a PLL nested DDS scheme for frequency division. The derived clock of the clock generation module is connected to the AXI module as the driving clock. The AXI is connected to the AHB through the AXI2AHB module, and the AHB is connected to the APB through the AHB2APB module. At the same time, both the AHB and APB have relevant peripheral modules that conform to their corresponding protocols. After each data transmission is completed, the peripheral module sends a valid_flag signal, which is accepted by the frequency matching module.

[0013] Preferably, the frequency matching module's up / down frequency standard is as follows:

[0014] To ensure that peripherals operate at the most suitable frequency and guarantee a certain valid_flag pull-up frequency, in the AMBA series of protocols, data transmission is performed through bursts. After each transmission is completed, a corresponding wvalid signal will be pulled high. After the signal feedback module analyzes the valid signal and compares it with the corresponding level of signal module, it determines whether the frequency of the module needs to be increased or decreased.

[0015] Preferably, the AXI2AHB conversion module converts the AXI to AHB protocol, transforming the relevant AXI signals into signals used for AHB protocol transmission and reception.

[0016] Preferably, the AHB2APB module converts the AHB signal to the APB protocol, converting the relevant AHB signal into a signal used for APB protocol transmission and reception.

[0017] Preferably, the signal feedback module is placed after each peripheral module. It determines the frequency increase / decrease requirements of the module through relevant judgment conditions and transmits the feedback signal to the relevant signal of the AXI module. The AXI module is then connected to the clock generation module for frequency adjustment.

[0018] Compared with the prior art, the beneficial effects of the present invention are:

[0019] The chip frequency conversion system proposed in this invention improves the current AXI bus protocol by coordinating relevant signals and modules and adding relevant signals. Specifically, it interacts with the clock through the AXI TUSER signal and outputs feedback signals through the frequency matching module to enable the clock generation module to up-up and down-up the frequency. This enables dynamic frequency adjustment of the chip, allowing related peripherals to operate at their optimal operating frequencies and optimizing the performance of the chip and its peripherals. Attached Figure Description

[0020] Figure 1 This is a diagram of the clock generation module architecture of the present invention;

[0021] Figure 2 This is a diagram of the signal feedback module architecture of the present invention;

[0022] Figure 3 This is the overall flowchart of the present invention. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of the present invention clear and complete, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only some, not all, embodiments of the present invention, and are merely illustrative of the embodiments of the present invention. They are not intended to limit the embodiments of the present invention. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0024] Example 1

[0025] Please see Figure 3 The present invention provides a technical solution: a system for chip frequency conversion, the system comprising a clock generation module, an AXI signal control module, an AXI2AHB conversion module, an AHB module, an AHB2APB conversion module, an APB module, a signal feedback module, and a peripheral module;

[0026] Specifically, the clock generation module employs a PLL nested DDS scheme for frequency division. A traditional PLL typically consists of a phase detector (PD), a filter (LF), and a voltage-controlled oscillator (VCO). By adding a DDS to the phase detector and replacing the fractional divider in the feedback loop of a typical PLL with a DDS, the logic control unit changes the frequency division ratio of the DDS in the loop, thereby changing the input frequency of the PD. Ultimately, this changes the output voltage of the PD to control the output frequency of the VCO. The high resolution of the DDS and the wide bandwidth output advantage of the PLL structure are both preserved and utilized. The derived clock from the clock generation module serves as the driving clock for the AXI module and is connected to AXI. AXI is connected to AHB via the AXI2AHB module, and AHB is connected to APB via the AHB2APB module. Both AHB and APB have corresponding peripheral modules conforming to their respective protocols. These peripheral modules can send a valid_flag signal after each data transmission, which can be accepted by the frequency matching module. The frequency matching module's up / down standard is as follows: this module determines the frequency matching module's up / down standard... To operate at the optimal frequency, a certain valid_flag pull-up frequency needs to be guaranteed. In the AMBA series of protocols, data transmission is performed through bursts. After each transmission is completed, a corresponding wvalid signal will go high (which could be axi_wvalid, ahb_wvalid, or apb_wvalid). Taking the AHB level as an example, after each information transmission is completed, a corresponding wvalid signal will go high. For peripherals at this level, if the valid signal pull-up frequency cannot keep up with the wvalid signal, it means that the device's outstanding capability is insufficient (outstanding capability refers to the number of unprocessed transactions; data has been sent but not processed and is still being pushed up on the bus). This indicates that the frequency is too high for the peripheral, and the frequency needs to be reduced to ensure that the peripheral operates within its normal range (excessive outstanding capability to retain many unprocessed transactions requires more powerful CPU performance).After the signal feedback module analyzes and compares the valid signal with the corresponding level signal module (AHB APB), it can determine whether the frequency of the module needs to be increased or decreased. Each increase or decrease value is fixed for AHB or APB, similar to the working mode of a phase-locked loop. Taking the AHB module as an example, the operating frequency of this signal level is generally greater than 66MHz and less than 133MHz. After setting the upper and lower limits, an adjustment of ±20MHz is performed for the first time. After the first adjustment, an adjustment of ±10MHz is performed, and so on. Each reduction in range is 1 / (2^n) of the previous one. After the peripheral and the valid signal of the corresponding level can match (i.e., within the same clock cycle, both the valid signal and the wvalid signal are pulled high), the adjustment loop is exited, and the adjustment is completed. The adjustment process is carried out through the interaction between the Tuser signal in the AXI module and the clock generation module. The reason for using the Tuser signal is that the Tuser signal does not affect the working process of the entire AXI protocol. The TDATA width is based on the BYTE, which is a multiple of 8. Each byte width is considered as one byte lane. For a TDATA with an N-byte lane width, multi-byte data is internally streamed and stored byte-by-byte lane. This can be understood as an 8-bit FIFO. If each byte is accompanied by an n-bit TUSER, it can be understood as another n-bit FIFO. During read and write operations, for each 8 bits of TDATA retrieved, the n bits of TUSER are simultaneously retrieved. It can be seen that the Tuser signal can transmit information to the clock generator without affecting the normal operation of the AXI protocol.

[0027] Example 2

[0028] Based on Example 1, refer to Appendix Figure 1 As shown, Fref is the reference clock, generated by the crystal oscillator. Fdds replaces the original PLL as the excitation. Fout = N*N1*(fdds / R), where N1 is a parameter generated by the fine control of DDS. Under normal operation of the entire clock system, the parameter buffer module REG can work with the signal return module to transmit correlation coefficients for further precise control.

[0029] Example 3

[0030] Based on Example 1, refer to Appendix Figure 2As shown, the valid comparison module first receives valid signals from the AHB or APB module and its peripherals, compares them, and determines whether it is operating at the most suitable frequency. If not, it enters the n-counting module, which adjusts the frequency by 1 / (2^n) each time. The first adjustment for AHB is ±50MHz, and the first adjustment for APB is ±20MHz. The logic for determining whether to increase or decrease is as follows: taking the AHB bus as an example, if the AHB bus pulls the valid signal high after completing one transmit / receive cycle, but the peripheral has not yet pulled it high, the frequency needs to be reduced because the peripheral has not yet completed data transmission / receive. Conversely, if after the AHB pulls the valid signal high once, it is detected that the peripheral has already pulled it high multiple times, indicating that the current frequency can continue to be high for the current peripheral because it has completed many data transmissions / receives within a unit of time and there is no backlog of data coming from the bus. After determining whether to increase or decrease, the data transmission module begins data transmission.

[0031] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A system for chip frequency conversion, characterized by: The system consists of a clock generation module, an AXI signal control module, an AXI2AHB conversion module, an AHB module, an AHB2APB conversion module, an APB module, a signal feedback module, and peripheral modules. The clock generation module is the IP for generating relevant signals; The AXI2AHB conversion module converts the AXI to AHB protocols. The AHB module supports all transmission types of the AXI4 protocol and enables AXI protocol transmission. The AHB2APB module implements the conversion from AHB to APB protocol; The signal feedback module is placed after each peripheral module and determines the up / down frequency requirements of the module through relevant judgment conditions. Peripheral modules are placed in the AHB or APB signal layer; The clock generation module uses a PLL nested DDS scheme for frequency division. The derived clock of the clock generation module is connected to the AXI module as the driving clock. The AXI is connected to the AHB through the AXI2AHB module, and the AHB is connected to the APB through the AHB2APB module. At the same time, both AHB and APB have relevant peripheral modules that conform to their corresponding protocols. After each data transmission is completed, the peripheral module sends a valid_flag signal, which is accepted by the frequency matching module. The frequency matching module's up / down frequency standards are as follows: To ensure peripherals operate at their optimal frequency, a certain valid_flag pull-up frequency is maintained. In the AMBA series protocols, data transmission is performed via bursts. Each transmission completion triggers a corresponding wvalid signal high. The signal feedback module analyzes the valid signal and compares it with the corresponding level's signal module to determine whether to increase or decrease the module's frequency. Each increase or decrease is fixed for AHB or APB, similar to a phase-locked loop (PLL) operation. For AHB modules, the operating frequency of this signal level is greater than 66MHz and less than 133MHz. After setting the upper and lower limits, the... The adjustment cycle performs a ±20MHz range adjustment. After the first adjustment, a ±10MHz range adjustment is performed, and so on. Each reduction in range is 1 / (2^n) of the previous one. Once the valid signal of the peripheral device and the corresponding level can be matched, the adjustment loop is exited, and the adjustment is complete. The adjustment process is achieved through interaction between the Tuser signal in the AXI module and the clock generation module. The Tuser signal is used because it does not affect the overall AXI protocol operation. The TDATA width is based on the BYTE unit, which is a multiple of 8. Each byte is considered as one byte. For a TDATA with a width of N byte lanes, multi-byte data is serialized and stored byte by byte lane when it is internally streamed, which is an 8-bit FIFO. If each BYTE is accompanied by an n-bit TUSER, that is, there is another n-bit FIFO, when performing read and write operations, each time 8 bits of TDATA are retrieved, n bits of TUSER are retrieved at the same time. The Tuser signal transmits information to the clock generator without affecting the normal operation of the AXI protocol. The AXI2AHB conversion module converts AXI signals to AHB signals, transforming them into signals used for AHB protocol transmission and reception. The AHB2APB module converts AHB signals to APB signals, transforming them into signals used for APB protocol transmission and reception. The signal feedback module, located after each peripheral module, determines the frequency ramping or boosting requirements of the module based on relevant judgment conditions, and transmits the feedback signal to the relevant signals of the AXI module. The AXI module is then connected to the clock generation module for frequency adjustment.

Citation Information

Patent Citations

  • Voice chip and electronic equipment

    CN110265029A

  • Method and equipment for frequency modulation of chip and computer readable storage medium

    CN113448379A

  • Phase locked loop having direct digital synthesizer dividers and improved phase detector

    US6198353B1