# UVM bitbash access error because of predictor

**URL:** <https://verificationacademy.com/forums/t/uvm-bitbash-access-error-because-of-predictor/33991>\
**Category:** UVM\
**Tags:** UVM-bitbash, UVM\
**Created:** [January 26, 2018, 6:25pm UTC](https://verificationacademy.com/forums/t/uvm-bitbash-access-error-because-of-predictor/33991 "2018-01-26T18:25:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cuonghle](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/cuonghle/32/3231_2.png) [@cuonghle](https://verificationacademy.com/forums/u/cuonghle)\
**Post date:** [January 26, 2018, 6:25pm UTC](https://verificationacademy.com/forums/t/uvm-bitbash-access-error-because-of-predictor/33991/1 "2018-01-26T18:25:46Z")

</div>

Hi all,

I got problem with uvm bitbash seq with uvm-1.1d. I found, when bitbash sequence writes a value to DUT, the desired value is not updated immediately (because auto predict is disabled at default). The desired value is only updated by uvm predictor via monitor (takes long time to update this value). Therefore, at the next get() function, the value doesnt return correctly (see the following code of uvm\_bitbash\_seq, line 165).

```verilog

159 rg.write(status, val, UVM_FRONTDOOR, map, this);
160 if (status != UVM_IS_OK) begin
161 `uvm_error("uvm_reg_bit_bash_seq", $sformatf("Status was %s when writing to register \"%s\" through map \"%s\".",
162 status.name(), rg.get_full_name(), map.get_full_name()));
163 end
164          
165 exp = rg.get() & ~dc_mask;
   

```

My question is, should I enable auto\_predict to update desired value immediately after writing to DUT? Why is auto\_predict disabled at default? Currently, I worked around by adding #5ns delay before get() function to wait desired value is updated by predictor via monitor, but I think it is not a good way.

Thanks all.
