Ignore:
Timestamp:
Jul 5, 2007, 5:50:19 PM (17 years ago)
Author:
rosiere
Message:

Modification des classes d'encapsulation des interfaces :

  • gère les signaux à écrire dans le vhdl
  • les traces pour le testbench
  • la génération des vhdl structurelles

-> test sur la Pattern History Table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Shifter/src/Shifter_vhdl_port.cpp

    r2 r42  
    1515
    1616
    17   void Shifter::vhdl_port (Vhdl & vhdl)
     17  void Shifter::vhdl_port (Vhdl * & vhdl)
    1818  {
    19     for (uint32_t i=0; i<_param._nb_port; i++)
    20       {
    21         vhdl.set_port (" in_SHIFTER_DATA_"+toString(i)+"      ", IN, _param._size_data);
    22         if (_param._shift_value == 0)
    23         vhdl.set_port (" in_SHIFTER_SHIFT_"+toString(i)+"     ", IN, static_cast<uint32_t>(ceil(log2(_param._size_data))));
    24         if (_param._direction   == external_direction)
    25         vhdl.set_port (" in_SHIFTER_DIRECTION_"+toString(i)+" ", IN, 1);
    26         if (_param._rotate      == external_rotate)
    27         vhdl.set_port (" in_SHIFTER_TYPE_"+toString(i)+"      ", IN, 1);
    28         if (_param._carry       == external_carry)
    29         vhdl.set_port (" in_SHIFTER_CARRY_"+toString(i)+"     ", IN, 1);
    30         if (_param._carry       == external_completion)
    31         if (_param._type_completion_bool == true)
    32         vhdl.set_port (" in_SHIFTER_CARRY_IN_"+toString(i)+"  ", IN, 1);
    33         else
    34         vhdl.set_port (" in_SHIFTER_COMPLETION_"+toString(i)+"", IN, _param._size_data_completion);
    35 
    36         vhdl.set_port ("out_SHIFTER_DATA_"+toString(i)+"      ",OUT, _param._size_data);
    37       }
     19    _interfaces->set_port(vhdl);
    3820  };
    3921}; // end namespace shifter
Note: See TracChangeset for help on using the changeset viewer.