Changeset 490 for soft/giet_vm/giet_drivers/xcu_driver.c
- Timestamp:
- Jan 16, 2015, 1:24:18 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/xcu_driver.c
r456 r490 181 181 } 182 182 183 //////////////////////////////////////////// 184 void _xcu_send_wti_paddr( unsigned int cluster_xy, 185 unsigned int wti_index, 186 unsigned int wdata ) 187 { 188 #if USE_XCU 189 // parameters checking 190 unsigned int x = cluster_xy >> Y_WIDTH; 191 unsigned int y = cluster_xy & ((1<<Y_WIDTH)-1); 192 if (x >= X_SIZE) _exit(); 193 if (y >= Y_SIZE) _exit(); 194 if (wti_index >= 32) _exit(); 195 196 paddr_t paddr = 197 SEG_XCU_BASE + ((paddr_t)cluster_xy << 32) + 198 (XCU_REG(XCU_WTI_REG, wti_index) << 2); 199 200 _physical_write(paddr, wdata); 201 202 #else 203 _puts("[GIET ERROR] _xcu_send_wti() should not be used if USE_XCU is not set\n"); 204 _exit(); 205 #endif 206 } 183 207 /////////////////////////////////////////////////// 184 208 void _xcu_get_wti_value( unsigned int cluster_xy,
Note: See TracChangeset
for help on using the changeset viewer.