Last change
on this file since 106 was
101,
checked in by rosiere, 16 years ago
|
1) Add soc test
2) fix bug (Pc management, Decod and execute, Update prediction ...)
|
-
Property svn:keywords set to
Id
|
File size:
1.2 KB
|
Rev | Line | |
---|
[2] | 1 | /* |
---|
| 2 | * $Id: Parameters_msg_error.cpp 101 2009-01-15 17:19:08Z rosiere $ |
---|
| 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 | |
---|
| 13 | namespace morpheo { |
---|
| 14 | namespace behavioural { |
---|
| 15 | namespace generic { |
---|
| 16 | namespace registerfile { |
---|
[15] | 17 | namespace registerfile_monolithic { |
---|
[2] | 18 | |
---|
[78] | 19 | Parameters_test Parameters::msg_error(void) |
---|
[2] | 20 | { |
---|
[78] | 21 | Parameters_test test("RegisterFile_Monolithic"); |
---|
[2] | 22 | |
---|
| 23 | if ((8*sizeof(Tdata_t)) < _size_word) |
---|
[78] | 24 | test.error("Type \"Tdata_t\" is too little to the size defined by size_word"); |
---|
[2] | 25 | |
---|
| 26 | if ((8*sizeof(Taddress_t)) < log2(_nb_word)) |
---|
[78] | 27 | test.error("type \"Taddress_t\" is too little to the size defined by nb_word"); |
---|
[2] | 28 | |
---|
[55] | 29 | if ((_nb_port_read + _nb_port_read_write) < 1) |
---|
[78] | 30 | test.error("you need a read port"); |
---|
[55] | 31 | |
---|
| 32 | if ((_nb_port_write + _nb_port_read_write) < 1) |
---|
[78] | 33 | test.error("you need a write port"); |
---|
[2] | 34 | |
---|
[101] | 35 | // Need test init_value |
---|
| 36 | |
---|
[78] | 37 | return test; |
---|
[2] | 38 | }; |
---|
| 39 | |
---|
[15] | 40 | }; // end namespace registerfile_monolithic |
---|
[2] | 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.