[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 | |
---|
| 30 | namespace soclib { namespace caba { |
---|
| 31 | |
---|
| 32 | template<int ring_cmd_data_size, int ring_rsp_data_size> |
---|
| 33 | class GateSignals2 |
---|
| 34 | { |
---|
| 35 | public: |
---|
| 36 | |
---|
| 37 | sc_signal<sc_uint<ring_cmd_data_size> > cmd_data; |
---|
| 38 | sc_signal<bool> cmd_r_wok; |
---|
| 39 | sc_signal<bool> cmd_w_rok; |
---|
| 40 | |
---|
| 41 | sc_signal<sc_uint<ring_rsp_data_size> > rsp_data; |
---|
| 42 | sc_signal<bool> rsp_r_wok; |
---|
| 43 | sc_signal<bool> rsp_w_rok; |
---|
| 44 | |
---|
| 45 | GateSignals2(std::string name = (std::string)sc_gen_unique_name("gate_signals_2_")) |
---|
| 46 | : cmd_data ((name+"cmd_data").c_str()), |
---|
| 47 | cmd_r_wok ((name+"cmd_r_wok").c_str()), |
---|
| 48 | cmd_w_rok ((name+"cmd_w_rok").c_str()), |
---|
| 49 | |
---|
| 50 | rsp_data ((name+"rsp_data").c_str()), |
---|
| 51 | rsp_r_wok ((name+"rsp_r_wok").c_str()), |
---|
| 52 | rsp_w_rok ((name+"rsp_w_rok").c_str()) |
---|
| 53 | { } |
---|
| 54 | }; |
---|
| 55 | |
---|
| 56 | }} // end namespace |
---|
| 57 | |
---|
| 58 | #endif /* SOCLIB_CABA_GATE_SIGNALS_H_ */ |
---|