Method for improving readability of register model modeling code and storage medium

A model modeling and register technology, which is applied in the direction of instruments, machine execution devices, calculations, etc., can solve problems such as unintuitive, difficult to understand, reduce the efficiency of chip design and verification process, and achieve the effect of saving time and improving work efficiency

Pending Publication Date: 2022-08-09
杭州云合智网技术有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] The above scheme is based on the UVM verification methodology, and it is also the scheme that is usually adopted, but there is a defect that we do not know the meaning of the field value in the register, it is just a series of 0 or 1 signals, and unintuitive and thus difficult to understand
This leads to design and verification developers having to read the design documents back and forth many times to see what the value of the corresponding field represents, and often forget, which greatly reduces the work efficiency of the chip design and verification process

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for improving readability of register model modeling code and storage medium
  • Method for improving readability of register model modeling code and storage medium
  • Method for improving readability of register model modeling code and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings to further illustrate the present invention.

[0035] First, combine Figure 4~6 The method for improving code readability for modeling a register model according to an embodiment of the present invention is described, which is used for chip verification and has a wide range of application scenarios.

[0036] like Figure 4~5 As shown, the method for improving the readability of a code for modeling a register model according to an embodiment of the present invention includes the following steps:

[0037] In S1, as in Figure 4 As shown, create a UVM register model, derive the field base class uvm_reg_field of the UVM register model, and generate a subclass my_reg_enum_field.

[0038] In S2, as in Figure 4 As shown, extend or add a series of interface methods in the subclass my_reg_enum_field to support method calls of enumeration type val...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for improving the readability of modeling codes of a register model and a storage medium, and the method for improving the readability of the modeling codes of the register model comprises the following steps: creating a UVM register model, deriving a field base class of the UVM register model, and generating subclasses; a series interface method is expanded or newly added in the subclass and used for supporting method calling of enumeration type values; creating an enumeration type variable corresponding to a register field of the preset UVM register model; replacing a field base class with the subclass to reconstruct an example register; and performing read-write access on the register field by using a subclass interface method. According to the method, the readable coding mode of the register field can be improved, repeated browsing of the design document is avoided, the time of design and verification developers is saved, and the working efficiency of the developers is improved.

Description

technical field [0001] The invention relates to the technical field of chip verification, in particular to a method and a storage medium for improving the readability of a code for modeling a register model. Background technique [0002] Usually we will model the registers of the DUT based on the UVM verification method. UVM provides the following register model classes for verification developers to use, including: [0003] Register field: Register field. The function of each bit (field) in the register has a corresponding width (width) and offset (offset), as well as read / write (read / write), read-only (read only), and write-only (writeonly) attributes . [0004] Register: Register. Contains one or more register fields. [0005] Register block: Register block. Corresponding to a specific hardware, it can be understood as a container, which contains one or more registers and one or more register maps. The register model we are talking about actually refers to an instan...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/30G06F30/3308
CPCG06F9/30141G06F9/30098G06F30/3308
Inventor 马骁
Owner 杭州云合智网技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products