commit 9f1f57a19c3c281a931dfc71b318494487193d56 Author: sophgo-forum-service <forum_service@sophgo.com> Date: Mon May 13 13:58:23 2024 +0800 [feat] cvikernel opensource for cv18xx soc. - 79b6a7, set lookup_interp_table layer_id.
21 lines
708 B
C
21 lines
708 B
C
#ifndef REG_TIU_H
|
|
#define REG_TIU_H
|
|
|
|
#define TIU_DESC_REG_BYTES (0x70)
|
|
#define TIU_ENGINE_DESCRIPTOR_NUM (TIU_DESC_REG_BYTES >> 2)
|
|
|
|
// TIU operation data type
|
|
#define DCR_TYPE_CONV_FIX8B 0
|
|
#define DCR_TYPE_DEPTHWISE_POOL_FIX8B 1
|
|
#define DCR_TYPE_FC_FIX8B 2
|
|
#define DCR_TYPE_TENSOR_ARITH_FIX8B 3
|
|
#define NR_DCR_TYPES 4
|
|
|
|
// BD control bits base on BD_CTRL_BASE_ADDR
|
|
#define BD_TPU_EN 0 // TPU Enable bit
|
|
#define BD_LANE_NUM 22 // Lane number bit[29:22]
|
|
#define BD_DES_ADDR_VLD 30 // enable descriptor mode
|
|
#define BD_INTR_ENABLE 31 // TIU interrupt global enable
|
|
|
|
#endif /* REG_TIU_H */
|