Register sequence error

In reply to raj@123:

It is exactly this line:

regmodel.DCR0_LOCK.read(.status(status) , .value(1) );

You want to store the read value in ‘1’, which is definitely not a variable.
It should be like this

regmodel.DCR0_LOCK.read(.status(status) , .value(rd_value) );

rd_value has to be declared as the right data type.