Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (16 years ago)
Author:
rosiere
Message:

Almost complete design
with Test and test platform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/Environment/selftest/main.cpp

    r81 r88  
    44using namespace std;
    55using namespace environment;
     6using namespace morpheo;
    67
    78#define _TEST_IMEMORY_ true
     
    206207       dcache_miss_penality,
    207208       1                             ,
    208 //        cache_shared_nb_port          ,
     209//     cache_shared_nb_port          ,
    209210       cache_shared_nb_line          ,
    210211       cache_shared_size_line        ,
     
    218219       nb_tty,
    219220       name_tty,
    220        false,
     221       false, // don't execute xtty
    221222       
    222223       nb_component_ramlock,
     
    458459                  ICACHE_REQ_VAL        [i][j]->write((addr < addr_max) and ((rand()%100)<percent_transaction_icache_req));
    459460                  ICACHE_REQ_CONTEXT_ID [i][j]->write(0);
    460                   ICACHE_REQ_ADDRESS    [i][j]->write(addr);
     461                  ICACHE_REQ_ADDRESS    [i][j]->write(addr>>2);
    461462                  ICACHE_REQ_PACKET_ID  [i][j]->write(addr>>2);
    462463                  ICACHE_REQ_TYPE       [i][j]->write(ICACHE_TYPE_LOAD);
     
    535536        ICACHE_REQ_VAL        [0][0]->write(1);
    536537        ICACHE_REQ_CONTEXT_ID [0][0]->write(0);
    537         ICACHE_REQ_ADDRESS    [0][0]->write(0xe0000000);
     538        ICACHE_REQ_ADDRESS    [0][0]->write(0xe0000000>>2);
    538539        ICACHE_REQ_PACKET_ID  [0][0]->write(21);
    539540        ICACHE_REQ_TYPE       [0][0]->write(ICACHE_TYPE_LOAD);
     
    561562        ICACHE_REQ_VAL        [0][0]->write(1);
    562563        ICACHE_REQ_CONTEXT_ID [0][0]->write(0);
    563         ICACHE_REQ_ADDRESS    [0][0]->write(0xa0000000);
     564        ICACHE_REQ_ADDRESS    [0][0]->write(0xa0000000>>2);
    564565        ICACHE_REQ_PACKET_ID  [0][0]->write(21);
    565566        ICACHE_REQ_TYPE       [0][0]->write(ICACHE_TYPE_LOAD);
Note: See TracChangeset for help on using the changeset viewer.