目录

GetBaseAddr

Function Description

Obtains the basic address of the position based on the passed-in logicPos (logical abstract position). This API takes effect only in the CPU debugging scenario. During CPU debugging, this API is called to convert the Tensor address from the CPU address to the NPU address.

Function Prototype

inline uint8_t* GetBaseAddr(int8_t logicPos)

Parameters

Parameter Input/Output Description
logicPos Input Parameter of the logical position type. For details about this type, see TPosition.

Supported Models

Kirin 9020 series processors

Kirin 9030 series processors

Kirin X90 series processors

Precautions

None

Return Value

Base address of the logical position

Calling Example

auto absAddr = GetTPipePtr()->GetBaseAddr(static_cast<int8_t>(pos));