[10] | 1 | #ifdef VHDL_TESTBENCH |
---|
| 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_testbench_port (Vhdl_Testbench & vhdl_testbench) |
---|
[10] | 19 | { |
---|
[15] | 20 | vhdl_testbench.set_port (" in_NRESET",IN ,1); |
---|
[10] | 21 | for (uint32_t i = 0; i < _param._nb_access; i ++) |
---|
| 22 | { |
---|
| 23 | vhdl_testbench.set_port (" in_ACCESS_VAL_"+toString(i)+" ",IN ,1); |
---|
| 24 | vhdl_testbench.set_port ("out_ACCESS_ACK_"+toString(i)+" ",OUT,1); |
---|
| 25 | if (_param._size_table>1) |
---|
| 26 | vhdl_testbench.set_port (" in_ACCESS_ADDRESS_"+toString(i)+" ",IN ,static_cast<uint32_t>(log2(_param._size_table))); |
---|
| 27 | vhdl_testbench.set_port ("out_ACCESS_ENTITY_"+toString(i)+" ",OUT,static_cast<uint32_t>(log2(_param._nb_entity))); |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | for (uint32_t i = 0; i < _param._nb_update; i ++) |
---|
| 31 | { |
---|
| 32 | vhdl_testbench.set_port (" in_UPDATE_VAL_"+toString(i)+" ",IN ,1); |
---|
| 33 | vhdl_testbench.set_port ("out_UPDATE_ACK_"+toString(i)+" ",OUT,1); |
---|
| 34 | if (_param._size_table>1) |
---|
| 35 | vhdl_testbench.set_port (" in_UPDATE_ADDRESS_"+toString(i)+" ",IN ,static_cast<uint32_t>(log2(_param._size_table))); |
---|
| 36 | vhdl_testbench.set_port (" in_UPDATE_ENTITY_"+toString(i)+" ",IN ,static_cast<uint32_t>(log2(_param._nb_entity))); |
---|
| 37 | } |
---|
| 38 | }; |
---|
| 39 | |
---|
[15] | 40 | }; // end namespace victim_pseudo_lru |
---|
[10] | 41 | }; // end namespace victim |
---|
| 42 | }; // end namespace generic |
---|
| 43 | }; // end namespace behavioural |
---|
| 44 | }; // end namespace morpheo |
---|
| 45 | #endif |
---|