00001 /***************************************************************************** 00002 00003 The following code is derived, directly or indirectly, from the SystemC 00004 source code Copyright (c) 1996-2008 by all Contributors. 00005 All Rights reserved. 00006 00007 The contents of this file are subject to the restrictions and limitations 00008 set forth in the SystemC Open Source License Version 2.4 (the "License"); 00009 You may not use this file except in compliance with such restrictions and 00010 limitations. You may obtain instructions on how to receive a copy of the 00011 License at http://www.systemc.org/. Software distributed by Contributors 00012 under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF 00013 ANY KIND, either express or implied. See the License for the specific 00014 language governing rights and limitations under the License. 00015 00016 *****************************************************************************/ 00017 00018 #ifndef __TLM_WRITE_IF_H__ 00019 #define __TLM_WRITE_IF_H__ 00020 00021 #include <systemc> 00022 00023 namespace tlm { 00024 00025 template <typename T> 00026 class tlm_write_if : public virtual sc_core::sc_interface { 00027 public: 00028 virtual void write(const T& t) = 0; 00029 }; 00030 00031 template <typename T> 00032 class tlm_delayed_write_if : public virtual sc_core::sc_interface { 00033 public: 00034 virtual void write(const T& t, const sc_core::sc_time& time) = 0; 00035 }; 00036 00037 } // namespace tlm 00038 00039 00040 #endif