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/Data/src/Segment_init.cpp

    r81 r88  
    11#include "../include/Segment.h"
     2#include "../../Common/include/Debug.h"
    23
    34namespace environment {
     
    2223   
    2324    memcpy(data, ptab, size);
    24    
     25
    2526    free  (ptab);
     27     
     28
     29//     {
     30//       _cout(DATA,"Segment Init\n");
     31//       _cout(DATA," * size : %d\n",size);
     32//       _cout(DATA," * size : %d\n",this->size);
     33//       _cout(DATA,"%s\n",print(0).c_str());
     34     
     35//       uint32_t addr = base;
     36//       uint32_t step1 = 4;
     37//       uint32_t step2 = step1*8;
     38
     39//       for (int32_t i=0; i<size; ++i)
     40//         {
     41//           if ((i%step1) == 0)
     42//             _cout(DATA," ");
     43//           if ((i%step2) ==0)
     44//             {
     45//               _cout(DATA,"\n%.8x : ",addr);
     46//               addr += step2;
     47//             }
     48//           _cout(DATA,"%.2x",0xff&static_cast<uint32_t>(data[i]));
     49//         }
     50//       _cout(DATA,"\n");
     51//     }
    2652   
    2753    return true;
Note: See TracChangeset for help on using the changeset viewer.