source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_allocation.cpp @ 15

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

Interface normalisé
Début du banc de registres multi niveaux

File size: 1.5 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace generic {
14namespace select {
15namespace select_priority_fixed {
16
17
18  void Select_Priority_Fixed::allocation (void)
19  {
20    string rename;
21
22    log_printf(FUNC,Select_Priority_Fixed,"allocation","Begin");
23
24     in_CLOCK        = new SC_CLOCK           ("in_CLOCK ");
25     in_NRESET       = new SC_IN (Tcontrol_t) ("in_NRESET");
26
27     in_VAL          = new SC_IN (Tcontrol_t)           * [_param._nb_entity];
28    if (_param._encoding_one_hot)
29    out_ACK          = new SC_OUT(Tcontrol_t)           * [_param._nb_entity];
30
31    for (uint32_t i=0; i<_param._nb_entity; i++)
32      {
33        rename = " in_VAL_"+toString(i);
34         in_VAL [i]      = new SC_IN (Tcontrol_t) (rename.c_str());
35
36        if (_param._encoding_one_hot)
37          {
38        rename = "out_ACK_"+toString(i);
39        out_ACK [i]      = new SC_OUT(Tcontrol_t) (rename.c_str());
40          }
41      }
42
43    if (_param._encoding_compact)
44      {
45        out_ENTITY_ACK   = new SC_OUT(Tcontrol_t)           ("out_entity_ack");
46        out_ENTITY       = new SC_OUT(Tentity_t)            ("out_entity");
47      }
48    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
49
50    log_printf(FUNC,Select_Priority_Fixed,"allocation","End");
51  };
52
53}; // end namespace select_priority_fixed
54}; // end namespace select
55}; // end namespace generic
56
57}; // end namespace behavioural
58}; // end namespace morpheo             
59#endif
Note: See TracBrowser for help on using the repository browser.