Last change
on this file since 137 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
|
Rev | Line | |
---|
[2] | 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 | |
---|
[42] | 17 | void Counter::vhdl_declaration (Vhdl * & vhdl) |
---|
[2] | 18 | { |
---|
| 19 | log_printf(FUNC,Counter,"vhdl_declaration","Begin"); |
---|
| 20 | |
---|
[113] | 21 | if (_param->_size_data > 1) |
---|
[2] | 22 | { |
---|
[113] | 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)); |
---|
[2] | 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.