Changeset 106 for trunk/modules/vci_synthetic_initator/caba/sources/include
- Timestamp:
- Oct 14, 2010, 2:58:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_synthetic_initator/caba/sources/include/vci_synthetic_initiator.h
r102 r106 47 47 : public soclib::caba::BaseModule 48 48 { 49 typedef sc_dt::sc_uint<40> addr_t; 50 typedef typename vci_param::fast_addr_t vci_addr_t; 49 typedef uint32_t addr_t; 51 50 typedef uint32_t data_t; 52 51 typedef uint32_t tag_t; … … 54 53 typedef uint32_t be_t; 55 54 typedef uint32_t copy_t; 56 57 // Type of the addr_t and access of the fields58 //typedef union{59 // PACKED_BITFIELD(60 // vci_addr_t srcid:vci_param::S,61 // vci_addr_t null:(8*sizeof(vci_addr_t)-(2*vci_param::S)),62 // ) normal_address;63 // PACKED_BITFIELD(64 // vci_addr_t xmin:vci_param::S,65 // vci_addr_t xmax:vci_param::S,66 // vci_addr_t ymin:vci_param::S,67 // vci_addr_t ymax:vci_param::S,68 // vci_addr_t null_:(8*sizeof(vci_addr_t)-(4*vci_param::S)),69 // vci_addr_t bc:2,70 // ) broadcast_address;71 //} addr_t;72 55 73 56 … … 85 68 }; 86 69 87 uint 64_t m_cpt_cycles; // Counter of cycles70 uint32_t m_cpt_cycles; // Counter of cycles 88 71 89 72 … … 102 85 const soclib::common::IntTab &vci_index, 103 86 const uint32_t length, // Packet length (flit numbers) 104 const float rho, // Packets ratio on the network 87 const uint32_t rho, // Packets ratio on the network 88 //const float rho, // Packets ratio on the network 105 89 const uint32_t depth, // Fifo depth 106 90 const uint32_t xmesh, … … 121 105 size_t destAdress(); 122 106 107 void printStats(); 108 109 void print_trace(); 110 123 111 private: 124 112 125 113 // Component attributes 126 114 const size_t m_length; // Number of words to write 127 const float m_rho; // Rate of packets in the network wanted 115 const size_t m_rho; // Rate of packets in the network wanted 116 //const float m_rho; // Rate of packets in the network wanted 128 117 const size_t m_depth; // Fifo depth 129 118 const size_t m_xmesh; … … 135 124 const size_t m_ymax; 136 125 const size_t m_srcid; 137 const size_t m_coord;138 126 139 127 size_t m_count; // Numbers of words sent … … 141 129 uint64_t m_start_latency1; // Start time of sending packet wanted 142 130 uint64_t m_start_latency2; // Start time of sending packet 143 float m_rhos; // Effective Rho during the simulation131 // float m_rhos; // Effective Rho during the simulation 144 132 size_t m_bc_nrsp; // Expected number of responses for a broadcast command 133 addr_t m_address_to_send; // Address to send the write command 145 134 146 135 // Fifo transmitting date to the VCI FSM 147 GenericFifo<uint 64_t> m_date_fifo;136 GenericFifo<uint32_t> m_date_fifo; 148 137 149 138 sc_signal<int> r_vci_fsm; … … 153 142 sc_signal<bool> r_broadcast_req; 154 143 155 sc_signal<addr_t> r_address_to_send; // Address to send the write command156 144 157 145 }; // end class VciSyntheticInitiator
Note: See TracChangeset
for help on using the changeset viewer.