Register model

I have written register model for dut and when i tried to compile it , it is showing error “can’t add register to locked block model”. how to resolve this error?

In reply to shreebamnikar:

Are you trying to build and configure registers after calling the lock_model() method in class extended from uvm_reg_block?

In reply to mayurkubavat:

nope … lock_model is the last line.

Can you post the code for your register model? Perhaps there is something that someone else can pick up that you are missing.