Changeset 613
- Timestamp:
- Jan 1, 2014, 11:30:42 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/almos-tsar-mipsel/top.cpp
r609 r613 265 265 size_t yfb = FBUF_Y_SIZE; // frameBuffer lines number 266 266 size_t fb_mode = 420; 267 size_t memc_size= RAM_SIZE;267 size_t ram_size = RAM_SIZE; 268 268 size_t blk_size = BDEV_SECTOR_SIZE; 269 269 size_t l1_i_ways = L1_IWAYS; … … 274 274 size_t memc_ways = MEMC_WAYS; 275 275 size_t xram_latency = XRAM_LATENCY; 276 size_t ram_base = RAM_BASE; 277 size_t xicu_base = XICU_BASE; 278 size_t mdma_base = MDMA_BASE; 279 size_t memc_base = MEMC_BASE; 280 bool isRamSizeSet = false; 276 281 size_t cluster_io_id; // index of cluster containing IOs 277 282 struct timeval t1,t2; … … 312 317 else if((strcmp(argv[n], "-MEMSZ") == 0) && (n+1 < argc)) 313 318 { 314 memc_size = atoi(argv[n+1]); 319 ram_size = atoi(argv[n+1]); 320 isRamSizeSet = true; 315 321 } 316 322 else if((strcmp(argv[n], "-MCWAYS") == 0) && (n+1 < argc)) … … 461 467 std::cout << " - MEMC_WAYS = " << memc_ways << std::endl; 462 468 std::cout << " - MEMC_SETS = " << memc_sets << std::endl; 463 std::cout << " - RAM_SIZE = " << memc_size << std::endl;469 std::cout << " - RAM_SIZE = " << ram_size << std::endl; 464 470 std::cout << " - RAM_LATENCY = " << xram_latency << std::endl; 465 471 std::cout << " - MAX_FROZEN = " << frozen_cycles << std::endl; … … 512 518 else y_width = 4; 513 519 514 cluster_io_id = 0xbfc00000 >> (vci_address_width - x_width - y_width); // index of cluster containing IOs 520 if((xmax == 1) && (ymax == 1)) 521 { 522 cluster_io_id = 0; 523 ram_size = (isRamSizeSet == true) ? ram_size : 0x8000000; 524 xicu_base = 0x80f00000; 525 memc_base = 0x80f40000; 526 mdma_base = 0x80f30000; 527 } 528 else 529 cluster_io_id = 0xbfc00000 >> (vci_address_width - x_width - y_width); // index of cluster containing IOs 515 530 516 531 ///////////////////// … … 519 534 520 535 // internal network 521 MappingTable maptabd(vci_address_width, 536 MappingTable maptabd(vci_address_width, 522 537 IntTab(x_width + y_width, 16 - x_width - y_width), 523 538 IntTab(x_width + y_width, vci_srcid_width - x_width - y_width), … … 534 549 std::ostringstream si; 535 550 si << "seg_xicu_" << x << "_" << y; 536 maptabd.add(Segment(si.str(), XICU_BASE+ offset, XICU_SIZE,551 maptabd.add(Segment(si.str(), xicu_base + offset, XICU_SIZE, 537 552 IntTab(cluster(x,y),XICU_TGTID), false)); 538 553 539 554 std::ostringstream sd; 540 555 sd << "seg_mdma_" << x << "_" << y; 541 maptabd.add(Segment(sd.str(), MDMA_BASE+ offset, MDMA_SIZE,556 maptabd.add(Segment(sd.str(), mdma_base + offset, MDMA_SIZE, 542 557 IntTab(cluster(x,y),MDMA_TGTID), false)); 543 558 544 559 std::ostringstream sh; 545 560 sh << "seg_ram_" << x << "_" << y; 546 maptabd.add(Segment(sh.str(), RAM_BASE + offset, memc_size,561 maptabd.add(Segment(sh.str(), RAM_BASE + offset, ram_size, 547 562 IntTab(cluster(x,y),MEMC_TGTID), true)); 548 563 549 564 std::ostringstream sconf; 550 565 sconf << "seg_memc_config_" << x << "_" << y; 551 maptabd.add(Segment(sconf.str(), MEMC_BASE + offset, MEMC_SIZE,566 maptabd.add(Segment(sconf.str(), memc_base + offset, RAM_SIZE, 552 567 IntTab(cluster(x,y),MEMC_TGTID), true, true)); 553 568 … … 592 607 593 608 maptabx.add(Segment(sh.str(), RAM_BASE + offset, 594 memc_size, IntTab(cluster(x,y)), false));609 ram_size, IntTab(cluster(x,y)), false)); 595 610 } 596 611 }
Note: See TracChangeset
for help on using the changeset viewer.