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 --- 94 unchanged lines hidden (view full) --- 103 Channel *c; 104 while ((c = updateList.getNext())) 105 c->popListNode(); 106} 107 108void 109Scheduler::initPhase() 110{ |
111 runUpdate(); 112 |
113 for (Process *p = initList.getNext(); p; p = initList.getNext()) { 114 p->popListNode(); 115 116 if (p->dontInitialize()) { 117 if (!p->hasStaticSensitivities() && !p->internal()) { 118 SC_REPORT_WARNING(sc_core::SC_ID_DISABLE_WILL_ORPHAN_PROCESS_, 119 p->name()); 120 } 121 } else { 122 p->ready(); 123 } 124 } 125 |
126 runDelta(); 127 128 for (auto ets: eventsToSchedule) 129 eq->schedule(ets.first, ets.second); 130 eventsToSchedule.clear(); 131 132 if (_started) { 133 if (!runToTime && starved()) --- 371 unchanged lines hidden --- |