Data loading method, chip, equipment and readable storage medium

Based on the combination of DSP chips into the basis and adjustable functions, and dynamically loading the operating parameters of the adjustable function, the problem of increasing the cost of DSP chip area has been solved, and the effect of supporting more functions under the same SRAM area.

CN119336701APending Publication Date: 2025-01-21SHANGHAI AWINIC INTEGRATED CIRCUIT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411359874.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

The problem of increasing area cost of DSP chips is mainly due to the increase in area of ​​static random access memory (SRAM), which leads to an increase in chip area and cost.

Method used

通过将目标业务的功能集合划分为基础功能集合和可调功能集合,动态加载可调功能集合中的功能运行参数到SRAM的第一存储内存中,避免了批量加载所有功能参数的做法,从而控制 The area of ​​SRAM.

Benefits of technology

Under the same SRAM area cost, it supports more functions, improves product competitiveness, and effectively controls the area and cost of DSP chips.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119336701A_ABST
    Figure CN119336701A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of embedded systems, in particular to a data loading method, a chip, equipment and a readable storage medium. The method comprises the steps that the electronic equipment divides a function set of a target service into a basic function set and an adjustable function set, and a first storage memory is allocated for the adjustable function set according to the maximum required memory of memories required by all functions in the adjustable function set. It can be understood that each function in the basic function set is a necessary function for normal operation of the target business, and each function in the adjustable function set is a non-necessary function for normal operation of the target business. According to the technical scheme, the operation parameters of all the functions in the basic function set are pre-loaded into the SRAM, and the operation parameters of all the functions in the adjustable function set can be dynamically loaded into the first storage memory of the SRAM when operation requirements exist, that is, the electronic equipment can dynamically load all the functions in the adjustable function set, and the situation that the area of the SRAM is increased due to batch loading of the functions is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of embedded systems, and in particular to a data loading method, a chip, a device, and a readable storage medium. Background Art

[0002] A digital signal processor (DSP) chip is a microprocessor designed specifically for digital signal processing. At present, the area of ​​DSP chips is relatively large. Among the area of ​​DSP, the area of ​​static random-access memory (SRAM) accounts for the largest proportion. Therefore, the key to controlling the area of ​​DSP lies in controlling the area of ​​SRAM.

[0003] It can be understood that the area of ​​SRAM determines the size of SRAM storage, that is, the area of ​​SRAM determines the amount of data stored in SRAM. Usually, the configuration data and status data of the required functions will be stored in SRAM according to the number of functions supported by the DSP chip. Then, in order to realize more functions of the DSP chip, a larger SRAM will be needed to store the configuration data and status data of the functions, but this will cause the area of ​​SRAM to increase, thereby causing the area cost of the DSP chip. Summary of the invention

[0004] Embodiments of the present application provide a data loading method, a chip, a device, and a readable storage medium.

[0005] In the first aspect, an embodiment of the present application provides a data loading method. The method includes: dividing the function set of the target business into a basic function set and an adjustable function set; determining and comparing the memory required for each function in the adjustable function set, and determining the maximum required memory among the memories required for each function based on the comparison result; allocating a first storage memory to the adjustable function set based on the maximum required memory; when the electronic device needs to run the first function in the adjustable function set, loading the operating parameters of the first function into the first storage memory; and running the first function based on the operating parameters of the first function.

[0006] In an embodiment of the present application, the electronic device divides the function set of the target business into a basic function set and an adjustable function set, and allocates a first storage memory to the adjustable function set according to the maximum required memory required by each function in the adjustable function set. It can be understood that each function in the basic function set is a necessary function for the normal operation of the target business, and each function in the adjustable function set is a non-necessary function for the normal operation of the target business. The operating parameters of each function in the basic function set are pre-loaded into the SRAM, and the operating parameters of each function in the adjustable function set can be dynamically loaded into the first storage memory of the SRAM when there is an operating requirement, that is, the electronic device can dynamically load each function in the adjustable function set to avoid an increase in the SRAM area due to batch loading of functions.

[0007] In a possible implementation of the first aspect above, the method further includes: when the electronic device does not need to run a first function in the adjustable function set, not loading an operating parameter of the first function into the first storage memory.

[0008] In a possible implementation of the first aspect above, the method also includes: when the electronic device needs to switch from the first function to run the second function in the adjustable function set, deleting the operating parameters of the first function from the first storage memory; and loading the operating parameters of the second function into the first storage memory; and running the second function based on the operating parameters of the second function.

[0009] In a possible implementation of the first aspect above, the memory space of the first storage memory is the same as the memory space of the maximum required memory; or, the memory space of the first storage memory is larger than the memory space of the maximum required memory.

[0010] In a possible implementation of the first aspect above, the operating parameters include configuration data and status data of the corresponding function, and the configuration data and status data are used to implement the operation of the corresponding function.

[0011] In a possible implementation of the first aspect above, the data of each function in the adjustable function set includes instruction data, configuration data and status data; and the instruction data is stored in a second storage memory in the electronic device; when the electronic device has an operation requirement, the configuration data and the status data are loaded into the first storage memory based on loading information of the operation requirement, wherein the second storage memory is different from the first storage memory, and the loading information is used to indicate the location where the configuration data and the status data are stored in the first storage memory.

[0012] In a possible implementation of the first aspect above, the first storage memory includes: a configuration memory and a state memory, the configuration memory is used to store configuration data of the corresponding function, and the state memory is used to store state data of the corresponding function.

[0013] In a possible implementation of the first aspect above, the loading information includes a configuration pointer and a status pointer of the corresponding function; the configuration data and the status data are loaded into the first storage memory based on the loading information of the operation requirements, including: loading the corresponding configuration data into the configuration memory based on the configuration pointer of the corresponding function; loading the corresponding status data into the status memory based on the status pointer of the corresponding function.

[0014] In a possible implementation of the first aspect above, the second storage memory is a memory in a read-only memory of the electronic device, and the first storage memory is a memory in a static random access memory of the electronic device.

[0015] In a second aspect, an embodiment of the present application provides a data loading chip, which is used to execute the above-mentioned data loading method.

[0016] In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; one or more memories; one or more memories storing one or more programs, and when one or more programs are executed by one or more processors, the electronic device executes the above-mentioned data loading method.

[0017] In a fourth aspect, an embodiment of the present application provides a readable medium, characterized in that instructions are stored in the readable medium, and when the instructions are executed by an electronic device, the electronic device executes the above-mentioned data loading method. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 According to an embodiment of the present application, a schematic diagram of DSP function support is shown.

[0019] Figure 2 According to an embodiment of the present application, a schematic diagram of DSP dynamic function loading in a first application scenario is shown.

[0020] Figure 3 According to an embodiment of the present application, a flow chart of an implementation of a data loading method is shown.

[0021] Figure 4 According to an embodiment of the present application, a schematic diagram of a configuration data and status data loading process of a dynamic function a is shown.

[0022] Figure 5 According to an embodiment of the present application, a schematic diagram of a configuration data and status data loading process of a dynamic function b is shown.

[0023] Figure 6 According to an embodiment of the present application, a structural schematic diagram of an electronic device is provided. DETAILED DESCRIPTION

[0024] The specific implementation methods of the present application will be described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0025] Figure 1 According to an embodiment of the present application, a schematic diagram of DSP function support is shown. Figure 1 As shown, the DSP is expected to support function 1, function 2, function 3, and function 4. However, Figure 1 As shown, the memory corresponding to the SRAM is M. After supporting function 1, function 2 and function 3, function 4 cannot be supported.

[0026] In this scenario, if the DSP continues to support function 4, it needs to increase the memory corresponding to the SRAM, which will increase the area of ​​the SRAM, and then the area of ​​the DSP, resulting in an increase in the area cost of the power amplifier chip with the DSP. On the other hand, if the area of ​​the power amplifier chip is to be reduced, the usual approach is to reduce the number of functions supported by the DSP, but this will reduce the competitiveness of the corresponding product.

[0027] In order to solve the above problems, the present application provides a data loading method. In this method, the electronic device divides the function set of the target business into a basic function set and an adjustable function set, and allocates a first storage memory to the adjustable function set according to the maximum required memory required by each function in the adjustable function set. It can be understood that each function in the basic function set is a necessary function for the normal operation of the target business, and each function in the adjustable function set is a non-essential function for the normal operation of the target business. The operating parameters of each function in the basic function set are pre-loaded into the SRAM, and the operating parameters of each function in the adjustable function set can be dynamically loaded into the first storage memory of the SRAM when there is an operating requirement, that is, the electronic device can dynamically load each function in the adjustable function set to avoid the increase of the SRAM area due to batch loading of functions.

[0028] In some embodiments, the operating parameters of the above functions include configuration data and status data. The configuration data is used to specify the format and type of the input data and output data of the corresponding function, as well as to adjust the operating mode, parallelism, optimization options, etc. of the corresponding function, so that the function can be adjusted and customized according to specific needs; the status data is used to reflect the execution progress and results of the corresponding function. For example, during the operation of the corresponding function, by viewing the status data, the execution status of the corresponding function can be understood, whether the function is running normally, and debugging and optimization can be performed as needed.

[0029] Thus, based on the above method, the present application can support more functions at the same SRAM area cost, load corresponding functions according to different application scenarios or customer needs, and improve the competitiveness of corresponding products.

[0030] It is understood that the electronic devices mentioned in this application that can use the data loading method include but are not limited to mobile phones, tablet computers, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), smart homes, wearable devices and other electronic devices with DSP chips, and this application does not impose any restrictions here. For example, these electronic devices may include a power amplifier chip with a DSP to support audio playback and other functions of products such as audio playback software in these electronic devices (corresponding to examples of target services) through the power amplifier chip.

[0031] Next, Figure 2 According to an embodiment of the present application, a schematic diagram of DSP dynamic function loading in a first application scenario is shown.

[0032] like Figure 2 As shown in the figure, function 1 and function 2 are functions in the basic function set, and function 3 and function 4 are functions in the adjustable function set. Based on the above data loading method, Figure 2 In A of FIG. 1 , it is shown that in the first application scenario, the user expects the product currently used to support function 1, function 2, and function 3. Accordingly, the electronic device only needs to load the operating parameters corresponding to function 1, function 2, and function 3 into the corresponding SRAM memory. Figure 2 In A, if the user does not expect to use function 4 temporarily, the operating parameters of function 4 do not need to be loaded into the SRAM memory.

[0033] In addition, Figure 2 In the second application scenario shown in B, the user expects the corresponding product to support function 1, function 2, and function 4. At this time, the electronic device only needs to load the operating parameters of function 1, function 2, and function 4 into the corresponding SRAM memory. If the user does not want to use function 3 temporarily, the operating parameters of function 3 do not need to be loaded into the SRAM memory. In this way, it can be ensured that all functions that the user expects to use can be supported, which improves the user experience.

[0034] Combination Figure 2 Related description in: Figure 3According to an embodiment of the present application, a flowchart of a data loading method is shown. In some embodiments of the present application, Figure 3 The execution subject of each step in the process shown is an electronic device. Specifically, Figure 3 The process shown may include the following steps:

[0035] 301: Divide the function set of the target business into a basic function set and an adjustable function set.

[0036] In some embodiments, the functions included in the basic function set are necessary functions for the normal operation of the target service. The functions in the adjustable function set are non-essential functions for the normal operation of the target service.

[0037] For example, when the function set of the above target business is a collection of functions of a music player product, function A is used to control the playing of music, and function B is used to control the vibration and light changes when the music is playing. For the music player product, function A used to control the playing of music belongs to the basic function, while function B used to control the vibration and light changes when the music is playing belongs to the dynamic function. In this case, function A can be classified into the basic function set, and function B can be classified into the adjustable function set.

[0038] 302: Determine and compare the memory required by each function in the adjustable function set, and determine the maximum memory required by each function based on the comparison result.

[0039] In some embodiments, the electronic device may first determine the memory required for each function in the adjustable function set, and compare the sizes of the memory required for each function to determine the maximum memory required for each function.

[0040] 303: Allocate a first storage memory for the adjustable function set based on the maximum required memory.

[0041] In some embodiments, the electronic device allocates a first storage memory to the adjustable function set according to the maximum required memory, wherein the memory space of the first storage memory is the same as the memory space of the maximum required memory, or the memory space of the first storage memory is greater than the memory space of the maximum required memory, which is not limited here.

[0042] It can be understood that the present application can divide the data of each function in the basic function set and each function in the adjustable function set into three parts, such as instruction data, configuration data and status data.

[0043] Among them, the instruction data of each function in the basic function set and each function in the adjustable function set have been loaded into the second storage memory, such as read only memory (ROM) before the product leaves the factory. The configuration data and status data of each function in the basic function set are loaded into the SRAM when the product is powered on. The configuration data and status data of each function in the adjustable function set are dynamically loaded into the SRAM according to the operation requirements.

[0044] Specifically, the present application may allocate a dynamic memory in the SRAM as the first storage memory for loading the configuration data and status data of each function in the adjustable function set.

[0045] 304: When it is necessary to execute a first function in the adjustable function set, load an operation parameter of the first function into a first storage memory.

[0046] In some embodiments, a user may select a first function that is desired to be run from an adjustable function set through a user interface (UI) of the electronic device. In response to the user's selection operation, the electronic device determines that the first function in the adjustable function set is a function to be run. For example, for a music playback application scenario, the user selects a desired function through the UI interface, such as vibration with sound or Dolby sound effects. Based on the user's selection operation, the electronic device determines that the vibration with sound or Dolby sound effects function in the adjustable function set is used as the function to be run.

[0047] For example, reference Figure 4 As shown, in the first application scenario, it is determined to use dynamic function a in the adjustable function set. At this time, dynamic function a is enabled, and can start from the first address of the reserved first storage memory, the configuration pointer points to the first address of the configuration memory, and the state pointer points to the first address of the state memory. Correspondingly, instruction b of dynamic function b (i.e., instruction data in function b) and instruction c of dynamic function c in the adjustable function set are not enabled, and the corresponding configuration pointer and state pointer both point to null pointers.

[0048] Continue to refer Figure 5 , in the second application scenario, when it is determined that dynamic function b is used, dynamic function b is enabled. At this time, starting from the first address of the reserved first storage memory, the configuration pointer points to the first address of the configuration memory, and the state pointer points to the first address of the state memory. Correspondingly, instruction a of dynamic function a and instruction c of dynamic function c are not enabled, and the corresponding configuration pointer and state pointer both point to null pointers. When it is determined to use dynamic function c, the process of allocating configuration memory and state memory by the electronic device is consistent with the process of dynamic function a and dynamic function b, which will not be repeated here.

[0049] It is understood that in some embodiments, when the application scenario determined by the user through the UI interface switches from the first application scenario to the second application scenario, the corresponding dynamic function will change. At this time, the electronic device will delete the data of the dynamic function corresponding to the first application scenario from the configuration memory and the state memory, and load the data of the dynamic function corresponding to the second application scenario into the configuration memory and the state memory. Figure 4 The first scene shown should switch to Figure 5 In the second application scenario shown, the electronic device deletes the data of dynamic function a (corresponding to the example of the first function) from the configuration memory and the state memory, and loads the data of dynamic function b (corresponding to the example of the second function) into the configuration memory and the state memory. It can be understood that the above-mentioned reserved first storage memory is the sum of the configuration memory and the state memory.

[0050] In other embodiments, when a user expects to use multiple dynamic functions and the sum of the first storage memories required by the multiple dynamic functions is less than the first storage memory allocated for the adjustable function set, the electronic device can load the multiple dynamic functions into the first storage memory.

[0051] In some embodiments, the operating parameters of the first function include configuration data and state data of the first function. The electronic device can load the operating parameters of the first function into the first storage memory based on the loading information of the operating requirements. The loading information includes a configuration pointer and a state pointer of the first function.

[0052] It can be understood that the electronic device predefines the configuration pointer and state pointer of each function in the adjustable function set. Among them, the state pointer is used to point to the memory area of ​​a certain state, and the configuration pointer is used to point to the memory area of ​​a certain configuration. Furthermore. Based on the determined loading information of the first function, the electronic device can load the configuration data of the first function into the memory area of ​​the corresponding configuration based on the corresponding configuration pointer, and load the state data of the first function into the memory area of ​​the corresponding state based on the corresponding state pointer.

[0053] It can be understood that the use of the state pointer and the configuration pointer can realize flexible management and control of the configuration and state of each function in the adjustable function set. Then, by modifying the values ​​of the configuration pointer and the state pointer, the configuration and state of each function can be switched.

[0054] In this way, based on the above data loading method, more functions can be supported under the same size of SRAM storage memory, meeting the user's usage needs and improving the competitiveness of the product.

[0055] 305: Execute the first function based on the execution parameters of the first function.

[0056] In some embodiments, after the electronic device has loaded the configuration data and the status data of the first function into the SRAM, the first function may be executed based on the configuration data and the status data of the first function.

[0057] In this way, the present application can load the configuration data and status data of the first function into the SRAM only when the first function is running, and does not need to load these data in other scenarios, that is, the SRAM does not need to continue to store these data. In this way, when the SRAM area is small, more functions can be realized by dynamically loading the configuration data and status data of some functions.

[0058] It can be understood that the electronic device can load the configuration data of dynamic function a and the status data of dynamic function a into the corresponding memory area respectively based on the determined configuration pointer and status pointer of dynamic function a. It can be understood that the use of status pointer and configuration pointer can realize flexible management and control of the configuration and status of each function in the adjustable function set. Then, by modifying the values ​​of the above configuration pointer and status pointer, the configuration and status of each function can be switched. In addition, using configuration pointer and dynamic pointer to load data can avoid loading all possible data into the memory when loading the data of dynamic function a, thereby saving memory resources. And the data corresponding to the pointer will only be loaded when it is needed, so as to realize dynamic loading of data to ensure that the SRAM area is controllable.

[0059] In addition, if Figure 6 As shown, the embodiment of the present application also provides an electronic device 100 for performing the above Figure 3 The data loading method shown. Specifically, Figure 6 According to an embodiment of the present application, a structural schematic diagram of an electronic device is provided.

[0060] like Figure 6 As shown, the electronic device 100 includes one or more processors 101, a system memory 102, a non-volatile memory (NVM) 103, an input / output (I / O) device 104, a communication interface 105, and a system control logic 106 for coupling the processor 101, the system memory 102, the non-volatile memory 103, the communication interface 105 and the input / output (I / O) device 104. Among them:

[0061] The processor 101 may include one or more processing units, for example, a central processing unit CPU (central processing unit), an image processor GPU (graphics processing unit), a digital signal processor DSP (digital signal processor), a microprocessor MCU (micro-programmed control unit), artificial intelligence (artificial intelligence, AI), a processor or a programmable logic device FPGA (fieldprogrammable gate array), a neural network processor (Neural-network Processing Unit, NPU), etc. The data processing unit or processing circuit may include one or more single-core or multi-core processors.

[0062] The system memory 102 is a volatile memory, such as a random-access memory (RAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), etc. The system memory is used to temporarily store data and / or instructions. For example, in some embodiments, the system memory 102 can be used to store parsed control instructions.

[0063] The non-volatile memory 103 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. In some embodiments, the non-volatile memory 103 may include any suitable non-volatile memory such as a flash memory and / or any suitable non-volatile storage device, such as a hard disk drive (HDD), a compact disc (CD), a digital versatile disc (DVD), a solid-state drive (SSD), etc. In some embodiments, the non-volatile memory 103 may also be a removable storage medium, such as a secure digital (SD) memory card, etc.

[0064] In particular, the system memory 102 and the non-volatile memory 103 may respectively include: a temporary copy and a permanent copy of the instruction 107. The instruction 107 may include: when executed by at least one of the processors 101, the electronic device 100 implements the data loading method provided in each embodiment of the present application.

[0065] The communication interface 105 may include a transceiver for providing a wired or wireless communication interface for the electronic device 100, thereby communicating with any other suitable device through one or more networks. In some embodiments, the communication interface 105 may be integrated into other components of the electronic device 100, for example, the communication interface 105 may be integrated into the processor 101. In some embodiments, the electronic device 100 may communicate with other devices through the communication interface 105.

[0066] The input / output (I / O) device 104 may include input devices such as a keyboard, a mouse, etc., and output devices such as a display, etc. A user may interact with the electronic device 100 via the input / output (I / O) device 104 .

[0067] System control logic 106 may include any suitable interface controller to provide any suitable interface with other modules of electronic device 100. For example, in some embodiments, system control logic 106 may include one or more memory controllers to provide interfaces to system memory 102 and non-volatile memory 103.

[0068] In some embodiments, at least one of the processors 101 may be packaged together with the logic of one or more controllers for the system control logic 106 to form a system in package (SiP). In other embodiments, at least one of the processors 101 may also be integrated with the logic of one or more controllers for the system control logic 106 on the same chip to form a system-on-chip (SOC).

[0069] Understandably, Figure 6 The structure of the electronic device 100 shown is only an example. In other embodiments, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware, which is not limited here.

[0070] The present application also provides a chip, the chip comprising the above Figure 6 The electronic device shown is used to execute the data loading method provided in the embodiment of the present application.

[0071] The embodiments of the present application also provide a computer program product for implementing the data loading methods provided in the above embodiments.

[0072] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer module or module code executed on a programmable system, and the programmable system includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.

[0073] The module code may be applied to input instructions to perform the functions described herein and generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

[0074] Module code can be implemented with high-level modular language or object-oriented programming language to communicate with the processing system. When necessary, module code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0075] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or tangible machine-readable memories for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Accordingly, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).

[0076] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a specific figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features. Reference to "one embodiment" or "embodiment" in the specification means that the specific features, structures or characteristics described in conjunction with the embodiment are included in at least one exemplary embodiment or technology disclosed according to the embodiment of the present application. The appearance of the phrase "in one embodiment" in various places in the specification does not necessarily all refer to the same embodiment.

[0077] The disclosure of the embodiment of the present application also relates to an operating device for executing the text. The device can be specially constructed for the required purpose or it can include a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program can be stored in a computer-readable medium, such as, but not limited to any type of disk, including a floppy disk, an optical disk, a CD-ROM, a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), an EPROM, an EEPROM, a magnetic or optical card, an application-specific integrated circuit (ASIC) or any type of medium suitable for storing electronic instructions, and each can be coupled to a computer system bus. In addition, the computer mentioned in the specification may include a single processor or may be an architecture involving multiple processors for increased computing power.

[0078] It should also be stated that the steps in the methods and processes in the embodiments of the present application are numbered for ease of reference, rather than to limit the order of precedence. If there is an order between the steps, the text description shall prevail.

[0079] In addition, the language used in this specification has been primarily selected for readability and instructional purposes and may not be selected to describe or limit the disclosed subject matter. Therefore, the present application embodiment disclosure is intended to illustrate rather than limit the scope of the concepts discussed herein.

Claims

1. A data loading method, applied to an electronic device, characterized in that: The method comprises: Divide the function set of the target business into a basic function set and an adjustable function set; Determine and compare the memory required by each function in the adjustable function set, and determine the maximum memory required by each function based on the comparison result; allocating a first storage memory to the set of adjustable functions based on the maximum required memory; When the electronic device needs to run a first function in the adjustable function set, loading the running parameters of the first function into the first storage memory; The first function is executed based on the operating parameters of the first function.

2. The method according to claim 1, characterized in that The method further comprises: When the electronic device does not need to run the first function in the adjustable function set, the running parameters of the first function are not loaded into the first storage memory.

3. The method according to claim 1, characterized in that: The method further comprises: When the electronic device needs to switch from the first function to a second function in the adjustable function set, deleting the operating parameters of the first function from the first storage memory; and Loading the operating parameters of the second function into the first storage memory; The second function is executed based on the operating parameters of the second function.

4. The method according to claim 1, characterized in that: The memory space of the first storage memory is the same as the memory space of the maximum required memory; or, The memory space of the first storage memory is larger than the memory space of the maximum required memory.

5. The method according to any one of claims 1 to 4, characterized in that: The operation parameters include configuration data and status data of the corresponding function, and the configuration data and the status data are used to implement the operation of the corresponding function.

6. The method according to any one of claims 1 to 4, characterized in that: The data of each function in the adjustable function set includes instruction data, configuration data and status data; Furthermore, the instruction data is stored in a second storage memory in the electronic device; When the electronic device has an operating requirement, the configuration data and the status data are loaded into the first storage memory based on the loading information of the operating requirement, wherein the second storage memory is different from the first storage memory, and the loading information is used to indicate the location where the configuration data and the status data are stored in the first storage memory.

7. The method according to claim 6, characterized in that The first storage memory includes: a configuration memory and a state memory, the configuration memory is used to store the configuration data of the corresponding function, and the state memory is used to store the state data of the corresponding function.

8. The method according to claim 7, characterized in that The loading information includes a configuration pointer and a status pointer of the corresponding function; The step of loading the configuration data and the status data into the first storage memory based on the loading information of the operation requirement includes: Loading the corresponding configuration data into the configuration memory based on the configuration pointer of the corresponding function; The corresponding state data is loaded into the state memory based on the state pointer of the corresponding function.

9. The method according to claim 6, characterized in that The second storage memory is a memory in a read-only memory of the electronic device, and the first storage memory is a memory in a static random access memory of the electronic device.

10. A chip, characterized in that: Used to execute a data loading method according to any one of claims 1 to 9.

11. An electronic device, characterized in that: include: one or more processors; One or more memories; the one or more memories store one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device executes the data loading method according to any one of claims 1 to 9.

12. A readable medium, characterized in that The readable medium stores instructions, and when the instructions are executed by an electronic device, the electronic device executes the data loading method according to any one of claims 1 to 9.