What is uvm_reg.has_reset(.delete(1))?

hello, i am curious about uvm_reg.has_reset(.delete(1))

i think has_reset(.delete(1)) removes initial value(reset value) of uvm_reg. but, i tried this, it was not.

coef_r is my uvm_reg.

how do i remove initial value of uvm_reg not using set_reset?

Hi, the purpose of this “delete” is correct, it removes the reset value. But in your example, after you deleted the reset value, you didn’t tried printing the reset value which as expected should’ve given you 0x0.
When doing reg.reset() after deleting the reset value, reg model will take the reset value provided using “set_reset”.
If you’re trying to reset the mirror/desired reg, reg.reset() will do it.