Changeset 263 for trunk/platforms/tsarv4_generic_mmu/tsarv4_cluster_mmu
- Timestamp:
- Sep 19, 2012, 10:55:24 AM (12 years ago)
- Location:
- trunk/platforms/tsarv4_generic_mmu/tsarv4_cluster_mmu/caba
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/tsarv4_generic_mmu/tsarv4_cluster_mmu/caba/metadata/tsarv4_cluster_mmu.sd
r255 r263 35 35 Uses('caba:vci_multi_tty'), 36 36 Uses('caba:vci_framebuffer'), 37 Uses('caba:vci_multi_nic'), 37 38 Uses('caba:vci_block_device_tsar_v4'), 38 39 Uses('caba:vci_multi_dma'), -
trunk/platforms/tsarv4_generic_mmu/tsarv4_cluster_mmu/caba/source/include/tsarv4_cluster_mmu.h
r255 r263 27 27 #include "vci_vdspin_initiator_wrapper.h" 28 28 #include "vci_multi_tty.h" 29 #include "vci_multi_nic.h" 29 30 #include "vci_block_device_tsar_v4.h" 30 31 #include "vci_framebuffer.h" … … 58 59 sc_signal<bool> signal_irq_mdma[8]; 59 60 sc_signal<bool> signal_irq_mtty[23]; 61 sc_signal<bool> signal_irq_mnic_rx[8]; // unused 62 sc_signal<bool> signal_irq_mnic_tx[8]; // unused 60 63 sc_signal<bool> signal_irq_bdev; 61 64 … … 88 91 VciSignals<vci_param> signal_vci_tgt_d_brom; 89 92 VciSignals<vci_param> signal_vci_tgt_d_fbuf; 93 VciSignals<vci_param> signal_vci_tgt_d_mnic; 90 94 91 95 // Coherence VCi signals … … 114 118 VciMultiTty<vci_param>* mtty; 115 119 VciFrameBuffer<vci_param>* fbuf; 120 VciMultiNic<vci_param>* mnic; 116 121 VciBlockDeviceTsarV4<vci_param>* bdev; 117 122 VciMultiDma<vci_param>* mdma; … … 132 137 size_t tgtid_memc, 133 138 size_t tgtid_xicu, 139 size_t tgtid_mdma, 134 140 size_t tgtid_fbuf, 135 141 size_t tgtid_mtty, 136 142 size_t tgtid_brom, 143 size_t tgtid_mnic, 137 144 size_t tgtid_bdev, 138 size_t tgtid_mdma,139 145 size_t memc_ways, 140 146 size_t memc_sets, … … 149 155 char* disk_name, // virtual disk name for BDEV 150 156 size_t block_size, // block size for BDEV 157 size_t nic_channels, // number of channels 158 char* nic_rx_name, // file name rx packets 159 char* nic_tx_name, // file name tx packets 160 uint32_t nic_timeout, // number of cycles 151 161 const Loader &loader, // loader for BROM 152 162 uint32_t frozen_cycles, // max frozen cycles -
trunk/platforms/tsarv4_generic_mmu/tsarv4_cluster_mmu/caba/source/src/tsarv4_cluster_mmu.cpp
r261 r263 48 48 size_t tgtid_memc, 49 49 size_t tgtid_xicu, 50 size_t tgtid_mdma, 50 51 size_t tgtid_fbuf, 51 52 size_t tgtid_mtty, 52 53 size_t tgtid_brom, 54 size_t tgtid_mnic, 53 55 size_t tgtid_bdev, 54 size_t tgtid_mdma,55 56 size_t memc_ways, 56 57 size_t memc_sets, … … 65 66 char* disk_name, 66 67 size_t block_size, 68 size_t nic_channels, 69 char* nic_rx_name, 70 char* nic_tx_name, 71 uint32_t nic_timeout, 67 72 const Loader &loader, 68 73 uint32_t frozen_cycles, … … 182 187 { 183 188 nb_direct_initiators = nb_procs + 2; 184 nb_direct_targets = 7;189 nb_direct_targets = 8; 185 190 } 186 191 std::ostringstream sd; … … 208 213 std::cout << " - building wrappers in cluster_" << x_id << "_" << y_id << std::endl; 209 214 210 // direct initiator wrapper211 215 std::ostringstream wid; 212 216 wid << "iniwrapperd_" << x_id << "_" << y_id; … … 216 220 4); // rsp fifo depth 217 221 218 // direct target wrapper219 222 std::ostringstream wtd; 220 223 wtd << "tgtwrapperd_" << x_id << "_" << y_id; … … 224 227 4); // rsp fifo depth 225 228 226 // coherence initiator wrapper227 229 std::ostringstream wic; 228 230 wic << "iniwrapperc_" << x_id << "_" << y_id; … … 232 234 4); // rsp fifo depth 233 235 234 // coherence target wrapper235 236 std::ostringstream wtc; 236 237 wtc << "tgtwrapperc_" << x_id << "_" << y_id; … … 252 253 std::cout << " - building rsprouter_" << x_id << "_" << y_id << std::endl; 253 254 254 // RSP router255 255 std::ostringstream srsp; 256 256 srsp << "rsprouter_" << x_id << "_" << y_id; … … 291 291 64); // burst size 292 292 293 std::cout << " - building mnic" << std::endl; 294 295 mnic = new VciMultiNic<vci_param>( 296 "mnic", 297 IntTab(cluster_id, tgtid_mnic), 298 mtd, 299 nic_channels, 300 nic_rx_name, 301 nic_tx_name, 302 nic_timeout); 303 293 304 std::cout << " - building mtty" << std::endl; 294 305 … … 391 402 xbard->p_to_target[tgtid_bdev] (signal_vci_tgt_d_bdev); 392 403 xbard->p_to_target[tgtid_fbuf] (signal_vci_tgt_d_fbuf); 404 xbard->p_to_target[tgtid_mnic] (signal_vci_tgt_d_mnic); 393 405 394 406 xbard->p_to_initiator[nb_procs+1] (signal_vci_ini_d_bdev); … … 471 483 xram->p_clk (this->p_clk); 472 484 xram->p_resetn (this->p_resetn); 473 xram->p_vci 485 xram->p_vci (signal_vci_xram); 474 486 475 487 std::cout << " - XRAM connected" << std::endl; … … 492 504 { 493 505 // BDEV 494 bdev->p_clk 495 bdev->p_resetn 496 bdev->p_irq 497 bdev->p_vci_target 498 bdev->p_vci_initiator 506 bdev->p_clk (this->p_clk); 507 bdev->p_resetn (this->p_resetn); 508 bdev->p_irq (signal_irq_bdev); 509 bdev->p_vci_target (signal_vci_tgt_d_bdev); 510 bdev->p_vci_initiator (signal_vci_ini_d_bdev); 499 511 500 512 std::cout << " - BDEV connected" << std::endl; 501 513 502 514 // FBUF 503 fbuf->p_clk 504 fbuf->p_resetn 505 fbuf->p_vci 515 fbuf->p_clk (this->p_clk); 516 fbuf->p_resetn (this->p_resetn); 517 fbuf->p_vci (signal_vci_tgt_d_fbuf); 506 518 507 519 std::cout << " - FBUF connected" << std::endl; 508 520 521 // MNIC 522 mnic->p_clk (this->p_clk); 523 mnic->p_resetn (this->p_resetn); 524 mnic->p_vci (signal_vci_tgt_d_mnic); 525 for ( size_t i=0 ; i<nic_channels ; i++ ) 526 { 527 mnic->p_rx_irq[i] (signal_irq_mnic_rx[i]); 528 mnic->p_tx_irq[i] (signal_irq_mnic_tx[i]); 529 } 530 531 std::cout << " - MNIC connected" << std::endl; 532 509 533 // BROM 510 brom->p_clk 511 brom->p_resetn 512 brom->p_vci 534 brom->p_clk (this->p_clk); 535 brom->p_resetn (this->p_resetn); 536 brom->p_vci (signal_vci_tgt_d_brom); 513 537 514 538 std::cout << " - BROM connected" << std::endl; 515 539 516 540 // MTTY 517 mtty->p_clk 518 mtty->p_resetn 519 mtty->p_vci 541 mtty->p_clk (this->p_clk); 542 mtty->p_resetn (this->p_resetn); 543 mtty->p_vci (signal_vci_tgt_d_mtty); 520 544 for ( size_t i=0 ; i<nb_ttys ; i++ ) 521 545 { 522 mtty->p_irq[i] 546 mtty->p_irq[i] (signal_irq_mtty[i]); 523 547 } 524 548
Note: See TracChangeset
for help on using the changeset viewer.