Last change
on this file since 140 was
113,
checked in by rosiere, 15 years ago
|
1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile
|
-
Property svn:keywords set to
Id
|
File size:
743 bytes
|
Line | |
---|
1 | #ifdef VHDL |
---|
2 | /* |
---|
3 | * $Id: Counter_vhdl_declaration.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Generic/Counter/include/Counter.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace generic { |
---|
14 | namespace 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.