Last change
on this file since 125 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
766 bytes
|
Line | |
---|
1 | #ifdef VHDL_TESTBENCH |
---|
2 | /* |
---|
3 | * $Id: Signal_get_reset.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/include/Signal.h" |
---|
10 | |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | |
---|
15 | #undef FUNCTION |
---|
16 | #define FUNCTION "Signal::get_reset" |
---|
17 | Signal * Signal::get_reset (void) |
---|
18 | { |
---|
19 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
20 | |
---|
21 | Signal * _return; |
---|
22 | if ((_presence_port == RESET_VHDL_YES) or |
---|
23 | (_presence_port == RESET_VHDL_NO )) |
---|
24 | { |
---|
25 | if (_size != 1) |
---|
26 | throw ErrorMorpheo ("<Signal.get_reset> : size of signal reset is more than one bit."); |
---|
27 | |
---|
28 | _return = this; |
---|
29 | } |
---|
30 | else |
---|
31 | _return = NULL; |
---|
32 | |
---|
33 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
34 | return _return; |
---|
35 | }; |
---|
36 | |
---|
37 | }; // end namespace behavioural |
---|
38 | }; // end namespace morpheo |
---|
39 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.