Changeset 490 for soft/giet_vm/giet_drivers
- Timestamp:
 - Jan 16, 2015, 1:24:18 PM (11 years ago)
 - Location:
 - soft/giet_vm/giet_drivers
 - Files:
 - 
          
- 2 edited
 
- 
          xcu_driver.c (modified) (1 diff)
 - 
          xcu_driver.h (modified) (1 diff)
 
 
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,  - 
        
soft/giet_vm/giet_drivers/xcu_driver.h
r437 r490 93 93 unsigned int wdata ); 94 94 95 /////////////////////////////////////////////////////////////////////////////// 96 // This function writes the "wdata" by physical xcu address value in the mailbox 97 // defined by the "cluster_xy" and "wti_index" arguments. 98 //////////////////////////////////////////////////////////////////////////////// 99 void _xcu_send_wti_paddr( unsigned int cluster_xy, 100 unsigned int wti_index, 101 unsigned int wdata ); 95 102 //////////////////////////////////////////////////////////////////////////////// 96 103 // This function returns the value contained in a WTI mailbox defined by  
Note: See TracChangeset
          for help on using the changeset viewer.
      ![(please configure the [header_logo] section in trac.ini)](/trac/giet-vm/chrome/site/your_project_logo.png)