1 | /* |
---|
2 | * $Id: Parameters.cpp 137 2010-02-16 12:35:48Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Generic/Queue/include/Parameters.h" |
---|
9 | #include "Common/include/Log2.h" |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | namespace generic { |
---|
13 | namespace 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 | { |
---|
25 | log_printf(FUNC,Queue,FUNCTION,"Begin"); |
---|
26 | |
---|
27 | _size_queue = size_queue; |
---|
28 | _size_data = size_data ; |
---|
29 | _nb_port_slot = nb_port_slot; |
---|
30 | _have_port_ptr_write = have_port_ptr_write and (log2(size_queue)>0); |
---|
31 | _have_port_ptr_read = have_port_ptr_read and (log2(size_queue)>0); |
---|
32 | |
---|
33 | _size_ptr = log2(size_queue); |
---|
34 | _have_port_ptr = have_port_ptr_write or have_port_ptr_read; |
---|
35 | |
---|
36 | test(); |
---|
37 | log_printf(FUNC,Queue,FUNCTION,"End"); |
---|
38 | }; |
---|
39 | |
---|
40 | // #undef FUNCTION |
---|
41 | // #define FUNCTION "Queue::Parameters (copy)" |
---|
42 | // Parameters::Parameters (Parameters & param): |
---|
43 | // _size_queue (param._size_queue), |
---|
44 | // _size_data (param._size_data ) |
---|
45 | // { |
---|
46 | // log_printf(FUNC,Queue,FUNCTION,"Begin"); |
---|
47 | // test(); |
---|
48 | // log_printf(FUNC,Queue,FUNCTION,"End"); |
---|
49 | // }; |
---|
50 | |
---|
51 | #undef FUNCTION |
---|
52 | #define FUNCTION "Queue::~Parameters" |
---|
53 | Parameters::~Parameters () |
---|
54 | { |
---|
55 | log_printf(FUNC,Queue,FUNCTION,"Begin"); |
---|
56 | log_printf(FUNC,Queue,FUNCTION,"End"); |
---|
57 | }; |
---|
58 | |
---|
59 | #undef FUNCTION |
---|
60 | #define FUNCTION "Queue::copy" |
---|
61 | void Parameters::copy (void) |
---|
62 | { |
---|
63 | log_printf(FUNC,Queue,FUNCTION,"Begin"); |
---|
64 | log_printf(FUNC,Queue,FUNCTION,"End"); |
---|
65 | }; |
---|
66 | |
---|
67 | }; // end namespace queue |
---|
68 | }; // end namespace generic |
---|
69 | |
---|
70 | }; // end namespace behavioural |
---|
71 | }; // end namespace morpheo |
---|