scheduler.hh (13096:9295fa397b3f) | scheduler.hh (13125:2488fd19b643) |
---|---|
1/* 2 * Copyright 2018 Google, Inc. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer; 8 * redistributions in binary form must reproduce the above copyright --- 201 unchanged lines hidden (view full) --- 210 return getCurTick() + delay.value() * SimClock::Int::ps; 211 } 212 213 // For scheduling delayed/timed notifications/timeouts. 214 void 215 schedule(ScEvent *event, const ::sc_core::sc_time &delay) 216 { 217 Tick tick = delayed(delay); | 1/* 2 * Copyright 2018 Google, Inc. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer; 8 * redistributions in binary form must reproduce the above copyright --- 201 unchanged lines hidden (view full) --- 210 return getCurTick() + delay.value() * SimClock::Int::ps; 211 } 212 213 // For scheduling delayed/timed notifications/timeouts. 214 void 215 schedule(ScEvent *event, const ::sc_core::sc_time &delay) 216 { 217 Tick tick = delayed(delay); |
218 if (tick < getCurTick()) 219 tick = getCurTick(); 220 |
|
218 event->schedule(tick); 219 220 // Delta notification/timeout. 221 if (delay.value() == 0) { 222 deltas.insert(event); 223 scheduleReadyEvent(); 224 return; 225 } --- 186 unchanged lines hidden --- | 221 event->schedule(tick); 222 223 // Delta notification/timeout. 224 if (delay.value() == 0) { 225 deltas.insert(event); 226 scheduleReadyEvent(); 227 return; 228 } --- 186 unchanged lines hidden --- |