Last change
on this file since 66 was
42,
checked in by rosiere, 17 years ago
|
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 size:
738 bytes
|
Rev | Line | |
---|
[2] | 1 | #ifdef VHDL |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 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 | |
---|
| 21 | if (_param._size_data > 1) |
---|
| 22 | { |
---|
[42] | 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.