Changeset 123 for trunk/modules/vci_synthetic_initator/caba/sources/include
- Timestamp:
- Jan 7, 2011, 1:50:18 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_synthetic_initator/caba/sources/include/vci_synthetic_initiator.h
r122 r123 4 4 * Copyright : UPMC / LIP6 5 5 * Authors : Christophe Choichillon 6 * 6 * Version : 2.0 7 * 7 8 * SOCLIB_LGPL_HEADER_BEGIN 8 9 * … … 27 28 * Maintainers: christophe.choichillon@lip6.fr 28 29 */ 29 /*30 TODO : Adding the broadcast latency31 */32 30 33 31 #ifndef SOCLIB_CABA_SYNTHETIC_INITIATOR_H … … 43 41 #include "mapping_table.h" 44 42 #include "arithmetics.h" 43 //#include <cmath> 45 44 46 45 namespace soclib { namespace caba { … … 63 62 VCI_IDLE, 64 63 VCI_SINGLE_SEND, 65 VCI_SINGLE_RECEIVE,66 64 VCI_BC_SEND, 67 VCI_BC_RECEIVE68 65 }; 69 // enum gen_fsm_state_e{ 70 // A_IDLE, 71 // A_DATA 72 // }; 66 67 enum bc_rsp_fsm_state_e{ 68 BC_RSP_IDLE, 69 BC_RSP_WAIT_RSP 70 }; 71 73 72 74 73 uint64_t m_cpt_cycles; // Counter of cycles … … 90 89 const uint32_t length, // Packet length (flit numbers) 91 90 const uint32_t rho, // Packets ratio on the network 92 //const float rho, // Packets ratio on the network93 91 const uint32_t depth, // Fifo depth 94 92 const uint32_t xmesh, … … 137 135 uint64_t m_latency1; // Average latency wanted 138 136 uint64_t m_latency2; // Average latency 139 size_t m_bc_nrsp; // Expected number of responses for a broadcast command140 137 addr_t m_address_to_send; // Address to send the write command 141 138 uint32_t m_local_seed; 139 int m_id_to_send; 142 140 143 141 uint64_t m_start_latency_bc; … … 145 143 uint64_t m_nb_bc; 146 144 145 static const int tab_size = 1 << vci_param::T; 147 146 // Fifo transmitting date to the VCI FSM 148 GenericFifo<uint32_t> m_date_fifo;147 GenericFifo<uint32_t> m_date_fifo; 149 148 150 //sc_signal<int> r_cmd_fsm; 151 sc_signal<int> r_vci_fsm; 149 sc_signal<int> r_cmd_fsm; 152 150 153 sc_signal<int> r_bc_rsp_fsm;151 sc_signal<int> r_bc_rsp_fsm; 154 152 155 sc_signal<size_t> r_index;153 sc_signal<size_t> r_index; 156 154 157 sc_signal<bool> r_broadcast_req; 155 sc_signal<bool> r_broadcast_req; 156 157 sc_signal<bool> r_broadcast_rsp; 158 159 sc_signal<uint32_t> r_bc_nrsp; // Expected number of responses for a broadcast command 160 161 sc_signal<uint64_t> **r_req_id; 158 162 159 163
Note: See TracChangeset
for help on using the changeset viewer.