Excluding register fields

Hi,

Can anyone please tell me how to exclude certain register fields? I know how to exclude a register (i.e by using exclude_names or exclude_address). I do not want to exclude the entire register but only certain bits of the register?

Please help!

Thanks in advance.

It sounds like you’re using a register package, which one?

If you’re just starting down the road of putting a register model together, then you might like to consider the UVM register package that has been ported to the OVM. This gives you a seamless migration path if/when you move to UVM.

See:

https://forum.verificationacademy.com/forum/uvmovm-kit-downloads-and-user-contributions-forum/kit-downloads-and-user-contributions/18259-uvm-register-kit-ovm-212

Thank you for your reply.

I am using OVM. We have already built our register model. But the problem is when we write into a register, it shows error and the best way to debug them is to exclude those exclude certain fields of that register from writing. Is there any way to do this?