Industrial high throughput network MPU board-level communication module, communication method and communication equipment
By introducing the main control module and preset frequency mapping relationship into the communication module, the target clock frequency is automatically selected, which solves the problem that users need to manually adjust the clock frequency in the prior art, and improves the user experience.
Patent Information
- Application Number
- CN202510081409.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-20
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2045-01-20
AI Technical Summary
Existing communication modules require users to manually set relevant parameters to change the clock frequency, resulting in poor user experience.
Design an industrial high-throughput network MPU board-level communication module, including a main control module and a communication module. The main control module automatically selects the target clock frequency according to the current resource utilization rate by obtaining the preset frequency mapping relationship, and sends it to the communication module to realize the function of automatically adjusting the clock frequency.
Without manual adjustment from users, the communication module can automatically select the appropriate clock frequency according to resource utilization, improving the user experience.
Smart Images

Figure CN119512332A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an industrial high-throughput network MPU board-level communication module, a communication method and a communication device. Background Art
[0002] The industrial communication module integrated in the main processing unit (MPU) integrates baseband, RF, power supply, storage and other chips with electronic components such as resistors, capacitors and inductors, and is equipped with specific packaging and software design to meet the networking needs of different devices in the industrial network.
[0003] Currently, existing communication modules usually use high-performance MPUs and large-capacity memories to output higher clock frequencies to support high-speed data processing and transmission with other modules or internal modules to achieve high throughput.
[0004] However, in the above method, after the relevant parameters of the communication module are determined, the clock frequency is fixed. When the actual scenario does not match the throughput of the communication module, for example, when resource utilization is low and high throughput is not required for data transmission, in order to avoid excessive throughput leading to increased energy consumption of the module and reduced battery life, users are often required to manually set the relevant parameters of the communication module to change the clock frequency to ensure that the communication module transmits data at an appropriate throughput, resulting in a poor user experience. Summary of the invention
[0005] The main purpose of this application is to provide an industrial high-throughput network MPU board-level communication module, communication method and communication equipment, aiming to solve the technical problem that the prior art requires users to manually set relevant parameters of the communication module to change the clock frequency, resulting in poor user experience.
[0006] To achieve the above-mentioned purpose, the present application provides an industrial high-throughput network MPU board-level communication module, the module comprising: a main control module and a communication module; The main control module and the communication module are both integrated in the MPU, and the main control module is connected to the communication module; The main control module is used to obtain a preset frequency mapping relationship, where the preset frequency mapping relationship stores a corresponding relationship between resource utilization and preset clock frequency; The main control module is further used to select a corresponding target clock frequency from the preset frequency mapping relationship based on the current resource utilization, and send the target clock frequency to the communication module; The communication module is used to perform data transmission with other modules based on the target clock frequency.
[0007] In one embodiment, the main control module includes: a frequency selection unit and a frequency output unit; The frequency output unit is connected to the frequency selection unit and the communication module respectively; The frequency selection unit is used to determine whether there is a target resource utilization rate corresponding to the current resource utilization rate in the preset frequency mapping relationship; The frequency selection unit is further configured to, when there is a target resource utilization rate corresponding to the current resource utilization rate in the preset frequency mapping relationship, obtain a preset clock frequency corresponding to the target resource utilization rate from the preset frequency mapping relationship as the target clock frequency; The frequency output unit is used to send the target clock frequency to the communication module.
[0008] In one embodiment, the frequency selection unit is further configured to determine whether the current resource utilization is between adjacent first resource utilization and second resource utilization in the preset frequency mapping relationship when there is no target resource utilization corresponding to the current resource utilization in the preset frequency mapping relationship; The frequency selection unit is further configured to determine a target clock frequency according to the first resource utilization and the second resource utilization when the current resource utilization is between the adjacent first resource utilization and the second resource utilization.
[0009] In one embodiment, the frequency selection unit is further configured to determine a first difference between the current resource utilization and the first resource utilization, and determine a second difference between the current resource utilization and the second resource utilization when the current resource utilization is between adjacent first resource utilization and second resource utilization; The frequency selection unit is further used to determine a proportionality coefficient according to the first difference and the second difference; The frequency selection unit is further used to determine a first preset clock frequency corresponding to the first resource utilization rate and a second preset clock frequency corresponding to the second resource utilization rate; The frequency selection unit is further used to determine a target clock frequency according to the proportional coefficient, the first preset clock frequency and the second preset clock frequency.
[0010] In one embodiment, the frequency selection unit is further configured to determine a maximum resource utilization and a minimum resource utilization in the preset frequency mapping relationship when the current resource utilization is not between the first resource utilization and the second resource utilization that are adjacent in the preset frequency mapping relationship; The frequency selection unit is further configured to determine utilization rate growth trend information of each resource utilization rate in the preset frequency mapping relationship when the current resource utilization rate is higher than the maximum resource utilization rate; The frequency selection unit is further used to determine the target clock frequency corresponding to the current resource utilization rate according to the utilization rate growth trend information; The frequency selection unit is further configured to use, when the current resource utilization is lower than the minimum resource utilization, a preset clock frequency corresponding to the minimum resource utilization in the preset frequency mapping relationship as a target clock frequency.
[0011] In one embodiment, the communication module includes: a clock generator and a data transmission unit; The clock generator is connected to the data transmission unit and the main control module respectively; The clock generator is used to adjust the frequency of the current clock signal according to the target clock frequency, generate a target clock signal with the target clock frequency, and send the target clock signal to the data transmission unit; The data transmission unit is used to perform data transmission with the other modules both during the high level time and the low level time of the target clock signal.
[0012] In one embodiment, the module further comprises: a serial module; The serial module is connected to the communication module; The serial module is used for, upon receiving a plurality of data to be transmitted in parallel from the communication module, converting each of the data to be transmitted into target serial data of a single physical channel and then sending the data to the corresponding module; The serial module is further configured to, when receiving the serial data to be transmitted sent by the other modules, convert the serial data to be transmitted into a plurality of target data to be transmitted and transmit the data in parallel to the communication module.
[0013] In one embodiment, the module further includes: at least two cache modules; Among them, different cache modules have different capacities; Each of the cache modules is connected to the main control module; The main control module is further used to obtain the cache module with the lowest capacity as the initial cache module when receiving the data acquisition instruction; The main control module is further used to determine whether there is target data corresponding to the data acquisition instruction in the initial cache module; The main control module is also used to select a cache module with a capacity higher than that of the initial cache module and lower than that of other cache modules as the initial cache module when the target data is not found in the initial cache module, and execute the operation of determining whether there is the target data corresponding to the data acquisition instruction from the initial cache module until the target data corresponding to the data acquisition instruction is read.
[0014] In addition, to achieve the above purpose, the present application also proposes a communication method based on the industrial high-throughput network MPU board-level communication module described above, the method comprising: Acquire a preset frequency mapping relationship, where the preset frequency mapping relationship stores a correspondence between resource utilization and preset clock frequency; Selecting a corresponding target clock frequency from the preset frequency mapping relationship based on the current resource utilization, and sending the target clock frequency to the communication module; Data is exchanged with other modules based on the target clock frequency.
[0015] In addition, to achieve the above-mentioned purpose, the present application also proposes a communication device, which includes the industrial high-throughput network MPU board-level communication module as described above.
[0016] One or more technical solutions proposed in this application have at least the following technical effects: The industrial high-throughput network MPU board-level communication module of the present application includes: a main control module and a communication module, both of which are integrated in the MPU, and the main control module is connected to the communication module. The main control module of the present application obtains a preset frequency mapping relationship, and the preset frequency mapping relationship stores the correspondence between resource utilization and preset clock frequency; the main control module selects the corresponding target clock frequency from the preset frequency mapping relationship based on the current resource utilization, and sends the target clock frequency to the communication module; the communication module exchanges data with other modules based on the target clock frequency. Since the present application selects the target clock frequency corresponding to the current resource utilization through the preset frequency mapping relationship for data transmission, therefore, compared with the prior art, the present application can automatically select the corresponding clock frequency according to different resource utilizations, without the need for manual adjustment by the user, which effectively improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] Figure 1 This is a structural diagram of the first embodiment of the industrial high-throughput network MPU board-level communication module of the present application; Figure 2 This is a structural diagram of the second embodiment of the industrial high-throughput network MPU board-level communication module of the present application; Figure 3 This is a first structural schematic diagram of the third embodiment of the industrial high-throughput network MPU board-level communication module of the present application; Figure 4 This is a second structural schematic diagram of the third embodiment of the industrial high-throughput network MPU board-level communication module of the present application; Figure 5 This is a third structural schematic diagram of the third embodiment of the industrial high-throughput network MPU board-level communication module of the present application; Figure 6 This is a flow chart of the communication method of this application.
[0020] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0021] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0022] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0023] The main solution of the embodiment of the present application is: the main control module obtains a preset frequency mapping relationship, selects a corresponding target clock frequency from the preset frequency mapping relationship based on the current resource utilization, and sends the target clock frequency to the communication module; the communication module transmits data with other modules based on the target clock frequency.
[0024] Since the prior art requires the user to manually set the relevant parameters of the communication module to change the clock frequency to ensure that the communication module transmits data at an appropriate throughput, the user experience will be poor.
[0025] The present application provides a solution, which selects a target clock frequency corresponding to the current resource utilization for data transmission through a preset frequency mapping relationship. Therefore, compared with the prior art, the present application can automatically select the corresponding clock frequency according to different resource utilizations without the need for manual adjustment by the user, thereby effectively improving the user experience.
[0026] Based on this, the embodiment of the present application provides an industrial high-throughput network MPU board-level communication module, referring to Figure 1 , Figure 1 This is a structural diagram of the first embodiment of the industrial high-throughput network MPU board-level communication module of the present application.
[0027] In this embodiment, the industrial high-throughput network MPU board-level communication module includes: a main control module 100 and a communication module 200 .
[0028] The main control module 100 and the communication module 200 are both integrated in the MPU, and the main control module 100 is connected to the communication module 200 .
[0029] It should be noted that the main control module 100 may be a multi-core heterogeneous processor composed of multiple cores, which is responsible for executing instructions, processing data and controlling all operations of the computer.
[0030] It is understandable that the communication module 200 may be a module for accessing data in a memory, such as a memory controller, and the communication module 200 may exchange data with other modules.
[0031] It should be noted that the above-mentioned MPU can be a component responsible for tasks such as routing calculation, equipment management and maintenance, and equipment monitoring to ensure the normal operation of the entire module.
[0032] The main control module 100 is used to obtain a preset frequency mapping relationship, where the preset frequency mapping relationship stores a corresponding relationship between resource utilization and preset clock frequency.
[0033] It should be noted that the above-mentioned preset clock frequency may be a clock frequency configured in advance through customization.
[0034] It is understandable that the resource utilization rate can be used to characterize the degree to which the module can exert its performance in actual applications, that is, the proportion of the module being effectively utilized, which can be obtained by dividing the actual usage by the total amount and then multiplying by 100%. A high utilization rate means that the module can exert its function more fully, thereby improving the efficiency and performance of the overall device.
[0035] In a specific implementation, a test environment based on an industrial high-throughput network MPU board-level communication module can be built, and a performance testing tool (such as stress testing software) can be used to simulate CPU usage under different loads, that is, CPU utilization is used as resource utilization. By adjusting parameters such as the number of concurrent users and the amount of data processed, the CPU utilization is gradually increased to obtain different resource utilizations. Then, at each resource utilization, the clock frequency supported by the module is recorded, and the changes in different clock frequencies are determined. Then, the best clock frequency supported by the module is selected at different resource utilizations, and the best clock frequency corresponding to different resource utilizations is used as the corresponding preset clock frequency. After determining the preset clock frequencies corresponding to different resource utilizations, they can be associated and saved in the same list to obtain a preset frequency mapping relationship. When the above-mentioned main control module 100 is running in the current scene, the pre-built preset frequency mapping relationship can be obtained to perform subsequent operations.
[0036] The main control module 100 is further configured to select a corresponding target clock frequency from the preset frequency mapping relationship based on current resource utilization, and send the target clock frequency to the communication module 200 .
[0037] In a specific implementation, the above-mentioned main control module 100 can collect the usage of various resources in the module in real time through built-in monitoring tools or third-party monitoring software. The resources involved include but are not limited to the central processing unit (CPU), memory, disk, network, etc., and then calculate the resource utilization of each resource based on the collected data. For example, the CPU utilization can be obtained by calculating the ratio of the CPU time currently in use to the total CPU time, and the memory utilization can be obtained by calculating the ratio of the used memory to the total memory. In addition, according to the actual operation scenario, the corresponding weights can be configured for different resources in advance according to the factors affecting the performance of different resources in the module. For example, the CPU configuration has the highest weight and the network has the lowest weight. Based on this, after obtaining the resource utilization of each resource, the weighted average resource utilization can be calculated as the current resource utilization.
[0038] Furthermore, after obtaining the current resource utilization, the above-mentioned main control module 100 can traverse the preset frequency mapping relationship based on the resource utilization, and determine the resource utilization that is consistent with the current resource utilization or has a deviation lower than the set deviation threshold as the successfully matched resource utilization, and then use the preset clock frequency corresponding to the successfully matched resource utilization in the preset frequency mapping relationship as the target clock frequency.
[0039] It should be understood that when the current resource utilization is high, the corresponding target clock frequency is also selected to be higher, which can increase the number of instruction cycles that the module can execute per unit time, thereby achieving data transmission with high throughput.
[0040] The communication module 200 is used to perform data transmission with other modules based on the target clock frequency.
[0041] In a specific implementation, the above-mentioned communication module 200 can generate a corresponding target clock signal based on the target clock frequency, that is, generate a target clock signal with a frequency of the target clock frequency, and then transmit data with other modules based on the target clock signal, such as other chips or other internal modules, for example, sending data to other modules at the rising edge of the target clock signal, or receiving data sent by other modules at the falling edge of the target clock signal.
[0042] Exemplarily, when the communication module 200 acts as a transmitting end and other modules act as receiving ends, the communication module 200 may send the read data bit by bit to other modules according to the frequency of the target clock signal, for example, sending data on the rising edge of the target clock signal; when the communication module 200 acts as a receiving end and other modules act as a transmitting end, the communication module 200 may receive data sent by other modules according to the frequency of the target clock signal.
[0043] The industrial high-throughput network MPU board-level communication module of this embodiment includes: a main control module and a communication module, both of which are integrated in the MPU, and the main control module is connected to the communication module. The main control module of this application obtains a preset frequency mapping relationship, and the preset frequency mapping relationship stores the correspondence between resource utilization and preset clock frequency; the main control module selects the corresponding target clock frequency from the preset frequency mapping relationship based on the current resource utilization, and sends the target clock frequency to the communication module; the communication module exchanges data with other modules based on the target clock frequency. Since this embodiment selects the target clock frequency corresponding to the current resource utilization through the preset frequency mapping relationship for data transmission, compared with the prior art, this embodiment can automatically select the corresponding clock frequency according to different resource utilizations without the need for manual adjustment by the user, which effectively improves the user experience.
[0044] Based on the first embodiment of the present application, the second embodiment of the present application is proposed. In the second embodiment of the present application, the same or similar contents as those of the first embodiment can be referred to the above introduction, and will not be repeated later. Figure 2 , Figure 2 This is a structural diagram of the second embodiment of the industrial high-throughput network MPU board-level communication module of the present application.
[0045] In this embodiment, the main control module 100 includes: a frequency selection unit 101 and a frequency output unit 102 .
[0046] The frequency output unit 102 is connected to the frequency selection unit 101 and the communication module 200 respectively.
[0047] It should be noted that the frequency selection unit 101 may be a unit for selecting a preset clock frequency from a preset frequency mapping relationship.
[0048] It is understandable that the frequency output unit 102 may be a unit that communicates with the communication module 200 , and is used to output a preset clock frequency to the communication module 200 .
[0049] The frequency selection unit 101 is used to determine whether there is a target resource utilization rate corresponding to the current resource utilization rate in the preset frequency mapping relationship.
[0050] In a specific implementation, the current resource utilization rate may be determined by the frequency selection unit 101 or by other units in the main control module 100, which is not limited in this embodiment. After obtaining the current resource utilization rate, the frequency selection unit 101 may traverse the preset frequency mapping relationship to determine whether there is a target resource utilization rate that corresponds to the current resource utilization rate, that is, consistent with the current resource utilization rate, in the preset frequency mapping relationship.
[0051] The frequency selection unit 101 is further configured to obtain a preset clock frequency corresponding to the target resource utilization as the target clock frequency from the preset frequency mapping relationship when there is a target resource utilization corresponding to the current resource utilization in the preset frequency mapping relationship.
[0052] In a specific implementation, the above-mentioned frequency selection unit 101 may read the preset clock frequency corresponding to the target resource utilization from the preset frequency mapping relationship when there is a corresponding to the current resource utilization in the preset frequency mapping relationship, and use the read preset clock frequency as the target clock frequency, and feed the read target clock frequency back to the frequency output unit 102.
[0053] The frequency output unit 102 is used to send the target clock frequency to the communication module 200 .
[0054] In a specific implementation, when the frequency output unit 102 receives the target clock frequency fed back by the frequency selection unit 101, it can send the target clock frequency to the communication module 200, and the communication module 200 performs data transmission with other modules based on the target clock frequency.
[0055] In a feasible implementation manner, the frequency selection unit 101 is also used to determine whether the current resource utilization is between the adjacent first resource utilization and the second resource utilization in the preset frequency mapping relationship when there is no target resource utilization corresponding to the current resource utilization in the preset frequency mapping relationship.
[0056] In a specific implementation, the frequency selection unit 101 may further determine whether the read resource utilization is between any two adjacent resource utilizations in the preset frequency mapping relationship, that is, determine whether the read resource utilization is between the adjacent first resource utilization and the second resource utilization in the preset frequency mapping relationship, when there is no corresponding resource utilization in the preset frequency mapping relationship, that is, when there is no target resource utilization consistent with the current resource utilization.
[0057] The frequency selection unit 101 is further configured to determine a target clock frequency according to the first resource utilization and the second resource utilization when the current resource utilization is between the adjacent first resource utilization and the second resource utilization.
[0058] In a specific implementation, the frequency selection unit 101 may determine a first preset clock frequency corresponding to the first resource utilization and a second preset clock frequency corresponding to the second resource utilization in a preset frequency mapping relationship when the current resource utilization is between adjacent first resource utilization and second resource utilization, and then randomly generate a clock frequency as the target clock frequency from the range formed by the first preset clock frequency and the second preset clock frequency.
[0059] In a feasible implementation manner, the frequency selection unit 101 is further used to determine a first difference between the current resource utilization and the first resource utilization, and to determine a second difference between the current resource utilization and the second resource utilization when the current resource utilization is between the adjacent first resource utilization and the second resource utilization.
[0060] In a specific implementation, the frequency selection unit 101 may, when the current resource utilization is between adjacent first resource utilization and second resource utilization, subtract the current resource utilization from the first resource utilization and then take the absolute value to obtain a first difference, and subtract the current resource utilization from the second resource utilization and then take the absolute value to obtain a second difference.
[0061] The frequency selection unit 101 is further configured to determine a proportionality coefficient according to the first difference and the second difference.
[0062] In a specific implementation, the frequency selection unit 101 may divide the first difference by the second difference to obtain a proportional coefficient when the first resource utilization is less than the second resource utilization; and divide the second difference by the first difference to obtain a proportional coefficient when the first resource utilization is greater than the second resource utilization.
[0063] The frequency selection unit 101 is further configured to determine a first preset clock frequency corresponding to the first resource utilization and a second preset clock frequency corresponding to the second resource utilization.
[0064] In a specific implementation, the frequency selection unit may determine a first preset clock frequency corresponding to the first resource utilization and a second preset clock frequency corresponding to the second resource utilization in a preset frequency mapping relationship.
[0065] The frequency selection unit 101 is further configured to determine a target clock frequency according to the proportionality coefficient, the first preset clock frequency, and the second preset clock frequency.
[0066] In a specific implementation, the above-mentioned proportionality coefficient can represent the position of the current resource utilization rate between the first resource utilization rate and the second resource utilization rate. Taking the case where the first resource utilization rate is less than the second resource utilization rate as an example, at this time, the larger the proportionality coefficient, the closer the current resource utilization rate is to the first resource utilization rate, and the smaller the proportionality coefficient, the closer the current resource utilization rate is to the second resource utilization rate. Based on this, the proportionality coefficient, the first preset clock frequency, and the second preset clock frequency can be substituted into the preset clock frequency formula to calculate the target clock frequency. Among them, the preset clock frequency formula is:
[0067] In the formula, is the target clock frequency, is the current resource utilization, is the first resource utilization rate, is the second resource utilization, is a first preset clock frequency, is the second preset clock frequency.
[0068] It should be understood that, in this embodiment, when the first resource utilization is between the first resource utilization and the second resource utilization, compared to randomly generating a clock frequency as the target clock frequency from the range formed by the first preset clock frequency and the second preset clock frequency, the proportional coefficient is determined by the first difference between the current resource utilization and the first resource utilization and the second difference between the current resource utilization and the second resource utilization, and the target clock frequency is determined in combination with the proportional coefficient, the first preset clock frequency and the second preset clock frequency. This can more accurately obtain the target clock frequency that matches the current resource utilization, thereby effectively improving the determination accuracy of the target clock frequency.
[0069] In a feasible implementation manner, the frequency selection unit 101 is further used to determine the maximum resource utilization and the minimum resource utilization in the preset frequency mapping relationship when the current resource utilization is not between the adjacent first resource utilization and the second resource utilization in the preset frequency mapping relationship.
[0070] In a specific implementation, the frequency selection unit 101 may determine that the current resource utilization exceeds the range of the minimum resource utilization and the maximum resource utilization recorded in the preset frequency mapping relationship when there is no target resource utilization corresponding to the current resource utilization in the preset frequency mapping relationship, and the current resource utilization is not between the adjacent first resource utilization and the second resource utilization in the preset frequency mapping relationship, that is, it is not between resource utilizations of any efficiency in the preset frequency mapping relationship. At this time, the minimum resource utilization and the maximum resource utilization in the preset frequency mapping relationship can be read.
[0071] The minimum resource utilization rate may be the minimum value of each resource utilization rate recorded in the preset frequency mapping relationship, and the maximum resource utilization rate may be the maximum value of each resource utilization rate recorded in the preset frequency mapping relationship.
[0072] The frequency selection unit 101 is further configured to determine utilization rate growth trend information of each resource utilization rate in the preset frequency mapping relationship when the current resource utilization rate is higher than the maximum resource utilization rate.
[0073] In a specific implementation, when the current resource utilization is higher than the maximum resource utilization, the frequency selection unit 101 can traverse each resource utilization and each preset clock frequency in the preset frequency mapping relationship, perform numerical fitting on each resource utilization and each preset clock frequency, generate a curve consisting of the resource utilization and the preset clock frequency, and then determine the growth rate of each resource utilization on the curve as the utilization growth trend information, and determine the growth rate of each preset clock frequency on the curve as the frequency growth trend information.
[0074] The frequency selection unit 101 is further configured to determine a target clock frequency corresponding to the current resource utilization rate according to the utilization rate growth trend information.
[0075] In a specific implementation, the frequency selection unit 101 can determine the deviation between the current resource utilization and the maximum resource utilization, and use the deviation as the degree of increase in the current resource utilization compared to the maximum resource utilization. Then, the degree of increase in the clock frequency corresponding to the degree of increase in utilization is determined through the curve, and the maximum clock frequency corresponding to the maximum growth rate in the preset frequency mapping relationship is determined. The maximum clock frequency is added to the degree of increase in the clock frequency to obtain the target clock frequency.
[0076] The frequency selection unit 101 is further configured to use, when the current resource utilization is lower than the minimum resource utilization, a preset clock frequency corresponding to the minimum resource utilization in the preset frequency mapping relationship as a target clock frequency.
[0077] In a specific implementation, the minimum preset clock frequency can be set relatively small during testing, so as not to cause excessive throughput and increase the energy consumption of the module. Based on this, when the current resource utilization is lower than the minimum resource utilization, the frequency selection unit 101 can directly use the preset clock frequency corresponding to the minimum resource utilization in the preset frequency mapping relationship as the target clock frequency.
[0078] Alternatively, in order to improve accuracy, similarly, the deviation between the current resource utilization and the minimum resource utilization can be determined, and the deviation can be used as the degree of utilization decrease compared to the minimum resource utilization. The degree of clock frequency decrease corresponding to the above-mentioned utilization decrease can then be determined through the above-mentioned curve, and the minimum clock frequency corresponding to the minimum growth rate in the preset frequency mapping relationship can be determined. The target clock frequency can be obtained by subtracting the degree of clock frequency decrease from the minimum clock frequency.
[0079] In this embodiment, when there is a target resource utilization rate corresponding to the current resource utilization rate in the preset frequency mapping relationship, the preset clock frequency corresponding to the target resource utilization rate is obtained from the preset frequency mapping relationship as the target clock frequency; when there is no target resource utilization rate corresponding to the current resource utilization rate in the preset frequency mapping relationship, and when the current resource utilization rate is between the adjacent first resource utilization rate and the second resource utilization rate, the target clock frequency can be determined according to the first resource utilization rate and the second resource utilization rate; when there is no target resource utilization rate corresponding to the current resource utilization rate in the preset frequency mapping relationship, and when the current resource utilization rate is not between the adjacent first resource utilization rate and the second resource utilization rate, if the current resource utilization rate is higher than the maximum resource utilization rate, the target clock frequency is determined according to the utilization rate growth curve information, and if the current resource utilization rate is lower than the minimum resource utilization rate, the preset clock frequency corresponding to the minimum resource utilization rate is used as the target clock frequency. Based on this, the corresponding target clock frequency can be accurately determined according to the different ranges of the current resource utilization rate, which effectively improves the determination accuracy of the target clock frequency.
[0080] Based on the first and second embodiments of the present application, the third embodiment of the present application is proposed. In the third embodiment of the present application, the same or similar contents as those of the first and second embodiments can be referred to the above introduction, and will not be repeated in the following. Figure 3 , Figure 3 This is a first structural schematic diagram of the third embodiment of the industrial high-throughput network MPU board-level communication module of the present application.
[0081] In this embodiment, the communication module 200 includes: a clock generator 201 and a data transmission unit 202 .
[0082] The clock generator 201 is connected to the data transmission unit 202 and the main control module 100 respectively.
[0083] It should be noted that the clock generator 201 may be a device for generating a clock signal, such as a quartz crystal oscillator. The clock generator 201 may be connected to the frequency output unit 102 in the main control module 100 .
[0084] It is understandable that the data transmission unit 202 may be a controller for accessing data in a memory and exchanging data with other modules.
[0085] The clock generator 201 is used to adjust the frequency of the current clock signal according to the target clock frequency, generate a target clock signal with the target clock frequency, and send the target clock signal to the data transmission unit 202.
[0086] In a specific implementation, the above-mentioned clock generator 201 can adjust the corresponding circuit parameters, such as crystal frequency, capacitance value or resistance value, when receiving the target clock frequency output by the frequency output unit 102, to generate a target clock signal with a frequency of the target clock frequency, and then send the target clock signal to the data transmission unit 202.
[0087] The data transmission unit 202 is used to perform data transmission with the other modules both during the high level time and the low level time of the target clock signal.
[0088] In a specific implementation, the data transmission unit 202 may send data to other modules or receive data sent by other modules during the high level time of the target clock signal, and may also send data to other modules or receive data sent by other modules during the low level time of the target clock signal.
[0089] In this embodiment, a clock generator adjusts the frequency of the current clock signal according to the target clock frequency, generates a target clock signal with the target clock frequency, and sends the target clock signal to the data transmission unit; data transmission is performed with the other modules during the high level time and the low level time of the target clock signal, so that more data can be processed within one clock cycle, the data transmission rate is improved, and the throughput of the module is thereby improved.
[0090] In one possible implementation, reference Figure 4 , Figure 4This is a second structural diagram of the third embodiment of the industrial high-throughput network MPU board-level communication module of the present application, and the module also includes: a serial module 300.
[0091] The serial module 300 is connected to the communication module 200 .
[0092] It should be noted that the serial module 300 may be a module that converts parallel data into serial data or converts serial data into parallel data, and may be specifically connected to the data transmission unit 202 in the communication module 200 .
[0093] The serial module 300 is used for, when receiving a plurality of data to be transmitted in parallel from the communication module 200, converting each of the data to be transmitted into target serial data of a single physical channel and then sending the data to the corresponding module.
[0094] In a specific implementation, the serial module 300 can receive multiple data to be transmitted in parallel from the communication module 200, specifically, multiple data to be transmitted by the data transmission unit 202 in the communication module 200, and can convert each data to be transmitted into target serial data of a single physical channel through an internal serializer, and then send the target serial data to other modules.
[0095] The serial module 300 is further configured to, when receiving the serial data to be transmitted sent by the other modules, convert the serial data to be transmitted into a plurality of target data to be transmitted and transmit the target data to be transmitted in parallel to the communication module.
[0096] In a specific implementation, when the serial module 300 receives serial data to be transmitted on a single physical channel transmitted by other modules, it can convert the serial data to be transmitted into multiple target data to be transmitted for multi-channel transmission through an internal deserializer, and then transmit each target data to be transmitted in parallel to the communication module 200.
[0097] In this embodiment, when the serial module receives multiple data to be transmitted in parallel from the communication module, it converts each data to be transmitted into target serial data of a single physical channel and sends it to the corresponding module; when receiving serial data to be transmitted sent by other modules, it converts the serial data to be transmitted into multiple target data to be transmitted and transmits them in parallel to the communication module, thereby realizing concurrent data transmission and effectively improving the throughput of the module.
[0098] In one possible implementation, reference Figure 5 , Figure 5 This is a third structural diagram of the third embodiment of the industrial high-throughput network MPU board-level communication module of the present application, wherein the module further includes: at least two cache modules.
[0099] Among them, the capacities of different cache modules are different.
[0100] Each of the cache modules is connected to the main control module 100 .
[0101] It should be noted that the cache module may be a module for storing data. Figure 5 As shown, the cache module may include a first cache module, a second cache module, ..., an Nth cache module, and the number of the cache modules may be set according to demand.
[0102] The main control module 100 is further configured to obtain a cache module with the lowest capacity as an initial cache module when receiving a data acquisition instruction.
[0103] It should be noted that the above-mentioned data acquisition instruction may be an instruction for reading data in the cache module, and may be directly input by the user.
[0104] In a specific implementation, the cache module with the lowest capacity may be pre-configured as the initial cache module for reading data by the main control module 100. When receiving a data acquisition instruction, the main control module 100 preferentially acquires the initial cache module.
[0105] The main control module 100 is further used to determine whether there is target data corresponding to the data acquisition instruction in the initial cache module.
[0106] In a specific implementation, the main control module 100 may traverse the initial cache module to determine whether the target data corresponding to the data acquisition instruction exists in the initial cache module.
[0107] The main control module 100 is also used to select a cache module with a capacity higher than that of the initial cache module and lower than that of other cache modules as the initial cache module when the target data is not found in the initial cache module, and execute the operation of determining whether there is the target data corresponding to the data acquisition instruction from the initial cache module until the target data corresponding to the data acquisition instruction is read.
[0108] In a specific implementation, the first cache module, the second cache module, ..., the Nth cache module are described in order of capacity from low to high, the first cache module has the lowest capacity, and the Nth cache module has the highest capacity. The above-mentioned main control module 100 can use the first cache module as the initial cache module. When the target data is not found in the first cache module, a cache module with a capacity higher than the first cache module and lower than other cache modules, that is, the second cache module, can be selected, and the second cache module can be used as a new initial cache module. Then, the operation of judging whether there is the target data corresponding to the data acquisition instruction from the initial cache module is repeated, that is, the above process is repeated until it is determined that there is a target cache module with the target data corresponding to the data acquisition instruction, and the target data is read from the target cache module.
[0109] It should be understood that, in the description of the first cache module, the second cache module and the third cache module, the first cache module has the lowest capacity and the third cache module has the highest capacity. By storing commonly used data and instruction data in the first cache module, the main control module 100 can obtain the required data more quickly, thereby improving the overall performance. The third-level cache module can provide a larger capacity to store less used data.
[0110] In this embodiment, multiple cache modules are set up. When the main control module receives a data acquisition instruction, it obtains the cache module with the lowest capacity as the initial cache module; it determines from the initial cache module whether there is target data corresponding to the data acquisition instruction; when the target data is not found in the initial cache module, it selects a cache module with a capacity higher than the initial cache module and lower than other cache modules as the initial cache module, and executes an operation of querying whether there is target data corresponding to the data acquisition instruction from the initial cache module until the target data corresponding to the data acquisition instruction is read, thereby reducing memory access delay and improving data access efficiency.
[0111] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the industrial high-throughput network MPU board-level communication module of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0112] This application also proposes a communication method based on the industrial high-throughput network MPU board-level communication module described above, referring to Figure 6 , Figure 6 This is a flow chart of the communication method of this application.
[0113] The communication method comprises steps S10 to S30: Step S10: obtaining a preset frequency mapping relationship, wherein the preset frequency mapping relationship stores a corresponding relationship between resource utilization and preset clock frequency.
[0114] Step S20: selecting a corresponding target clock frequency from the preset frequency mapping relationship based on the current resource utilization, and sending the target clock frequency to the communication module.
[0115] Step S30: exchanging data with other modules based on the target clock frequency.
[0116] The communication method provided by the present application can be executed by the industrial high-throughput network MPU board-level communication module in the above-mentioned embodiment, and can solve the technical problem that the prior art requires the user to manually set the relevant parameters of the communication module to change the clock frequency, resulting in poor user experience. Compared with the prior art, the beneficial effects of the communication method provided by the present application are the same as the beneficial effects of the industrial high-throughput network MPU board-level communication module provided by the above-mentioned embodiment, and the other technical features in the communication method are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.
[0117] The present application also provides a communication device, which includes the industrial high-throughput network MPU board-level communication module described in the above embodiment.
[0118] The communication device provided by the present application adopts the industrial high-throughput network MPU board-level communication module in the above-mentioned embodiment, which can solve the technical problem that the prior art requires the user to manually set the relevant parameters of the communication module to change the clock frequency, resulting in poor user experience. Compared with the prior art, the beneficial effects of the communication device provided by the present application are the same as the beneficial effects of the industrial high-throughput network MPU board-level communication module provided by the above-mentioned embodiment, and the other technical features in the communication device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.
[0119] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. An industrial high-throughput network MPU board-level communication module, characterized in that: The module includes: a main control module and a communication module; The main control module and the communication module are both integrated in the MPU, and the main control module is connected to the communication module; The main control module is used to obtain a preset frequency mapping relationship, where the preset frequency mapping relationship stores a corresponding relationship between resource utilization and preset clock frequency; The main control module is further used to select a corresponding target clock frequency from the preset frequency mapping relationship based on the current resource utilization, and send the target clock frequency to the communication module; The communication module is used to perform data transmission with other modules based on the target clock frequency.
2. The industrial high-throughput network MPU board-level communication module according to claim 1, characterized in that: The main control module includes: a frequency selection unit and a frequency output unit; The frequency output unit is connected to the frequency selection unit and the communication module respectively; The frequency selection unit is used to determine whether there is a target resource utilization rate corresponding to the current resource utilization rate in the preset frequency mapping relationship; The frequency selection unit is further configured to, when there is a target resource utilization rate corresponding to the current resource utilization rate in the preset frequency mapping relationship, obtain a preset clock frequency corresponding to the target resource utilization rate from the preset frequency mapping relationship as the target clock frequency; The frequency output unit is used to send the target clock frequency to the communication module.
3. The industrial high-throughput network MPU board-level communication module according to claim 2, characterized in that: The frequency selection unit is further configured to determine whether the current resource utilization is between adjacent first resource utilization and second resource utilization in the preset frequency mapping relationship when there is no target resource utilization corresponding to the current resource utilization in the preset frequency mapping relationship; The frequency selection unit is further configured to determine a target clock frequency according to the first resource utilization and the second resource utilization when the current resource utilization is between the adjacent first resource utilization and the second resource utilization.
4. The industrial high-throughput network MPU board-level communication module according to claim 3, characterized in that: The frequency selection unit is further configured to determine a first difference between the current resource utilization and the first resource utilization, and determine a second difference between the current resource utilization and the second resource utilization when the current resource utilization is between the adjacent first resource utilization and the second resource utilization; The frequency selection unit is further used to determine a proportionality coefficient according to the first difference and the second difference; The frequency selection unit is further used to determine a first preset clock frequency corresponding to the first resource utilization rate and a second preset clock frequency corresponding to the second resource utilization rate; The frequency selection unit is further used to determine a target clock frequency according to the proportional coefficient, the first preset clock frequency and the second preset clock frequency.
5. The industrial high-throughput network MPU board-level communication module according to claim 3, characterized in that: The frequency selection unit is further configured to determine a maximum resource utilization and a minimum resource utilization in the preset frequency mapping relationship when the current resource utilization is not between the first resource utilization and the second resource utilization that are adjacent in the preset frequency mapping relationship; The frequency selection unit is further configured to determine utilization rate growth trend information of each resource utilization rate in the preset frequency mapping relationship when the current resource utilization rate is higher than the maximum resource utilization rate; The frequency selection unit is further used to determine the target clock frequency corresponding to the current resource utilization rate according to the utilization rate growth trend information; The frequency selection unit is further configured to use, when the current resource utilization is lower than the minimum resource utilization, a preset clock frequency corresponding to the minimum resource utilization in the preset frequency mapping relationship as a target clock frequency.
6. The industrial high-throughput network MPU board-level communication module according to any one of claims 2 to 5, characterized in that: The communication module includes: a clock generator and a data transmission unit; The clock generator is connected to the data transmission unit and the main control module respectively; The clock generator is used to adjust the frequency of the current clock signal according to the target clock frequency, generate a target clock signal with the target clock frequency, and send the target clock signal to the data transmission unit; The data transmission unit is used to perform data transmission with the other modules both during the high level time and the low level time of the target clock signal.
7. The industrial high-throughput network MPU board-level communication module according to claim 1, characterized in that: The module also includes: a serial module; The serial module is connected to the communication module; The serial module is used for, upon receiving a plurality of data to be transmitted in parallel from the communication module, converting each of the data to be transmitted into target serial data of a single physical channel and then sending the data to the corresponding module; The serial module is further configured to, when receiving the serial data to be transmitted sent by the other modules, convert the serial data to be transmitted into a plurality of target data to be transmitted and transmit the data in parallel to the communication module.
8. The industrial high-throughput network MPU board-level communication module according to claim 1, characterized in that: The module also includes: at least two cache modules; Among them, different cache modules have different capacities; Each of the cache modules is connected to the main control module; The main control module is further used to obtain the cache module with the lowest capacity as the initial cache module when receiving the data acquisition instruction; The main control module is further used to determine whether there is target data corresponding to the data acquisition instruction in the initial cache module; The main control module is also used to select a cache module with a capacity higher than that of the initial cache module and lower than that of other cache modules as the initial cache module when the target data is not found in the initial cache module, and execute the operation of determining whether there is the target data corresponding to the data acquisition instruction from the initial cache module until the target data corresponding to the data acquisition instruction is read.
9. A communication method based on the industrial high-throughput network MPU board-level communication module according to any one of claims 1 to 8, characterized in that: The method comprises: Acquire a preset frequency mapping relationship, where the preset frequency mapping relationship stores a correspondence between resource utilization and preset clock frequency; Selecting a corresponding target clock frequency from the preset frequency mapping relationship based on the current resource utilization, and sending the target clock frequency to the communication module; Data is exchanged with other modules based on the target clock frequency.
10. A communication device, characterized in that: The communication device includes the industrial high-throughput network MPU board-level communication module as described in any one of claims 1 to 8.
Citation Information
Patent Citations
DSP (Digital Signal Processor) capable of regulating working voltage and clock frequency and regulating method thereof
CN102169357A
Motherboard control device and method
CN106557152A
Method and system for regulating CPU frequency of mobile terminal
CN107357658A
Chip clock frequency adjusting method and device, chip and electronic equipment
CN112150962A
Frequency control method, circuit and chip based on adaptive clock
CN114706449A