Last change
on this file since 40 was
15,
checked in by rosiere, 17 years ago
|
Interface normalisé
Début du banc de registres multi niveaux
|
File size:
1.1 KB
|
Rev | Line | |
---|
[10] | 1 | #ifdef VHDL |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
[15] | 9 | #include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Victim_Pseudo_LRU.h" |
---|
[10] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace generic { |
---|
| 14 | namespace victim { |
---|
[15] | 15 | namespace victim_pseudo_lru { |
---|
[10] | 16 | |
---|
| 17 | |
---|
[15] | 18 | void Victim_Pseudo_LRU::vhdl_declaration (Vhdl & vhdl) |
---|
[10] | 19 | { |
---|
| 20 | vhdl.set_type ("Ttable", "array (" + toString(_param._size_table-1) + " downto 0) of "+std_logic(_param._nb_entity-1)); |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | vhdl.set_signal ("reg_TABLE", "Ttable"); |
---|
| 24 | for (uint32_t i=0; i<_param._nb_access; i++) |
---|
| 25 | { |
---|
| 26 | vhdl.set_signal ("access_entry_"+toString(i)+" ",std_logic(_param._nb_entity-1)); |
---|
| 27 | vhdl.set_signal ("access_next_entry_"+toString(i)+"",std_logic(_param._nb_entity-1)); |
---|
| 28 | vhdl.set_signal ("access_entity_"+toString(i)+" ",std_logic(static_cast<uint32_t>(log2(_param._nb_entity)))); |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | for (uint32_t i=0; i<_param._nb_update; i++) |
---|
| 32 | { |
---|
| 33 | vhdl.set_signal ("update_next_entry_"+toString(i)+"",std_logic(_param._nb_entity-1)); |
---|
| 34 | } |
---|
| 35 | }; |
---|
| 36 | |
---|
[15] | 37 | }; // end namespace victim_pseudo_lru |
---|
[10] | 38 | }; // end namespace victim |
---|
| 39 | }; // end namespace generic |
---|
| 40 | }; // end namespace behavioural |
---|
| 41 | }; // end namespace morpheo |
---|
| 42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.