Hi,
I have a register of 32 bit say reg,
Now i want to predict only 0 to 2 bits of this register,
Is there any possible way to do so?
Or is there any way to mirror only 0 to 2 bits of this register.
Please help…
Thank you,
Hi,
I have a register of 32 bit say reg,
Now i want to predict only 0 to 2 bits of this register,
Is there any possible way to do so?
Or is there any way to mirror only 0 to 2 bits of this register.
Please help…
Thank you,
In reply to jaswanth_b:
you can set volatile bit for unused fields for comparison.
Volatile 1 => UVM_NO_CHECK
Volatile 0 => UVM_CHECK
Or if configuration of reg_fields can not be changed then you can explicitly call set_compare method of uvm_reg_field and enable/disable the comparison.
In reply to mitesh.patel:
The problem is actually they are not fields its a whole register
So is it possible
In reply to jaswanth_b:
You can try to mask this register. But if you do not have fields it will always deal with 32 bits.
In reply to jaswanth_b:
Field wise enabling/disabling can happen. i don’t think, any way to perform based on bits in field. you can implement your own mirror method (or override)in environment and fulfill your requirement.