Fix inv regression

This commit is contained in:
Dolu1990 2020-06-20 13:18:46 +02:00
parent f0f2cf61da
commit c12f9a378d
1 changed files with 3 additions and 3 deletions

View File

@ -2496,12 +2496,12 @@ public:
if(top->dBus_inv_ready) top->dBus_inv_valid = 0; if(top->dBus_inv_ready) top->dBus_inv_valid = 0;
if(top->dBus_inv_valid == 0 && VL_RANDOM_I(7) < 5){ if(top->dBus_inv_valid == 0 && VL_RANDOM_I(7) < 5){
top->dBus_inv_valid = 1; top->dBus_inv_valid = 1;
top->dBus_inv_payload_enable = VL_RANDOM_I(7) < 100; top->dBus_inv_payload_fragment_enable = VL_RANDOM_I(7) < 100;
if(!invalidationHint.empty()){ if(!invalidationHint.empty()){
top->dBus_inv_payload_address = invalidationHint.front(); top->dBus_inv_payload_fragment_address = invalidationHint.front();
invalidationHint.pop(); invalidationHint.pop();
} else { } else {
top->dBus_inv_payload_address = VL_RANDOM_I(32); top->dBus_inv_payload_fragment_address = VL_RANDOM_I(32);
} }
} }
} }