Ignore:
Timestamp:
Dec 6, 2007, 8:57:49 PM (17 years ago)
Author:
rosiere
Message:

Ajout d'un nouveau composant : fifo generic (un port lecture et un port ecriture).

File:
1 edited

Legend:

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

    r66 r67  
    6262#undef  FUNCTION
    6363#define FUNCTION "Vhdl::std_logic_range"
     64  string std_logic_range (uint32_t size, uint32_t max, uint32_t min)
     65  {
     66    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
     67    string type;
     68
     69    if (size < 2)
     70      type = "";
     71    else
     72      if (max == min)
     73        type = "("+toString(max)+")";
     74      else
     75        type = "("+toString(max)+" downto "+toString(min)+")";
     76
     77    log_printf(FUNC,Behavioural,FUNCTION,"End");
     78
     79    return type;
     80  };
     81
    6482  string std_logic_range (uint32_t max, uint32_t min)
    6583  {
     
    106124    return _return;
    107125  }
     126
     127
     128
    108129}; // end namespace behavioural         
    109130}; // end namespace morpheo             
Note: See TracChangeset for help on using the changeset viewer.