Changeset 15 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/RegisterFile_Multi_Banked_Glue/src/RegisterFile_Multi_Banked_Glue_vhdl_port.cpp
- Timestamp:
- Apr 5, 2007, 4:17:30 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/RegisterFile_Multi_Banked_Glue/src/RegisterFile_Multi_Banked_Glue_vhdl_port.cpp
r10 r15 7 7 */ 8 8 9 #include "Behavioural/Generic/RegisterFile _Multi_Banked/RegisterFile_Multi_Banked_Glue/include/RegisterFile_Multi_Banked_Glue.h"9 #include "Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/RegisterFile_Multi_Banked_Glue/include/RegisterFile_Multi_Banked_Glue.h" 10 10 11 11 #ifdef VHDL_TESTBENCH … … 18 18 namespace behavioural { 19 19 namespace generic { 20 namespace registerfile{ 20 21 namespace registerfile_multi_banked { 21 22 namespace registerfile_multi_banked_glue { … … 26 27 log_printf(FUNC,RegisterFile_Multi_Banked_Glue,"vhdl_port","Begin"); 27 28 29 log_printf(TRACE,RegisterFile_Multi_Banked_Glue,"vhdl_port","Interface READ_IN"); 28 30 for (uint32_t i=0; i<_param._nb_port_read; i++) 29 31 { … … 32 34 VHDL_SET_PORT(" in_READ_IN_ADDRESS_"+toString(i)+" ", IN, _param._size_address); 33 35 VHDL_SET_PORT("out_READ_IN_DATA_"+toString(i)+" ",OUT, _param._size_word ); 34 VHDL_SET_PORT(" in_READ_SELECT_VAL_"+toString(i)+" ", IN, 1);35 VHDL_SET_PORT("out_READ_SELECT_ACK_"+toString(i)+" ",OUT, 1);36 36 } 37 37 38 log_printf(TRACE,RegisterFile_Multi_Banked_Glue,"vhdl_port","Interface READ_SELECT"); 39 40 for (uint32_t i=0; i<_param._nb_bank; i++) 41 { 42 log_printf(TRACE,RegisterFile_Multi_Banked_Glue,"vhdl_port","READ_SELECT[%d]",i); 43 for (uint32_t j=0; j<_param._nb_port_read_by_bank; j++) 44 { 45 log_printf(TRACE,RegisterFile_Multi_Banked_Glue,"vhdl_port","READ_SELECT[%d][%d]",i,j); 46 for (uint32_t k=0; k<_param._nb_port_select_by_bank_read_port [j]; k++) 47 { 48 log_printf(TRACE,RegisterFile_Multi_Banked_Glue,"vhdl_port","READ_SELECT[%d][%d][%d]",i,j,k); 49 VHDL_SET_PORT("out_READ_SELECT_VAL_"+toString(i)+"_"+toString(j)+"_"+toString(k)+" ",OUT, 1); 50 VHDL_SET_PORT(" in_READ_SELECT_ACK_"+toString(i)+"_"+toString(j)+"_"+toString(k)+" ", IN, 1); 51 } 52 } 53 } 54 log_printf(TRACE,RegisterFile_Multi_Banked_Glue,"vhdl_port","Interface READ_OUT"); 55 38 56 for (uint32_t i=0; i<_param._nb_bank; i++) 39 { 40 for (uint32_t j=0; j<_param._nb_port_read_by_bank; j++) 41 { 42 VHDL_SET_PORT("out_READ_OUT_VAL_"+toString(i)+"_"+toString(j)+" ",OUT, 1); 43 VHDL_SET_PORT(" in_READ_OUT_ACK_"+toString(i)+"_"+toString(j)+" ", IN, 1); 44 VHDL_SET_PORT("out_READ_OUT_ADDRESS_"+toString(i)+"_"+toString(j)+" ",OUT, _param._size_address); 45 VHDL_SET_PORT(" in_READ_OUT_DATA_"+toString(i)+"_"+toString(j)+" ", IN, _param._size_word ); 46 } 47 } 57 for (uint32_t j=0; j<_param._nb_port_read_by_bank; j++) 58 { 59 VHDL_SET_PORT("out_READ_OUT_VAL_"+toString(i)+"_"+toString(j)+" ",OUT, 1); 60 VHDL_SET_PORT(" in_READ_OUT_ACK_"+toString(i)+"_"+toString(j)+" ", IN, 1); 61 VHDL_SET_PORT("out_READ_OUT_ADDRESS_"+toString(i)+"_"+toString(j)+" ",OUT, _param._size_address); 62 VHDL_SET_PORT(" in_READ_OUT_DATA_"+toString(i)+"_"+toString(j)+" ", IN, _param._size_word ); 63 } 48 64 65 log_printf(TRACE,RegisterFile_Multi_Banked_Glue,"vhdl_port","Interface WRITE_IN"); 66 49 67 for (uint32_t i=0; i<_param._nb_port_write; i++) 50 68 { … … 53 71 VHDL_SET_PORT(" in_WRITE_IN_ADDRESS_"+toString(i)+" ", IN, _param._size_address); 54 72 VHDL_SET_PORT(" in_WRITE_IN_DATA_"+toString(i)+" ", IN, _param._size_word ); 55 VHDL_SET_PORT(" in_WRITE_SELECT_VAL_"+toString(i)+" ", IN, 1);56 VHDL_SET_PORT("out_WRITE_SELECT_ACK_"+toString(i)+" ",OUT, 1);57 73 } 58 74 59 for (uint32_t i=0; i<_param._nb_bank; i++) 60 { 61 for (uint32_t j=0; j<_param._nb_port_write_by_bank; j++) 62 { 63 VHDL_SET_PORT("out_WRITE_OUT_VAL_"+toString(i)+"_"+toString(j)+" ",OUT, 1); 64 VHDL_SET_PORT(" in_WRITE_OUT_ACK_"+toString(i)+"_"+toString(j)+" ", IN, 1); 65 VHDL_SET_PORT("out_WRITE_OUT_ADDRESS_"+toString(i)+"_"+toString(j)+" ",OUT, _param._size_address); 66 VHDL_SET_PORT("out_WRITE_OUT_DATA_"+toString(i)+"_"+toString(j)+" ",OUT, _param._size_word ); 67 } 68 } 75 log_printf(TRACE,RegisterFile_Multi_Banked_Glue,"vhdl_port","Interface WRITE_SELECT"); 76 77 for (uint32_t i=0; i<_param._nb_bank; i++) 78 for (uint32_t j=0; j<_param._nb_port_write_by_bank; j++) 79 for (uint32_t k=0; k<_param._nb_port_select_by_bank_write_port [j]; k++) 80 { 81 VHDL_SET_PORT("out_WRITE_SELECT_VAL_"+toString(i)+"_"+toString(j)+"_"+toString(k)+" ",OUT, 1); 82 VHDL_SET_PORT(" in_WRITE_SELECT_ACK_"+toString(i)+"_"+toString(j)+"_"+toString(k)+" ", IN, 1); 83 } 84 85 log_printf(TRACE,RegisterFile_Multi_Banked_Glue,"vhdl_port","Interface WRITE_OUT"); 86 87 for (uint32_t i=0; i<_param._nb_bank; i++) 88 for (uint32_t j=0; j<_param._nb_port_write_by_bank; j++) 89 { 90 VHDL_SET_PORT("out_WRITE_OUT_VAL_"+toString(i)+"_"+toString(j)+" ",OUT, 1); 91 VHDL_SET_PORT(" in_WRITE_OUT_ACK_"+toString(i)+"_"+toString(j)+" ", IN, 1); 92 VHDL_SET_PORT("out_WRITE_OUT_ADDRESS_"+toString(i)+"_"+toString(j)+" ",OUT, _param._size_address); 93 VHDL_SET_PORT("out_WRITE_OUT_DATA_"+toString(i)+"_"+toString(j)+" ",OUT, _param._size_word ); 94 } 69 95 70 96 log_printf(FUNC,RegisterFile_Multi_Banked_Glue,"vhdl_port","End"); … … 73 99 }; // end namespace registerfile_multi_banked_glue 74 100 }; // end namespace registerfile_multi_banked 101 }; // end namespace registerfile 75 102 }; // end namespace generic 76 103
Note: See TracChangeset
for help on using the changeset viewer.