Changeset 128 for trunk/modules/vci_synthetic_initator/caba/sources/include
- Timestamp:
- Jan 18, 2011, 6:37:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_synthetic_initator/caba/sources/include/vci_synthetic_initiator.h
r126 r128 57 57 58 58 59 /* States of the GENERATORfsm */59 /* States of the VCI CMD fsm */ 60 60 enum vci_fsm_state_e{ 61 61 VCI_IDLE, … … 64 64 }; 65 65 66 enum bc_ rsp_fsm_state_e{66 enum bc_fsm_state_e{ 67 67 BC_RSP_IDLE, 68 68 BC_RSP_WAIT_RSP … … 70 70 71 71 72 uint64_t m_cpt_cycles; // Counter of cycles73 72 74 73 … … 115 114 116 115 // Component attributes 117 const size_t m_length; // Number of words to write 118 const size_t m_rho; // Rate of packets in the network wanted 119 //const float m_rho; // Rate of packets in the network wanted 120 const size_t m_depth; // Fifo depth 121 const size_t m_xmesh; 122 const size_t m_ymesh; 123 const size_t m_bc_period; // Broadcast period, if no broadcast => 0 124 const size_t m_xmin; 125 const size_t m_xmax; 126 const size_t m_ymin; 127 const size_t m_ymax; 128 const size_t m_srcid; 129 static const int tab_size = 1 << vci_param::T; 116 const size_t m_length; // Number of words to write 117 const size_t m_rho; // offered load * 1000 118 const size_t m_depth; // Fifo depth 119 const size_t m_xmesh; 120 const size_t m_ymesh; 121 const size_t m_bc_period; // Broadcast period, if no broadcast => 0 122 const size_t m_xmin; 123 const size_t m_xmax; 124 const size_t m_ymin; 125 const size_t m_ymax; 126 const size_t m_srcid; 127 static const int m_tab_size = 1 << vci_param::T; 130 128 131 sc_signal<size_t> r_count; // Numbers of words sent132 sc_signal<size_t> r_npackets; // Total number of packets already sent133 sc_signal<uint64_t> r_start_latency1; // Start time of sending packet wanted134 sc_signal<uint64_t> r_start_latency2; // Start time of sending packet135 sc_signal<uint64_t> r_latency1; // Average latency wanted136 sc_signal<uint64_t> r_latency2; // Average latency137 sc_signal<addr_t> r_address_to_send; // Address to send the write command138 sc_signal<uint32_t> r_local_seed;139 sc_signal<int> r_id_to_send;140 129 141 sc_signal<uint64_t> r_start_latency_bc;142 sc_signal<uint64_t> r_latency_bc;143 sc_signal<uint64_t> r_nb_bc;130 // Fifo transmitting requests from the generator FSM to the VCI FSM 131 GenericFifo<uint64_t> r_date_fifo; 132 GenericFifo<bool> r_bc_fifo; 144 133 145 // Fifo transmitting date to the VCI FSM 146 GenericFifo<uint32_t> m_date_fifo; 134 // VCI CMD FSM 135 sc_signal<int> r_cmd_fsm; 136 sc_signal<addr_t> r_cmd_address; // Address for the single transaction 137 sc_signal<int> r_cmd_trdid; // TRDID for the single transaction 138 sc_signal<size_t> r_cmd_count; // Numbers of words sent 139 sc_signal<uint32_t> r_cmd_seed; // seed for reproducible address generation 147 140 148 sc_signal<int> r_cmd_fsm; 141 // Broadcast FSM 142 sc_signal<bool> r_bc_fsm; // FSM state 143 sc_signal<uint64_t> r_bc_date; // broadcast transaction requested date 144 sc_signal<uint32_t> r_bc_nrsp; // Expected number of responses for a broadcast command 145 146 // Pending transaction FSMs 147 sc_signal<bool>* r_pending_fsm; // FSM states 148 sc_signal<uint64_t>* r_pending_date; // single transaction requested date 149 149 150 sc_signal<int> r_bc_rsp_fsm; 151 152 sc_signal<size_t> r_index; 153 154 sc_signal<bool> r_broadcast_req; 155 156 sc_signal<bool> r_broadcast_rsp; 157 158 sc_signal<uint32_t> r_bc_nrsp; // Expected number of responses for a broadcast command 159 160 sc_signal<uint64_t> **r_req_id; 161 150 // Instrumentation registers 151 sc_signal<uint64_t> r_cpt_cycles; // Local time 152 sc_signal<uint64_t> r_cpt_period; // Number of cycles between 2 broadcast transactions 153 sc_signal<size_t> r_nb_single; // Total number of single transactions 154 sc_signal<uint64_t> r_latency_single; // Total cumulated latency for single transactions 155 sc_signal<size_t> r_nb_bc; // Total number of bc transactions 156 sc_signal<uint64_t> r_latency_bc; // Total cumulated latency for broadcast transactions 162 157 163 158 }; // end class VciSyntheticInitiator
Note: See TracChangeset
for help on using the changeset viewer.