Ignore:
Timestamp:
Dec 8, 2007, 5:12:36 PM (16 years ago)
Author:
rosiere
Message:

read_queue : systemC et vhdl ok !
queue : quelques petits modif pour avoir une queue de taille 1
nettoyage des fichiers *mkf*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_vhdl_body.cpp

    r67 r68  
    6262        if (is_log2(_param->_size_queue) == false)
    6363          vhdl->set_body ("\tconst_PTR_INIT when reg_PTR_READ  = const_PTR_MAX else");
    64         vhdl->set_body ("\treg_PTR_READ +'1';");
     64
     65        if (_param->_size_queue > 2)
     66          vhdl->set_body ("\treg_PTR_READ +'1';");
     67        else
     68          vhdl->set_body ("\tnot reg_PTR_READ;");
    6569      }
    6670    vhdl->set_body ("");
     
    7377        if (is_log2(_param->_size_queue) == false)
    7478          vhdl->set_body ("\tconst_PTR_INIT when reg_PTR_WRITE = const_PTR_MAX else");
    75         vhdl->set_body ("\treg_PTR_WRITE+'1';");
     79        if (_param->_size_queue > 2)
     80          vhdl->set_body ("\treg_PTR_WRITE+'1';");
     81        else
     82          vhdl->set_body ("\tnot reg_PTR_WRITE;");
    7683      }
    7784    vhdl->set_body ("");
Note: See TracChangeset for help on using the changeset viewer.