source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Counter_vhdl_declaration.cpp @ 100

Last change on this file since 100 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 738 bytes
Line 
1#ifdef VHDL
2/*
3 * $Id: Counter_vhdl_declaration.cpp 81 2008-04-15 18:40:01Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Generic/Counter/include/Counter.h"
10
11namespace morpheo {
12namespace behavioural {
13namespace generic {
14namespace counter {
15
16
17  void Counter::vhdl_declaration (Vhdl * & vhdl)
18  {
19    log_printf(FUNC,Counter,"vhdl_declaration","Begin");
20   
21    if (_param._size_data > 1)
22      {
23        vhdl->set_constant ("cst_min",_param._size_data,std_logic_others(_param._size_data,0));
24        vhdl->set_constant ("cst_max",_param._size_data,std_logic_others(_param._size_data,1));
25      }
26
27    log_printf(FUNC,Counter,"vhdl_declaration","End");
28  };
29
30}; // end namespace counter
31}; // end namespace generic
32
33}; // end namespace behavioural
34}; // end namespace morpheo             
35#endif
Note: See TracBrowser for help on using the repository browser.