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

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

removing duplicate ring_signals_2

File size: 1.9 KB
RevLine 
[8]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
[85]30#include "systemc.h"
[36]31
[8]32namespace soclib { namespace caba {
[85]33using namespace sc_core;
34using namespace sc_dt;
[8]35
36template<int ring_cmd_data_size, int ring_rsp_data_size>
37class GateSignals2
38{
39public:
40
[63]41        sc_core::sc_signal<sc_dt::sc_uint<ring_cmd_data_size> > cmd_data;
42        sc_core::sc_signal<bool> cmd_r_wok;
43        sc_core::sc_signal<bool> cmd_w_rok;
[8]44
[63]45        sc_core::sc_signal<sc_dt::sc_uint<ring_rsp_data_size> > rsp_data;
46        sc_core::sc_signal<bool> rsp_r_wok;
47        sc_core::sc_signal<bool> rsp_w_rok;
[8]48
[67]49        GateSignals2(std::string name = (std::string)sc_core::sc_gen_unique_name("gate_signals_2_"))
[8]50          :     cmd_data        ((name+"cmd_data").c_str()),
51                cmd_r_wok       ((name+"cmd_r_wok").c_str()),
52                cmd_w_rok       ((name+"cmd_w_rok").c_str()),
53               
54                rsp_data        ((name+"rsp_data").c_str()),
55                rsp_r_wok       ((name+"rsp_r_wok").c_str()),
56                rsp_w_rok       ((name+"rsp_w_rok").c_str())
57          { }
58};
59
60}} // end namespace
61
62#endif /* SOCLIB_CABA_GATE_SIGNALS_H_ */
Note: See TracBrowser for help on using the repository browser.