Changeset 102 for trunk/modules/vci_synthetic_initator/caba/sources/include
- Timestamp:
- Oct 4, 2010, 5:22:53 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_synthetic_initator/caba/sources/include/vci_synthetic_initiator.h
r98 r102 47 47 : public soclib::caba::BaseModule 48 48 { 49 //typedef sc_dt::sc_uint<40> addr_t;49 typedef sc_dt::sc_uint<40> addr_t; 50 50 typedef typename vci_param::fast_addr_t vci_addr_t; 51 51 typedef uint32_t data_t; … … 56 56 57 57 // Type of the addr_t and access of the fields 58 typedef union{59 PACKED_BITFIELD(60 61 62 63 64 65 66 67 68 69 70 71 } addr_t;58 //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 72 73 73 … … 99 99 VciSyntheticInitiator( 100 100 sc_module_name name, 101 const 102 const 103 size_t length, // Packet length (flit numbers)104 float rho, // Packets ratio on the network105 size_t depth, // Fifo depth106 size_t xmesh,107 size_t ymesh,108 size_t bc_period = 0, // Broadcast period, if no broadcast => 0109 size_t xmin = 0,110 size_t xmax = 0,111 size_t ymin = 0,112 size_t ymax = 0,101 const soclib::common::MappingTable &mt, 102 const soclib::common::IntTab &vci_index, 103 const uint32_t length, // Packet length (flit numbers) 104 const float rho, // Packets ratio on the network 105 const uint32_t depth, // Fifo depth 106 const uint32_t xmesh, 107 const uint32_t ymesh, 108 const uint32_t bc_period = 0, // Broadcast period, if no broadcast => 0 109 const uint32_t xmin = 0, 110 const uint32_t xmax = 0, 111 const uint32_t ymin = 0, 112 const uint32_t ymax = 0 113 113 ); 114 114 … … 119 119 void genMoore(); 120 120 121 void destAdress(size_t X_local, size_t Y_local, size_t &X_dest, size_t &Y_dest);121 size_t destAdress(); 122 122 123 123 private: … … 125 125 // Component attributes 126 126 const size_t m_length; // Number of words to write 127 const size_t m_rho; // Rate of packets in the network wanted127 const float m_rho; // Rate of packets in the network wanted 128 128 const size_t m_depth; // Fifo depth 129 129 const size_t m_xmesh; … … 141 141 uint64_t m_start_latency1; // Start time of sending packet wanted 142 142 uint64_t m_start_latency2; // Start time of sending packet 143 addr_t m_address_to_send; // Address to send the write command144 143 float m_rhos; // Effective Rho during the simulation 145 144 size_t m_bc_nrsp; // Expected number of responses for a broadcast command … … 154 153 sc_signal<bool> r_broadcast_req; 155 154 155 sc_signal<addr_t> r_address_to_send; // Address to send the write command 156 156 157 }; // end class VciSyntheticInitiator 157 158
Note: See TracChangeset
for help on using the changeset viewer.