Changeset 379 for trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster/caba
- Timestamp:
- Apr 20, 2013, 6:32:32 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster/caba/source/src/tsar_xbar_cluster.cpp
r378 r379 102 102 { 103 103 std::ostringstream sproc; 104 sproc << "proc_" << x_id << "_" << y_id << "_" <<p;104 sproc << "proc_" << p; 105 105 proc[p] = new VciCcVCacheWrapper<vci_param, iss_t>( 106 106 sproc.str().c_str(), … … 133 133 std::cout << " - building memc_" << x_id << "_" << y_id << std::endl; 134 134 135 std::ostringstream smemc;136 smemc << "memc_" << x_id << "_" << y_id;137 135 memc = new VciMemCache<vci_param>( 138 smemc.str().c_str(),136 "memc", 139 137 mtd, // Mapping Table direct space 140 138 mtx, // Mapping Table external space … … 150 148 memc_debug_ok ); 151 149 152 std::ostringstream swtm;153 swtm << "wt_memc_" << x_id << "_" << y_id;154 150 wt_memc = new VciDspinTargetWrapper<vci_param,cmd_width,rsp_width>( 155 swtm.str().c_str(),151 "wt_memc", 156 152 x_width + y_width + l_width); 157 153 … … 159 155 std::cout << " - building xram_" << x_id << "_" << y_id << std::endl; 160 156 161 std::ostringstream sxram;162 sxram << "xram_" << x_id << "_" << y_id;163 157 xram = new VciSimpleRam<vci_param>( 164 sxram.str().c_str(),158 "xram", 165 159 IntTab(cluster_id), 166 160 mtx, 167 161 loader, 168 162 xram_latency); 169 /* 170 std::ostringstream swtx; 171 swtx << "wt_xram_" << x_id << "_" << y_id; 172 wt_xram = new VciDspinTargetWrapper<vci_param,cmd_width,rsp_width>( 173 swtx.str().c_str(), 174 x_width + y_width ); 175 */ 163 176 164 ///////////////////////////////////////////////////////////////////////////// 177 165 std::cout << " - building xicu_" << x_id << "_" << y_id << std::endl; 178 166 179 std::ostringstream sicu;180 sicu << "xicu_" << x_id << "_" << y_id;181 167 xicu = new VciXicu<vci_param>( 182 sicu.str().c_str(),168 "xicu", 183 169 mtd, // mapping table 184 170 IntTab(cluster_id, tgtid_xicu), // TGTID_D … … 188 174 nb_procs); // number of output IRQs 189 175 190 std::ostringstream swtu;191 swtu << "wt_xicu_" << x_id << "_" << y_id;192 176 wt_xicu = new VciDspinTargetWrapper<vci_param,cmd_width,rsp_width>( 193 swtu.str().c_str(),177 "wt_xicu", 194 178 x_width + y_width + l_width); 195 179 … … 197 181 std::cout << " - building mdma_" << x_id << "_" << y_id << std::endl; 198 182 199 std::ostringstream sdma;200 sdma << "dma_" << x_id << "_" << y_id;201 183 mdma = new VciMultiDma<vci_param>( 202 sdma.str().c_str(),184 "mdma", 203 185 mtd, 204 186 IntTab(cluster_id, nb_procs), // SRCID 205 187 IntTab(cluster_id, tgtid_mdma), // TGTID 206 188 64, // burst size 207 nb_dmas); // number of IRQs 208 209 std::ostringstream swta; 210 swta << "wt_mdma_" << x_id << "_" << y_id; 189 nb_dmas); // number of IRQs 190 211 191 wt_mdma = new VciDspinTargetWrapper<vci_param,cmd_width,rsp_width>( 212 swtu.str().c_str(), 213 x_width + y_width + l_width); 214 215 std::ostringstream swia; 216 swia << "wi_mdma_" << x_id << "_" << y_id; 192 "wt_mdma", 193 x_width + y_width + l_width); 194 217 195 wi_mdma = new VciDspinInitiatorWrapper<vci_param,cmd_width,rsp_width>( 218 swtu.str().c_str(),196 "wi_mdma", 219 197 x_width + y_width + l_width); 220 198 … … 230 208 } 231 209 232 std::ostringstream sdcmd;233 sdcmd << "xbar_cmd_d_" << x_id << "_" << y_id;234 210 xbar_cmd_d = new DspinLocalCrossbar<cmd_width>( 235 sdcmd.str().c_str(),211 "xbar_cmd_d", 236 212 mtd, // mapping table 237 213 x_id, y_id, // cluster coordinates … … 246 222 std::cout << " - building xbar_rsp_d_" << x_id << "_" << y_id << std::endl; 247 223 248 std::ostringstream sdrsp;249 sdrsp << "xbar_rsp_d_" << x_id << "_" << y_id;250 224 xbar_rsp_d = new DspinLocalCrossbar<rsp_width>( 251 sdrsp.str().c_str(),225 "xbar_rsp_d", 252 226 mtd, // mapping table 253 227 x_id, y_id, // cluster coordinates … … 262 236 std::cout << " - building xbar_m2p_c" << x_id << "_" << y_id << std::endl; 263 237 264 std::ostringstream sccmd;265 sccmd << "xbar_m2p_c_" << x_id << "_" << y_id;266 238 xbar_m2p_c = new DspinLocalCrossbar<cmd_width>( 267 sccmd.str().c_str(),239 "xbar_m2p_c", 268 240 mtd, // mapping table 269 241 x_id, y_id, // cluster coordinates … … 278 250 std::cout << " - building xbar_p2m_c_" << x_id << "_" << y_id << std::endl; 279 251 280 std::ostringstream scrsp;281 scrsp << "xbar_p2m_c_" << x_id << "_" << y_id;282 252 xbar_p2m_c = new DspinLocalCrossbar<rsp_width>( 283 scrsp.str().c_str(),253 "xbar_p2m_c", 284 254 mtd, // mapping table 285 255 x_id, y_id, // cluster coordinates 286 x_width, y_width, 0, // l_width unused on the network going from proc to memc (only X and Y identifie the cluster)256 x_width, y_width, 0, // l_width unused on p2m network 287 257 nb_procs, // number of local sources 288 258 1, // number of local dests 289 259 2, 2, // fifo depths 290 260 false, // don't use local routing table 291 false ); // no broacast 261 false ); // no broacast 292 262 293 263 ///////////////////////////////////////////////////////////////////////////// 294 264 std::cout << " - building router_cmd_" << x_id << "_" << y_id << std::endl; 295 265 296 std::ostringstream scmdr;297 scmdr << "router_cmd_" << x_id << "_" << y_id;298 266 router_cmd = new VirtualDspinRouter<cmd_width>( 299 scmdr.str().c_str(),267 "router_cmd", 300 268 x_id,y_id, // coordinate in the mesh 301 269 x_width, y_width, // x & y fields width … … 305 273 std::cout << " - building router_rsp_" << x_id << "_" << y_id << std::endl; 306 274 307 std::ostringstream srspr;308 srspr << "router_rsp_" << x_id << "_" << y_id;309 275 router_rsp = new VirtualDspinRouter<rsp_width>( 310 srspr.str().c_str(),276 "router_rsp", 311 277 x_id,y_id, // coordinates in mesh 312 278 x_width, y_width, // x & y fields width
Note: See TracChangeset
for help on using the changeset viewer.