source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Signal_get_reset_cycle.cpp @ 42

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

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 size: 746 bytes
Line 
1#ifdef VHDL_TESTBENCH
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Signal.h"
10
11
12namespace morpheo              {
13namespace behavioural          {
14
15  uint32_t Signal::get_reset_cycle (bool active_low)
16  {
17    uint32_t num = 0;
18    uint32_t cpt = 0;
19    string   cmp = (active_low==true)?"0":"1";
20
21    if ((_presence_port == RESET_VHDL_YES) or
22        (_presence_port == RESET_VHDL_NO ))
23      {
24        if (_list_value->empty()== false)
25          {
26            list<string>::iterator i = _list_value->begin();
27           
28            while (i != _list_value->end())
29              {
30                if ((*i) == cmp)
31                  num = cpt;
32                cpt ++;
33                ++i;
34              }
35          }
36      }
37
38    return num;
39  };
40
41}; // end namespace behavioural         
42}; // end namespace morpheo             
43#endif
Note: See TracBrowser for help on using the repository browser.