Working on Register Assistant tool of Questsim10.2b to generate the Register Data Base.
And using .CSV formatted Register specification as Input file to generate the UVM Register model.
By referring the Register Assistant UVM user manual, I understand the scope of customization is up to “Register”. i.e can do customization of properties of the Register.
In our Requirement, Couple of Registers are defined with multiple fields and each of different field access types, out of that some of the field access types are not available in UVM register package. Thus we need to do the customization of field access type.
Please let me know , how to customize the field access type and what are the parameters to be set in .CSV file to do customization at FIELD level.
The reg_model predefines almost all the possible access types of the fields. With respect to Reg Asst UVM tool, the access types it supports are provided in the following document at your tool space: RUVM_4.3/docs/RUVM_reference/SW_Access_Modes.pdf.
If the access type of your field is still different from the ones mentioned in the above document, you have to use the set_access and define_access methods of uvm_reg_field base class.
The details of the above methods can bee seen from the link:
https://verificationacademy.com/verification-methodology-reference/uvm/docs_1.1b/html/
click the above link
you see the Register Layer tab on the left, click that one and you see Register Model, click that one and you see the Fields tab, where you have the list of methods.
You can also look at those methods in UVM base class library.
In reply to RAJESHWAR:
Hi Rajeshwar,
Thank you for the reply.
The Access type of our field is different from the list mentioned in the SW_Access_Modes.pdf.
If we generate register model either manually/through scripting language, As you are saying we can generate the user defined access types by using set_access and define_access methods of uvm_reg_field base class.
But Planning to use Questasim’s Inbuilt Register Assistant Tool for which .CSV file is input file where we can describe the Register specification to generate the UVM Register Model.So my Query is how specify the Customized access types for fields in <>.CSV file.
In reply to umakumari athuluri:
Hi Uma,
If the field access type is different from the ones mentioned in the SW_Access_Modes.pdf, you can just report the same on supportnet of Mentor for the tool RegAsstUVM 4.3. Most probably they may add the patch to the tool and release it again. If you do so, please update me also once you get the response from them.
By the way, may I know the access type of your field?
If you don’t have many fields falling in this exceptional category, you can do the following way. It is a suggestion, I am also not sure to what extent it will work.
Say your custom field is my_custom_reg_field, extend it from uvm_reg_field base class and define your required access type “XXX” by updating the existing functions inside the base class. Then add the register with this specific field manually at proper place in the automated generated reg package.