CN-121979573-A - DNOC register configuration method and device and electronic equipment
Abstract
The application relates to the technical field of processor systems and discloses a register configuration method, a device and electronic equipment of DNOC, wherein the DNOC is used for configuring and managing data interconnection paths among a plurality of target processors in a multiprocessor system; the register configuration file is obtained by filling configuration information of a register to be configured on the basis of a standardized configuration template which is generated according to DNOC register configuration rules, generating a DNOC identifiable configuration instruction on the basis of the extracted configuration information of the register to be configured, and sending the configuration instruction to the DNOC to complete register configuration of the DNOC. The unified configuration framework and the flow automation are realized through the standardized configuration template, so that the configuration complexity and the maintenance cost are obviously reduced, and the debugging efficiency is improved.
Inventors
- WEI PENGFEI
- CONG GAOJIAN
- XU XINQUAN
Assignees
- 沐曦集成电路(上海)股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260409
Claims (10)
- 1. A method of register configuration for a data network on chip DNOC for configuring and managing data interconnect paths between a plurality of target processors in a multiprocessor system, the method comprising the steps of: When the DNOC registers are required to be configured, reading a pre-stored register configuration file from a preset storage medium and extracting configuration information of the registers to be configured, wherein the register configuration file is obtained by filling the configuration information of the registers to be configured on the basis of a standardized configuration template which is generated according to DNOC register configuration rules; generating a configuration instruction which can be identified by the DNOC based on the extracted configuration information of the register to be configured; And sending the configuration instruction to the DNOC to complete the register configuration of the DNOC.
- 2. The method of claim 1, wherein the standardized configuration templates are taken from a predefined configuration template database; the configuration template database provides a unique corresponding standardized configuration template for each configuration scene in the multiprocessor system; Each standardized configuration template at least comprises a configuration scene identifier, a register address and a configuration value field of a register related to a corresponding configuration scene in the DNOC, wherein the configuration value field is used for providing a standardized placeholder for filling corresponding configuration value information when generating a register configuration file; The configuration scene refers to a specific hardware environment which is defined by a system topology structure of the multiprocessor system and a target processor together and is required to independently configure DNOC registers, different combinations of the system topology structure and the target processor correspond to different configuration scenes, and the target processor is selected from any one of a single-chip processor and a core particle in a multi-core processor.
- 3. The method of claim 2, wherein the configuration scenario identification comprises a system topology identification and a target processor identification.
- 4. The method of claim 3, wherein when the target processor is a single-die processor, the target processor identification is a processor identification of a single-die processor, and when the target processor is a die within a multi-die processor, the target processor identification comprises a processor identification of the multi-die processor and a die identification of a corresponding die.
- 5. The method according to any of claims 2 to 4, wherein in the standardized configuration template, the configuration value field supports at least one of the following numerical provision forms: A constant type providing a fixed value written directly into the register; an expression type providing an expression comprising at least one calculation parameter; An enumeration type, providing a selectable enumeration value selected from a predefined set of values.
- 6. The method of claim 5, wherein when the value of the configuration value field is provided in the form of an expression type, the method further comprises the steps of: Obtaining an expression from the extracted configuration information of the register to be configured, and obtaining the current system value of each calculation parameter in the expression; Calculating the value of the expression based on the current system value of each calculation parameter, and using the calculation result as the final value of the configuration value field to generate a configuration instruction.
- 7. The method according to any one of claims 2 to 4, wherein the preset storage medium comprises a plurality of configuration storage partitions, each configuration storage partition uniquely corresponding to a configuration scenario; each configuration storage partition includes: The head block is used for storing configuration scene identifiers of corresponding configuration scenes for positioning and matching the configuration scenes; And the data block is used for storing the register address and the configuration value information of the register to be configured in the DNOC under the corresponding configuration scene.
- 8. The method according to claim 7, wherein the reading a pre-stored register configuration file from a pre-set storage medium and extracting configuration information of a register to be configured specifically comprises: Determining a target configuration scene identifier based on the configuration scene of the current system; searching a target configuration storage partition of which the head block contains the target configuration scene identifier in the preset storage medium; and extracting register address and configuration value information of a register to be configured from the data block of the target configuration storage partition.
- 9. A register configuration apparatus of a data network on chip DNOC for configuring and managing data interconnect paths among a plurality of target processors in a multiprocessor system, the apparatus comprising: The information extraction module is used for reading a pre-stored register configuration file from a preset storage medium and extracting configuration information of a register to be configured when the register of the DNOC is required to be configured, wherein the register configuration file is obtained by filling the configuration information of the register to be configured on the basis of a standardized configuration template which is generated according to DNOC register configuration rules; the instruction generation module is used for generating a configuration instruction which can be identified by the DNOC based on the extracted configuration information of the register to be configured; And the execution sending module is used for sending the configuration instruction to the DNOC and completing the register configuration of the DNOC.
- 10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 8 when the computer program is executed.
Description
DNOC register configuration method and device and electronic equipment Technical Field The present application relates to the field of processor systems, and in particular, to a method and an apparatus for configuring a register of a DNOC, and an electronic device. Background DNOC (Data Network On Chip, network on chip) is a core data transmission architecture in a multiprocessor system, and is responsible for establishing a data migration channel between target processors, and the register configuration precision and efficiency of the DNOC directly affect the overall performance of the system. To improve the flexibility and performance of multiprocessor system deployment, DNOC modules have added a number of configurable registers, but this also presents significant challenges for subsequent software adaptation operations, embodied in three ways: First, register configuration is extremely complex and understanding costs are extremely high. The number of the newly added registers of the DNOC is large, the functions of the registers are complex, the configuration rules are complex, a software team needs to deeply read a programming guide to correctly use the registers, the software team is required to directly write the configuration code of each register in a driver program manually, configuration errors are easily caused by understanding deviation or negligence, and the errors are often difficult to find in a coding stage. Secondly, the debugging efficiency is low, and the resource waste is serious. Firmware/drive failures due to register understanding bias or manual coding errors occur frequently during the post-chip emulation and emulator testing phases. These problems require hardware and software team collaborative debugging to locate, consume significant human resources and severely extend project cycles. Third, the risk of development increases significantly. The software team needs to invest a lot of time to comb the register function, write and verify the register configuration codes, and the hardware team needs to continuously intervene in debugging the test failure caused by understanding the error. And the manually written configuration codes lack structural organization, and codes of different configuration scenes are mixed, so that multiplexing and maintenance are difficult. This introduces a great uncertainty to the development of drivers and firmware, increasing project delays and product stability risks. The prior art lacks a systematic DNOC register configuration management mechanism, and the configuration information is decentralized and difficult to multiplex. In view of the large-scale, multi-scenario register configuration requirement, a solution is needed that can reduce configuration complexity, improve accuracy, and reduce debug costs. Disclosure of Invention The embodiment of the application provides a register configuration method, a device and electronic equipment of DNOC, which realize configuration framework unification and flow automation through a standardized configuration template, obviously reduce configuration complexity and maintenance cost and improve debugging efficiency. In a first aspect, an embodiment of the present application provides a register configuration method of a DNOC for configuring and managing a data interconnection path between a plurality of target processors in a multiprocessor system, the method comprising the steps of: When the DNOC registers are required to be configured, reading a pre-stored register configuration file from a preset storage medium and extracting configuration information of the registers to be configured, wherein the register configuration file is obtained by filling the configuration information of the registers to be configured on the basis of a standardized configuration template which is generated according to DNOC register configuration rules; generating a configuration instruction which can be identified by the DNOC based on the extracted configuration information of the register to be configured; And sending the configuration instruction to the DNOC to complete the register configuration of the DNOC. Optionally, the standardized configuration template is taken from a predefined configuration template database; the configuration template database provides a unique corresponding standardized configuration template for each configuration scene in the multiprocessor system; Each standardized configuration template at least comprises a configuration scene identifier, a register address and a configuration value field of a register related to a corresponding configuration scene in the DNOC, wherein the configuration value field is used for providing a standardized placeholder for filling corresponding configuration value information when generating a register configuration file; The configuration scene refers to a specific hardware environment which is defined by a system topology structure of the multiprocessor system and a targ