Fix compatibility issue with gem5

This commit is contained in:
2022-06-22 15:44:54 +02:00
parent 950204d804
commit 1537cdb0e5

View File

@@ -130,7 +130,7 @@ void ArbiterReorder::end_of_elaboration()
tlm_sync_enum Arbiter::nb_transport_fw(int id, tlm_generic_payload &payload,
tlm_phase &phase, sc_time &fwDelay)
{
sc_time clockOffset = (sc_time_stamp() + fwDelay) % tCK;
sc_time clockOffset = sc_time::from_value((sc_time_stamp() + fwDelay).value() % tCK.value());
sc_time notDelay = (clockOffset == SC_ZERO_TIME) ? fwDelay : (fwDelay + tCK - clockOffset);
if (phase == BEGIN_REQ)