Changeset 553 for trunk/modules/vci_spi
- Timestamp:
- Oct 21, 2013, 11:48:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_spi/caba/source/src/vci_spi.cpp
r551 r553 157 157 switch(r_txrx_addr.read()) { 158 158 case 0: 159 r_txrx[0] = (r_txrx[0] & 0xffffffff00000000) |160 ((uint64_t)r_tdata.read() & 0x00000000ffffffff);159 r_txrx[0] = (r_txrx[0] & (uint64_t)0xffffffff00000000ULL) | 160 ((uint64_t)r_tdata.read() & (uint64_t)0x00000000ffffffffULL); 161 161 break; 162 162 case 1: 163 r_txrx[0] = (r_txrx[0] & 0x00000000ffffffff) |163 r_txrx[0] = (r_txrx[0] & (uint64_t)0x00000000ffffffffULL) | 164 164 ((uint64_t)r_tdata.read() << 32); 165 165 break; 166 166 case 2: 167 r_txrx[1] = (r_txrx[1] & 0xffffffff00000000) |168 ((uint64_t)r_tdata.read() & 0x00000000ffffffff);167 r_txrx[1] = (r_txrx[1] & (uint64_t)0xffffffff00000000ULL) | 168 ((uint64_t)r_tdata.read() & (uint64_t)0x00000000ffffffffULL); 169 169 break; 170 170 case 3: 171 r_txrx[1] = (r_txrx[1] & 0x00000000ffffffff) |171 r_txrx[1] = (r_txrx[1] & (uint64_t)0x00000000ffffffffULL) | 172 172 ((uint64_t)r_tdata.read() << 32); 173 173 break; … … 260 260 r_spi_clk_ignore = r_ctrl_cpha; 261 261 r_bit_count = r_ctrl_char_len; 262 r_spi_out = (r_txrx[(r_ctrl_char_len -1)/ 64] >> ((r_ctrl_char_len - 1) % 64)) & 0x0000000000000001;262 r_spi_out = (r_txrx[(r_ctrl_char_len -1)/ 64] >> ((r_ctrl_char_len - 1) % 64)) & (uint64_t)0x0000000000000001ULL; 263 263 if (r_ctrl_go_bsy.read()) 264 264 r_spi_fsm = S_XMIT; … … 285 285 #endif 286 286 } else { 287 r_spi_out = (r_txrx[(r_ctrl_char_len -1)/ 64] >> ((r_ctrl_char_len - 1) % 64)) & 0x0000000000000001;287 r_spi_out = (r_txrx[(r_ctrl_char_len -1)/ 64] >> ((r_ctrl_char_len - 1) % 64)) & (uint64_t)0x0000000000000001ULL; 288 288 } 289 289 } … … 588 588 switch(r_txrx_addr.read()) { 589 589 case 0: 590 p_vci_target.rdata = r_txrx[0] & 0x00000000ffffffff;590 p_vci_target.rdata = r_txrx[0] & (uint64_t)0x00000000ffffffffULL; 591 591 break; 592 592 case 1: … … 594 594 break; 595 595 case 2: 596 p_vci_target.rdata = r_txrx[1] & 0x00000000ffffffff;596 p_vci_target.rdata = r_txrx[1] & (uint64_t)0x00000000ffffffffULL; 597 597 break; 598 598 case 3:
Note: See TracChangeset
for help on using the changeset viewer.