Register Configuration Method, Apparatus and Related Devices

By obtaining and synthesizing the path information of SOC registers and automatically configuring the registers, the problem of the SOC register initialization process taking too long is solved, and the chip verification efficiency is improved.

CN114880045BActive Publication Date: 2025-06-13HYGON INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210520414.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-13
Publication Date
2025-06-13
Estimated Expiration
2042-05-13

AI Technical Summary

Technical Problem

In the SOC testing and verification process, the register initialization process takes too long, resulting in inefficient chip verification iteration.

Method used

By obtaining the identification information of the register to be configured, searching for module path information and internal path information, synthesizing the path information of the register, and configuring the registers based on the path information.

Benefits of technology

There is no need for manual confirmation and filling in register paths one by one, which shortens the initial configuration process and improves the efficiency of chip verification iteration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114880045B_ABST
    Figure CN114880045B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a register configuration method, apparatus and related device. The method includes: obtaining identification information of a register to be configured, where the identification information includes a module identifier of a module to which the register to be configured belongs and a register identifier; looking up module path information corresponding to the module identifier and internal path information corresponding to the register identifier, where the internal path information is path information of the register to be configured within the module; synthesizing path information of the register to be configured based on the module path information and the internal path information; and configuring the register to be configured according to the path information of the register to be configured. It can be seen that, based on backdoor access, the embodiment of the present invention determines the path information of the register to be configured through the identification information of the register to be configured, so that manual confirmation and filling in one by one are not required, shortening the initialization configuration process and improving the efficiency of chip verification iteration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of chip testing, and particularly to a register configuration method, apparatus and related devices. Background Art

[0002] In the test and verification process of a SOC (System-on-a-Chip), it is necessary to initialize the registers of the SOC to write corresponding configuration information into the registers of the SOC. However, in this register initialization process, the number of registers to be configured is large, and the initialization process takes too long, thus reducing the efficiency of chip verification iteration. Summary of the Invention

[0003] In view of this, the embodiments of the present invention provide a register configuration method, apparatus and related devices to avoid possible circuit design errors caused by incorrect marking voltages.

[0004] To achieve the above object, the embodiments of the present invention provide the following technical solutions.

[0005] In a first aspect, the embodiments of the present invention provide a register configuration method, including:

[0006] Obtaining identification information of a register to be configured, where the identification information includes a module identifier of a module to which the register to be configured belongs and a register identifier;

[0007] Searching for module path information corresponding to the module identifier and internal path information corresponding to the register identifier, where the internal path information is the path information of the register to be configured within the module;

[0008] Based on the module path information and the internal path information, synthesizing path information of the register to be configured;

[0009] Configuring the register to be configured according to the path information of the register to be configured.

[0010] Optionally, the searching for module path information corresponding to the module identifier and internal path information corresponding to the register identifier includes:

[0011] Based on the module identifier, searching for module path information corresponding to the module identifier in a component verification environment;

[0012] Based on the register identifier, searching for internal path information corresponding to the register identifier in a register model.

[0013] Optionally, there is no redundant information other than the path information in the module path information and the internal path information. Synthesizing the path information of the register to be configured based on the module path information and the internal path information includes:

[0014] Concatenate the module path information and the internal path information to obtain the path information of the register to be configured.

[0015] Optionally, there is redundant information other than the path information in the module path information and the internal path information. Synthesizing the path information of the register to be configured based on the module path information and the internal path information includes:

[0016] Extract the path information from the module path information and the internal path information;

[0017] Concatenate the extracted path information to obtain the path information of the register to be configured.

[0018] Optionally, in the step of obtaining the identification information of the register to be configured, the configuration information of the register to be configured is also obtained;

[0019] Configuring the register to be configured according to the path information of the register to be configured specifically means: configuring the configuration information of the register to be configured to the register pointed to by the path information.

[0020] Optionally, after obtaining the identification information of the register to be configured and before searching for the module path information corresponding to the module identification and the internal path information corresponding to the register identification, it further includes:

[0021] Start the verification environment corresponding to the register to be configured.

[0022] In a second aspect, an embodiment of the present invention provides a register configuration device, including:

[0023] An information acquisition module, configured to acquire the identification information of a register to be configured, where the identification information includes the module identification and the register identification of the module to which the register to be configured belongs;

[0024] An information search module, configured to search for the module path information corresponding to the module identification and the internal path information corresponding to the register identification, where the internal path information is the path information of the register to be configured within the module;

[0025] A synthesis module, configured to synthesize the path information of the register to be configured based on the module path information and the internal path information;

[0026] A configuration module, configured to configure the register to be configured according to the path information of the register to be configured.

[0027] Optionally, the information lookup module is configured to look up the module path information corresponding to the module identifier and the internal path information corresponding to the register identifier, and includes:

[0028] Based on the module identifier, look up the module path information corresponding to the module identifier in the component verification environment;

[0029] Based on the register identifier, look up the internal path information corresponding to the register identifier in the register model.

[0030] Optionally, there is no redundant information other than the path information in the module path information and the internal path information. The synthesis module is configured to synthesize the path information of the register to be configured based on the module path information and the internal path information, and includes:

[0031] Concatenate the module path information and the internal path information to obtain the path information of the register to be configured.

[0032] Optionally, there is redundant information other than the path information in the module path information and the internal path information. The synthesis module is configured to synthesize the path information of the register to be configured based on the module path information and the internal path information, and includes:

[0033] Extract the path information from the module path information and the internal path information;

[0034] Concatenate the extracted path information to obtain the path information of the register to be configured.

[0035] Optionally, the information acquisition module is configured to acquire the identification information of the register to be configured and also acquire the configuration information of the register to be configured;

[0036] The configuration module is configured to configure the register to be configured according to the path information of the register to be configured, specifically: configure the configuration information of the register to be configured to the register pointed to by the path information.

[0037] Optionally, the register configuration device further includes:

[0038] An environment startup module, configured to start the verification environment corresponding to the register to be configured.

[0039] In a third aspect, an embodiment of the present invention provides a chip verification platform, and the chip verification platform is configured to execute the register configuration method provided by the embodiment of the present invention.

[0040] Optionally, the chip verification platform is configured with a register configuration function, which is used to execute the register configuration method provided by the embodiments of the present invention when called.

[0041] Optionally, the chip verification platform is configured with the correspondence between module identifiers and module path information, and the correspondence between register identifiers and internal path information.

[0042] Optionally, the correspondence between module identifiers and module path information is stored in the verification environment provided by the chip verification platform, and the correspondence between register identifiers and internal path information is stored in the register model after model instantiation.

[0043] Optionally, the chip verification platform is configured with a parallel configuration function, which is used to parallelize the register configuration method provided by the embodiments of the present invention in multiple functional areas when called.

[0044] In a fourth aspect, an embodiment of the present invention provides a computer device, including: at least one memory and at least one processor; the memory stores one or more computer-executable instructions, and the processor calls the one or more computer-executable instructions to execute the register configuration method provided by the embodiments of the present invention.

[0045] In a fifth aspect, an embodiment of the present invention provides a storage medium, which stores one or more executable instructions, and the one or more executable instructions are used to execute the register configuration method provided by the embodiments of the present invention.

[0046] Embodiments of the present invention provide a register configuration method, device and related equipment. The method includes: obtaining identification information of a register to be configured, where the identification information includes a module identifier of the module to which the register to be configured belongs and a register identifier; finding module path information corresponding to the module identifier and internal path information corresponding to the register identifier, where the internal path information is the path information of the register to be configured within the module; synthesizing the path information of the register to be configured based on the module path information and the internal path information; and configuring the register to be configured according to the path information of the register to be configured.

[0047] It can be seen that, based on backdoor access, embodiments of the present invention determine the path information of the register to be configured through the identification information of the register to be configured, so that manual confirmation and filling in one by one are not required, shortening the initialization configuration process and improving the efficiency of chip verification iteration. Description of the Drawings

[0048] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to the provided drawings.

[0049] Figure 1 It is an optional SOC architecture diagram;

[0050] Figure 2 It is an optional architecture diagram of the register configuration chip verification platform provided by the embodiment of the present invention;

[0051] Figure 3 It is an optional flowchart of the register configuration method provided by the embodiment of the present invention;

[0052] Figure 4 It is another optional flowchart of the register configuration method provided by the embodiment of the present invention;

[0053] Figure 5 It is an optional block diagram of the register configuration device provided by the embodiment of the present invention;

[0054] Figure 6 It is another optional block diagram of the register configuration device provided by the embodiment of the present invention. Detailed implementation manners

[0055] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.

[0056] An optional SOC architecture is as Figure 1 shown. The SOC system can be divided into multiple functional areas. For example, multiple computing control areas, multiple data storage and processing areas, and multiple north bridges shown in the figure. Each functional area is directly or indirectly connected to the bus. Each functional area contains multiple modules (i.e., IPs), and each module is configured with multiple registers.

[0057] As described in the background art, in the test and verification process of SOC (System-on-a-Chip, also known as system-on-chip), it is necessary to initialize the registers of the SOC. Among them, the optional SOC register initialization schemes can include two types, one is the front-door access method and the other is the back-door access method.

[0058] The front-door access method adds stimuli to the configuration port of the chip (refer to Figure 1 as shown). It is necessary to transmit the stimuli to each module (i.e., IP) through the internal bus of the SOC system. Each module parses the corresponding stimulus content, extracts the address data, and converts the corresponding configuration information into the register corresponding to the address data.

[0059] However, as more and more functional modules are integrated in the SOC and the scale of the SOC becomes larger, the number of registers that need to be configured during the initialization of the SOC is huge. Taking a SOC system divided into 10 functional areas as an example, if each functional area contains 20 modules and each module needs to configure at least 50 registers, then more than 10,000 registers need to be configured for the initialization of the entire system. At the same time, for the modules mounted at the far end of the system bus in the SOC architecture (i.e., indirectly connected to the bus, such as the modules in the north bridge in Figure 1 ), the modules on the data path also need to perform decoding and routing to finally configure the corresponding registers. Obviously, the initialization configuration process of this method takes too long.

[0060] The back-door access method can directly assign values to the registers without passing through the bus, but by calling the register configuration function (such as $deposit) in the verification environment in the system. However, this method requires manual confirmation of the complete RTL path of the registers and filling them in one by one. When faced with tens of thousands of registers, the corresponding initialization configuration process also has the defect of taking too long.

[0061] Based on this, the embodiments of the present invention provide a register configuration method, device and related equipment. The method includes: obtaining the identification information of the register to be configured, where the identification information includes the module identification of the module to which the register to be configured belongs and the register identification; searching for the module path information corresponding to the module identification and the internal path information corresponding to the register identification, where the internal path information is the path information of the register to be configured within the module; synthesizing the path information of the register to be configured based on the module path information and the internal path information; and configuring the register to be configured according to the path information of the register to be configured.

[0062] It can be seen that based on the back-door access, the embodiments of the present invention determine the path information of the register to be configured through the identification information of the register to be configured, so that it is not necessary to manually confirm and fill in one by one, shortening the initialization configuration process and improving the efficiency of chip verification iteration.

[0063] It can be understood that in the embodiments of the present invention, the path information of the register to be configured is split into two parts, namely, the module path information and the internal path information. Among them, the module path information is used to describe the path information (i.e., hierarchical information) of the module in the system, and the internal path information is used to describe the path information (i.e., hierarchical information) of the register within the module, so that the module path information and the internal path information can be searched separately, and then the complete path information of the register to be configured can be determined.

[0064] In an alternative implementation, referring to Figure 2 the optional architecture diagram of the chip verification platform shown, the embodiments of the present invention provide a chip verification platform. In the chip verification platform, a correspondence relationship between a module identifier and module path information, and a correspondence relationship between a register identifier and internal path information are configured, so that the corresponding module path information can be searched based on the module identifier, and the corresponding internal path information can be searched based on the register identifier. Among them, the module path information and the internal path information can be, for example, RTL (Register Transfer Level) hierarchical information (also referred to as RTL path information), so that the complete RTL path information of the register can be determined based on the module path information and the internal path information.

[0065] In an optional example, the correspondence relationship between the module identifier and the module path information can be stored in the verification environment provided by the chip verification platform, and the correspondence relationship between the register identifier and the internal path information can be stored in the register model (Register model) after model instantiation.

[0066] Specifically, the correspondence relationship between the module identifier and the module path information can be sorted out by the verification personnel or obtained through script processing. Based on the fact that the number of modules is much less than the number of registers, the determination process of the correspondence relationship between the module identifier and the module path information is simple and efficient. At the same time, based on the hierarchical information (i.e., path information) of the module, which usually hardly changes after the SOC architecture is stable, the corresponding correspondence relationship between the module identifier and the module path information has strong versatility, so that it can be applied not only in the initialization scenario of the SOC, but also in other required scenarios.

[0067] Furthermore, a file storing the correspondence relationship between the module identifier and the module path information can be converted into a configuration file Cfg of the UVM (Universal Verification Methodology) verification environment through a Perl script, and by instantiating the configuration files of different functional area verification environments, the hierarchical information of the modules in the corresponding functional areas can be configured into the corresponding component verification environments (such as UVM Component Env).

[0068] In a further optional example, the correspondence between the register identifier and the internal path information can be provided by a designer and stored in a register model file (Regmodel). Thus, when instantiating the register models of different modules, the corresponding correspondence between the register identifier and the internal path information can be stored in the instantiated register model.

[0069] Based on the above method, the module path information and the internal path information of the registers in the SOC can be partitioned and stored in their respective verification environments, so that there is no need to manually confirm the complete RTL path of the registers as in the backdoor access method.

[0070] Based on the above chip verification platform, in an optional implementation, Figure 3 An optional flowchart of the register configuration method provided by an embodiment of the present invention is exemplarily shown. As Figure 3 shown, the method includes:

[0071] Step S20: Obtain the identification information of the register to be configured;

[0072] Wherein, the identification information includes the module identifier of the module to which the register to be configured belongs and the register identifier. The module identifier can be a module domain name or an identifier defined by a designer based on a preset rule. It should be noted that the module identifier corresponds to the module one by one, so that there is a clear and unique reference relationship between the module identifier and the module, thereby avoiding errors. Correspondingly, the register identifier can be a register name or an identifier defined by a designer based on a preset rule. Similarly, the register identifier corresponds to the register one by one, so that there is a clear and unique reference relationship between the register identifier and the register, thereby avoiding errors.

[0073] In an optional example, the identification information of the register can be input by a designer, imported based on a preset file, or passed in based on a specific operation. The embodiments of the present invention do not make specific limitations here.

[0074] In some other examples, while obtaining the identification information of the register to be configured, the configuration information (such as a specific register value) of the register to be configured can also be obtained at the same time, so that the register can be configured based on this configuration information.

[0075] Step S22: Search for the module path information corresponding to the module identifier and the internal path information corresponding to the register identifier;

[0076] Among them, during the process of configuring the register to be configured, the internal path information is the path information of the register to be configured within the module;

[0077] Based on the module path information and internal path information of the registers in the SOC, the partitions have been stored in the corresponding positions. Thus, the corresponding path information can be found based on the module identifier and the register identifier.

[0078] Step S24: Synthesize the path information of the register to be configured based on the module path information and the internal path information;

[0079] After obtaining the module path information and the internal path information, the path information can be synthesized based on these path information.

[0080] Among them, when there is no redundant information other than the path information in the module path information and the internal path information, the path information of the register to be configured can be synthesized by splicing; when there is redundant information other than the path information in the module path information and the internal path information, the path information in the module path information and the internal path information can be extracted, and the extracted path information can be spliced to obtain the path information of the register to be configured.

[0081] Step S26: Configure the register to be configured according to the path information of the register to be configured;

[0082] After obtaining the path information of the register to be configured, the register to be configured can be configured by means of backdoor configuration.

[0083] Specifically, in the UVM verification environment, the function uvm_hdl_deposit() can be called to assign values to the registers, so as to implement the configuration of the register to be configured.

[0084] Among them, in the example where the identification information of the register to be configured is obtained and the configuration information of the register to be configured is also obtained at the same time, this step can directly configure the configuration information of the register to be configured to the register pointed to by the path information.

[0085] Based on the above register configuration method, in an alternative implementation, Figure 4 Exemplarily shows another alternative flowchart of the register configuration method provided by the embodiments of the present invention. As Figure 4 shown, between step S20 and step S22, it may further include:

[0086] Step S21: Start the verification environment corresponding to the register to be configured;

[0087] The correspondence relationship based on the module identifier and the module path information is stored in the component verification environment, and the correspondence relationship between the register identifier and the internal path information is stored in the register model. Therefore, by starting the verification environment corresponding to the register to be configured, based on the verification environment including the component verification environment and the corresponding register model, the corresponding correspondence relationship can be obtained.

[0088] Furthermore, in this example, step S22 may include:

[0089] Step S220: Based on the module identifier, search in the component verification environment for the module path information corresponding to the module identifier;

[0090] Specifically, when the module identifier is the module domain name, based on this module domain name, the module path information corresponding to this module can be retrieved in the component verification environment.

[0091] Step S221: Based on the register identifier, search in the register model for the internal path information corresponding to the register identifier.

[0092] When the register identifier is the register name, based on this register name, the internal path information corresponding to this register can be retrieved in the register model.

[0093] It can be seen that the embodiment of the present invention can greatly shorten the simulation time of the SOC chip in the register initialization stage, and does not require the verification personnel to manually sort out the complete paths of a large number of registers. At the same time, the configuration process does not need to go through a complex data path, thereby reducing the probability of errors in the initialization stage.

[0094] In an optional example, the above register configuration method can be encapsulated as a specific register configuration function (for example, it can be named a DPI function), and this register configuration function is configured in the chip verification platform. When it is necessary to initialize the register, by calling this register configuration function and providing the identifier information and configuration information of the register to this function, the initialization of the register can be realized.

[0095] In another optional example, on the premise of encapsulating the register configuration method as a register configuration function, steps S22 to S24 can be further encapsulated as an instance (Task), so that when this function is called, this instance is further called to complete the corresponding search and path synthesis process, and then the initialization of the register is realized.

[0096] It should be noted that a functional partition of the SOC may include initialization sequences for registers of multiple modules. During the process of configuring registers in a functional partition, the above register configuration method can be used to assign initialization sequences to the registers, or the initialization sequences of the registers can be assigned by calling encapsulated functions. In the process of configuring registers in multiple functional partitions simultaneously, the embodiment of the present invention can further configure parallel configuration functions (such as SystemC parallel statements such as FORK_JOIN) in the chip verification platform, so as to perform parallel processing of register configuration in multiple functional partitions, further shortening the simulation time of the initialization process and improving the efficiency of chip verification iteration.

[0097] Next, the register configuration device provided by the embodiment of the present invention will be introduced. The device content described below can be considered as a chip verification device or a computer device, which is a functional module required to implement the register configuration method provided by the embodiment of the present invention. The device content described below can be mutually corresponding and referred to the method content described above.

[0098] Figure 5 An optional block diagram of the register configuration device provided by the embodiment of the present invention is shown. As Figure 5 shown, the device may include:

[0099] An information acquisition module 200, configured to acquire identification information of a register to be configured, where the identification information includes a module identification of a module to which the register to be configured belongs and a register identification;

[0100] An information search module 210, configured to search for module path information corresponding to the module identification and internal path information corresponding to the register identification, where the internal path information is path information of the register to be configured within the module;

[0101] A synthesis module 220, configured to synthesize path information of the register to be configured based on the module path information and the internal path information;

[0102] A configuration module 230, configured to configure the register to be configured according to the path information of the register to be configured.

[0103] Optionally, the information search module 210, configured to search for module path information corresponding to the module identification and internal path information corresponding to the register identification, includes:

[0104] Based on the module identification, search for module path information corresponding to the module identification in a component verification environment;

[0105] Based on the register identification, search for internal path information corresponding to the register identification in a register model.

[0106] Optionally, there is no redundant information other than the path information in the module path information and the internal path information. The synthesizing module 220 is configured to synthesize the path information of the register to be configured based on the module path information and the internal path information, including:

[0107] Concatenate the module path information and the internal path information to obtain the path information of the register to be configured.

[0108] Optionally, there is redundant information other than the path information in the module path information and the internal path information. The synthesizing module 220 is configured to synthesize the path information of the register to be configured based on the module path information and the internal path information, including:

[0109] Extract the path information from the module path information and the internal path information;

[0110] Concatenate the extracted path information to obtain the path information of the register to be configured.

[0111] Optionally, the information acquisition module 200 is further configured to acquire the configuration information of the register to be configured while acquiring the identification information of the register to be configured;

[0112] The configuration module 230 is configured to configure the register to be configured according to the path information of the register to be configured, specifically: configure the configuration information of the register to be configured to the register pointed to by the path information.

[0113] Optionally, Figure 6 Another optional block diagram of the register configuration device provided by the embodiment of the present invention is shown. The register configuration device further includes:

[0114] An environment startup module 240, configured to start the verification environment corresponding to the register to be configured.

[0115] The embodiment of the present invention further provides a chip verification platform, which can be configured to execute the register configuration method provided by the embodiment of the present invention.

[0116] Optionally, the chip verification platform is configured with a register configuration function, which is used to execute the register configuration method provided by the embodiment of the present invention when called.

[0117] Optionally, the chip verification platform is configured with a parallel configuration function, which is used to execute the register configuration method provided by the embodiment of the present invention in parallel in multiple functional areas when called.

[0118] An embodiment of the present invention further provides a computer device, which may include: at least one memory and at least one processor; the memory stores one or more computer-executable instructions, and the processor invokes the one or more computer-executable instructions to execute the register configuration method provided by the embodiment of the present invention.

[0119] An embodiment of the present invention provides a storage medium, which stores one or more executable instructions, and the one or more executable instructions are used to execute the above-mentioned register configuration method.

[0120] The above describes multiple embodiment solutions provided by the embodiments of the present invention. The optional methods described in each embodiment solution can be combined and cross-referenced with each other without conflict, so as to extend a variety of possible embodiment solutions, all of which can be considered as the embodiment solutions disclosed and made public by the embodiments of the present invention.

[0121] Although the embodiments of the present invention are disclosed as above, the present application is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application. Therefore, the protection scope of the present application should be subject to the scope defined by the claims.

Claims

1. A register configuration method, characterized in that, applied to a chip verification platform, includes: Obtain the identification information of the register to be configured, where the identification information includes the module identification of the module to which the register to be configured belongs and the register identification; Search for the module path information corresponding to the module identification and the internal path information corresponding to the register identification. The internal path information is the path information of the register to be configured within the module, and the module path information is used to describe the path information of the module in the system. The chip verification platform provides a verification environment corresponding to the register to be configured, and the verification environment includes a component verification environment and a corresponding register model. The correspondence between the module identification and the module path information is stored in the component verification environment provided by the chip verification platform, and the correspondence between the register identification and the internal path information is stored in the register model after model instantiation. The searching for the module path information corresponding to the module identification and the internal path information corresponding to the register identification includes: based on the module identification, searching for the module path information corresponding to the module identification in the component verification environment; based on the register identification, searching for the internal path information corresponding to the register identification in the register model; Based on the module path information and the internal path information, synthesize the path information of the register to be configured; Configure the register to be configured according to the path information of the register to be configured.

2. The method according to claim 1, characterized in that, There is no redundant information other than the path information in the module path information and the internal path information. The synthesizing the path information of the register to be configured based on the module path information and the internal path information includes: Concatenate the module path information and the internal path information to obtain the path information of the register to be configured.

3. The method according to claim 1, characterized in that, There is redundant information other than the path information in the module path information and the internal path information. The synthesizing the path information of the register to be configured based on the module path information and the internal path information includes: Extract the path information from the module path information and the internal path information; Concatenate the extracted path information to obtain the path information of the register to be configured.

4. The method according to claim 1, characterized in that, In the step of obtaining the identification information of the register to be configured, the configuration information of the register to be configured is also obtained; The configuring the register to be configured according to the path information of the register to be configured is specifically: configuring the configuration information of the register to be configured to the register pointed to by the path information.

5. The method according to claim 1, characterized in that, After obtaining the identification information of the register to be configured and before searching for the module path information corresponding to the module identification and the internal path information corresponding to the register identification, it further includes: Start the verification environment corresponding to the register to be configured.

6. A register configuration device, characterized in that, includes: An information acquisition module, configured to acquire identification information of a register to be configured, where the identification information includes a module identification of a module to which the register to be configured belongs and a register identification; An information search module, configured to search for module path information corresponding to the module identification and internal path information corresponding to the register identification. The internal path information is the path information of the register to be configured within the module, and the module path information is used to describe the path information of the belonging module in the system. A chip verification platform provides a verification environment corresponding to the register to be configured, and the verification environment includes a component verification environment and a corresponding register model. The correspondence between the module identification and the module path information is stored in the component verification environment provided by the chip verification platform, and the correspondence between the register identification and the internal path information is stored in the register model after model instantiation. The information search module, configured to search for module path information corresponding to the module identification and internal path information corresponding to the register identification, includes: based on the module identification, searching for the module path information corresponding to the module identification in the component verification environment; based on the register identification, searching for the internal path information corresponding to the register identification in the register model; A synthesis module, configured to synthesize path information of the register to be configured based on the module path information and the internal path information; A configuration module, configured to configure the register to be configured according to the path information of the register to be configured.

7. The register configuration device according to claim 6, wherein, there is no redundant information other than path information in the module path information and the internal path information. The synthesis module, configured to synthesize path information of the register to be configured based on the module path information and the internal path information, includes: concatenating the module path information and the internal path information to obtain the path information of the register to be configured.

8. The register configuration device according to claim 6, wherein, there is redundant information other than path information in the module path information and the internal path information. The synthesis module, configured to synthesize path information of the register to be configured based on the module path information and the internal path information, includes: extracting the path information from the module path information and the internal path information; concatenating the extracted path information to obtain the path information of the register to be configured.

9. The register configuration device according to claim 6, wherein, in the step of the information acquisition module acquiring the identification information of the register to be configured, the configuration information of the register to be configured is further acquired; the configuration module, configured to configure the register to be configured according to the path information of the register to be configured, specifically: configuring the configuration information of the register to be configured to the register pointed to by the path information.

10. The register configuration device according to claim 6, wherein, further includes: an environment startup module, configured to start the verification environment corresponding to the register to be configured.

11. A chip verification platform, wherein, The chip verification platform is configured to execute the register configuration method according to any one of claims 1-5.

12. The platform according to claim 11, wherein, the chip verification platform is configured with a register configuration function, and when the register configuration function is called, it is used to execute the register configuration method according to any one of claims 1-5.

13. The platform according to claim 11, wherein, the chip verification platform is configured with a parallel configuration function, and when the parallel configuration function is called, it is used to execute the register configuration method according to any one of claims 1-5 in parallel in multiple functional areas.

14. A computer device, wherein, comprising: at least one memory and at least one processor; the memory stores one or more computer-executable instructions, and the processor calls the one or more computer-executable instructions to execute the register configuration method according to any one of claims 1-5.

15. A storage medium, wherein, the storage medium stores one or more executable instructions, and the one or more executable instructions are used to execute the register configuration method according to any one of claims 1-5.

Citation Information

Patent Citations

  • MCU verification method and system and terminal equipment

    CN113076227A