Jump to content

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


Recommended Posts

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>
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.

Link to post
Share on other sites
  • 2 years later...

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...