- Timestamp:
- Nov 12, 2014, 5:09:17 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/modules/vci_xicu/caba/source/include/vci_xicu.h
r880 r881 2 2 * 3 3 * SOCLIB_LGPL_HEADER_BEGIN 4 * 4 * 5 5 * This file is part of SoCLib, GNU LGPLv2.1. 6 * 6 * 7 7 * SoCLib is free software; you can redistribute it and/or modify it 8 8 * under the terms of the GNU Lesser General Public License as published 9 9 * by the Free Software Foundation; version 2.1 of the License. 10 * 10 * 11 11 * SoCLib is distributed in the hope that it will be useful, but 12 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 14 * Lesser General Public License for more details. 15 * 15 * 16 16 * You should have received a copy of the GNU Lesser General Public 17 17 * License along with SoCLib; if not, write to the Free Software 18 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 19 19 * 02110-1301 USA 20 * 20 * 21 21 * SOCLIB_LGPL_HEADER_END 22 22 * … … 39 39 template<typename vci_param> 40 40 class VciXicu 41 41 : public caba::BaseModule 42 42 { 43 43 private: … … 49 49 const size_t m_wti_count; 50 50 const size_t m_irq_count; 51 const size_t m_cfg_count; 51 52 52 53 uint32_t* r_msk_pti; … … 59 60 uint32_t *r_pti_val; 60 61 uint32_t *r_wti_reg; 62 uint32_t *r_cfg_reg; 61 63 62 64 uint32_t m_clock_cycles; 63 65 64 66 65 bool on_write( int seg, 66 typename vci_param::addr_t addr, 67 typename vci_param::data_t data, 67 bool on_write( int seg, 68 typename vci_param::addr_t addr, 69 typename vci_param::data_t data, 68 70 int be ); 69 bool on_read( int seg, 70 typename vci_param::addr_t addr, 71 bool on_read( int seg, 72 typename vci_param::addr_t addr, 71 73 typename vci_param::data_t &data ); 72 74 … … 84 86 sc_core::sc_out<bool>* p_irq; 85 87 sc_core::sc_in<bool>* p_hwi; 88 sc_core::sc_out<uint32_t>* p_cfg; 86 89 87 90 void print_trace( size_t channel ); 88 91 89 92 ~VciXicu(); 90 93 91 VciXicu( 92 sc_core::sc_module_name name,93 const soclib::common::MappingTable &mt,94 const soclib::common::IntTab &index,95 size_t pti_count,96 size_t hwi_count,97 size_t wti_count,98 size_t irq_count);94 VciXicu( sc_core::sc_module_name name, 95 const soclib::common::MappingTable &mt, 96 const soclib::common::IntTab &index, 97 size_t pti_count, 98 size_t hwi_count, 99 size_t wti_count, 100 size_t irq_count, 101 size_t cfg_count = 0 ); 99 102 100 103 soclib_static_assert(vci_param::B == 4);
Note: See TracChangeset
for help on using the changeset viewer.