GetCtrlSpr(ISASI)
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
x |
|
x |
|
x |
|
x |
|
x |
|
x |
Function Usage
Reads the value of a specific bit in the CTRL register (control register).
Prototype
template <int8_t startBit, int8_t endBit> __aicore__ static inline int64_t GetCtrlSpr()
Parameters
Parameter |
Description |
|---|---|
startBit |
Start bit index. |
endBit |
End bit index. |
Returns
Value of the corresponding bit in the CTRL register.
Constraints
None
Example
The following is an example of reading the value of CTRL[8:6].
int64_t value = AscendC::GetCtrlSpr<6, 8>();
Parent topic: TPosition