Last change
on this file since 23 was
15,
checked in by rosiere, 17 years ago
|
Interface normalisé
Début du banc de registres multi niveaux
|
File size:
1.6 KB
|
Rev | Line | |
---|
[2] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include <stdint.h> |
---|
[15] | 9 | #include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/Parameters.h" |
---|
| 10 | #include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/Types.h" |
---|
[2] | 11 | #include <sstream> |
---|
| 12 | using namespace std; |
---|
| 13 | |
---|
| 14 | namespace morpheo { |
---|
| 15 | namespace behavioural { |
---|
| 16 | namespace generic { |
---|
| 17 | namespace registerfile { |
---|
[15] | 18 | namespace registerfile_monolithic { |
---|
[2] | 19 | |
---|
| 20 | string Parameters::msg_error(void) |
---|
| 21 | { |
---|
| 22 | string msg = ""; |
---|
| 23 | |
---|
| 24 | if ((8*sizeof(Tdata_t)) < _size_word) |
---|
| 25 | { |
---|
| 26 | msg += " - type \"Tdata_t\" is too little to the size defined by size_word\n"; |
---|
| 27 | msg += " * size_word : " + toString(_size_word) + "\n"; |
---|
| 28 | msg += " * Tdata_t (bits): " + toString(8*(sizeof(Tdata_t))) + "\n"; |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | if ((8*sizeof(Taddress_t)) < log2(_nb_word)) |
---|
| 32 | { |
---|
| 33 | msg += " - type \"Taddress_t\" is too little to the size defined by nb_word\n"; |
---|
| 34 | msg += " * nb_word : " + toString(_nb_word) + "\n"; |
---|
| 35 | msg += " > size (bits) : " + toString(log2(_nb_word)) + "\n"; |
---|
| 36 | msg += " * Taddress_t (bits) : " + toString(8*(sizeof(Taddress_t))) + "\n"; |
---|
| 37 | } |
---|
| 38 | |
---|
| 39 | if (_nb_word < 2) |
---|
| 40 | { |
---|
| 41 | msg += " - nb_word must be >= 2\n"; |
---|
[6] | 42 | msg += " * nb_word : " + toString(_nb_word) + "\n"; |
---|
[2] | 43 | } |
---|
| 44 | |
---|
| 45 | return msg; |
---|
| 46 | }; |
---|
| 47 | |
---|
[15] | 48 | }; // end namespace registerfile_monolithic |
---|
[2] | 49 | }; // end namespace registerfile |
---|
| 50 | }; // end namespace generic |
---|
| 51 | }; // end namespace behavioural |
---|
| 52 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.