Changeset 6 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/src/RegisterFile_allocation.cpp
- Timestamp:
- Mar 21, 2007, 5:00:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/src/RegisterFile_allocation.cpp
r2 r6 16 16 void RegisterFile::allocation (void) 17 17 { 18 in_CLOCK = new SC_CLOCK ("in_CLOCK"); 18 in_CLOCK = new SC_CLOCK ("in_CLOCK"); 19 in_NRESET = new SC_IN (Tcontrol_t) ("in_NRESET"); 19 20 20 21 // ----- Interface Read 21 in_READ_ENABLE = new SC_IN (Tcontrol_t) * [_param._nb_port_read]; 22 in_READ_VAL = new SC_IN (Tcontrol_t) * [_param._nb_port_read]; 23 out_READ_ACK = new SC_OUT(Tcontrol_t) * [_param._nb_port_read]; 22 24 in_READ_ADDRESS = new SC_IN (Taddress_t) * [_param._nb_port_read]; 23 25 out_READ_DATA = new SC_OUT(Tdata_t ) * [_param._nb_port_read]; … … 27 29 string rename; 28 30 29 rename = "in_READ_ENABLE[" + toString(i) + "]"; 30 in_READ_ENABLE [i] = new SC_IN (Tcontrol_t) (rename.c_str()); 31 rename = "in_READ_VAL[" + toString(i) + "]"; 32 in_READ_VAL [i] = new SC_IN (Tcontrol_t) (rename.c_str()); 33 34 rename = "out_READ_ACK[" + toString(i) + "]"; 35 out_READ_ACK [i] = new SC_OUT(Tcontrol_t) (rename.c_str()); 31 36 32 37 rename = "in_READ_ADDRESS[" + toString(i) + "]"; … … 38 43 39 44 // ----- Interface Write 40 in_WRITE_ENABLE = new SC_IN (Tcontrol_t) * [_param._nb_port_write]; 45 in_WRITE_VAL = new SC_IN (Tcontrol_t) * [_param._nb_port_write]; 46 out_WRITE_ACK = new SC_OUT(Tcontrol_t) * [_param._nb_port_write]; 41 47 in_WRITE_ADDRESS = new SC_IN (Taddress_t) * [_param._nb_port_write]; 42 48 in_WRITE_DATA = new SC_IN (Tdata_t ) * [_param._nb_port_write]; … … 46 52 string rename; 47 53 48 rename = "in_WRITE_ENABLE[" + toString(i) + "]"; 49 in_WRITE_ENABLE [i] = new SC_IN (Tcontrol_t) (rename.c_str()); 54 rename = "in_WRITE_VAL[" + toString(i) + "]"; 55 in_WRITE_VAL [i] = new SC_IN (Tcontrol_t) (rename.c_str()); 56 57 rename = "out_WRITE_VAL[" + toString(i) + "]"; 58 out_WRITE_ACK [i] = new SC_OUT(Tcontrol_t) (rename.c_str()); 50 59 51 60 rename = "in_WRITE_ADDRESS[" + toString(i) + "]";
Note: See TracChangeset
for help on using the changeset viewer.