Changeset 1019 for branches/reconfiguration/modules
- Timestamp:
- Oct 13, 2015, 4:21:06 PM (9 years ago)
- Location:
- branches/reconfiguration/modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/modules/dspin_local_crossbar/caba/source/src/dspin_local_crossbar.cpp
r1001 r1019 279 279 size_t get_out[m_local_outputs+1]; // output ports -> input ports 280 280 bool put_in[m_local_inputs+1]; // input ports -> output ports 281 internal_flit_t data_in[m_local_inputs+1]; // input ports -> output ports281 internal_flit_t* data_in = new internal_flit_t[m_local_inputs+1]; 282 282 283 283 // control signals for the input fifos 284 284 bool fifo_in_write[m_local_inputs+1]; 285 285 bool fifo_in_read[m_local_inputs+1]; 286 internal_flit_t fifo_in_wdata[m_local_inputs+1];286 internal_flit_t* fifo_in_wdata = new internal_flit_t[m_local_inputs+1]; 287 287 288 288 // control signals for the output fifos 289 289 bool fifo_out_write[m_local_outputs+1]; 290 290 bool fifo_out_read[m_local_outputs+1]; 291 internal_flit_t fifo_out_wdata[m_local_outputs+1];291 internal_flit_t* fifo_out_wdata = new internal_flit_t[m_local_outputs+1]; 292 292 293 293 // local-to-global and global-to-local hardware barrier enable signal … … 551 551 fifo_out_wdata[j]); 552 552 } 553 554 delete [] data_in; 555 delete [] fifo_in_wdata; 556 delete [] fifo_out_wdata; 553 557 } // end transition 554 558 -
branches/reconfiguration/modules/vci_mem_cache/caba/source/src/vci_mem_cache.cpp
r1014 r1019 697 697 { 698 698 const uint32_t srcid_width = vci_param_int::S; 699 700 uint8_t req_x = (req_srcid >> (srcid_width - m_x_width)); 701 uint8_t req_y = (req_srcid >> (srcid_width - m_x_width - m_y_width)) & ((1 << m_y_width) - 1); 702 703 return abs(m_x_self - req_x) + abs(m_y_self - req_y) + 1; 699 int req_x = (req_srcid >> (srcid_width - m_x_width)); 700 int req_y = (req_srcid >> (srcid_width - m_x_width - m_y_width)) & ((1 << m_y_width) - 1); 701 702 return abs((int)m_x_self - req_x) + abs((int)m_y_self - req_y) + 1; 704 703 } 705 704
Note: See TracChangeset
for help on using the changeset viewer.