How to know backdoor access can't use or not?

In reply to chr_sue:

In reply to UVM_LOVE:
In your dma_adapter you specify in the funtion reg2bus only the WRITE direction. You do not specify what should happen in case of READ, i.e. returns the initial values of the data type.

Yes I found what the wrong code. I fixed it. think it is working well.