sensitivity.cc (13207:034ca389a810) | sensitivity.cc (13208:6703cb024823) |
---|---|
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 --- 17 unchanged lines hidden (view full) --- 26 * 27 * Authors: Gabe Black 28 */ 29 30#include "systemc/core/sensitivity.hh" 31 32#include "systemc/core/event.hh" 33#include "systemc/core/port.hh" | 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 --- 17 unchanged lines hidden (view full) --- 26 * 27 * Authors: Gabe Black 28 */ 29 30#include "systemc/core/sensitivity.hh" 31 32#include "systemc/core/event.hh" 33#include "systemc/core/port.hh" |
34#include "systemc/core/process.hh" |
|
34#include "systemc/core/scheduler.hh" 35#include "systemc/ext/core/sc_export.hh" 36#include "systemc/ext/core/sc_interface.hh" 37#include "systemc/ext/core/sc_port.hh" 38 39namespace sc_gem5 40{ 41 --- 10 unchanged lines hidden (view full) --- 52bool 53Sensitivity::notify(Event *e) 54{ 55 if (process->disabled()) 56 return false; 57 return notifyWork(e); 58} 59 | 35#include "systemc/core/scheduler.hh" 36#include "systemc/ext/core/sc_export.hh" 37#include "systemc/ext/core/sc_interface.hh" 38#include "systemc/ext/core/sc_port.hh" 39 40namespace sc_gem5 41{ 42 --- 10 unchanged lines hidden (view full) --- 53bool 54Sensitivity::notify(Event *e) 55{ 56 if (process->disabled()) 57 return false; 58 return notifyWork(e); 59} 60 |
61bool 62Sensitivity::ofMethod() 63{ 64 return process->procKind() == sc_core::SC_METHOD_PROC_; 65} |
|
60 | 66 |
67 |
|
61/* 62 * Dynamic vs. static sensitivity. 63 */ 64 65void 66DynamicSensitivity::addToEvent(const ::sc_core::sc_event *e) 67{ 68 Event::getFromScEvent(e)->addSensitivity(this); --- 156 unchanged lines hidden --- | 68/* 69 * Dynamic vs. static sensitivity. 70 */ 71 72void 73DynamicSensitivity::addToEvent(const ::sc_core::sc_event *e) 74{ 75 Event::getFromScEvent(e)->addSensitivity(this); --- 156 unchanged lines hidden --- |