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
RevLine 
[10]1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
[15]8#include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Parameters.h"
9#include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Types.h"
[10]10#include <sstream>
11
12namespace morpheo {
13namespace behavioural {
14namespace generic {
15namespace victim {
[15]16namespace victim_pseudo_lru {
[10]17
[78]18  Parameters_test Parameters::msg_error(void)
[10]19  {
[78]20    Parameters_test test ("Victime_Pseudo_LRU");
[10]21
22    if (_nb_entity < 2)
[78]23      test.error("nb_entity must be >= 2");
24   
[10]25    if (is_positive(log2(_nb_entity)) == false)
[78]26      test.error("nb_entity is not a power of 2");
[10]27
28    if (_nb_access <  1)
[78]29      test.error("nb_access must be >= 1");
[10]30
31    if (_size_table < 1)
[78]32      test.error("size_table must be >= 1");
[10]33
34    if (is_between_inclusive (static_cast<uint32_t>(log2(_nb_entity)),0 ,(8*sizeof(Tentity_t))) == false)
[78]35      test.error("type \"Tentity_t\" is too little to the size defined by nb_entity");
[10]36
37    if (is_between_inclusive (static_cast<uint32_t>(log2(_size_table)),0 ,(8*sizeof(Taddress_t))) == false)
[78]38      test.error("type \"Taddress_t\" is too little to the size defined by size_table");
[10]39
[78]40    return test;
[10]41  };
42
[15]43}; // end namespace victim_pseudo_lru
[10]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.