Chip-initiated initialization method and device, computer device and storage medium
By setting the entry initialization status register and control components within the chip, parallel initialization of chip entries is achieved, solving the problem of excessively long chip startup time and improving chip startup speed.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- WXILICON TECH CO LTD
- Filing Date
- 2022-11-14
- Publication Date
- 2026-06-16
Smart Images

Figure CN115858024B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of chip technology, and in particular to an initialization method, apparatus, computer device, and storage medium for chip startup. Background Technology
[0002] Ethernet switching chips are typically designed with a large number of entries, such as configuration entries or forwarding service entries. The number of entries may reach hundreds, and the capacity of each entry can reach thousands or tens of thousands of records.
[0003] Since a large number of entries in a chip are typically implemented using random access memory (RAM), and the contents of RAM are indeterminate (i.e., in the X state) after the chip is powered on and reset, the CPU generally needs to initialize and configure each entry in the chip after power-on.
[0004] Currently, the primary method for initializing entries in a chip is for the CPU to initialize each entry sequentially. Furthermore, because the number and capacity of entries to be initialized are relatively large, the initialization process takes a considerable amount of time. In scenarios with stringent requirements for chip startup time, existing methods for initializing chip entries often fail to meet these requirements. Summary of the Invention
[0005] Therefore, it is necessary to provide a chip startup initialization method, apparatus, computer device, and storage medium that can reduce chip startup time and improve chip entry initialization speed to address the above-mentioned technical problems.
[0006] An initialization method for chip startup, wherein the chip is equipped with an initialization status register and an initialization control component corresponding to each chip entry; the method includes:
[0007] When chip startup is detected, the initialization control component initializes and configures the corresponding chip table entry in the chip.
[0008] Query the parameter values of the initialization status register;
[0009] The initialization status register parameter value is used to confirm whether the chip has completed initialization.
[0010] In one embodiment, the initialization control component includes an entry read / write control circuit, an entry initialization control circuit, and an entry initialization status register;
[0011] The initialization configuration of the corresponding chip table entry in the chip through the initialization control component includes:
[0012] The initialization control component corresponding to each chip entry performs an initialization write operation on its respective chip entry.
[0013] Once the initialization write operation of the chip entry is completed, the parameter value of the entry initialization status register is updated to the initialization completion flag by the corresponding entry initialization control circuit.
[0014] In one embodiment, the initialization write operation performed on the corresponding chip table entries by the initialization control components includes:
[0015] An initialization instruction is sent to the entry initialization control circuit within the corresponding component through the entry initialization status register of the initialization control component corresponding to each chip entry; the initialization instruction is used to indicate the initialization write operation of the chip entry corresponding to the entry initialization status register.
[0016] The initialization control circuit receives the initialization command and controls the corresponding entry read / write control circuit to initiate an initialization write operation to the random access memory.
[0017] In one embodiment, the method further includes;
[0018] The updated parameter values are transmitted to the table initialization status register corresponding to each chip table entry through the table entry initialization status register;
[0019] Perform a logical OR operation on the parameter values of the initialization status register for each entry to obtain the initialization status identifier;
[0020] Update the parameter value of the initialization status register to the initialization status identifier.
[0021] In one embodiment, confirming whether the chip has completed initialization based on the parameter value of the initialization status register includes:
[0022] When the parameter value is an initialization completion flag, it is determined that the chip has completed initialization;
[0023] When the parameter value is a non-initialization completion flag, it is determined that the chip has not completed initialization.
[0024] In one embodiment, the initialization configuration of the corresponding chip entry in the chip via the initialization control component includes:
[0025] The chip entry to be initialized is determined from the plurality of chip entries as the target chip entry;
[0026] Write a non-initialization completion flag into the entry initialization status register corresponding to the target chip entry;
[0027] The target chip entry is initialized and configured using the initialization control component corresponding to the target chip entry.
[0028] In one embodiment, the method further includes:
[0029] Query the parameter values of the initialization register in the initialization control component of the target chip entry;
[0030] Determine whether the target chip entry has completed initialization based on the parameter value of the current initialization status register.
[0031] An initialization device for chip startup, wherein the chip is provided with an entry initialization status register and an initialization control component corresponding to each chip entry; the device includes:
[0032] An initialization configuration module is used to initialize and configure the corresponding chip table entries in the chip through the initialization control component when the chip is detected to be starting up.
[0033] The register parameter value query module is used to query the parameter values of the initialization status register;
[0034] The chip initialization confirmation module is used to confirm whether the chip has completed initialization based on the parameter value of the initialization status register.
[0035] A chip includes one or more chip entries, an initialization status register, and an initialization control component corresponding to each chip entry; the initialization control component includes an entry read / write control circuit, an entry initialization control circuit, and an entry initialization status register.
[0036] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the chip startup initialization method in the above embodiments.
[0037] A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the initialization method for chip startup in the above embodiments.
[0038] The aforementioned chip startup initialization method, apparatus, computer device, and storage medium, by setting an entry initialization status register within the chip and setting a corresponding initialization control component for each chip entry, allow the CPU to simultaneously control the initialization control component of each chip entry to perform initialization configuration during chip power-on. Furthermore, the initialization configuration of each chip entry can be performed in parallel, thereby improving the initialization speed of the chip entries. Further, the CPU determines whether the initialization configuration of each chip entry is complete by querying the parameter values of the entry initialization status register, thus determining whether the chip initialization is complete, further improving the chip startup speed. Moreover, the CPU can perform initialization configuration for one or more specified chip entries, further improving the chip startup speed, and can also customize the initialization configuration of chip entries. Attached Figure Description
[0039] Figure 1 This is an application scenario diagram of the chip startup initialization method in one embodiment;
[0040] Figure 2 This is an application scenario diagram of the chip startup initialization method in another embodiment;
[0041] Figure 3 This is a flowchart illustrating the initialization method for chip startup in one embodiment;
[0042] Figure 4 This is a structural block diagram of the initialization device for chip startup in one embodiment;
[0043] Figure 5 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0044] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0045] Ethernet switching chips typically contain a large number of configuration entries or forwarding service entries, resulting in a vast number of entries. In one embodiment, such as... Figure 1The figure illustrates an application scenario of a chip startup initialization method in one embodiment. As can be seen from the figure, the chip startup initialization system includes a central processing unit (CPU) 102 and a chip 104. The CPU 102 and chip 104 are connected via a CPU interface bus 112. Chip 104 contains one or more chip entries 106, a CPU interface circuit 108, and a corresponding entry read / write control circuit 110. The chip entries 106 are business logic entries 0 to n, as shown in the figure.
[0046] Each chip entry has a corresponding read / write control circuit, and each read / write control circuit is connected to the CPU interface circuit. The CPU initializes and configures the corresponding chip entry through the read / write control circuit. The CPU initializes each entry sequentially, and the initialization process is quite lengthy due to the large number and capacity of the entries to be initialized. In scenarios with stringent requirements for chip startup time, existing methods for initializing chip entries often fail to meet the requirements.
[0047] In one embodiment, the chip startup initialization method provided in this application can be applied to, for example... Figure 2 The application environment shown illustrates this chip startup initialization method, which is applied in a chip startup initialization system. This system includes a central processing unit (CPU) 202 and a chip 204. The chip 204 contains one or more chip entries 206, an entry initialization status register 208, an initialization control component 210, and a CPU interface circuit 212. The CPU 202 and chip 204 are connected via a CPU interface bus 214. The CPU 202 also contains a chip configuration management program and initialization software. Each chip entry 206 corresponds to an initialization control component 210, which performs initialization configuration on the corresponding chip entry 206.
[0048] The initialization control component 210 includes an entry read / write control circuit 2101, an entry initialization control circuit 2202, and an entry initialization status register 2103. Specifically, for each chip entry, the entry initialization control circuit 2202 is connected to both the entry read / write control circuit 2101 and the entry initialization status register 2103.
[0049] The entry read / write control circuit 2101 and the entry initialization status register 2103 corresponding to each chip entry 206 are respectively connected to the CPU interface circuit 212. The CPU interface circuit 212 is also connected to the entry initialization status register 208.
[0050] Each chip entry 206 corresponds to an entry initialization status register 2103 connected to an entry initialization status register 208; and the entry initialization status register 208 has a logical OR relationship, that is, the parameter values of each entry initialization status register 2103 can be logically ORed to obtain the calculation result, and the calculation result is stored in the entry initialization status register 208 as the chip initialization status identifier.
[0051] The table entry initialization status register 2103 also includes a chip reset signal. When the chip powers on, the CPU's initialization software sends an initialization command to the initialization control component 210, instructing it to initialize and configure the corresponding chip table entry 206. Inside the initialization control component 210, when the chip 204 powers on, after the chip reset signal of the table entry initialization status register 2103 corresponding to each chip table entry 206 is de-reset, the table entry initialization status register 2103 sends an initialization command to the corresponding table entry initialization control circuit 2202 to indicate the initial write operation of the chip table entry 206 corresponding to the table entry initialization status register 2103.
[0052] CPU202 and chip 204 can be located in a terminal or server. The terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablets and portable wearable devices. The server can be a standalone server or a server cluster composed of multiple servers.
[0053] In one embodiment, the chip startup initialization method of this solution is adopted in the chip, which can support hardware-assisted automatic initialization, reduce the initial software time during chip startup, ensure rapid chip startup, and meet the stringent chip startup time requirements.
[0054] In one embodiment, such as Figure 3 As shown, a chip startup initialization method is provided, which can be applied to... Figure 1 Taking CPU 202 as an example, the explanation includes the following steps:
[0055] Step S302: When the chip is detected to be starting up, the corresponding chip table entry in the chip is initialized and configured through the initialization control component.
[0056] Initialization configuration refers to configuring the initial content of chip entries, such as initialization write operation, which writes initial content to chip entries, such as 0, 1 or a specific sequence.
[0057] The chip includes one or more chip entries, each with a corresponding initialization control component. The initialization control component includes an entry read / write control circuit, an entry initialization control circuit, and an entry initialization status register. The entry initialization control circuit is connected to both the entry read / write control circuit and the entry initialization status register; both the entry read / write control circuit and the entry initialization status register are connected to the CPU interface circuit.
[0058] Specifically, when the chip powers on, after the chip reset signal is de-reset, the CPU initializes the corresponding chip table entry through the initialization control component. That is, the CPU sends an initialization configuration command to the CPU interface circuit via the CPU interface bus. The CPU interface circuit then distributes the initialization configuration command to the initialization control component corresponding to each chip table entry, instructing the corresponding chip table entry's initialization control component to initialize the chip table entry.
[0059] In one embodiment, the initialization control component includes an entry read / write control circuit, an entry initialization control circuit, and an entry initialization status register. The initialization configuration of the corresponding chip entries in the chip via the initialization control component includes: performing an initialization write operation on each corresponding chip entry via the initialization control component; and updating the parameter value of the entry initialization status register to an initialization completion identifier via the corresponding entry initialization control circuit after the initialization write operation of the chip entry is completed.
[0060] In one embodiment, the initialization write operation performed on the corresponding chip entries by the initialization control components includes: sending an initialization instruction to the entry initialization control circuit within the corresponding component through the entry initialization status register of the initialization control component; the initialization instruction is used to indicate the initialization write operation of the chip entry corresponding to the entry initialization status register; and receiving the initialization instruction through the initialization control circuit, controlling the entry read / write control circuit within the corresponding component to initiate an initialization write operation to the random access memory.
[0061] The random access memory (RAM) stores in uncertain values, also known as the X state, after the chip is powered on and reset. Therefore, the chip entries need to be initialized and configured after the chip starts up.
[0062] After the initialization write operation of the corresponding chip entry is completed, the parameter value of the initialization status register of the corresponding chip entry (i.e., the entry belonging to the same initialization control component) is updated to the initialization completion flag through the entry initialization control circuit. The parameter values of the registers stored within the entry are then transferred to the initialization status register through the entry initialization status register. The initialization completion flag indicates that the initialization operation of the chip entry has been completed; for example, it can be indicated by a parameter value of 0 or a parameter value of 1.
[0063] Once the initialization write operation of all chip entries within the chip is completed, the initialization status register will receive the parameter values of the initialization status registers of each entry, perform a logical OR operation on each parameter value to obtain a calculated value, and store the calculated value in the initialization status register as an initialization status identifier. The CPU can confirm whether all chip entries have completed initialization configuration by querying the parameter values of the initialization status register.
[0064] Step S304: Query the parameter values of the initialization status register.
[0065] The CPU queries the parameter values of the initialization status register and determines whether each chip entry has completed the initialization write operation based on the parameter values, thereby determining whether the chip has completed initialization.
[0066] Step S306: Confirm whether the chip has completed initialization based on the parameter value of the status register initialized by the table entry.
[0067] In one embodiment, the method further includes: transmitting updated parameter values to the initialization status register through the entry initialization status register corresponding to each chip entry; performing a logical OR operation on the parameter values of each entry initialization status register to obtain an initialization status identifier; and updating the parameter values of the initialization status register to the initialization status identifier.
[0068] The initialization status identifier includes an initialization complete identifier and a non-initialization complete identifier.
[0069] In one embodiment, determining whether the chip has completed initialization based on the parameter value of the initialization status register includes: when the parameter value is an initialization completion flag, determining that the chip has completed initialization; when the parameter value is a non-initialization completion flag, determining that the chip has not completed initialization.
[0070] In one embodiment, the initialization configuration of the corresponding chip entry in the chip via the initialization control component includes: determining a chip entry to be initialized as a target chip entry from a plurality of chip entries; writing a non-initialization completion flag to the entry initialization status register corresponding to the target chip entry; and initializing the target chip entry via the initialization control component corresponding to the target chip entry. The CPU can initialize and configure not only all chip entries but also specified chip entries. Specifically, the CPU determines the target chip entry to be initialized from a plurality of chip entries and then writes a non-initialization completion flag to the entry initialization status register of the target chip entry to indicate that the target chip entry should be initialized and configured. The target chip entry can be one or more, and the initialization configuration of the target chip entry can be processed in parallel or sequentially. Furthermore, the target chip entry is initialized and configured via the initialization control component corresponding to the target chip entry. The initial configuration steps for the target chip entry are the same as the steps for initializing and configuring a general chip entry described in the above embodiments and will not be repeated here.
[0071] In one embodiment, after the initialization configuration of the target chip is completed, the method further includes: the CPU querying the parameter value of the initialization register in the initialization control component of the target chip entry; and determining whether the chip entry has completed initialization based on the current parameter value of the initialization register. If the parameter value of the current initialization status register of the target chip is an initialization completion flag, it indicates that the target chip entry has completed initialization configuration; if the parameter value of the current initialization status register of the target chip is a non-initialization completion flag, it indicates that the target chip entry has not completed initialization configuration.
[0072] In the aforementioned chip startup initialization method, by setting an entry initialization status register within the chip and configuring a corresponding initialization control component for each chip entry, the CPU can simultaneously control the initialization control component of each chip entry to perform initialization configuration during chip power-on. Furthermore, the initialization configuration of each chip entry can be performed in parallel, thereby improving the initialization speed of the chip entries. Further, the CPU determines whether the initialization configuration of each chip entry is complete by querying the parameter values of the entry initialization status register, thus determining whether the chip initialization is complete and reducing the chip startup time. Moreover, the CPU can perform initialization configuration for one or more specified chip entries, further improving the chip startup speed.
[0073] It should be understood that, although Figure 3The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 3 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
[0074] In one embodiment, such as Figure 4 As shown, a chip startup initialization device 400 is provided, including: an initialization configuration module 402, a register parameter value query module 404, and a chip initialization confirmation module 406, wherein:
[0075] The initialization configuration module 402 is used to initialize and configure the corresponding chip table entries in the chip through the initialization control component when the chip is detected to be starting up.
[0076] The register parameter value query module 404 is used to query the parameter values of the initialization status register.
[0077] The chip initialization confirmation module 406 is used to confirm whether the chip has completed initialization based on the parameter value of the initialization status register.
[0078] In one embodiment, the initialization configuration module is further configured to perform an initialization write operation on the corresponding chip entry through the initialization control component corresponding to each chip entry; after the initialization write operation of the chip entry is completed, the parameter value of the entry initialization status register is updated to the initialization completion identifier through the corresponding entry initialization control circuit.
[0079] In one embodiment, the initialization configuration module is further configured to send an initialization instruction to the entry initialization control circuit within the corresponding component through the entry initialization status register of the initialization control component corresponding to each chip entry; the initialization instruction is used to instruct the chip entry corresponding to the entry initialization status register to perform an initialization write operation; and the initialization control circuit receives the initialization instruction and controls the entry read / write control circuit within the corresponding component to initiate an initialization write operation to the random access memory.
[0080] In one embodiment, the device further includes an initialization status register module, configured to transmit updated parameter values to the table initialization status register through the table initialization status register corresponding to each chip table entry; perform a logical OR operation on the parameter values of each table initialization status register to obtain an initialization status identifier; and update the parameter values of the initialization status register to the initialization status identifier.
[0081] In one embodiment, the chip initialization confirmation module is further configured to determine that the chip has completed initialization when the parameter value is an initialization completion identifier; and to determine that the chip has not completed initialization when the parameter value is a non-initialization completion identifier.
[0082] In one embodiment, the initialization configuration module is further configured to determine the chip entry to be initialized as the target chip entry from a plurality of chip entries; write a non-initialization completion flag into the entry initialization status register corresponding to the target chip entry; and perform initialization configuration on the target chip entry through the initialization control component corresponding to the target chip entry.
[0083] In one embodiment, the initialization configuration module is further configured to query the parameter value of the initialization register in the initialization control component of the target chip entry; and determine whether the target chip entry has completed initialization based on the current parameter value of the initialization status register.
[0084] In the aforementioned chip startup initialization device, by setting an entry initialization status register within the chip and configuring a corresponding initialization control component for each chip entry, the CPU can simultaneously control the initialization control component of each chip entry to perform initialization configuration during chip power-on. Furthermore, the initialization configuration of each chip entry can be performed in parallel, thereby improving the initialization speed of the chip entries. Further, the CPU determines whether the initialization configuration of each chip entry is complete by querying the parameter values of the entry initialization status register, thus determining whether the chip initialization is complete and reducing the chip startup time. Moreover, the CPU can perform initialization configuration for one or more specified chip entries, further improving the chip startup speed.
[0085] Specific limitations regarding the initialization device for chip booting can be found in the limitations on the initialization method for chip booting described above, and will not be repeated here. Each module in the aforementioned initialization device for chip booting can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware or independently of the processor in the computer device, or stored in software in the memory of the computer device, so that the processor can call and execute the operations corresponding to each module.
[0086] In one embodiment, a computer device is provided, which may be a terminal. The terminal may contain a chip, the structure of which may be provided in this solution. The internal structure diagram of the terminal can be as follows: Figure 5 As shown, the computer device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a chip startup initialization method. The display screen can be a liquid crystal display (LCD) or an e-ink display. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.
[0087] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0088] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps: when a chip startup is detected, initializing and configuring the corresponding chip entry in the chip through the initialization control component; querying the parameter value of the initialization status register; and confirming whether the chip has completed initialization based on the parameter value of the initialization status register.
[0089] In one embodiment, when the processor executes the computer program, it further performs the following steps: performing an initialization write operation on the corresponding chip entry through the initialization control component corresponding to each chip entry; after the initialization write operation of the chip entry is completed, updating the parameter value of the entry initialization status register to the initialization completion identifier through the corresponding entry initialization control circuit.
[0090] In one embodiment, when the processor executes the computer program, it further performs the following steps: sending an initialization instruction to the entry initialization control circuit within the corresponding component through the entry initialization status register of the initialization control component corresponding to each chip entry; the initialization instruction is used to instruct the chip entry corresponding to the entry initialization status register to perform an initialization write operation; and receiving the initialization instruction through the initialization control circuit, controlling the entry read / write control circuit within the corresponding component to initiate an initialization write operation to the random access memory.
[0091] In one embodiment, when the processor executes the computer program, it further performs the following steps: transmitting the updated parameter value to the table initialization status register through the table initialization status register corresponding to each chip table entry; performing a logical OR operation on the parameter value of each table initialization status register to obtain an initialization status identifier; and updating the parameter value of the initialization status register to the initialization status identifier.
[0092] In one embodiment, when the processor executes the computer program, it further implements the following steps: when the parameter value is an initialization completion flag, it determines that the chip has completed initialization; when the parameter value is a non-initialization completion flag, it determines that the chip has not completed initialization.
[0093] In one embodiment, when the processor executes the computer program, it further performs the following steps: determining a chip entry to be initialized from a plurality of chip entries as a target chip entry; writing a non-initialization completion flag into the entry initialization status register corresponding to the target chip entry; and initializing the target chip entry through the initialization control component corresponding to the target chip entry.
[0094] In one embodiment, when the processor executes the computer program, it further performs the following steps: querying the parameter value of the initialization register in the initialization control component of the target chip entry; and determining whether the target chip entry has completed initialization based on the parameter value of the current initialization status register.
[0095] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, it performs the following steps: when a chip startup is detected, the initialization control component initializes and configures the corresponding chip entry in the chip; queries the parameter value of the initialization status register; and confirms whether the chip has completed initialization based on the parameter value of the initialization status register.
[0096] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: performing an initialization write operation on the corresponding chip entry through the initialization control component corresponding to each chip entry; after the initialization write operation of the chip entry is completed, updating the parameter value of the entry initialization status register to the initialization completion identifier through the corresponding entry initialization control circuit.
[0097] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: sending an initialization instruction to the entry initialization control circuit within the corresponding component through the entry initialization status register of the initialization control component corresponding to each chip entry; the initialization instruction is used to instruct the chip entry corresponding to the entry initialization status register to perform an initialization write operation; and receiving the initialization instruction through the initialization control circuit, controlling the entry read / write control circuit within the corresponding component to initiate an initialization write operation to the random access memory.
[0098] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: transmitting the updated parameter value to the table initialization status register through the table initialization status register corresponding to each chip table entry; performing a logical OR operation on the parameter value of each table initialization status register to obtain an initialization status identifier; and updating the parameter value of the initialization status register to the initialization status identifier.
[0099] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the parameter value is an initialization completion flag, it determines that the chip has completed initialization; when the parameter value is a non-initialization completion flag, it determines that the chip has not completed initialization.
[0100] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: determining a chip entry to be initialized from a plurality of chip entries as a target chip entry; writing a non-initialization completion flag into the entry initialization status register corresponding to the target chip entry; and initializing the target chip entry through the initialization control component corresponding to the target chip entry.
[0101] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: querying the parameter value of the initialization register in the initialization control component of the target chip entry; and determining whether the target chip entry has completed initialization based on the parameter value of the current initialization status register.
[0102] In the aforementioned chip-based initialization computer equipment and storage medium, by setting an entry initialization status register within the chip and configuring a corresponding initialization control component for each chip entry, the CPU can simultaneously control the initialization control component of each chip entry to perform initialization configuration during chip power-on. Furthermore, the initialization configuration of each chip entry can be performed in parallel, thereby improving the initialization speed of the chip entries. Further, the CPU determines whether the initialization configuration of each chip entry is complete by querying the parameter values of the entry initialization status register, thus determining whether the chip initialization is complete and reducing the chip startup time. Moreover, the CPU can perform initialization configuration for one or more specified chip entries, further improving the chip startup speed.
[0103] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0104] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0105] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A chip startup initialization method, characterized in that, The chip is equipped with an initialization status register and an initialization control component corresponding to each chip entry; the initialization control component includes an entry read / write control circuit, an entry initialization control circuit, and an entry initialization status register; the method includes: When chip startup is detected, the initialization control component initializes the corresponding chip entries in the chip. Specifically, this includes: after de-resetting the chip reset signal of the entry initialization status register of the initialization control component corresponding to each chip entry, sending an initialization command to the entry initialization control circuit within the corresponding component; the initialization command instructs the chip entry corresponding to the entry initialization status register to perform an initialization write operation; the initialization control circuit receives the initialization command and controls the entry read / write control circuit within the corresponding component to initiate an initialization write operation to the random access memory; after the initialization write operation of the chip entry is completed, the corresponding entry initialization control circuit updates the parameter value of the entry initialization status register to an initialization completion flag. The updated parameter value is transmitted to the initialization status register corresponding to each chip entry; the parameter value of each entry initialization status register is logically ORed to obtain the initialization status identifier; the parameter value of the initialization status register is updated to the initialization status identifier. Query the parameter values of the initialization status register; The initialization status register parameter value is used to confirm whether the chip has completed initialization.
2. The method according to claim 1, characterized in that, The step of confirming whether the chip has completed initialization based on the parameter value of the initialization status register includes: When the parameter value is an initialization completion flag, it is determined that the chip has completed initialization; When the parameter value is a non-initialization completion flag, it is determined that the chip has not completed initialization.
3. The method according to claim 1, characterized in that, The initialization configuration of the corresponding chip table entry in the chip through the initialization control component includes: The chip entry to be initialized is determined from the plurality of chip entries as the target chip entry; Write a non-initialization completion flag into the entry initialization status register corresponding to the target chip entry; The target chip entry is initialized and configured using the initialization control component corresponding to the target chip entry.
4. The method according to claim 3, characterized in that, The method further includes: Query the parameter values of the initialization register in the initialization control component of the target chip entry; Determine whether the target chip entry has completed initialization based on the parameter value of the current initialization status register.
5. A chip startup initialization device, wherein the chip is provided with an entry initialization status register and an initialization control component corresponding to each chip entry; the initialization control component includes an entry read / write control circuit, an entry initialization control circuit, and an entry initialization status register; characterized in that, The device includes: An initialization configuration module is used to initialize and configure the corresponding chip entries in the chip through the initialization control component when chip startup is detected. Specifically, this includes: after de-resetting the chip reset signal of the entry initialization status register of the initialization control component corresponding to each chip entry, sending an initialization command to the entry initialization control circuit within the corresponding component; the initialization command instructing an initialization write operation for the chip entry corresponding to the entry initialization status register; receiving the initialization command through the initialization control circuit and controlling the entry read / write control circuit within the corresponding component to initiate an initialization write operation to the random access memory; after the initialization write operation of the chip entry is completed, updating the parameter value of the entry initialization status register to an initialization completion identifier through the corresponding entry initialization control circuit; transmitting the updated parameter value to the initialization status register through the entry initialization status register corresponding to each chip entry; performing a logical OR operation on the parameter value of each entry initialization status register to obtain an initialization status identifier; and updating the parameter value of the initialization status register to the initialization status identifier. The register parameter value query module is used to query the parameter values of the initialization status register; The chip initialization confirmation module is used to confirm whether the chip has completed initialization based on the parameter value of the initialization status register.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.
7. A chip, used in the method according to any one of claims 1 to 4, characterized in that, The chip includes one or more chip entries, an initialization status register, and an initialization control component corresponding to each chip entry; the initialization control component includes an entry read / write control circuit, an entry initialization control circuit, and an entry initialization status register.