/* -*- c++ -*- * SOCLIB_LGPL_HEADER_BEGIN * * This file is part of SoCLib, GNU LGPLv2.1. * * SoCLib is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; version 2.1 of the License. * * SoCLib is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with SoCLib; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301 USA * * SOCLIB_LGPL_HEADER_END * * Authors : Franck WAJSBÜRT, Abdelmalek SI MERABET * Date : january 2009 * Copyright: UPMC - LIP6 */ #ifndef SOCLIB_CABA_GATE_SIGNALS_H_ #define SOCLIB_CABA_GATE_SIGNALS_H_ #include "systemc.h" namespace soclib { namespace caba { using namespace sc_core; using namespace sc_dt; template class GateSignals2 { public: sc_core::sc_signal > cmd_data; sc_core::sc_signal cmd_r_wok; sc_core::sc_signal cmd_w_rok; sc_core::sc_signal > rsp_data; sc_core::sc_signal rsp_r_wok; sc_core::sc_signal rsp_w_rok; GateSignals2(std::string name = (std::string)sc_core::sc_gen_unique_name("gate_signals_2_")) : cmd_data ((name+"cmd_data").c_str()), cmd_r_wok ((name+"cmd_r_wok").c_str()), cmd_w_rok ((name+"cmd_w_rok").c_str()), rsp_data ((name+"rsp_data").c_str()), rsp_r_wok ((name+"rsp_r_wok").c_str()), rsp_w_rok ((name+"rsp_w_rok").c_str()) { } }; }} // end namespace #endif /* SOCLIB_CABA_GATE_SIGNALS_H_ */