Bandwidth control method and device, integrated circuit, electronic equipment and carrier

By dynamically controlling the memory access of the functional module according to the bandwidth level of the operating system in the integrated circuit, the access congestion problem caused by bandwidth exceeding allocated resources under the operating system management is solved, and effective bandwidth matching and optimization is achieved.

CN118964246APending Publication Date: 2024-11-15XG TECHNOLOGIES PTE LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202411139241.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In integrated circuits, when the operating system manages the functional modules that access memory, it may cause bandwidth to exceed allocated resources, causing access congestion.

Method used

By determining the bandwidth level of the operating system, the dynamic control function module accesses the bandwidth of memory to avoid congestion.

Benefits of technology

It effectively avoids memory access congestion by functional modules and ensures that bandwidth usage matches the resources allocated by the operating system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964246A_ABST
    Figure CN118964246A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of integrated circuits, and provides a bandwidth control method and device, an integrated circuit, electronic equipment and a carrier. The method comprises the steps that a first operating system for managing a first function module of a first hardware unit is determined, the first hardware unit comprises at least one function module, the at least one function module is managed by at least one operating system, and the first hardware unit is in communication connection with a second hardware unit. And obtaining a first bandwidth level corresponding to the first operating system, and controlling the first function module to access the first bandwidth of the second hardware unit based on the first bandwidth level. Therefore, according to the technical scheme of the embodiment of the invention, current limiting can be carried out on each functional module managed by the operating system based on the bandwidth level corresponding to the operating system, and access congestion of the functional module to the second hardware unit is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of integrated circuit technology, and in particular to a bandwidth control method, device, integrated circuit, electronic device and carrier. Background Art

[0002] Some integrated circuits, such as system on chip (SoC), may run multiple operating systems (OS), and these operating systems may share bandwidth resources corresponding to the integrated circuit, such as shared memory bandwidth.

[0003] After bandwidth resources are allocated to the operating system, the functional module corresponding to the operating system cannot adjust its own access bandwidth according to the bandwidth resources allocated by the operating system, which may cause the bandwidth of the access traffic sent by the functional module to exceed the bandwidth resources allocated by the operating system, thereby causing access congestion. Summary of the invention

[0004] The embodiments of the present disclosure provide a bandwidth control method, device, integrated circuit, electronic device and carrier. When the integrated circuit runs at least one operating system, the bandwidth of the functional modules managed by the operating system when accessing the memory can be dynamically controlled according to the bandwidth level corresponding to the operating system.

[0005] In a first aspect, an embodiment of the present disclosure provides a bandwidth control method, the method comprising: determining a first operating system that manages a first functional module of a first hardware unit, wherein the first hardware unit comprises at least one functional module, the at least one functional module is managed by at least one operating system, and the first hardware unit is communicatively connected with a second hardware unit; obtaining a first bandwidth level corresponding to the first operating system; and based on the first bandwidth level, controlling the first functional module to access the first bandwidth of the second hardware unit.

[0006] In a second aspect, an embodiment of the present disclosure provides a bandwidth control device, which includes: a first control module, which is arranged corresponding to a first functional module of a first hardware unit, wherein the first hardware unit includes at least one functional module, and the at least one functional module is managed by at least one operating system, and the first hardware unit is communicatively connected with a second hardware unit; the first control module is configured to: determine a first operating system that manages the first functional module; obtain a first bandwidth level corresponding to the first operating system; and based on the first bandwidth level, control the first functional module to access the first bandwidth of the second hardware unit.

[0007] In a third aspect, an embodiment of the present disclosure provides an integrated circuit, the integrated circuit includes a first hardware unit, the first hardware unit includes at least one functional module, the at least one functional module is managed by at least one operating system, and the first hardware unit is communicatively connected with a second hardware unit. The integrated circuit also includes at least one control module arranged in a one-to-one correspondence with the at least one functional module, wherein at least one of the control modules is configured to implement the functions of the first control module of the second aspect, for example, to execute the steps of the bandwidth control method provided in the first aspect.

[0008] In a fourth aspect, an embodiment of the present disclosure provides an electronic device, which includes the integrated circuit provided in the third aspect.

[0009] In a fifth aspect, an embodiment of the present disclosure provides a carrier, which includes the integrated circuit provided in the third aspect or the electronic device provided in the fourth aspect.

[0010] The technical solution provided by the embodiment of the present disclosure can limit the flow of each functional module managed by the operating system based on the bandwidth level corresponding to the operating system, thereby avoiding congestion in the access of the functional module to the second hardware unit. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 is a structural block diagram of a cabin-driver integrated system provided by an exemplary embodiment of the present disclosure;

[0012] Figure 2 is a schematic diagram of the structure of a bandwidth control system provided by an exemplary embodiment of the present disclosure;

[0013] Figure 3 is a structural schematic diagram of a bandwidth control system provided by another exemplary embodiment of the present disclosure;

[0014] Figure 4 is a flow chart of a bandwidth control method provided by an exemplary embodiment of the present disclosure;

[0015] Figure 5 is a flowchart of step S300 of a bandwidth control method provided by an exemplary embodiment of the present disclosure;

[0016] Figure 6 is a schematic diagram of dynamically controlling access bandwidth provided by an exemplary embodiment of the present disclosure;

[0017] Figure 7 is a schematic diagram of dynamically controlling access bandwidth provided by another exemplary embodiment of the present disclosure;

[0018] Figure 8 A schematic diagram of the structure of a bandwidth control device provided by an exemplary embodiment of the present disclosure;

[0019] Fig. 9It is a schematic diagram of the structure of an integrated circuit provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0020] Below, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.

[0021] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.

[0022] First, some technical terms involved in the embodiments of the present disclosure are explained.

[0023] Bandwidth: The amount of data transmitted per unit time. Bandwidth can be expressed in bits per second (bps), kilobits per second (kbps), megabits per second (Mbps), gigabits per second (Gbps), etc.

[0024] Memory: A device in a computer system used to temporarily store data and instructions so that the processor can quickly access and execute them. Memory can include random access memory (RAM), such as dynamic random access memory (DRAM), static random access memory (SRAM), etc.

[0025] SoC: An integrated circuit that integrates multiple modules / units of a computer system into a single chip. The modules / units that can be integrated on SoC include: central processing unit (CPU), graphics processing unit (GPU), SRAM, I / O interface, digital signal processor (DSP), neural processing unit (NPU), image signal processor (ISP), memory controller, etc.

[0026] Application Overview

[0027] An operating system may be run on an integrated circuit. For example, an integrated circuit may include a processor, and an operating system may be run on the processor. The processor may establish communication with a memory (e.g., DRAM and SRAM). Thus, during the operation of the operating system, the operating system may load instructions into the memory, the processor may read instructions and data from the memory, and perform various operations such as arithmetic operations, logical operations, and data transfers according to these instructions, and then write the results of the instruction execution into the memory.

[0028] A high-performance integrated circuit, such as a high-performance SoC, can run multiple operating systems.

[0029] Figure 1 It is a structural block diagram of a cabin-and-cockpit integrated system provided by an exemplary embodiment of the present disclosure.

[0030] Among them, the cabin-driver integrated system can be applied to autonomous driving vehicles, such as vehicles (such as intelligent connected cars), ships, trains, subways, airplanes, etc., as well as various robots, such as service robots, transport robots, automated guided vehicles (AGVs), unmanned ground vehicles (UGVs), etc., and various engineering machinery.

[0031] like Figure 1 As shown, in one embodiment, the cabin-pilot integrated system may include SoC 100. In one example, SoC 100 may include one or more processors. For example, one or more CPUs, and / or, one or more GPUs, and / or, one or more ISPs, and / or, one or more DSPs, etc., and / or, one or more NPUs. These processors can be used to provide computing resources for multiple operating systems to support each operating system to implement its functions.

[0032] In one embodiment, the cabin-pilot integrated system may further include a memory 200. The memory 200 may store instructions and / or data, and the processor may read and execute instructions in the memory 200, and write the results of the execution into the memory 200. In one example, the memory 200 may include a memory, such as a DRAM and / or an SRAM. Among them, the memory 200 may be integrated on the SoC 100, such as an SRAM and an embedded DRAM (eDRAM), so that the memory 200 may become a part of the SoC 100; or, the memory 200 may also be an independent device outside the SoC 100, such as a DRAM. In some examples, the memory 200 may also include a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, etc., which is not specifically limited in the embodiments of the present disclosure.

[0033] In one embodiment, SoC 100 can run multiple operating systems, such as operating systems OS1 to OSN. Exemplarily, the multiple operating systems may include at least a cockpit operating system (referred to as the cockpit system) and an intelligent driving operating system (referred to as the intelligent driving system). Among them, the intelligent driving system is mainly responsible for the automatic driving and safety of the vehicle, including environmental perception, path planning, decision-making or control, etc. The cockpit system is mainly responsible for the driving experience and human-computer interaction inside the vehicle, including infotainment, instrument display, media playback or environmental control, etc. Compared with the independent cockpit system and intelligent driving system, the cabin-driving integrated system is more integrated and intelligent, which is conducive to improving the driving safety, comfort and driving experience of mobile vehicles.

[0034] During operation, the operating system implements one or more functions through functional modules. The functional modules used to implement the corresponding functions of the operating system have a corresponding relationship with the operating system, or in other words, are managed by the operating system. Among them, the functional modules can be CPU, GPU, BPU, NPU, DPU, TPU, ISP, DSP, etc. In addition, the functional modules can also be the core of the CPU, the stream processor of the GPU, the computing unit of the BPU, etc. In other words, each core of the CPU can be a functional module, each stream processor of the GPU can be a functional module, and each computing unit of the BPU can be a functional module.

[0035] During operation, multiple operating systems can call the processor to access the memory, such as reading instructions in the memory or writing the execution results of instructions to the memory. In other words, multiple operating systems will jointly occupy the memory bandwidth, such as jointly occupying the DRAM bandwidth and / or SRAM bandwidth.

[0036] In one implementation, memory bandwidth may be pre-allocated to each operating system.

[0037] For example, if a SoC runs three operating systems, such as OS1, OS2 and OS3, and the DRAM bandwidth is 100 Gbps, 50 Gbps of DRAM bandwidth can be allocated to OS1, 30 Gbps of DRAM bandwidth can be allocated to OS2, and 20 Gbps of DRAM bandwidth can be allocated to OS3.

[0038] In some examples, memory bandwidth may be pre-allocated according to operating system functionality, executed tasks, operating priorities, and the like.

[0039] Take multiple operating systems including a cockpit system and an intelligent driving system, and allocate memory bandwidth according to the operating priority of the operating systems, and the operating priority of the intelligent driving system is higher than that of the cockpit system. For example: the DRAM bandwidth allocated to the intelligent driving system is more than the DRAM bandwidth allocated to the cockpit system. For example, the DRAM bandwidth allocated to the intelligent driving system can be 50Gbps, and the DRAM bandwidth allocated to the cockpit system can be 30Gbps.

[0040] In another implementation, memory bandwidth may be dynamically allocated to each operating system.

[0041] Since different operating systems have different functions and perform different tasks, different operating systems have different requirements for DRAM bandwidth. In addition, since the tasks performed by each operating system will change, the requirements for DRAM bandwidth of each operating system will also change dynamically.

[0042] Take multiple operating systems including intelligent driving system and cockpit system as an example:

[0043] For example, when the vehicle is in the intelligent driving state, the intelligent driving system needs to perform intelligent driving tasks. At this time, the intelligent driving system will load a large number of instructions and data related to the intelligent driving tasks into DRAM, which will be read and executed by the processor. The processor will also write a large number of instruction execution results into DRAM. Therefore, the intelligent driving system has a large demand for DRAM bandwidth. In the parking scenario, the intelligent driving system does not need to perform intelligent driving tasks. Therefore, the intelligent driving system writes fewer instructions and data into DRAM, and the intelligent driving system has a smaller demand for DRAM bandwidth.

[0044] For example, when the vehicle plays media, the cockpit system needs to perform the task of media playback. At this time, the cockpit system will load the instructions and media data into the DRAM, which will be read and executed by the processor, and the processor will write the instruction execution results into the DRAM. For example, the processor can decode the read media data and write the decoded media data into the DRAM. Therefore, the cockpit system has a large demand for DRAM bandwidth. In the standby scenario, the cockpit system does not need to perform tasks such as media playback, navigation, and games. Therefore, the cockpit system writes fewer instructions and data into the DRAM, and the cockpit system has a smaller demand for DRAM bandwidth.

[0045] In order to make full use of the memory bandwidth and meet the memory bandwidth requirements of the services executed by each operating system, the memory bandwidth can be dynamically allocated to each operating system, so that more memory bandwidth is allocated to an operating system with a greater memory bandwidth requirement, and less memory bandwidth is allocated to an operating system with a smaller memory bandwidth requirement.

[0046] When implementing the corresponding functions of the corresponding operating system, the functional module will access the memory, and when the functional module accesses the memory, it will send access traffic according to its own maximum capacity. Once the bandwidth of the access traffic sent by the functional module according to its own maximum capacity is greater than the memory bandwidth allocated to the corresponding operating system, the functional module's access to the memory will be congested.

[0047] The embodiments of the present disclosure provide a bandwidth control method, apparatus, integrated circuit, electronic device and carrier, which can effectively manage the bandwidth occupied by corresponding functional modules when accessing memory according to the bandwidth level corresponding to each operating system, when at least one functional module is managed by at least one operating system running on the integrated circuit.

[0048] Exemplary Systems

[0049] Figure 2 It is a structural diagram of a bandwidth control system provided by an exemplary embodiment of the present disclosure.

[0050] like Figure 2 As shown, the bandwidth control system may include: a first hardware unit 10.

[0051] The first hardware unit 10 may be provided on an integrated circuit (e.g., SoC 100), that is, the integrated circuit (e.g., SoC 100) includes the first hardware unit 10. For example, the first hardware unit 10 refers to at least one functional module 11 on the integrated circuit (e.g., SoC 100). For example, functional module 11-1 to functional module 11-N. Each functional module 11 is used to implement one or more functions of the integrated circuit (e.g., SoC 100). For example: the functional module 11 may be a CPU, a GPU, an NPU, an ISP, a DSP, etc. In addition, the functional module 11 may also be a core of a CPU, a stream processor of a GPU, a computing unit of an NPU, etc. That is, each core of a CPU may be a functional module 11, each stream processor of a GPU may be a functional module 11, and each computing unit of an NPU may be a functional module 11.

[0052] The first hardware unit 10 may run at least one operating system, such as a cockpit system, an intelligent driving system and / or other operating systems. Different operating systems may run in different functional modules 11, or different functional modules 11 may be managed by different operating systems, or different functional modules 11 correspond to different operating systems.

[0053] Take the first hardware unit 10 as the core of the CPU, the CPU includes 8 cores, namely core 1 to core 8, and the first hardware unit 10 can support the running of 3 operating systems, namely operating systems 0S1 to 0S3. 0S1 can run on core 1 and core 2 (or, 0S1 corresponds to core 1 and core 2), 0S2 can run on core 3 to core 6 (or, 0S2 corresponds to core 3 to core 6), and 0S3 can run on core 7 and core 8 (or, 0S3 corresponds to core 7 and core 8). Similarly, an operating system can correspond to one or more stream processors of a GPU, and an operating system can correspond to one or more computing units of an NPU.

[0054] When the ISP includes multiple ISP units, one operating system may correspond to at least one ISP unit, and different ISP units may correspond to different operating systems. Similarly, when the DSP includes multiple DSP units, one operating system may correspond to at least one DSP unit, and different DSP units may correspond to different operating systems.

[0055] The business and usage scenarios performed by the operating system change dynamically, and the functional module 11 used to implement the corresponding functions will also change dynamically. Therefore, the functional module 11 corresponding to the operating system will change dynamically, that is, the corresponding relationship between the operating system and the functional module 11 changes dynamically.

[0056] For example, the operating system includes the intelligent driving system and the cockpit system. In the driving scenario, the intelligent driving system can call the NPU to perform intelligent driving related functions, such as target recognition, path planning, etc. In this case, the NPU corresponds to the intelligent driving system. In the parking scenario, the cockpit system can call the NPU to perform cockpit related functions, such as voice recognition, user intent understanding, etc. In this case, the NPU corresponds to the cockpit system.

[0057] In one implementation, each functional module 11 of the first hardware unit 10 can communicate with other hardware units (for example, the second hardware unit 20 ), such as accessing the second hardware unit 20 . In other words, the first hardware unit 10 is communicatively connected with the second hardware unit 20 .

[0058] Exemplarily, the first hardware unit 10 and the second hardware unit 20 may communicate via a bus. Specifically, the bus may be an advanced extensible interface (AXI) bus, and the AXI bus may include five channels, for example:

[0059] Read address channel (AR): used to transmit the address for read access.

[0060] Read data channel (R): used to transmit data for read access.

[0061] Write address channel (AW): used to transmit the address for write access.

[0062] Write data channel (W): used to transmit data for write access.

[0063] Write response channel (B): used to transmit responses to write accesses.

[0064] Of course, buses with other protocols may also be used, such as: advanced high-performance bus (AHB), inter-integrated circuit (I 2C) bus, HyperTransport bus, etc., which are not limited in the embodiments of the present disclosure.

[0065] The second hardware unit 20 may include a memory, or other hardware units that communicate with the first hardware unit 10. Exemplarily, the second hardware unit 20 may be a DRAM and / or an SRAM. Accordingly, the bus may be a DRAM bus used by a functional module 11 (such as a CPU or a CPU core, etc.) in the SoC 100 to access a DRAM, or an SRAM bus used to access an SRAM. Accordingly, the memory bandwidth is the bandwidth of the DRAM bus (referred to as DRAM bandwidth) and / or the bandwidth of the SRAM bus (referred to as SRAM bandwidth).

[0066] In the embodiment of the present disclosure, the first hardware unit 10 and the second hardware unit 20 may be arranged on different integrated circuits, for example, the first hardware unit 10 may be arranged on the SoC 100, and the second hardware unit 20 may be a DRAM independently arranged relative to the SoC 100. Alternatively, the first hardware unit 10 and the second hardware unit 20 may also be arranged on the same integrated circuit, for example, the first hardware unit 10 may be arranged on the SoC 100, and the second hardware unit 20 may be an SRAM integrated on the SoC 100 chip.

[0067] It should be noted that, when the first hardware unit 10 supports running multiple operating systems, each operating system will call its corresponding function module 11 to implement the corresponding function. Accordingly, each function module 11 can access the second hardware unit 20 (such as memory) to read instructions and data, or write the results of instruction execution, etc. to implement its function. For example, OS1 corresponds to core 1 and core 2 of the CPU. When OS1 is running, it will call the core 1 and core 2 of the CPU, and the core 1 and core 2 of the CPU will access the DRAM. OS2 corresponds to DSP. When OS2 is running, it will call the DSP, and the DSP will access the DRAM.

[0068] In order to facilitate the description of the communication connection relationship between each module / unit in the bandwidth control system, taking the functional module 11 of the first hardware unit 10 accessing the second hardware unit 20 as an example, the transmission direction of the access is called the downstream direction, and the reverse direction of the access transmission is called the upstream direction.

[0069] In one implementation, the bandwidth control system may further include at least one control module 30, for example, control module 30-1 to control module 30-N, arranged in one-to-one correspondence with at least one functional module 11. In one example, the control module 30 may be a bandwidth control module. The control module 30 may be arranged on a communication link between its corresponding functional module 11 and the second hardware unit 20. That is, the control module 30 is arranged downstream of the functional module 11. For example, the control module 30-1 may be arranged on a communication link between the functional module 11-1 and the second hardware unit 20, the control module 30-2 may be arranged on a communication link between the functional module 11-2 and the second hardware unit 20, and so on.

[0070] In this way, when a certain functional module 11 accesses the second hardware unit 20, the access (such as instructions, data, etc.) first passes through the control module 30 corresponding to the functional module 11, and then is transmitted to the second hardware unit 20. Among them, when the access passes through the control module 30, the control module 30 can limit the access. In this way, the transmission bandwidth of the access in the downstream can be controlled. In other words, the bandwidth of the functional module 11 accessing the second hardware unit 20 is controlled.

[0071] In one implementation, the bandwidth control system further includes an indication module 40. In one example, the indication module 40 may be a bandwidth allocation module. The indication module 40 is used to generate bandwidth levels corresponding to each operating system.

[0072] In one implementation, the indication module 40 may determine the bandwidth level corresponding to the operating system based on the state of the operating system, such as the access state of the operating system accessing the second hardware unit 20. The bandwidth level is used to characterize the amount of memory bandwidth currently allocated to the operating system. For example, the more memory bandwidth currently allocated to the operating system, the higher the bandwidth level currently corresponding to the operating system, and the less memory bandwidth currently allocated to the operating system, the lower the bandwidth level currently corresponding to the operating system.

[0073] In one implementation, Figure 3 As shown, the bandwidth control system may further include a bandwidth sharing module 50. The bandwidth sharing module 50 is located downstream of each control module 30 and upstream of the second hardware unit 20. The bandwidth sharing module 50 is connected to each control module 30 and the second hardware unit 20 in communication. In this way, the access of each functional module 11 can first reach the control module 30, and then be transmitted to the second hardware unit 20 via the bandwidth sharing module 50.

[0074] In one implementation, the bandwidth sharing module 50 has a corresponding register, which stores a command queue. The command queue can be used to cache access commands of each functional module 11 to the second hardware unit 20, such as read access commands and write access commands.

[0075] In one implementation, the indication module 40 may determine the bandwidth level corresponding to the operating system based on the usage status of the command queue in the bandwidth sharing module 50, such as the congestion level or the idle level. If the congestion level corresponding to the usage status of the command queue is higher, it means that the number of accesses sent by the operating system to the second hardware unit 20 is larger, then in order to reduce the congestion, less memory bandwidth may be allocated to the operating system, and the operating system corresponds to a lower bandwidth level. If the idle level corresponding to the usage status of the command queue is higher, it means that the number of accesses sent by the operating system to the second hardware unit 20 is smaller, then in order to improve the transmission, more memory bandwidth may be allocated to the operating system, and the operating system corresponds to a higher bandwidth level.

[0076] In one implementation, after determining the bandwidth level corresponding to each operating system, the indication module 40 may write the bandwidth level corresponding to each operating system into a corresponding register.

[0077] In one implementation, the control module 30 may read the bandwidth level corresponding to each operating system from the register corresponding to the indication module 40 .

[0078] In one implementation, the control module 30 may determine the bandwidth level currently corresponding to the operating system corresponding to the corresponding function module 11 based on the read bandwidth levels corresponding to the various operating systems.

[0079] In one implementation, the control module 30 may control the bandwidth of the corresponding functional module 11 to access the second hardware unit 20 based on the bandwidth level corresponding to the acquired operating system. For example, the control module 30 may allow the corresponding functional module 11 to access the second hardware unit 20 with a larger bandwidth when the bandwidth level of the acquired operating system is higher, and allow the corresponding functional module 11 to access the second hardware unit 20 with a smaller bandwidth when the bandwidth level of the acquired operating system is lower.

[0080] It can be seen that the bandwidth control system provided by the embodiment of the present disclosure is provided with a control module 30 corresponding to each functional module 11. The control module 30 can dynamically control the bandwidth of the functional module 11 accessing the second hardware unit 20 according to the bandwidth level of the operating system currently corresponding to the corresponding functional module 11, so that the functional module 11 can access the second hardware unit 20 with a memory bandwidth that can be used by the corresponding operating system to avoid congestion during the access process.

[0081] Exemplary Methods

[0082] Figure 4 It is a flowchart of a bandwidth control method provided by an exemplary embodiment of the present disclosure.

[0083] Combine the following Figure 4 , each step of the method is exemplarily described. Among them, each step of the method can be executed by any control module 30 in the bandwidth control system. For the convenience of description, any functional module 11 of the at least one functional module 11 included in the first hardware unit 10 is referred to as a first functional module, and the control module 30 corresponding to the first functional module is referred to as a first control module.

[0084] In one embodiment, the method may include the following steps:

[0085] Step S100: determining a first operating system for managing a first functional module.

[0086] In one implementation, after the first operating system calls the first functional module, the first functional module generates a logical address, and the memory management unit (MMU) can map the logical address generated by the first functional module to a physical address within the second hardware unit 20, which is the physical address corresponding to the first operating system.

[0087] In one implementation, the first control module may map the logical address of the first functional module to a physical address in the second hardware unit 20 , and determine the first operating system that manages the first functional module based on the physical address.

[0088] Of course, the first control module may also determine the first operating system corresponding to the first functional module in other ways, for example, the memory management unit sends the ID of the first operating system corresponding to the first functional module to the first control module, etc. This embodiment of the disclosure does not limit this.

[0089] Step S200: obtaining a first bandwidth level corresponding to a first operating system.

[0090] The first bandwidth level may represent the bus bandwidth allocated to the first operating system. For example, the more bus bandwidth allocated to the first operating system, the higher the first bandwidth level corresponding to the first operating system, and the less bus bandwidth allocated to the first operating system, the lower the first bandwidth level corresponding to the first operating system.

[0091] In one implementation, the indication module 40 may determine the bandwidth level corresponding to the operating system based on the usage status of the command queue in the bandwidth sharing module 50 .

[0092] The usage status of the command queue may include any parameter value or indication information that can characterize the idleness / congestion degree of the command queue.

[0093] In one implementation, the usage status of the command queue may include a first status value, which may characterize the idleness or congestion of the command queue. The command queue may include multiple channel entries, each of which may cache an access command, such as a read channel for caching a read access command and a write channel for caching a write access command. Among them, a channel that has cached an access command is an unavailable channel, and a channel that has not cached an access command is an available channel.

[0094] Exemplarily, the command queue includes 10 channels. If instructions are cached in 8 channels, then the number of available channels of the command queue is 2 and the number of unavailable channels is 8. If instructions are cached in 2 channels, then the number of available channels of the command queue is 8 and the number of unavailable channels is 2.

[0095] In one implementation, the first status value may include the number of available channels (also referred to as the number of idle channels) or the number of unavailable channels (also referred to as the number of non-idle channels) in the command queue.

[0096] It can be understood that, in the case where the first state value of the command queue includes the number of available channels of the command queue, the larger the first state value, the higher the idleness of the command queue, and the more idle bandwidth resources of the second hardware unit 20; the smaller the first state value, the higher the congestion of the command queue, and the fewer idle bandwidth resources of the second hardware unit 20. In the case where the first state value of the command queue includes the number of unavailable channels of the first queue, the larger the first state value, the higher the congestion of the command queue, and the fewer idle bandwidth resources of the second hardware unit 20; the smaller the first state value, the higher the idleness of the command queue, and the more idle bandwidth resources of the second hardware unit 20.

[0097] In one implementation, the bandwidth sharing module 50 may periodically send the first status value of the command queue to the indication module 40. Alternatively, the bandwidth sharing module 50 may send the first status value of the command queue to the indication module 40 when monitoring that a command enters or leaves the command queue, and the first status value includes the latest number of available channels or unavailable channels of the command queue.

[0098] In one implementation, at least one bandwidth level may be pre-set for each operating system, and a corresponding relationship between the first state value of the command queue and each bandwidth level of the operating system may be pre-set.

[0099] It should be noted that in a multi-operating system scenario, the services of different operating systems may be different, and the bandwidth requirements for the second hardware unit 20 may also be different. Therefore, for the same first state value, the bandwidth levels corresponding to each operating system may be the same or different. The specific settings can be based on the business requirements of each operating system, and no specific limitations are made here.

[0100] In one implementation, different first state values ​​correspond to different bandwidth levels. For example, the command queue includes 10 channels, and the first state value, such as the number of available channels, may include 10. Accordingly, the 10 first state values ​​correspond to 10 bandwidth levels, for example, the number of available channels is 10, and the corresponding bandwidth level is 1, and the number of available channels is 9, and the corresponding bandwidth level is 2.

[0101] In one implementation, different state value ranges correspond to different bandwidth levels. The first state value is divided into a plurality of state value ranges, each state value range includes at least one first state value, and each state value range corresponds to a bandwidth level.

[0102] Exemplarily, taking the command queue including 10 channels and the first state value including the number of available channels as an example, the corresponding relationship between the state value range and the bandwidth level of each operating system can be shown in Table 1. It should be noted that the values ​​disclosed in Table 1 are only examples and do not constitute a specific limitation on the embodiments of the present disclosure.

[0103] Table 1:

[0104] Number of available channels Bandwidth level of OS1 Bandwidth levels for OS2 Bandwidth levels for OS3 10 1 1 1 9 1 1 1 8 1 1 2 7 1 2 2 6 1 2 3 5 2 2 3 4 2 3 4 3 2 3 4 2 2 3 5 1 2 3 5

[0105] As shown in Table 1, the bandwidth levels corresponding to operating system 1 include 1-2, and the corresponding status value ranges are 6-10 available channels and 1-5 available channels. The bandwidth levels corresponding to operating system 2 include 1-3, and the corresponding status value ranges are 8-10 available channels, 5-7 available channels, and 1-4 available channels. The bandwidth levels corresponding to operating system 3 include 1-5, and the corresponding status value ranges are 9-10 available channels, 7-8 available channels, 5-6 available channels, 3-4 available channels, and 1-2 available channels.

[0106] In this way, the indication module 40 can determine the bandwidth level corresponding to the acquired first status value from a plurality of bandwidth levels corresponding to each operating system based on the first status value sent by the bandwidth sharing module 50 .

[0107] For example, if the first status value includes that the number of available channels is 6, then the indication module 40 may determine that the bandwidth level corresponding to the operating system 1 is 1, the bandwidth level corresponding to the operating system 2 is 2, and the bandwidth level corresponding to the operating system 3 is 3.

[0108] Exemplarily, the correspondence between the bandwidth level of each operating system and the first state value may be stored in a register corresponding to the indication module 40 .

[0109] In one implementation, after determining the bandwidth level corresponding to each operating system, the indication module 40 may write the bandwidth level corresponding to each operating system into the corresponding register. In one example, the indication module 40 may generate a corresponding bandwidth level indication based on the bandwidth level corresponding to each operating system, and write the bandwidth level indication into the corresponding register. Among them, the indication module 40 may generate a bandwidth level indication, and the bandwidth level indication is used to indicate the bandwidth level corresponding to each operating system. Alternatively, the indication module 40 may generate multiple bandwidth level indications, each bandwidth level indication corresponding to an operating system.

[0110] In one implementation, the first control module may read the bandwidth level corresponding to each operating system from the register corresponding to the indication module 40 .

[0111] In one implementation, the first control module may read the bandwidth level indication from the register corresponding to the indication module 40, and determine the bandwidth level corresponding to each operating system based on the bandwidth level indication.

[0112] In one implementation, the first control module may periodically read the bandwidth level corresponding to each operating system from the register corresponding to the indication module 40 .

[0113] In one implementation, after writing the bandwidth level of each operating system into the register, the indication module 40 may send a read instruction to the first control module. The first control module may read the bandwidth level corresponding to each operating system from the register corresponding to the indication module 40 based on the read instruction.

[0114] In one implementation, the first control module may determine the first bandwidth level corresponding to the first operating system based on the acquired bandwidth levels corresponding to the respective operating systems. For example, the first control module acquires that the bandwidth level corresponding to OS1 is 1, the bandwidth level corresponding to OS2 is 2, and the bandwidth level corresponding to OS3 is 1. If the first operating system is OS1, the first control module may determine that the bandwidth level corresponding to the first operating system is 1.

[0115] Step S300: Based on the first bandwidth level, control the first functional module to access the first bandwidth of the second hardware unit.

[0116] The first bandwidth is the bandwidth for the first functional module to access the second hardware unit 20 .

[0117] In one implementation, when the first functional module accesses the second hardware unit 20 via the first control module, the first control module may limit the access based on the first bandwidth level corresponding to the first operating system to control the first bandwidth of the first functional module's access to the second hardware unit 20.

[0118] It can be seen from the above technical solutions that the method provided in the embodiment of the present disclosure can limit the flow of each functional module 11 corresponding to the operating system based on the bandwidth level corresponding to the operating system, thereby avoiding congestion in the access of the functional module 11 to the second hardware unit 20.

[0119] Figure 5 It is a flowchart of step S300 of a bandwidth control method provided by an exemplary embodiment of the present disclosure.

[0120] like Figure 5 In one implementation, step S300 may include the following steps:

[0121] Step S310: determining a first bandwidth threshold corresponding to a first functional module based on a first bandwidth level.

[0122] The first bandwidth threshold is the maximum bandwidth allowed for the first functional module to use when accessing the second hardware unit when the corresponding first operating system corresponds to the first bandwidth level.

[0123] In one implementation, at least one bandwidth threshold may be pre-set for each functional module 11, and a bandwidth level corresponding to each bandwidth threshold may be pre-set.

[0124] Among them, the higher the bandwidth level, the more memory bandwidth is allocated to the operating system, and the larger the maximum bandwidth allowed for the functional module 11 to access the second hardware unit 20, then the larger the bandwidth threshold corresponding to the functional module 11; the lower the bandwidth level, the less memory bandwidth is allocated to the operating system, and the smaller the maximum bandwidth allowed for the functional module 11 to access the second hardware unit 20, then the smaller the bandwidth threshold corresponding to the functional module 11.

[0125] It should be noted that different functional modules 11 have different performance requirements. Therefore, for the same operating system, the bandwidths required by different functional modules 11 when accessing the second hardware unit 20 may be the same or different. Therefore, when pre-setting the bandwidth threshold for each functional module 11, the bandwidth threshold corresponding to the functional module 11 can be determined based on the performance requirements of the functional module 11 and other functional modules 11 that may correspond to the same operating system as the functional module 11.

[0126] In one implementation, the performance requirement of the functional module 11 can be characterized by the priority of the functional module 11. Among the multiple functional modules 11 corresponding to the same operating system, the higher the priority of the functional module 11, the more it is necessary to give priority to satisfying the bandwidth of the functional module 11 accessing the second hardware unit 20, that is, when corresponding to the same bandwidth level, a higher bandwidth threshold needs to be set for the functional module 11. The lower the priority of the functional module 11, the later it can be satisfied that the bandwidth of the functional module 11 accesses the second hardware unit 20, that is, when corresponding to the same bandwidth level, a lower bandwidth threshold can be set for the functional module 11.

[0127] In one implementation, the performance requirement of the functional module 11 can be characterized by the amount of access data generated when the functional module 11 performs a task. Among the multiple functional modules 11 corresponding to the same operating system, the higher the throughput of the functional module 11 performing the task required by the business, the more bandwidth required for the functional module 11 to access the second hardware unit 20. In order to ensure the performance and efficiency of the functional module 11 when performing the task, more bandwidth needs to be allocated to the functional module 11. In other words, when corresponding to the same bandwidth level, a higher bandwidth threshold needs to be set for the functional module 11. The lower the throughput of the functional module 11 performing the task required by the business, the less bandwidth required for the functional module 11 to access the second hardware unit 20. In other words, the functional module 11 needs less bandwidth to ensure the performance and efficiency when performing the task. Therefore, when corresponding to the same bandwidth level, a lower bandwidth threshold can be set for the functional module 11.

[0128] It should be noted that in a multi-operating system scenario, the business requirements of different operating systems may be different. Therefore, when the same functional module 11 is managed by different operating systems, or when the same functional module 11 corresponds to different operating systems, the bandwidth required to access the second hardware unit 20 may be the same or different. For example, when the functional module 11-1 is managed by the operating system OS1 (i.e., when the functional module 11-1 corresponds to the operating system OS1), the bandwidth required to access the second hardware unit 20 is relatively large, while when the functional module 11-1 is managed by the operating system OS2 (i.e., when the functional module 11-1 corresponds to the operating system OS2), the bandwidth required to access the second hardware unit 20 is relatively small when the functional module 11-1 corresponds to the operating system OS2. Specifically, the bandwidth threshold corresponding to the functional module 11 can be reasonably set based on the business requirements of each operating system, and no specific limitation is made here.

[0129] In one implementation, for the same bandwidth level corresponding to different operating systems, the bandwidth thresholds corresponding to the function modules 11 may be the same.

[0130] Exemplarily, the correspondence between the bandwidth level and the bandwidth threshold may be as shown in Table 2. It should be noted that the numerical values ​​disclosed in Table 3 are only examples and do not constitute a specific limitation on the embodiments of the present disclosure.

[0131] Table 2:

[0132] Bandwidth level Bandwidth Threshold 1 70Gbps 2 50Gbps 3 40Gbps 4 30Gbps ... ...

[0133] As shown in Table 2, taking the example that the function module 11 currently corresponds to the operating system 1 and the bandwidth level currently corresponding to the operating system 1 is 1, it can be determined that the bandwidth threshold corresponding to the function module 11 is 70 Gbps. Taking the example that the function module 11 currently corresponds to the operating system 2 and the bandwidth level currently corresponding to the operating system 2 is 2, it can be determined that the bandwidth threshold corresponding to the function module 11 is 50 Gbps.

[0134] In another implementation, for the same bandwidth level corresponding to different operating systems, the bandwidth threshold corresponding to the function module 11 is different. Based on the business requirements of the operating system, for the same bandwidth level, if the bandwidth required by the function module 11 to access the second hardware unit 20 is more, the function module 11 may correspond to a higher bandwidth threshold, and if the bandwidth required by the function module 11 to access the second hardware unit 20 is less, the function module 11 may correspond to a lower bandwidth threshold.

[0135] In one implementation, the correspondence between the bandwidth level and the bandwidth threshold also includes identification information of the operating system corresponding to the correspondence. The identification information of the operating system is used to identify the operating system corresponding to the correspondence, and may include the ID, address, name, etc. of the operating system. When determining the bandwidth threshold corresponding to the first functional module, the first control module first determines the correspondence corresponding to the first operating system from the correspondences, and then determines the bandwidth threshold corresponding to the first functional module based on the correspondence.

[0136] Exemplarily, the correspondence between the bandwidth level and the bandwidth threshold may be as shown in Table 3. It should be noted that the numerical values ​​disclosed in Table 3 are only examples and do not constitute a specific limitation on the embodiments of the present disclosure.

[0137] Table 3:

[0138]

[0139] As shown in Table 3, taking the case that the first functional module currently corresponds to operating system 1 and the bandwidth level corresponding to operating system 1 is 1 as an example, the first control module can determine from each corresponding relationship that the corresponding relationship corresponding to operating system 1 is the corresponding relationship between the first column bandwidth threshold and the bandwidth level based on the name of the first operating system, such as "OS1", and the first control module can determine that the bandwidth threshold corresponding to bandwidth level 1 is 70 Gbps based on the corresponding relationship, that is, the first bandwidth threshold corresponding to the first functional module is 70 Gbps. Taking the case that the first functional module currently corresponds to operating system 3 and the bandwidth level corresponding to operating system 3 is 3 as an example, the first control module can determine from each corresponding relationship that the corresponding relationship corresponding to operating system 3 is the corresponding relationship between the third column bandwidth threshold and the bandwidth level based on the name of the first operating system, such as "OS3", and the first control module can determine that the bandwidth threshold corresponding to bandwidth level 3 is 40 Gbps based on the corresponding relationship, that is, the first bandwidth threshold corresponding to the first functional module is 40 Gbps.

[0140] In one implementation, the corresponding relationship between the bandwidth level and the bandwidth threshold corresponding to each functional module 11 can be stored in a register corresponding to the corresponding control module 30. Each control module 30 can correspond to one register, or multiple control modules 30 can share a register, which is not limited here.

[0141] Step S320: Control the first bandwidth based on the first bandwidth threshold.

[0142] In one implementation, the first bandwidth is controlled to be less than or equal to a first bandwidth threshold.

[0143] In one implementation, when the first functional module accesses the second hardware unit 20 via the first control module, the first control module can limit the access based on the first bandwidth threshold so that the first bandwidth of the first functional module accessing the second hardware unit 20 is less than or equal to the first bandwidth threshold.

[0144] In one example, combining Figure 6In the schematic diagram of dynamically controlling access bandwidth shown in the figure, operating system 1 corresponds to function module 11-1, and operating system 2 corresponds to function module 11-2, wherein function module 11-1 corresponds to control module 30-1, and function module 11-2 corresponds to control module 30-2. When the bandwidth level corresponding to operating system 1 is 1, and the bandwidth level corresponding to operating system 2 is 2, the instruction module 40 sends the bandwidth levels corresponding to operating systems 1-2 to control module 30-1 and control module 30-2, respectively, for example, the bandwidth level of OS1 is 1, and the bandwidth level of OS2 is 2. Accordingly, each control module can obtain the bandwidth level corresponding to operating system 1-2. For example, control module 30-1 can obtain the bandwidth level of OS1 is 1, and the bandwidth level of OS2 is 2. Control module 30-2 can obtain the bandwidth level of OS1 is 1, and the bandwidth level of OS2 is 2. Each control module obtains the bandwidth level corresponding to the operating system corresponding to the corresponding function module. Among them, control module 30-1 can determine that the bandwidth level corresponding to operating system 1 is 1 from the bandwidth level of OS1 is 1, and the bandwidth level of OS2 is 2. The control module 30-2 can determine that the bandwidth level corresponding to the operating system 2 is 2 from the bandwidth level of OS1 being 1 and the bandwidth level of OS2 being 2. Each control module determines the bandwidth threshold corresponding to the corresponding functional module based on the correspondence between the bandwidth level corresponding to the corresponding functional module and the bandwidth threshold. Combined with Table 3, the control module 30-1 can determine the correspondence between the bandwidth level and the bandwidth threshold of the functional module 11-1 in the case of corresponding operating system 1 based on the name of the operating system 1. Based on the correspondence, the control module 30-1 can determine that the bandwidth threshold currently corresponding to the functional module 11-1 is 70 Gbps. The control module 30-2 can determine the correspondence between the bandwidth level and the bandwidth threshold of the functional module 11-2 in the case of corresponding operating system 2 based on the name of the operating system 2. Based on the correspondence, the control module 30-2 can determine that the bandwidth threshold currently corresponding to the functional module 11-2 is 30 Gbps. Each control module controls the bandwidth of the functional module accessing the second hardware unit 20 based on the bandwidth threshold corresponding to the corresponding functional module. When the function module 11-1 controls the access path of the second hardware unit 20 to the module 30-1, the control module 30-1 limits the access based on the bandwidth threshold of 70 Gbps, so that the bandwidth of the access transmitted on the bus is less than or equal to 70 Gbps. When the function module 11-2 controls the access path of the second hardware unit 20 to the module 30-2, the control module 30-2 limits the access based on the bandwidth threshold of 30 Gbps, so that the bandwidth of the access transmitted on the bus is less than or equal to 30 Gbps.

[0145] In another example, combining Figure 7In the bandwidth control system shown, operating system 1 corresponds to function module 11-1 and function module 11-2, wherein function module 11-1 corresponds to control module 30-1, and function module 11-2 corresponds to control module 30-2. When the bandwidth level corresponding to operating system 1 is 1, instruction module 40 sends the bandwidth level corresponding to operating system 1 to control module 30-1 and control module 30-2 respectively, for example, the bandwidth level of OS1 is 1. Accordingly, each control module can obtain the bandwidth level corresponding to operating system 1. For example, control module 30-1 can obtain the bandwidth level of OS1 as 1, and control module 30-2 can obtain the bandwidth level of OS1 as 1. Each control module obtains the bandwidth level corresponding to the operating system corresponding to the corresponding function module. Among them, control module 30-1 can determine that the bandwidth level corresponding to operating system 1 is 1. Control module 30-2 can determine that the bandwidth level corresponding to operating system 1 is 1. Each control module determines the bandwidth threshold corresponding to the corresponding function module based on the corresponding relationship between the bandwidth level corresponding to the corresponding function module and the bandwidth threshold. Combined with Table 3, the control module 30-1 can determine the corresponding relationship between the bandwidth level and the bandwidth threshold of the function module 11-1 in the case of corresponding operating system 1 based on the name of the operating system 1. Based on the corresponding relationship, the control module 30-1 can determine that the bandwidth threshold currently corresponding to the function module 11-1 is 70Gbps. The control module 30-2 can determine the corresponding relationship between the bandwidth level and the bandwidth threshold of the function module 11-2 in the case of corresponding operating system 1 based on the name of the operating system 1. Based on the corresponding relationship, the control module 30-2 can determine that the bandwidth currently corresponding to the function module 11-2 is 70Gbps. Each control module controls the bandwidth of the function module accessing the second hardware unit 20 based on the bandwidth threshold corresponding to the corresponding function module. Among them, when the function module 11-1 controls the access path of the second hardware unit 20 through the control module 30-1, the control module 30-1 limits the access based on the bandwidth threshold 70Gbps, so that the bandwidth of the access transmitted on the bus is less than or equal to 70Gbps. When the functional module 11 - 2 controls the access path of the second hardware unit 20 to the control module 30 - 2 , the control module 30 - 2 limits the access based on the bandwidth threshold 70 Gbps, so that the bandwidth of the access transmitted on the bus is less than or equal to 70 Gbps.

[0146] It should be noted that during the operation of each operating system, the amount of access to the second hardware unit 20 by each operating system changes dynamically, and accordingly, the memory bandwidth allocated to each operating system also changes dynamically, and the bandwidth level corresponding to each operating system also changes dynamically. Therefore, the bandwidth threshold determined by the control module 30 for the functional module 11 also changes dynamically, that is, the control module 30 will dynamically control the bandwidth of the functional module 11 accessing the second hardware unit 20.

[0147] In one implementation, when the system state of the operating system changes, for example, the first state value of the command queue in the bandwidth sharing module 50 changes, the indication module 40 will re-determine the bandwidth level corresponding to each operating system based on the changed first state value, and send the latest bandwidth level to the first control module. The first control module obtains the latest bandwidth level corresponding to the first functional module, and re-determines the first bandwidth threshold corresponding to the first functional module based on the latest bandwidth level. The first control module will control the first functional module to access the first bandwidth of the second hardware unit 20 based on the re-determined first bandwidth threshold.

[0148] Exemplarily, the function module 11-1 corresponds to the operating system 2, and the control module 30-1 corresponding to the function module 11-1 has determined the bandwidth threshold corresponding to the function module 11-1, such as 70 Gbps, according to the bandwidth level 1 corresponding to the operating system 2, and controls the bandwidth of the function module 11-1 to access the second hardware unit 20 to be less than or equal to 70 Gbps. If the first state value of the command queue in the bandwidth sharing module 50 changes, resulting in the operating system 2 to be reallocated memory bandwidth, the indication module 40 will re-determine the bandwidth level of the operating system 2 according to the changed first state value, and send the latest bandwidth level corresponding to the operating system 2 to the control module 30-1. For example, the latest bandwidth level corresponding to the operating system 2 is 2. After obtaining the latest bandwidth level corresponding to the operating system 2, the control module 30-1 will re-determine the bandwidth threshold corresponding to the function module 11-1 based on the bandwidth level 2, such as 50 Gbps, and control the bandwidth of the function module 11-1 to access the second hardware unit 20 to be less than or equal to 50 Gbps.

[0149] It can be seen that this implementation method can enable the functional module 11 to access the bandwidth of the second hardware unit 20 and adapt to the memory bandwidth dynamically allocated by the operating system.

[0150] It should also be noted that during the operation of each operating system, the services executed by each operating system are dynamically changing, and accordingly, the function module 11 corresponding to the operating system is also dynamically changing, so for the function module 11, the bandwidth level corresponding to the corresponding operating system is also dynamically changing. Therefore, the bandwidth threshold determined by the control module 30 for the function module 11 is also dynamically changing, that is, the control module 30 will dynamically control the bandwidth of the function module 11 to access the second hardware unit 20.

[0151] In one implementation, if the operating system corresponding to the first functional module changes, the first control module needs to redetermine the first bandwidth threshold corresponding to the first functional module based on the bandwidth level corresponding to the changed operating system, and control the bandwidth of the first functional module to access the second hardware unit 20 based on the redetermined first bandwidth threshold.

[0152] Exemplarily, the function module 11-1 corresponds to the operating system 1, and the control module 30-1 corresponding to the function module 11-1 has determined the bandwidth threshold corresponding to the function module 11-1, such as 70 Gbps, according to the bandwidth level 1 corresponding to the operating system 1, and controls the bandwidth of the function module 11-1 to access the second hardware unit 20 to be less than or equal to 70 Gbps. If the function module 11-1 is changed to correspond to the operating system 2, the control module 30-1 will re-determine the bandwidth threshold corresponding to the function module 11-1, such as 50 Gbps, based on the bandwidth level 2 after obtaining the bandwidth level corresponding to the operating system 2, for example, 2, and control the bandwidth of the function module 11-1 to access the second hardware unit 20 to be less than or equal to 50 Gbps.

[0153] It can be seen that this implementation method can enable the functional module 11 to access the bandwidth of the second hardware unit 20 and adapt to the dynamically changing correspondence between the functional module 11 and the operating system.

[0154] In the embodiment of the present disclosure, the first control module may adopt bandwidth throttling to control the bandwidth of the first functional module accessing the second hardware unit 20, or may adopt outstanding request throttling to control the bandwidth of the first functional module accessing the second hardware unit 20. In addition, the first control module may also adopt a combination of bandwidth throttling and outstanding request throttling to control the bandwidth of the first functional module accessing the second hardware unit 20. Of course, the first control module may also use other throttling methods to control the bandwidth of the first functional module accessing the second hardware unit 20, which is not limited in the embodiment of the present disclosure.

[0155] Exemplary Devices

[0156] The bandwidth control method provided by the embodiment of the present disclosure is introduced above. It is understandable that, in order to implement the functions of the control method, the integrated circuit (eg, SoC) or the first hardware unit in the SoC may include corresponding hardware and software for implementing the hardware functions.

[0157] Those skilled in the art should easily realize that, in combination with the steps of a bandwidth control method described in each embodiment of the present disclosure, each embodiment of the present disclosure can be implemented in the form of hardware, or in a combination of software-driven hardware. Whether a function is executed in hardware or software-driven hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present disclosure.

[0158] Figure 8 It is a structural diagram of a bandwidth control device provided by an exemplary embodiment of the present disclosure.

[0159] like Figure 8 As shown, in one embodiment, the bandwidth control device 300 includes:

[0160] The first control module 310 is configured corresponding to the first functional module of the first hardware unit 10. The first hardware unit 10 includes at least one functional module 11, which is managed by at least one operating system. The first hardware unit 10 is in communication with the second hardware unit 20.

[0161] The first control module 310 is configured to: determine a first operating system that manages the first functional module, obtain a first bandwidth level corresponding to the first operating system, and control the first functional module to access the first bandwidth of the second hardware unit 20 based on the first bandwidth level.

[0162] In one implementation, the bandwidth control device may further include an indication module 320. The indication module 320 is in communication with the first control module 310. The indication module 320 is configured to generate a bandwidth level corresponding to at least one operating system, wherein the bandwidth level corresponding to the at least one operating system includes a first bandwidth level corresponding to the first operating system.

[0163] In one example, the indication module 320 may be a bandwidth allocation module.

[0164] In one implementation, the bandwidth control device may further include a bandwidth sharing module, which is in communication with the indication module 320. The bandwidth sharing module has a corresponding register, which stores a command queue, which can be used to cache access commands of each functional module 11 to access the second hardware unit 20, such as read access commands and write access commands. The usage status of the command queue may include a first status value of the command queue. The size of the first status value represents the idleness or congestion of the command queue. The first status value may include the number of available channels or the number of unavailable channels in the command queue. The bandwidth control device is configured to send the first status value of the command queue to the indication module 320.

[0165] In one implementation, the indication module 320 is configured to: determine the corresponding bandwidth level based on the state of the operating system, for example, determine the bandwidth level corresponding to each operating system based on the first state value.

[0166] In one implementation, the indication module 320 is configured to write the bandwidth level corresponding to each operating system into a corresponding register.

[0167] In one implementation, the indication module 320 is configured to generate a corresponding bandwidth level indication based on the bandwidth level corresponding to each operating system, and write the bandwidth level indication to the corresponding register. The indication module 320 may generate a bandwidth level indication, which is used to indicate the bandwidth level corresponding to each operating system. Alternatively, the indication module 320 may generate multiple bandwidth level indications, each bandwidth level indication corresponding to an operating system.

[0168] In one implementation, the first control module 310 is configured to: read the bandwidth level corresponding to each operating system from the indication module 320, for example, read the bandwidth level corresponding to each operating system from the register corresponding to the indication module 320, and determine the first bandwidth level corresponding to the first operating system from the bandwidth levels corresponding to each operating system read.

[0169] In one implementation, the first control module 310 is configured to: determine a first bandwidth threshold corresponding to the first functional module based on the first bandwidth level, and control the first bandwidth based on the first bandwidth threshold.

[0170] In one implementation, the first control module 310 is configured to determine a first bandwidth threshold corresponding to the first bandwidth level based on a correspondence between at least one bandwidth level and a bandwidth threshold.

[0171] In one implementation, the first control module 310 is configured to: control the first bandwidth to be less than or equal to a first bandwidth threshold.

[0172] It can be seen from the above technical solution that the device provided by the embodiment of the present disclosure, after determining the bandwidth level corresponding to the operating system corresponding to the functional module 11, can control the bandwidth of the functional module 11 accessing the second hardware unit 20 according to the bandwidth level, so that the functional module 11 can access the second hardware unit 20 using the bandwidth that matches the memory bandwidth allocated to the operating system, thereby avoiding access congestion.

[0173] Exemplary Integrated Circuits

[0174] The embodiment of the present disclosure also provides an integrated circuit, which may be, for example, a SoC.

[0175] Fig. 9 It is a schematic diagram of the structure of an integrated circuit provided by an exemplary embodiment of the present disclosure.

[0176] like Fig. 9 As shown, in one implementation, the integrated circuit 1000 includes a first hardware unit 10, the first hardware unit 10 includes at least one functional module 11, at least one functional module 11 is managed by at least one operating system, and the first hardware unit 10 is communicatively connected with a second hardware unit 20. Each functional module 11 is used to implement one or more functions of the integrated circuit. For example, the functional module 11 can be a CPU, a GPU, an NPU, an l SP, a DSP, etc. In addition, the functional module 11 can also be a core of a CPU, a stream processor of a GPU, a computing unit of an NPU, etc.

[0177] In one implementation, each functional module 11 of the first hardware unit 10 may communicate with other hardware units (eg, the second hardware unit 20 ), for example, access the second hardware unit 20 .

[0178] The second hardware unit 20 may include one or more memories 200, such as memory, or other hardware units that communicate with the first hardware unit 10. Exemplarily, the second hardware unit 20 may be DRAM and / or SRAM. Accordingly, the memory bandwidth includes the bandwidth of the DRAM bus (hereinafter referred to as DRAM bandwidth) and / or the bandwidth of the SRAM bus (hereinafter referred to as SRAM bandwidth).

[0179] In one implementation, the at least one memory 200 in the second hardware unit 20 may be located on the integrated circuit 1000 and become a part of the integrated circuit 1000 .

[0180] In one embodiment, the integrated circuit 1000 also includes: a plurality of control modules 30 arranged in one-to-one correspondence with at least one functional module 11, such as control module 30-1 to control module 30-N; the control module 30 is configured to implement the function of the first control module in the bandwidth control device, for example, to implement the steps of the bandwidth control method provided in the embodiment of the present disclosure.

[0181] In one example, the control module 30 is configured to: determine the operating system corresponding to the corresponding functional module, obtain the bandwidth level corresponding to the operating system, and control the bandwidth of the corresponding functional module accessing the second hardware unit 20 based on the bandwidth level.

[0182] It can be seen from the above technical solution that the integrated circuit provided by the embodiment of the present disclosure can dynamically control the bandwidth of the functional module 11 accessing the second hardware unit 20 according to the bandwidth level corresponding to the operating system of the management functional module 11, so that the functional module 11 can access the second hardware unit 20 with the memory bandwidth that can be used by the corresponding operating system, so as to avoid congestion during the access process.

[0183] Exemplary Electronic Devices

[0184] The present disclosure provides an electronic device that can be used in a vehicle, such as an intelligent networked car. The electronic device can be, for example, an on-board computing device, an on-board computing platform, an on-board computing unit, an intelligent driving computing platform, etc.

[0185] In one embodiment, the electronic device may include an integrated circuit provided by an embodiment of the present disclosure, which may run at least one operating system, such as an intelligent driving system and a cockpit system, to implement relevant functions of the cabin-cockpit integrated system.

[0186] In one embodiment, the electronic device may further include:

[0187] The housing is used to accommodate and install various components of the electronic equipment, protect the components from being affected by dust and water, and improve the reliability of the electronic equipment.

[0188] The power module is used to supply power to various hardware units of the electronic device.

[0189] Heat dissipation modules, such as cooling fans, liquid cooling devices, etc., are used to dissipate heat for components of electronic equipment, reduce the operating temperature of each component, and improve the operating stability of each component.

[0190] External interfaces are used to connect various sensors on the vehicle, such as cameras, lidar, millimeter-wave radar, ultrasonic radar, etc., to send instructions to each sensor or receive data sent back by the sensor. External interfaces can also be connected to various actuators of the vehicle, such as the drive system, brake system, steering system, etc., to send control instructions to each system and receive feedback from each system.

[0191] Example Vehicles

[0192] The embodiments of the present disclosure provide a vehicle, which may include a land vehicle, an air vehicle, a water vehicle, an underwater vehicle, a space vehicle, etc. For details about the vehicle, please refer to the above embodiments, which will not be repeated here. The vehicle may include an integrated circuit or an electronic device provided by the embodiments of the present disclosure to implement the bandwidth control method provided by the embodiments of the present disclosure.

[0193] Exemplary computer program products and computer-readable storage media

[0194] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the bandwidth control method according to various embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of this specification.

[0195] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0196] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the processor executes the steps of the bandwidth control method according to various embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.

[0197] Computer readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical memory device, a magnetic memory device, or any suitable combination of the above.

[0198] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.

[0199] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.

[0200] It should also be noted that in the apparatus, device and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.

[0201] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0202] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A bandwidth control method, comprising: Determine a first operating system that manages a first functional module of a first hardware unit, wherein the first hardware unit includes at least one functional module, the at least one functional module is managed by at least one operating system, and the first hardware unit is communicatively connected to a second hardware unit; Obtaining a first bandwidth level corresponding to the first operating system; Based on the first bandwidth level, the first functional module is controlled to access the first bandwidth of the second hardware unit.

2. The method according to claim 1, wherein: The obtaining the first bandwidth level corresponding to the first operating system includes: A bandwidth level corresponding to at least one of the operating systems is obtained, where the at least one operating system includes the first operating system, and the bandwidth level of the at least one operating system includes a first bandwidth level corresponding to the first operating system.

3. The method according to claim 1, wherein: The controlling the first functional module to access the first bandwidth of the second hardware unit based on the first bandwidth level includes: Based on the first bandwidth level, determining a first bandwidth threshold corresponding to the first functional module; Based on the first bandwidth threshold, the first bandwidth is controlled.

4. The method according to claim 3, wherein: The determining, based on the first bandwidth level, a first bandwidth threshold corresponding to the first functional module includes: Based on a correspondence between at least one bandwidth level and a bandwidth threshold, the first bandwidth threshold corresponding to the first bandwidth level is determined.

5. The method according to claim 3, wherein: The controlling the first bandwidth based on the first bandwidth threshold includes: The first bandwidth is controlled to be less than or equal to the first bandwidth threshold.

6. A bandwidth control device, comprising: a first control module; The first control module is arranged corresponding to the first functional module of the first hardware unit, wherein the first hardware unit includes at least one functional module, the at least one functional module is managed by at least one operating system, and the first hardware unit is communicatively connected with the second hardware unit; The first control module is configured to determine a first operating system that manages the first functional module; The first control module is further configured to obtain a first bandwidth level corresponding to the first operating system; The first control module is further configured to control the first bandwidth of the first functional module to access the second hardware unit based on the first bandwidth level.

7. The device according to claim 6, wherein: The first control module is configured to: obtain a bandwidth level corresponding to at least one of the operating systems, where the at least one operating system includes the first operating system, and the bandwidth level of the at least one operating system includes a first bandwidth level corresponding to the first operating system.

8. The device according to claim 6, wherein: The first control module is configured to determine a first bandwidth threshold corresponding to the first functional module based on the first bandwidth level; The first control module is further configured to control the first bandwidth based on the first bandwidth threshold.

9. The device according to claim 8, wherein: The first control module is configured to determine the first bandwidth threshold corresponding to the first bandwidth level based on a correspondence relationship between at least one bandwidth level and a bandwidth threshold.

10. The device according to claim 8, wherein: The first control module is configured to control the first bandwidth to be less than or equal to the first bandwidth threshold.

11. An integrated circuit, wherein: include: A first hardware unit, the first hardware unit comprising at least one functional module, the at least one functional module being managed by at least one operating system; At least one control module is arranged in one-to-one correspondence with at least one of the functional modules, each of the control modules is communicatively connected with the corresponding functional module, wherein at least one of the control modules is configured to implement the function of the first control module described in any one of claims 6-10.

12. An electronic device, wherein: Comprising the integrated circuit of claim 11.

13. A vehicle, wherein: Comprising the integrated circuit of claim 11 or the electronic device of claim 12.

Citation Information

Cited By

  • Computing device and electronic device guaranteeing bandwidth per computational performance

    US12713888B2

  • Computing device and electronic device guaranteeing bandwidth per computational performance

    US12713890B2

  • Computing device and electronic device guaranteeing bandwidth per computational performance

    US20230253294A1

  • Computing device and electronic device guaranteeing bandwidth per computational performance

    US20230369171A1