A multi-dimensional register generation method and system based on a UVM register model
By constructing a multidimensional register array in the UVM register model, the problem of managing complex register structures in existing technologies is solved, and more efficient data management and operation are achieved.
Patent Information
- Application Number
- CN202311466519.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-03
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-11-03
AI Technical Summary
The existing UVM register model cannot achieve multidimensional instantiation, resulting in an inability to effectively manage complex register structures and contents.
By constructing a UVM register model, obtaining the target number of dimensions, and instantiating multiple one-dimensional register arrays, a mapping between multi-dimensional register arrays and one-dimensional register arrays is established, thereby realizing the generation of multi-dimensional registers.
It enables the management and operation of two-dimensional, three-dimensional and higher-dimensional register structures, improves the convenience and flexibility of data management, simplifies the definition and query of complex registers, and reduces the amount of code.
Smart Images

Figure CN117519793B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of chip technology, and specifically to a method and system for generating multidimensional reg (register) in uvm_register. Background Technology
[0002] The register model of UVM (Universal Verification Methodology) is a set of high-level abstract classes used to model the address-mapped registers and memories in the DUT (device under testing). The emergence of the UVM register model has redefined the register interface between the verification platform and the DUT, enabling verification personnel to better organize and configure registers, simplifying complex processes and reducing workload.
[0003] UVM's register model allows for simple and efficient front-door or back-door operations on the DUT's registers. The UVM platform supports one-dimensional instantiation of the register model, making it easier for users to manipulate and query multiple register models of the same type. However, the current inability to perform multi-dimensional instantiation of registers presents limitations when managing more complex register structures.
[0004] When instantiating the UVM register model, multiple registers of the same type can be created by specifying dimensions after the variable name. This provides greater convenience for the use of the register model, such as the ability to look up by index, simple definition, convenient access, and easy searching.
[0005] However, due to the limitations of the UVM platform, it can currently only create one-dimensional arrays of registers, which makes it difficult to manage a large number of registers of the same type and to manage complex register structures and contents effectively. Summary of the Invention
[0006] The purpose of this application is to provide a method and system for generating multidimensional registers based on the UVM register model, which solves the problems existing in the prior art.
[0007] This invention is achieved through the following technical solution:
[0008] In a first aspect, the present invention provides a method for generating multidimensional registers based on a UVM register model, comprising:
[0009] Construct a UVM register model and instantiate the UVM register model to obtain the register model reg_model, and obtain the target dimension of the register, wherein the target dimension of the register is the data pre-stored in the database or the input of the human-computer interaction input;
[0010] Based on the register model reg_model and the target dimension, the registers are instantiated to obtain multiple one-dimensional register arrays;
[0011] Based on the target number of dimensions, a multidimensional register array is created, and a mapping is established between multiple one-dimensional register arrays and the multidimensional register array to complete the multidimensional register generation process.
[0012] In one possible implementation, based on the register model `reg_model` and the target dimension, registers are instantiated to obtain multiple one-dimensional register arrays, including:
[0013] The register model reg_model is instantiated in a new uvm_reg_block container, and in the class reg_model_sys derived from uvm_reg_block, the register model reg_model is instantiated to obtain one-dimensional register data, and multiple one-dimensional register arrays are obtained repeatedly.
[0014] In one possible implementation, a multidimensional register array is created based on the target number of dimensions, and a mapping is established between multiple one-dimensional register arrays and the multidimensional register array to complete the multidimensional register generation process, including:
[0015] Based on the target number of dimensions, a multidimensional register array is created, wherein the number of data dimensions in the multidimensional register array is the same as the number of data dimensions in the one-dimensional register array, and the amount of data in each dimension of the multidimensional register array is the same as the amount of data in the one-dimensional register array.
[0016] Multiple one-dimensional register arrays are mapped to different dimensions in a multi-dimensional register array, and a synchronization scheduling relationship is established to establish the mapping between multiple one-dimensional register arrays and multi-dimensional register arrays.
[0017] In one possible implementation, multiple one-dimensional register arrays are mapped to different dimensions in a multi-dimensional register array, and a synchronization scheduling relationship is established, including:
[0018] A multidimensional pointer to a multidimensional register array is established. By mapping addresses, a one-to-one correspondence is established between the pointers of multiple one-dimensional register arrays and the multidimensional pointers of the multidimensional register array, so as to establish a synchronous scheduling relationship. Thus, when the multidimensional pointer is called, the one-dimensional pointer will also be called synchronously.
[0019] In one possible implementation, a one-to-one correspondence is established between pointers to multiple one-dimensional register arrays and multi-dimensional pointers to multi-dimensional register arrays via address mapping, including:
[0020] Assign different register addresses to multiple one-dimensional register arrays and multi-dimensional register arrays;
[0021] Based on the allocated register addresses, the pointers of multiple one-dimensional register arrays are associated one-to-one with the multi-dimensional pointers of the multi-dimensional register array.
[0022] Secondly, the present invention provides a multidimensional register generation system based on the UVM register model, including: a preprocessing module, a register acquisition module, and a multidimensional register management module;
[0023] The preprocessing module is used to construct a UVM register model, instantiate the UVM register model to obtain the register model reg_model, and obtain the target dimension of the register, wherein the target dimension of the register is data pre-stored in the database or input of human-computer interaction input;
[0024] The register acquisition module is used to instantiate registers based on the register model reg_model and the target dimension number to obtain multiple one-dimensional register arrays;
[0025] The multidimensional register management module is used to create a multidimensional register array according to the target number of dimensions, and establish a mapping between multiple one-dimensional register arrays and multidimensional register arrays to complete the multidimensional register generation process.
[0026] In one possible implementation, based on the register model `reg_model` and the target dimension, registers are instantiated to obtain multiple one-dimensional register arrays, including:
[0027] The register model reg_model is instantiated in a new uvm_reg_block container, and in the class reg_model_sys derived from uvm_reg_block, the register model reg_model is instantiated to obtain one-dimensional register data, and multiple one-dimensional register arrays are obtained repeatedly.
[0028] In one possible implementation, the multidimensional register management module includes a construction unit and a mapping unit;
[0029] The construction unit is used to create a multi-dimensional register array according to the target number of dimensions. The number of data dimensions in the multi-dimensional register array is the same as the number of data dimensions in the one-dimensional register array, and the amount of data in each dimension of the multi-dimensional register array is the same as the amount of data in the one-dimensional register array.
[0030] The mapping unit is used to map multiple one-dimensional register arrays to different dimensions in a multi-dimensional register array and establish a synchronization scheduling relationship to establish a mapping between multiple one-dimensional register arrays and multi-dimensional register arrays.
[0031] In one possible implementation, multiple one-dimensional register arrays are mapped to different dimensions in a multi-dimensional register array, and a synchronization scheduling relationship is established, including:
[0032] A multidimensional pointer to a multidimensional register array is established. By mapping addresses, a one-to-one correspondence is established between the pointers of multiple one-dimensional register arrays and the multidimensional pointers of the multidimensional register array, so as to establish a synchronous scheduling relationship. Thus, when the multidimensional pointer is called, the one-dimensional pointer will also be called synchronously.
[0033] In one possible implementation, a one-to-one correspondence is established between pointers to multiple one-dimensional register arrays and multi-dimensional pointers to multi-dimensional register arrays via address mapping, including:
[0034] Assign different register addresses to multiple one-dimensional register arrays and multi-dimensional register arrays;
[0035] Based on the allocated register addresses, the pointers of multiple one-dimensional register arrays are associated one-to-one with the multi-dimensional pointers of the multi-dimensional register array.
[0036] This invention provides a method and system for generating multidimensional registers based on the UVM register model. By arranging registers in an array with multiple dimensions, two-dimensional, three-dimensional, and higher-dimensional register structures can be realized, facilitating the management and operation of more information. Multidimensional array structures are a powerful and more intuitive data management method, which can better define, input, and manage the structure, content, and relationships of complex registers. This greatly facilitates the storage, analysis, and statistics of multidimensional register data, while also enabling users to operate and query more conveniently and quickly, and to solve complex register storage problems more flexibly according to specific practical problems. Attached Figure Description
[0037] To more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of the present invention and should not be considered as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort. In the drawings:
[0038] Figure 1 A flowchart of a multidimensional register generation method based on the UVM register model provided in an embodiment of the present invention.
[0039] Figure 2 This is a schematic diagram of a multidimensional register generation method based on the UVM register model provided in an embodiment of the present invention.
[0040] Figure 3 This is a schematic diagram of the instantiation hierarchy in reg_model_sys provided in an embodiment of the present invention.
[0041] Figure 4 This is a schematic diagram comparing the instantiation hierarchy in reg_model_sys and my_model, provided for an embodiment of the present invention.
[0042] Figure 5 This is a schematic diagram of a multidimensional register generation system based on the UVM register model provided in an embodiment of the present invention.
[0043] The attached diagram shows the markings and corresponding component names:
[0044] 1-Preprocessing module, 2-Register acquisition module, 3-Multidimensional register management module. Detailed Implementation
[0045] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the embodiments and accompanying drawings. The illustrative embodiments and descriptions of the present invention are only used to explain the present invention and are not intended to limit the present invention.
[0046] Example 1
[0047] like Figure 1 As shown, this invention provides a multidimensional register generation method based on the UVM register model, comprising:
[0048] S1. Construct a UVM register model and instantiate the UVM register model to obtain the register model reg_model, and obtain the target dimension of the register. The target dimension of the register is the data pre-stored in the database or the input of the human-computer interaction input.
[0049] S2. Based on the register model reg_model and the target dimension, instantiate the register to obtain multiple one-dimensional register arrays.
[0050] S3. Based on the target number of dimensions, create a multidimensional register array and establish a mapping between multiple one-dimensional register arrays and the multidimensional register array to complete the multidimensional register generation process.
[0051] In one possible implementation, based on the register model `reg_model` and the target dimension, registers are instantiated to obtain multiple one-dimensional register arrays, including:
[0052] The register model reg_model is instantiated in a new uvm_reg_block container, and in the class reg_model_sys derived from uvm_reg_block, the register model reg_model is instantiated to obtain one-dimensional register data, and multiple one-dimensional register arrays are obtained repeatedly.
[0053] In one possible implementation, a multidimensional register array is created based on the target number of dimensions, and a mapping is established between multiple one-dimensional register arrays and the multidimensional register array to complete the multidimensional register generation process, including:
[0054] Based on the target number of dimensions, a multidimensional register array is created. The number of data dimensions in the multidimensional register array is the same as that in the one-dimensional register array, and the amount of data in each dimension of the multidimensional register array is the same as that in the one-dimensional register array.
[0055] Multiple one-dimensional register arrays are mapped to different dimensions in a multi-dimensional register array, and a synchronization scheduling relationship is established to establish the mapping between multiple one-dimensional register arrays and multi-dimensional register arrays.
[0056] In one possible implementation, multiple one-dimensional register arrays are mapped to different dimensions in a multi-dimensional register array, and a synchronization scheduling relationship is established, including:
[0057] A multidimensional pointer to a multidimensional register array is established. By mapping addresses, a one-to-one correspondence is established between the pointers of multiple one-dimensional register arrays and the multidimensional pointers of the multidimensional register array, so as to establish a synchronous scheduling relationship. Thus, when the multidimensional pointer is called, the one-dimensional pointer will also be called synchronously.
[0058] In one possible implementation, a one-to-one correspondence is established between pointers to multiple one-dimensional register arrays and multi-dimensional pointers to multi-dimensional register arrays via address mapping, including:
[0059] Assign different register addresses to multiple one-dimensional register arrays and multi-dimensional register arrays.
[0060] Based on the allocated register addresses, the pointers of multiple one-dimensional register arrays are associated one-to-one with the multi-dimensional pointers of the multi-dimensional register array.
[0061] This invention provides a multidimensional register generation method based on the UVM register model. By arranging registers in an array with multiple dimensions, two-dimensional, three-dimensional, and higher-dimensional register structures can be realized, facilitating the management and operation of more information. Multidimensional array structures are a powerful and more intuitive data management method, which can better define, input, and manage the structure, content, and relationships of complex registers. This greatly facilitates the storage, analysis, and statistics of multidimensional register data, while also enabling users to operate and query more conveniently and quickly, and to solve complex register storage problems more flexibly according to specific practical issues.
[0062] Example 2
[0063] This embodiment is based on Embodiment 1, and is detailed below.
[0064] like Figure 2 As shown, the method for creating a multidimensional structure array of a register model proposed in this invention includes the following steps:
[0065] 1. Define a complete UVM register model (uvm_reg_block hierarchy: a relatively large unit in which many uvm_regs or other uvm_reg_blocks can be added), named reg_model. The specific content and structure of the register model have no impact on the practice of this invention and will not be elaborated here.
[0066] 2. Subsequently, in the class `reg_model_sys` derived from `uvm_reg_block`, `reg_model` is instantiated to obtain multiple one-dimensional register arrays. Taking a two-dimensional array as an example:
[0067] like Figure 3 As shown, in reg_model_sys, reg_model is instantiated to obtain two one-dimensional register arrays reg0[3] and reg1[3]. The instantiation process can be found in uvm, and will not be described in detail here.
[0068] Note: When allocating register addresses, each register should be assigned a different address to prevent address confusion, which could invalidate register operations or cause them to overwrite each other. For convenience, contiguous addresses can be used. However, in actual use, addresses do not need to be contiguous and can be distributed, allowing for greater freedom and flexibility in the use of multidimensional array structures of registers.
[0069] 3. For example Figure 4 As shown, a class my_model derived from reg_model_sys is defined, in which a pointer Reg[2][3] of a two-dimensional array type of register model is created. In the build function, the one-dimensional pointer (reg0[3], reg1[3]) of the register model is mapped one-to-one with the two-dimensional pointer (Reg[2][3]) through address mapping, as shown in the example. Figure 1 As shown, address mapping assigns a one-dimensional pointer to a two-dimensional pointer, so that when the two-dimensional pointer is accessed, the one-dimensional pointer is also accessed synchronously.
[0070] At this point, the two-dimensional array of the register model has been successfully created. After instantiating the register model my_model, the two-dimensional register array Reg[2][3] can be invoked.
[0071] 4. To better understand this, we will use a three-dimensional register array as an example to verify the feasibility of higher-dimensional register arrays.
[0072] 4.1 Define a UVM register model reg_model.
[0073] 4.2 In the class reg_model_sys derived from uvm_reg_block, create three one-dimensional register array pointers reg0[3], reg1[3], and reg2[3] for reg_model and instantiate them.
[0074] 4.3 In the class my_model derived from reg_model_sys, create a three-dimensional register array pointer Reg[3][3]. In the build function, map Reg[3][3] to reg0[3], reg1[3], and reg2[3] one by one through address mapping.
[0075] 4.4 After instantiating the register model my_model, you can call the pointer to the three-dimensional register array within it.
[0076] As seen from the creation of two-dimensional and three-dimensional arrays in the register model, address mapping can achieve the transformation from low-dimensional to high-dimensional. Similarly, the creation of higher-dimensional register model arrays is also possible. Essentially, a multidimensional array in the register model is just a collection of one-dimensional arrays, presented in a multidimensional form, and can be accessed via subscript indices.
[0077] By rationally allocating one-dimensional arrays using base and offset addresses, the amount of code required for definition can be significantly reduced, making definition more convenient. Furthermore, multi-dimensional arrays in register models facilitate unified operations, providing a more convenient option for chip verification. Whether it's front-door or back-door access, it can be managed through arrays, enabling a large number of operations to be executed simultaneously via loops, reducing code volume and making operations more convenient and faster.
[0078] However, drawbacks still exist. The premise of a multidimensional array of register models is that the basic register model types must be the same. If you want to uniformly number different register models, it is still impossible. In addition, the number of registers in the same dimension must be consistent, otherwise instantiation is not possible, which may lead to a waste of resource space.
[0079] Taking a two-dimensional array of registers as an example, common table structures can be well implemented by arranging registers in an array with two dimensions (i.e., columns and rows).
[0080] If we liken a register to a package, a one-dimensional structure can manage the quantity of packages, but it's difficult to differentiate more detailed information. A two-dimensional structure allows for the management of package destinations; sorting packages based on their destinations makes retrieval and statistical processing much easier. Similarly, using a two-dimensional structure to manage registers facilitates unified management and operation of registers.
[0081] In addition, the methods provided in this paper can be used to establish register structures in three dimensions and higher dimensions, so as to facilitate the management and operation of more information.
[0082] Multidimensional array structures are powerful and can solve many problems, such as those related to different table structures, complex visualization problems, and high-dimensional space problems. They are a powerful and more intuitive way of data management, which can better define, input, and manage the structure, content, and relationships of complex registers. This greatly facilitates the storage, analysis, and statistics of multidimensional register data, and also makes it easier and faster for users to operate and query. It can also solve complex register storage problems more flexibly according to specific practical problems.
[0083] Example 3
[0084] like Figure 5 As shown, the present invention provides a multidimensional register generation system based on the UVM register model, including: a preprocessing module 1, a register acquisition module 2, and a multidimensional register management module 3.
[0085] The preprocessing module 1 is used to construct a UVM register model, instantiate the UVM register model to obtain the register model reg_model, and obtain the target dimension of the register. The target dimension of the register is the data pre-stored in the database or the input of the human-computer interaction input.
[0086] The register acquisition module 2 is used to instantiate registers based on the register model reg_model and the target dimension number to obtain multiple one-dimensional register arrays.
[0087] The multidimensional register management module 3 is used to create a multidimensional register array according to the target number of dimensions, and establish a mapping between multiple one-dimensional register arrays and multidimensional register arrays to complete the multidimensional register generation process.
[0088] In one possible implementation, based on the register model `reg_model` and the target dimension, registers are instantiated to obtain multiple one-dimensional register arrays, including:
[0089] The register model reg_model is instantiated in a new uvm_reg_block container, and in the class reg_model_sys derived from uvm_reg_block, the register model reg_model is instantiated to obtain one-dimensional register data, and multiple one-dimensional register arrays are obtained repeatedly.
[0090] In one possible implementation, the multidimensional register management module includes a construction unit and a mapping unit.
[0091] The construction unit is used to create a multidimensional register array according to the target number of dimensions. The number of data dimensions in the multidimensional register array is the same as the number of data dimensions in the one-dimensional register array, and the amount of data in each dimension of the multidimensional register array is the same as the amount of data in the one-dimensional register array.
[0092] The mapping unit is used to map multiple one-dimensional register arrays to different dimensions in a multi-dimensional register array and establish a synchronization scheduling relationship to establish a mapping between multiple one-dimensional register arrays and multi-dimensional register arrays.
[0093] In one possible implementation, multiple one-dimensional register arrays are mapped to different dimensions in a multi-dimensional register array, and a synchronization scheduling relationship is established, including:
[0094] A multidimensional pointer to a multidimensional register array is established. By mapping addresses, a one-to-one correspondence is established between the pointers of multiple one-dimensional register arrays and the multidimensional pointers of the multidimensional register array, so as to establish a synchronous scheduling relationship. Thus, when the multidimensional pointer is called, the one-dimensional pointer will also be called synchronously.
[0095] In one possible implementation, a one-to-one correspondence is established between pointers to multiple one-dimensional register arrays and multi-dimensional pointers to multi-dimensional register arrays via address mapping, including:
[0096] Assign different register addresses to multiple one-dimensional register arrays and multi-dimensional register arrays.
[0097] Based on the allocated register addresses, the pointers of multiple one-dimensional register arrays are associated one-to-one with the multi-dimensional pointers of the multi-dimensional register array.
[0098] The multidimensional register generation system based on the UVM register model provided in this embodiment is similar in principle and beneficial effects to the method and technical solution described in Embodiment 1, and will not be repeated here.
[0099] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for generating multidimensional registers based on the UVM register model, characterized in that, include: Construct a UVM register model and instantiate the UVM register model to obtain the register model reg_model, and obtain the target dimension of the register, wherein the target dimension of the register is the data pre-stored in the database or the input of the human-computer interaction input; Based on the register model reg_model and the target dimension, the registers are instantiated to obtain multiple one-dimensional register arrays; Based on the target number of dimensions, create a multidimensional register array and establish a mapping between multiple one-dimensional register arrays and the multidimensional register array to complete the multidimensional register generation process; The process of generating a multidimensional register array based on the target dimension number, and establishing mappings between multiple one-dimensional register arrays and multidimensional register arrays to complete the multidimensional register generation process, includes: Based on the target number of dimensions, a multidimensional register array is created, wherein the number of data dimensions in the multidimensional register array is the same as the number of data dimensions in the one-dimensional register array, and the amount of data in each dimension of the multidimensional register array is the same as the amount of data in the one-dimensional register array. Multiple one-dimensional register arrays are mapped to different dimensions in a multi-dimensional register array, and a synchronization scheduling relationship is established to establish the mapping between multiple one-dimensional register arrays and multi-dimensional register arrays; The process of mapping multiple one-dimensional register arrays to different dimensions in a multi-dimensional register array and establishing synchronization scheduling relationships includes: A multidimensional pointer to a multidimensional register array is established. By mapping addresses, a one-to-one correspondence is established between the pointers of multiple one-dimensional register arrays and the multidimensional pointers of the multidimensional register array, so as to establish a synchronous scheduling relationship. Thus, when the multidimensional pointer is called, the one-dimensional pointer will also be called synchronously.
2. The multidimensional register generation method based on the UVM register model according to claim 1, characterized in that, Based on the aforementioned register model `reg_model` and the target dimension, registers are instantiated to obtain multiple one-dimensional register arrays, including: The register model reg_model is instantiated in a new uvm_reg_block container, and in the class reg_model_sys derived from uvm_reg_block, the register model reg_model is instantiated to obtain one-dimensional register data, and multiple one-dimensional register arrays are obtained repeatedly.
3. The multidimensional register generation method based on the UVM register model according to claim 1, characterized in that, Address mapping associates pointers to multiple one-dimensional register arrays with multi-dimensional pointers to multi-dimensional register arrays, including: Assign different register addresses to multiple one-dimensional register arrays and multi-dimensional register arrays; Based on the allocated register addresses, the pointers of multiple one-dimensional register arrays are associated one-to-one with the multi-dimensional pointers of the multi-dimensional register array.
4. A multidimensional register generation system based on the UVM register model, characterized in that, include: The module includes a preprocessing module, a register acquisition module, and a multi-dimensional register management module. The preprocessing module is used to construct a UVM register model, instantiate the UVM register model to obtain the register model reg_model, and obtain the target dimension of the register, wherein the target dimension of the register is data pre-stored in the database or input of human-computer interaction input; The register acquisition module is used to instantiate registers based on the register model reg_model and the target dimension number to obtain multiple one-dimensional register arrays; The multidimensional register management module is used to create a multidimensional register array according to the target number of dimensions, and establish a mapping between multiple one-dimensional register arrays and multidimensional register arrays to complete the multidimensional register generation process; The multidimensional register management module includes a construction unit and a mapping unit; The construction unit is used to create a multi-dimensional register array according to the target number of dimensions. The number of data dimensions in the multi-dimensional register array is the same as the number of data dimensions in the one-dimensional register array, and the amount of data in each dimension of the multi-dimensional register array is the same as the amount of data in the one-dimensional register array. The mapping unit is used to map multiple one-dimensional register arrays to different dimensions in a multi-dimensional register array and establish a synchronization scheduling relationship to establish a mapping between multiple one-dimensional register arrays and multi-dimensional register arrays. The process of mapping multiple one-dimensional register arrays to different dimensions in a multi-dimensional register array and establishing synchronization scheduling relationships includes: A multidimensional pointer to a multidimensional register array is established. By mapping addresses, a one-to-one correspondence is established between the pointers of multiple one-dimensional register arrays and the multidimensional pointers of the multidimensional register array, so as to establish a synchronous scheduling relationship. Thus, when the multidimensional pointer is called, the one-dimensional pointer will also be called synchronously.
5. The multidimensional register generation system based on the UVM register model according to claim 4, characterized in that, Based on the aforementioned register model `reg_model` and the target dimension, registers are instantiated to obtain multiple one-dimensional register arrays, including: The register model reg_model is instantiated in a new uvm_reg_block container, and in the class reg_model_sys derived from uvm_reg_block, the register model reg_model is instantiated to obtain one-dimensional register data, and multiple one-dimensional register arrays are obtained repeatedly.
6. The multidimensional register generation system based on the UVM register model according to claim 4, characterized in that, Address mapping associates pointers to multiple one-dimensional register arrays with multi-dimensional pointers to multi-dimensional register arrays, including: Assign different register addresses to multiple one-dimensional register arrays and multi-dimensional register arrays; Based on the allocated register addresses, the pointers of multiple one-dimensional register arrays are associated one-to-one with the multi-dimensional pointers of the multi-dimensional register array.
Citation Information
Patent Citations
Digital fuse timing circuit verification platform based on a UVM
CN109492269A
Register modeling method and device in multi-user mode, equipment and medium
CN114841119A
