Ignore:
Timestamp:
Jul 9, 2007, 11:04:26 AM (17 years ago)
Author:
rosiere
Message:

Modif mineur : ajout d'info de débug

Release non stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_std_logic.cpp

    r2 r43  
    1414namespace behavioural          {
    1515
     16#undef  FUNCTION
     17#define FUNCTION "Vhdl::std_logic"
    1618  string std_logic (uint32_t size)
    1719  {
     20    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
     21
    1822    string type;
    1923
     
    2327      type = "std_logic_vector(" + toString(size-1) + " downto 0)";
    2428
     29    log_printf(FUNC,Behavioural,FUNCTION,"End");
     30
    2531    return type;
    2632  };
    2733
     34#undef  FUNCTION
     35#define FUNCTION "Vhdl::std_logic_conv"
    2836  string std_logic_conv (uint32_t size, string value)
    2937  {
     38    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
     39
    3040    string conv;
    3141
     
    3545      conv = "conv_std_logic_vector("+value+","+toString(size)+")";
    3646
     47    log_printf(FUNC,Behavioural,FUNCTION,"End");
     48
    3749    return conv;
    3850  };
     
    4052  string std_logic_conv (uint32_t size, uint32_t value)
    4153  {
    42     return std_logic_conv(size,toString(value));
     54    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
     55    string _return = std_logic_conv(size,toString(value));
     56    log_printf(FUNC,Behavioural,FUNCTION,"End");
     57
     58    return _return;
    4359  };
    4460
     61#undef  FUNCTION
     62#define FUNCTION "Vhdl::std_logic_range"
    4563  string std_logic_range (uint32_t max, uint32_t min)
    4664  {
     65    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
    4766    string type;
    4867
     
    5271      type = "("+toString(max)+" downto "+toString(min)+")";
    5372
     73    log_printf(FUNC,Behavioural,FUNCTION,"End");
     74
    5475    return type;
    5576  };
     
    5778  string std_logic_range (uint32_t size)
    5879  {
    59     return std_logic_range(size-1,0);
     80    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
     81    string _return = std_logic_range(size-1,0);
     82    log_printf(FUNC,Behavioural,FUNCTION,"End");
     83
     84    return _return;
    6085  }
    6186
     87#undef  FUNCTION
     88#define FUNCTION "Vhdl::std_logic_others"
    6289  string std_logic_others (uint32_t size, uint32_t cst  )
    6390  {
     91    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
     92
     93    string _return;
     94
    6495    if (size < 2)
    65       return "'"+toString(cst)+"'";
     96      _return = "'"+toString(cst)+"'";
    6697    else
    67       return "(others => '"+toString(cst)+"')";
     98      _return = "(others => '"+toString(cst)+"')";
     99
     100    log_printf(FUNC,Behavioural,FUNCTION,"End");
     101
     102    return _return;
    68103  }
    69104}; // end namespace behavioural         
Note: See TracChangeset for help on using the changeset viewer.