Ignore:
Timestamp:
Jan 30, 2008, 5:24:14 PM (17 years ago)
Author:
rosiere
Message:

New component : Read_unit (instance between a write queue and a optionnal execute_queue)

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/src
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Stat.cpp

    r71 r74  
    1616    _list_operand  = new std::map<std::string, var_t>;
    1717    _list_expr     = new std::list<expr_t>;
     18    _list_stat     = new std::list<Stat *>;
    1819
    1920    _cycle         = create_variable("cycle");
    2021    *_cycle        = 0; // for the first period
     22
     23    _generate_file = true;
    2124  }
    2225
     
    3336    _list_operand  = new std::map<std::string, var_t>;
    3437    _list_expr     = new std::list<expr_t>;
     38    _list_stat     = new std::list<Stat *>;
    3539
    3640    _cycle         = create_variable("cycle");
    3741    *_cycle        = 0; // for the first period
     42
     43    _generate_file = true;
    3844  }
    3945
    4046  Stat::~Stat (void)
    4147  {
    42     generate_file();
     48    if (_generate_file)
     49      generate_file();
    4350
    4451    // parcourir la liste et desallouer les counters
     
    5966      }
    6067    delete _list_expr;
     68    delete _list_stat;
    6169  }
    6270};
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Stat_print.cpp

    r71 r74  
    1616    xml.attribut("name",_name_instance);
    1717    xml.balise_open_end();
     18
     19    // Print component
     20    for (std::list<Stat *>::iterator stat=_list_stat->begin();
     21         stat != _list_stat->end();
     22         stat ++)
     23      xml.text((*stat)->print(depth+1));
     24   
    1825
    1926    // Test special case
Note: See TracChangeset for help on using the changeset viewer.