Last change
on this file since 131 was
116,
checked in by moulu, 15 years ago
|
1) added a generic multiplier (systemC isn't working with 8bits)
2) added a partial functionnal unit vhdl.
|
-
Property svn:keywords set to
Id
|
File size:
961 bytes
|
Rev | Line | |
---|
[112] | 1 | /* |
---|
| 2 | * $Id: Parameters_msg_error.cpp 116 2009-04-30 13:51:41Z moulu $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Types.h" |
---|
| 9 | #include "Behavioural/Generic/Multiplier/include/Parameters.h" |
---|
| 10 | #include <sstream> |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace generic { |
---|
| 15 | namespace multiplier { |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | #undef FUNCTION |
---|
| 19 | #define FUNCTION "Multiplier::msg_error" |
---|
| 20 | Parameters_test Parameters::msg_error(void) |
---|
| 21 | { |
---|
| 22 | log_begin(Multiplier,FUNCTION); |
---|
| 23 | |
---|
| 24 | Parameters_test test ("Multiplier"); |
---|
| 25 | |
---|
[116] | 26 | if ((_size_data < 2) or (_size_data > 64)) |
---|
| 27 | test.error(toString(_("size_data (%d) 's valid range is 2 to 64.\n"),_size_data)); |
---|
| 28 | |
---|
| 29 | if (_delay > 1) |
---|
| 30 | test.error(toString(_("delay must be set at 1\n"))); |
---|
| 31 | |
---|
| 32 | if (_latency > 32) |
---|
| 33 | test.error(toString(_("latency's valid range is 0 to 32\n"))); |
---|
| 34 | |
---|
[112] | 35 | log_end(Multiplier,FUNCTION); |
---|
| 36 | |
---|
| 37 | return test; |
---|
| 38 | }; |
---|
| 39 | |
---|
| 40 | }; // end namespace multiplier |
---|
| 41 | }; // end namespace generic |
---|
| 42 | |
---|
| 43 | }; // end namespace behavioural |
---|
| 44 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.