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

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

File:
1 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};
Note: See TracChangeset for help on using the changeset viewer.