Last change
on this file since 106 was
82,
checked in by rosiere, 16 years ago
|
- support locale (now must "just" translate)
- update all component with new test format
- update all component with usage
- New component : decod queue and prediction_unit
|
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
Rev | Line | |
---|
[2] | 1 | /* |
---|
| 2 | * $Id: Parameters_msg_error.cpp 82 2008-05-01 16:48:45Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Generic/Shifter/include/Parameters.h" |
---|
| 9 | #include "Behavioural/Generic/Shifter/include/Types.h" |
---|
| 10 | #include <sstream> |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace generic { |
---|
| 15 | namespace shifter { |
---|
| 16 | |
---|
[82] | 17 | Parameters_test Parameters::msg_error(void) |
---|
[2] | 18 | { |
---|
[82] | 19 | Parameters_test test ("Shifter"); |
---|
[2] | 20 | |
---|
| 21 | if (_size_data < 2) |
---|
[82] | 22 | test.error("size_data must be > 1\n"); |
---|
| 23 | |
---|
[2] | 24 | if (is_positive(_nb_port) == false) |
---|
[82] | 25 | test.error("nb_port must be > 0\n"); |
---|
| 26 | |
---|
[2] | 27 | if (_shift_value > _size_data) |
---|
[82] | 28 | test.error("shift_value must be < size_data\n"); |
---|
| 29 | |
---|
[2] | 30 | if ( (_rotate == internal_rotate) && (_carry != internal_logic)) |
---|
[82] | 31 | test.error("Incompatible parameters : internal_rotate have never carry (must be set at \"internal_logic\"\n"); |
---|
| 32 | |
---|
[2] | 33 | if (_type_completion_bool && (_size_data_completion != 1)) |
---|
[82] | 34 | test.error("Incompatible parameters : you can't have the type of port in_SHIFTER_COMPLETION at bool. Because, This port must be more bits\n"); |
---|
[2] | 35 | |
---|
[82] | 36 | return test; |
---|
[2] | 37 | }; |
---|
| 38 | |
---|
| 39 | }; // end namespace shifter |
---|
| 40 | }; // end namespace generic |
---|
| 41 | }; // end namespace behavioural |
---|
| 42 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.