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

Last change on this file since 113 was 113, checked in by rosiere, 15 years ago

1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile

  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1/*
2 * $Id: Parameters.cpp 113 2009-04-14 18:39:12Z 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    behavioural::Parameters("Queue"),
24    _size_queue          (size_queue),
25    _size_data           (size_data ),
26    _nb_port_slot        (nb_port_slot),
27    _have_port_ptr_write (have_port_ptr_write and (log2(size_queue)>0)),
28    _have_port_ptr_read  (have_port_ptr_read  and (log2(size_queue)>0)),
29    _size_ptr            (log2(size_queue)),
30    _have_port_ptr       (have_port_ptr_write or have_port_ptr_read)
31  {
32    log_printf(FUNC,Queue,FUNCTION,"Begin");
33    test();
34    log_printf(FUNC,Queue,FUNCTION,"End");
35  };
36 
37// #undef  FUNCTION
38// #define FUNCTION "Queue::Parameters (copy)"
39//   Parameters::Parameters (Parameters & param):
40//     _size_queue (param._size_queue),
41//     _size_data  (param._size_data )
42//   {
43//     log_printf(FUNC,Queue,FUNCTION,"Begin");
44//     test();
45//     log_printf(FUNC,Queue,FUNCTION,"End");
46//   };
47
48#undef  FUNCTION
49#define FUNCTION "Queue::~Parameters"
50  Parameters::~Parameters () 
51  {
52    log_printf(FUNC,Queue,FUNCTION,"Begin");
53    log_printf(FUNC,Queue,FUNCTION,"End");
54  };
55
56#undef  FUNCTION
57#define FUNCTION "Queue::copy"
58  void Parameters::copy (void) 
59  {
60    log_printf(FUNC,Queue,FUNCTION,"Begin");
61    log_printf(FUNC,Queue,FUNCTION,"End");
62  };
63
64}; // end namespace queue
65}; // end namespace generic
66
67}; // end namespace behavioural
68}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.