source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Comparator/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.5 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/Comparator/include/Parameters.h"
9#include "Common/include/BitManipulation.h"
10
11namespace morpheo {
12namespace behavioural {
13namespace generic {
14namespace comparator {
15
16#undef  FUNCTION
17#define FUNCTION "Comparator::Parameters"
18  Parameters::Parameters (uint32_t             size_data,
19                          bool                 is_signed,
20                          Tcomparator_scheme_t type     ,
21                          bool is_toplevel)
22  {
23    log_begin(Comparator,FUNCTION);
24
25    _size_data = size_data;
26    _is_signed = is_signed;
27    _type      = type     ;
28
29    test();
30
31    _extends   = gen_mask_not<int64_t>(_size_data);
32    _mask_sign = (1<<(_size_data-1));
33
34    if (is_toplevel)
35      {
36        copy();
37      }
38
39    log_end(Comparator,FUNCTION);
40  };
41 
42// #undef  FUNCTION
43// #define FUNCTION "Comparator::Parameters (copy)"
44//   Parameters::Parameters (Parameters & param)
45//   {
46//     log_begin(Comparator,FUNCTION);
47//     test();
48//     log_end(Comparator,FUNCTION);
49//   };
50
51#undef  FUNCTION
52#define FUNCTION "Comparator::~Parameters"
53  Parameters::~Parameters (void) 
54  {
55    log_begin(Comparator,FUNCTION);
56    log_end(Comparator,FUNCTION);
57  };
58
59#undef  FUNCTION
60#define FUNCTION "Comparator::copy"
61  void Parameters::copy (void) 
62  {
63    log_begin(Comparator,FUNCTION);
64    log_end(Comparator,FUNCTION);
65  };
66
67}; // end namespace comparator
68}; // end namespace generic
69
70}; // end namespace behavioural
71}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.