source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_vhdl_testbench_transition.cpp @ 38

Last change on this file since 38 was 38, checked in by rosiere, 17 years ago

Interface et vhdl_testbench : l'appel aux fonction add_input et add_ouput est maintenant réalisé par la classe Interface (et autre).

2 remarques :

  • tester avec des sous composants (en particulier les sorties d'un est directement relié au sortie d'un autre)
  • Signal_testbench.cpp -> l'optimisé (par exemple pointeur de fonction afin d'éviter le test et le switch)
File size: 1.2 KB
Line 
1#ifdef VHDL_TESTBENCH
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace generic {
14namespace select {
15namespace select_priority_fixed {
16
17
18  void Select_Priority_Fixed::vhdl_testbench_transition ()
19  {
20    log_printf(FUNC,Select_Priority_Fixed,"vhdl_testbench_transition","Begin");
21
22    // Evaluation before read the ouput signal
23    sc_start(0);
24
25    // In order with file Select_Priority_Fixed_vhdl_testbench_port.cpp
26    // Warning : if a output depend of a subcomponent, take directly the port of subcomponent
27    // (because we have no control on the ordonnancer's policy)
28
29    _interfaces->testbench(_vhdl_testbench);
30
31    // add_test :
32    //  - True  : the cycle must be compare with the output of systemC
33    //  - False : no test
34    _vhdl_testbench->add_test(true);
35
36    _vhdl_testbench->new_cycle (); // always at the end
37
38    log_printf(FUNC,Select_Priority_Fixed,"vhdl_testbench_transition","End");
39  };
40
41}; // end namespace select_priority_fixed
42}; // end namespace select
43}; // end namespace generic
44
45}; // end namespace behavioural
46}; // end namespace morpheo             
47#endif
Note: See TracBrowser for help on using the repository browser.