source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_get_reset.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: 840 bytes
Line 
1#ifdef VHDL_TESTBENCH
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Interfaces.h"
10
11
12namespace morpheo              {
13namespace behavioural          {
14 
15  Signal * Interfaces::get_reset (void)
16  {
17    Signal * reset = NULL;
18   
19    if (not _list_interface->empty())
20      {
21        list<Interface_fifo*>::iterator i     = _list_interface->begin();
22       
23        while (i != _list_interface->end())
24          {
25            Signal * sig = (*i)->get_reset ();
26
27            if (sig != NULL)
28              {
29                if (reset != NULL)
30                  throw ErrorMorpheo ("<Interfaces.get_reset> : find too many reset.");
31                reset = sig;
32              }
33            ++i;
34          }
35      }
36
37    if (reset == NULL)
38      throw ErrorMorpheo ("<Interfaces.get_reset> : no reset find.");
39   
40    return reset;
41  };
42
43}; // end namespace behavioural         
44}; // end namespace morpheo             
45#endif
Note: See TracBrowser for help on using the repository browser.