#ifdef VHDL_TESTBENCH /* * $Id: Interfaces_get_reset.cpp 81 2008-04-15 18:40:01Z rosiere $ * * [ Description ] * */ #include "Behavioural/include/Interfaces.h" namespace morpheo { namespace behavioural { #undef FUNCTION #define FUNCTION "Interfaces::get_reset" Signal * Interfaces::get_reset (void) { log_printf(FUNC,Behavioural,FUNCTION,"Begin"); Signal * reset = NULL; if (not _list_interface->empty()) { std::list::iterator i = _list_interface->begin(); while (i != _list_interface->end()) { Signal * sig = (*i)->get_reset (); if (sig != NULL) { if (reset != NULL) throw ErrorMorpheo (" : find too many reset."); reset = sig; } ++i; } } if (reset == NULL) throw ErrorMorpheo (" : no reset find."); log_printf(FUNC,Behavioural,FUNCTION,"End"); return reset; }; }; // end namespace behavioural }; // end namespace morpheo #endif