source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Parameters_msg_error.cpp @ 78

Last change on this file since 78 was 78, checked in by rosiere, 16 years ago

Add :

  • Execute_loop (must be test systemC)
  • Prediction
    • Direction : predifined scheme
    • Branch Target Buffer
  • iFetch_unit
    • ifetch_queue
    • pc management
  • Decod_unit
    • coming soon : support for custom operation
  • Rename_unit
    • RAT
    • Free_list
    • Dependence RAW check
    • Load store unit pointer
  • New Environnement (hierarchy_memory will remove in a next version)


Modif :

  • Manage Custom Operation
  • All component in execute_loop to use the new statistics management

Not Finish :

  • Return Address Stack
  • Environnement
File size: 1.3 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Parameters.h"
9#include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Types.h"
10#include <sstream>
11
12namespace morpheo {
13namespace behavioural {
14namespace generic {
15namespace victim {
16namespace victim_pseudo_lru {
17
18  Parameters_test Parameters::msg_error(void)
19  {
20    Parameters_test test ("Victime_Pseudo_LRU");
21
22    if (_nb_entity < 2)
23      test.error("nb_entity must be >= 2");
24   
25    if (is_positive(log2(_nb_entity)) == false)
26      test.error("nb_entity is not a power of 2");
27
28    if (_nb_access <  1)
29      test.error("nb_access must be >= 1");
30
31    if (_size_table < 1)
32      test.error("size_table must be >= 1");
33
34    if (is_between_inclusive (static_cast<uint32_t>(log2(_nb_entity)),0 ,(8*sizeof(Tentity_t))) == false)
35      test.error("type \"Tentity_t\" is too little to the size defined by nb_entity");
36
37    if (is_between_inclusive (static_cast<uint32_t>(log2(_size_table)),0 ,(8*sizeof(Taddress_t))) == false)
38      test.error("type \"Taddress_t\" is too little to the size defined by size_table");
39
40    return test;
41  };
42
43}; // end namespace victim_pseudo_lru
44}; // end namespace victim
45}; // end namespace generic
46
47}; // end namespace behavioural
48}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.