Ignore:
Timestamp:
Jan 15, 2009, 6:19:08 PM (16 years ago)
Author:
rosiere
Message:

1) Add soc test
2) fix bug (Pc management, Decod and execute, Update prediction ...)

Location:
trunk/IPs/systemC/Environment/Data/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/Environment/Data/src/Data_entity.cpp

    r81 r101  
    11#include "../include/Data.h"
     2#include "../../Common/include/Debug.h"
    23
    34namespace environment {
     
    67  Entity Data::entity (uint32_t address, uint32_t size)
    78  {
     9//     _cout(DATA, "  * Data::entity\n");
     10//     _cout(DATA, "    * address      : %.8x\n",address);
     11//     _cout(DATA, "    * size         : %d\n"  ,size   );
     12
    813    for (uint32_t num_seg = 0; num_seg < nb_seg; num_seg ++)
    914      if (segment[num_seg]->test (address,size) == true)
  • trunk/IPs/systemC/Environment/Data/src/Segment_test.cpp

    r81 r101  
    11#include "../include/Segment.h"
     2#include "../../Common/include/Debug.h"
    23
    34namespace environment {
     
    1112  bool Segment::test (uint32_t address, uint32_t size)
    1213  {
     14//     _cout(DATA,"  * Segment::test\n");
     15//     _cout(DATA,"    * address      : %.8x\n",address   );
     16//     _cout(DATA,"    * size         : %d\n"  ,size      );
     17//     _cout(DATA,"    * segment base : %.8x\n",this->base);
     18//     _cout(DATA,"    * segment size : %.8x\n",this->size);
     19
    1320    bool res = (((address     ) >= (this->base           )) and
    1421                ((address+size) <= (this->base+this->size)));
Note: See TracChangeset for help on using the changeset viewer.