source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Shifter/src/Parameters_msg_error.cpp @ 88

Last change on this file since 88 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
Line 
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
12namespace morpheo {
13namespace behavioural {
14namespace generic {
15namespace shifter {
16
17  Parameters_test Parameters::msg_error(void)
18  {
19    Parameters_test test ("Shifter");
20
21    if (_size_data < 2)
22      test.error("size_data must be > 1\n");
23   
24    if (is_positive(_nb_port) == false)
25      test.error("nb_port must be > 0\n");
26   
27    if (_shift_value > _size_data) 
28      test.error("shift_value must be < size_data\n"); 
29   
30    if ( (_rotate == internal_rotate) && (_carry != internal_logic))
31      test.error("Incompatible parameters : internal_rotate have never carry (must be set at \"internal_logic\"\n");
32   
33    if (_type_completion_bool && (_size_data_completion != 1))
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");
35     
36    return test;
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.