source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Configuration_Parameters.cpp @ 3

Last change on this file since 3 was 3, checked in by kane, 17 years ago

1) Ajout d'un "printer" XML pour la configuration de paramètres

2) Fin du composant "Two_Level_Branch_Predictor"

validation * systemc

  • vhdl
File size: 1.1 KB
Line 
1#ifdef CONFIGURATION
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Configuration_Parameters.h"
10
11namespace morpheo              {
12namespace behavioural          {
13   
14  Configuration_Parameters::Configuration_Parameters  (string   name   ,
15                                                       uint32_t value  ,
16                                                       uint32_t min    ,
17                                                       uint32_t max    ,
18                                                       string   step   ,
19                                                       uint32_t value_default,
20                                                       uint32_t level  ,
21                                                       string   comment):
22    _name    (name         ),
23    _value   (value        ),
24    _min     (min          ),
25    _max     (max          ),
26    _step    (step         ),
27    _default (value_default),
28    _level   (level        ),
29    _comment (comment      )
30  {
31    if ((value<min) or (value>max))
32      throw (ErrorMorpheo ("Parameters \""+name+"\" is out of bound : "+toString(value)+" not include in ["+toString(min)+":"+toString(max)+"]"));
33  };
34   
35  Configuration_Parameters::~Configuration_Parameters () 
36  {
37  };
38
39}; // end namespace behavioural         
40}; // end namespace morpheo             
41#endif
Note: See TracBrowser for help on using the repository browser.