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

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 734 bytes
Line 
1#ifdef VHDL
2/*
3 * $Id$
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.