[2] | 1 | #ifdef VHDL |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
[15] | 9 | #include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/RegisterFile_Monolithic.h" |
---|
[2] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace generic { |
---|
| 14 | namespace registerfile { |
---|
[15] | 15 | namespace registerfile_monolithic { |
---|
[2] | 16 | |
---|
[15] | 17 | void RegisterFile_Monolithic::vhdl_port (Vhdl & vhdl) |
---|
[2] | 18 | { |
---|
[6] | 19 | vhdl.set_port ("in_CLOCK" , IN, 1); |
---|
| 20 | vhdl.set_port ("in_NRESET", IN, 1); |
---|
[2] | 21 | |
---|
| 22 | for (uint32_t i = 0; i < _param._nb_port_read; i ++) |
---|
| 23 | { |
---|
[6] | 24 | vhdl.set_port (" in_READ_VAL_"+toString(i)+" ",IN ,std_logic(1) ); |
---|
| 25 | vhdl.set_port ("out_READ_ACK_"+toString(i)+" ",OUT,std_logic(1) ); |
---|
[2] | 26 | vhdl.set_port (" in_READ_ADDRESS_"+toString(i)+"",IN ,std_logic(static_cast<uint32_t>(log2(_param._nb_word)))); |
---|
| 27 | vhdl.set_port ("out_READ_DATA_"+toString(i)+" ",OUT,std_logic(_param._size_word )); |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | for (uint32_t i = 0; i < _param._nb_port_write; i ++) |
---|
| 31 | { |
---|
[6] | 32 | vhdl.set_port (" in_WRITE_VAL_"+toString(i)+" ",IN ,std_logic(1) ); |
---|
| 33 | vhdl.set_port ("out_WRITE_ACK_"+toString(i)+" ",OUT,std_logic(1) ); |
---|
[2] | 34 | vhdl.set_port (" in_WRITE_ADDRESS_"+toString(i)+"",IN ,std_logic(static_cast<uint32_t>(log2(_param._nb_word)))); |
---|
| 35 | vhdl.set_port (" in_WRITE_DATA_"+toString(i)+" ",IN ,std_logic(_param._size_word )); |
---|
| 36 | } |
---|
| 37 | }; |
---|
| 38 | |
---|
[15] | 39 | }; // end namespace registerfile_monolithic |
---|
[2] | 40 | }; // end namespace registerfile |
---|
| 41 | }; // end namespace generic |
---|
| 42 | }; // end namespace behavioural |
---|
| 43 | }; // end namespace morpheo |
---|
| 44 | #endif |
---|