source: trunk/communication/gate_2/caba/source/include/gate_signals_2.h @ 36

Last change on this file since 36 was 36, checked in by simerabe, 14 years ago

fixing bug : missing include file

File size: 1.7 KB
Line 
1/* -*- c++ -*-
2 * SOCLIB_LGPL_HEADER_BEGIN
3 *
4 * This file is part of SoCLib, GNU LGPLv2.1.
5 *
6 * SoCLib is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published
8 * by the Free Software Foundation; version 2.1 of the License.
9 *
10 * SoCLib is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with SoCLib; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 * 02110-1301 USA
19 *
20 * SOCLIB_LGPL_HEADER_END
21 *
22 * Authors  : Franck WAJSBÜRT, Abdelmalek SI MERABET
23 * Date     : january 2009
24 * Copyright: UPMC - LIP6
25 */
26
27#ifndef SOCLIB_CABA_GATE_SIGNALS_H_
28#define SOCLIB_CABA_GATE_SIGNALS_H_
29
30#include <systemc> 
31
32namespace soclib { namespace caba {
33
34template<int ring_cmd_data_size, int ring_rsp_data_size>
35class GateSignals2
36{
37public:
38
39        sc_signal<sc_uint<ring_cmd_data_size> > cmd_data;
40        sc_signal<bool> cmd_r_wok;
41        sc_signal<bool> cmd_w_rok;
42
43        sc_signal<sc_uint<ring_rsp_data_size> > rsp_data;
44        sc_signal<bool> rsp_r_wok;
45        sc_signal<bool> rsp_w_rok;
46
47        GateSignals2(std::string name = (std::string)sc_gen_unique_name("gate_signals_2_"))
48          :     cmd_data        ((name+"cmd_data").c_str()),
49                cmd_r_wok       ((name+"cmd_r_wok").c_str()),
50                cmd_w_rok       ((name+"cmd_w_rok").c_str()),
51               
52                rsp_data        ((name+"rsp_data").c_str()),
53                rsp_r_wok       ((name+"rsp_r_wok").c_str()),
54                rsp_w_rok       ((name+"rsp_w_rok").c_str())
55          { }
56};
57
58}} // end namespace
59
60#endif /* SOCLIB_CABA_GATE_SIGNALS_H_ */
Note: See TracBrowser for help on using the repository browser.