Ignore:
Timestamp:
Sep 24, 2007, 2:00:35 PM (17 years ago)
Author:
rosiere
Message:

Ajout SystemC read_queue et reservation_station
Ajout port au bloc registerfile_monolithic (à ajouter également au bloc registerfile et registerfile_multi_banked)
Modif param : passage de pointeur (attention, tous les composants n'ont pas été tous modifier)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_genMealy_read.cpp

    r53 r55  
    2323#endif   
    2424
    25     for (uint32_t i=0; i<_param._nb_port_read; i++)
     25    for (uint32_t i=0; i<_param->_nb_port_read; i++)
    2626      {
    2727        // Have a write?
     
    4545          }
    4646      }
     47
     48    for (uint32_t i=0; i<_param->_nb_port_read_write; i++)
     49      {
     50        Tdata_t data;
     51
     52        // Have a write?
     53        if ( (PORT_READ(in_READ_WRITE_VAL [i]) == 1) and
     54             (PORT_READ(in_READ_WRITE_RW  [i]) == RW_READ)
     55             )
     56          {
     57            Taddress_t address = PORT_READ(in_READ_WRITE_ADDRESS[i]);
     58           
     59            data = REGISTER_READ(reg_DATA[address]);
     60
     61            log_printf(TRACE,RegisterFile,"genMealy_read","[%d] -> %.8x",static_cast<uint32_t>(address),static_cast<uint32_t>(data));
     62
     63#ifdef STATISTICS
     64            _stat_nb_read ++;
     65#endif   
     66            // Write in registerFile
     67           
     68          }
     69        else
     70          {
     71            //log_printf(TRACE,RegisterFile,"genMealy_read","Read  [%d] : No   transaction",i);
     72            data = 0;
     73          }
     74
     75        PORT_WRITE(out_READ_WRITE_RDATA[i],data);
     76      }
     77
    4778    log_printf(FUNC,RegisterFile,"genMealy_read","End");
    4879       
Note: See TracChangeset for help on using the changeset viewer.