title: Disabling a scoreboard from a sequence using UVM
body: <p>I have a uvm_sequence that randomizes an enable bit "feature_en". Depending on whether this bit is enabled or not, I want to enable/disable my scoreboard. I use the config_db to set the variable, and the field_macros to automatically get it in the scoreboard.</p>
  
  <p>My problem is that in the scoreboard, I want to guard the code in the run_phase with "feature_en". However, the sequence is run in the run_phase of the test and thus, the run_phase of the scoreboard goes first, thereby keeping feature_en default value and not getting the value set my the sequence.</p>
  
  <p>I tried using <strong>wait(feature_en != -1)</strong> (i had set it as an int), but I realize that feature_en is not sampled again in the scoreboard.</p>
  
  <p>Is there a way to update feature_en dynamically in the scoreboard? Or any other way to do this?</p>