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" |
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} |
66 |
67 |
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 --- |