title: What does warning about trying to predict while register being accessed means?
body: <p>I've UVM verification environment.</p>
  
  <p>In my test sequence I read (mirror) from REGA through FRONTDOOR (serial transaction) upon receiving interrupt.</p>
  
  <p>In my scoreboard I've used <code>.predict</code> methods to updated expected values of REGA.</p>
  
  <p>However I've following error:</p>
  
  <pre><code>Register "regmodel.REGA" value read from DUT (0x00000000000000AA) does not match mirrored value (0x0000000000000000)
  </code></pre>
  
  <p>Value read from DUT is correct (AA), and if I print value used in predict method then that is correct as well (AA)</p>
  
  <p>However
  In simulation I've following warning sometime before error:</p>
  
  <pre><code>Trying to predict value of register 'regmodel.REGA' while it is being accessed
  </code></pre>
  
  <p>My first thought was its because of race (predict and FRONTDOOR access), so I added delay before reading from register but it still happens to be same behavior.</p>
  
  <p>I would like to know what exactly that warning means, and if I should change something </p>