set_l1_2d
功能说明
实现数据广播到L1。将L0_SET_VALUE寄存器中的16位/32位的单个数据复制到目标区域的所有指定块中,根据目标地址的类型决定L0_SET_VALUE寄存器中搬运的类型。地址必须32B对齐。(Block大小为32B)
若 config[14:0] = 0(重复次数 0)或 config[30:16] = 0(每轮块数 0),接口视为 NOP(不执行)并报警告。
接口原型
// 相同接口的不同原型区别在于源地址和目的地址的数据类型不同 void set_l1_2d(__cbuf__ float *dst, int64_t config); void set_l1_2d(__cbuf__ bfloat16_t *dst, int64_t config); void set_l1_2d(__cbuf__ uint16_t *dst, int64_t config); void set_l1_2d(__cbuf__ int32_t *dst, int64_t config); void set_l1_2d(__cbuf__ half *dst, int64_t config); void set_l1_2d(__cbuf__ uint32_t *dst, int64_t config); void set_l1_2d(__cbuf__ int16_t *dst, int64_t config);
参数说明
参数含义见表1 config位数说明
流水类型
PIPE_MTE1
父主题: 矩阵广播搬入