Ignore:
Timestamp:
Jul 8, 2009, 8:40:08 PM (15 years ago)
Author:
rosiere
Message:

1) add constant method
2) test with systemc 2.2.0

File:
1 edited

Legend:

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

    r113 r131  
    3232      exit (EXIT_FAILURE);
    3333    }
     34
     35  _model.set_model(MODEL_SYSTEMC,true);
    3436
    3537  Tusage_t _usage = USE_ALL;
     
    123125  // Initialisation
    124126
    125   sc_start(0);
     127  SC_START(0);
    126128 
    127129  for (uint32_t i=0; i<_param->_nb_port_write; i++)
     
    134136  NRESET.write(0);
    135137
    136   sc_start(5);
     138  SC_START(5);
    137139
    138140  NRESET.write(1);
    139141
     142  for (uint32_t i=0; i<_param->_nb_port_write; i++)
     143    TEST(Tcontrol_t,WRITE_ACK [i],1);
     144  for (uint32_t i=0; i<_param->_nb_port_read; i++)
     145    TEST(Tcontrol_t,READ_ACK  [i],1);
     146  for (uint32_t i=0; i<_param->_nb_port_read_write; i++)
     147    TEST(Tcontrol_t,READ_WRITE_ACK  [i],1);
    140148
    141149  for (uint32_t nb_iteration=0; nb_iteration < NB_ITERATION; nb_iteration ++)
     
    159167      while (nb_ack < _param->_nb_word)
    160168        {
     169         
    161170          cout << "cycle : " << static_cast<uint32_t> (simulation_cycle()) << endl;
    162171
     
    196205            }
    197206         
    198           sc_start(1);
     207          SC_START(1);
    199208
    200209          // reset write_val port
     
    219228            }
    220229
    221           sc_start(0);
     230//        SC_START(0);
    222231        }
    223232     
     
    266275
    267276
    268           sc_start(1);
     277          SC_START(1);
    269278
    270279          // reset write_val port
     
    297306            }
    298307
    299           sc_start(0);
     308//        SC_START(0);
    300309        }
    301310    }
Note: See TracChangeset for help on using the changeset viewer.