Jump to content
rhegde

help needed how to do a backdoor access to individual fields in the register in UVM

Recommended Posts

given that the backdoor access is anyways completed in zero time, and it updates/gives you the values of only the specific field depending on whether you are doing a field.write()/field.read(), you don't need an explicit individual field access

Share this post


Link to post
Share on other sites

Thank you amitshere for replying but in my case each register fields points to different dut paths.so i wanted to know how to assign different Hdl paths for each register fields.

Share this post


Link to post
Share on other sites

Depending on you <spirit:vendorExtensions> (I don't know what your generator does.) -- but you should be able to set a unique path per field as a vendor extension. The issue that I see with this is that typically you make an HDL hierarchy , and you seem to have a hard path. It really doesn't matter -- it just makes moving the fields around generically (and abstract) less usable.

for instance you could do this:

<spirit:field>
 ....
spirit:vendorExtensions>
	<vendorExtensions:name>ctrl_reg</vendorExtensions:name>
	<vendorExtensions:type>ctrl_reg_t</vendorExtensions:type>
				
     <!-- You can add a hard coded a path per field -->

				 <vendorExtensions:hdl_patht>top_dut.base_regs.ctrl_reg</vendorExtensions:hdl_path>

Share this post


Link to post
Share on other sites
Thank you amitshere for replying but in my case each register fields points to different dut paths.so i wanted to know how to assign different Hdl paths for each register fields.

UVM supports specifying a concatenation of HDL paths for a register backdoor access. But it is a generator-specific feature how to specify the HDL paths for the fields. You need to contact your generator vendor to answer that question.

Share this post


Link to post
Share on other sites

hi all

i am new to UVM can anyone explain with example how to do a backdoor access to individual fields in the register.

Thanks

rakshit

Hi rhegde,

 

  Have you found out the way to specify hdl_path in xml schema generated by python? I'm also working on it.

 

  Thanks.

  Euphemia

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...