source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Parameters.cpp @ 101

Last change on this file since 101 was 101, checked in by rosiere, 15 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.8 KB
Line 
1/*
2 * $Id: Parameters.cpp 101 2009-01-15 17:19:08Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Generic/Queue/include/Parameters.h"
9#include "Common/include/Log2.h"
10namespace morpheo {
11namespace behavioural {
12namespace generic {
13namespace queue {
14
15
16#undef  FUNCTION
17#define FUNCTION "Queue::Parameters"
18  Parameters::Parameters (uint32_t size_queue         ,
19                          uint32_t size_data          ,
20                          uint32_t nb_port_slot       ,
21                          bool     have_port_ptr_write,
22                          bool     have_port_ptr_read ):
23    _size_queue          (size_queue),
24    _size_data           (size_data ),
25    _nb_port_slot        (nb_port_slot),
26    _have_port_ptr_write (have_port_ptr_write and (log2(size_queue)>0)),
27    _have_port_ptr_read  (have_port_ptr_read  and (log2(size_queue)>0)),
28    _size_ptr            (log2(size_queue)),
29    _have_port_ptr       (have_port_ptr_write or have_port_ptr_read)
30  {
31    log_printf(FUNC,Queue,FUNCTION,"Begin");
32    test();
33    log_printf(FUNC,Queue,FUNCTION,"End");
34  };
35 
36// #undef  FUNCTION
37// #define FUNCTION "Queue::Parameters (copy)"
38//   Parameters::Parameters (Parameters & param):
39//     _size_queue (param._size_queue),
40//     _size_data  (param._size_data )
41//   {
42//     log_printf(FUNC,Queue,FUNCTION,"Begin");
43//     test();
44//     log_printf(FUNC,Queue,FUNCTION,"End");
45//   };
46
47#undef  FUNCTION
48#define FUNCTION "Queue::~Parameters"
49  Parameters::~Parameters () 
50  {
51    log_printf(FUNC,Queue,FUNCTION,"Begin");
52    log_printf(FUNC,Queue,FUNCTION,"End");
53  };
54
55#undef  FUNCTION
56#define FUNCTION "Queue::copy"
57  void Parameters::copy (void) 
58  {
59    log_printf(FUNC,Queue,FUNCTION,"Begin");
60    log_printf(FUNC,Queue,FUNCTION,"End");
61  };
62
63}; // end namespace queue
64}; // end namespace generic
65
66}; // end namespace behavioural
67}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.