Ignore:
Timestamp:
Jul 5, 2007, 5:50:19 PM (17 years ago)
Author:
rosiere
Message:

Modification des classes d'encapsulation des interfaces :

  • gère les signaux à écrire dans le vhdl
  • les traces pour le testbench
  • la génération des vhdl structurelles

-> test sur la Pattern History Table

File:
1 edited

Legend:

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

    r2 r42  
    4343   *********************************************************************/
    4444  sc_clock                                 CLOCK ("clock", 1.0, 0.5);
     45  sc_signal<Tcontrol_t>                    RESET;
    4546  sc_signal<Tdata_t>                       DATA_IN  [param._nb_port];
    4647  sc_signal<Tcontrol_t>                    ADDSUB   [param._nb_port];
     
    5354  cout << "<" << name << "> Instanciation of _Counter" << endl;
    5455 
    55  #if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    5656  (*(_Counter->in_CLOCK))        (CLOCK);
    57 #endif
     57  (*(_Counter->in_NRESET))       (RESET);
    5858
    5959  for (uint32_t i=0; i<param._nb_port; i++)
     
    7979
    8080  sc_start(0);
    81   _Counter->vhdl_testbench_label("Initialisation");
     81
     82  RESET.write(1);
     83
    8284  cout << "{"+toString(static_cast<uint32_t>(sc_simulation_time()))+"} Initialisation" << endl;
    8385
    84   _Counter->vhdl_testbench_label("Loop of Test");
    8586  cout << "{"+toString(static_cast<uint32_t>(sc_simulation_time()))+"} Loop of Test" << endl;
    8687
    8788  for (uint32_t iteration=0; iteration<NB_ITERATION; iteration ++)
    8889    {
    89       _Counter->vhdl_testbench_label("Iteration "+toString(iteration));
    9090      cout << "{" << static_cast<uint32_t>(sc_simulation_time()) << "} Itération " << iteration << endl;
    9191      for (uint32_t i=0; i<param._nb_port; i++)
Note: See TracChangeset for help on using the changeset viewer.