source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Internal_Banked/src/Parameters_msg_error.cpp @ 145

Last change on this file since 145 was 145, checked in by rosiere, 14 years ago

1) add test with SPECINT2K
2) new config of Selftest
3) modif RAT to support multiple depth_save ... but not finish (need fix Update Prediction Table)
4) add Function_pointer but need fix

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1/*
2 * $Id: Parameters_msg_error.cpp 145 2010-10-13 18:15:51Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include <stdint.h>
9#include "Behavioural/Generic/RegisterFile/RegisterFile_Internal_Banked/include/Parameters.h"
10#include "Behavioural/Generic/RegisterFile/RegisterFile_Internal_Banked/include/Types.h"
11#include <sstream>
12
13namespace morpheo                    {
14namespace behavioural                {
15namespace generic                    {
16namespace registerfile               {
17namespace registerfile_internal_banked    {
18
19  Parameters_test Parameters::msg_error(void)
20  {
21    Parameters_test test("RegisterFile_Internal_Banked");
22
23    if ((8*sizeof(Tdata_t)) < _size_word)
24      test.error("Type \"Tdata_t\" is too little to the size defined by size_word");
25
26    if ((8*sizeof(Taddress_t)) < log2(_nb_word))
27      test.error("type \"Taddress_t\" is too little to the size defined by nb_word");
28
29    if (_nb_port_read < 1)
30      test.error("you need a read port");
31
32    if (_nb_port_write < 1)
33      test.error("you need a write port");
34
35    // Need test init_value
36
37    return test;
38  };
39
40}; // end namespace registerfile_internal_banked
41}; // end namespace registerfile
42}; // end namespace generic
43}; // end namespace behavioural         
44}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.