# Cannot predict while reg is being accessed

**URL:** <https://verificationacademy.com/forums/t/cannot-predict-while-reg-is-being-accessed/29314>\
**Category:** UVM\
**Tags:** UVM, predict, uvm\_reg\_block\
**Created:** [April 7, 2014, 6:56am UTC](https://verificationacademy.com/forums/t/cannot-predict-while-reg-is-being-accessed/29314 "2014-04-07T06:56:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![meir](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/m/2acd7d/32.png) [@meir](https://verificationacademy.com/forums/u/meir)\
**Post date:** [April 7, 2014, 6:56am UTC](https://verificationacademy.com/forums/t/cannot-predict-while-reg-is-being-accessed/29314/1 "2014-04-07T06:56:03Z")

</div>

I am generating a reg bus transaction from a sequence using

```verilog
reg_block.iritating_reg.write()

```

and in the environment ref model:

```verilog
reg_block.iritating_reg.predict()

```

(no I am not using a predictor)  
I get the WARNING: cannot predict while reg is being accessed, and the regs mirrored value is not updated  
From what I understand this is because the monitor finishes to collect the transaction  
and activates the analysis port before the driver.(cannot be changed)  
Is there a way to bypass this warning so the reg will be updated?
