47 #include "mxc_config.h" 60 #define MAA_MAX_SIZE 256 // in bytes 61 #define MAA_MAX_WORD_SIZE 2048 // in bits 115 int MAA_Compute(tpu_maa_clcsel_t clc,
char *multiplier,
char *multiplicand,
char *exp,
char *mod,
int *result,
unsigned int len);
#define MXC_V_TPU_MAA_CTRL_CLC_SQMUL
MAA_CTRL_CLC_SQMUL Value.
Definition: tpu_regs.h:374
#define MXC_V_TPU_MAA_CTRL_CLC_EXP
MAA_CTRL_CLC_EXP Value.
Definition: tpu_regs.h:368
#define MXC_V_TPU_MAA_CTRL_CLC_ADD
MAA_CTRL_CLC_ADD Value.
Definition: tpu_regs.h:376
int MAA_Compute(tpu_maa_clcsel_t clc, char *multiplier, char *multiplicand, char *exp, char *mod, int *result, unsigned int len)
MAA operation.
#define MXC_V_TPU_MAA_CTRL_CLC_SQ
MAA_CTRL_CLC_SQ Value.
Definition: tpu_regs.h:370
int MAA_Shutdown(void)
Release MAA.
void MAA_Reset(void)
Reset the TPU accelerator.
#define MXC_V_TPU_MAA_CTRL_CLC_MUL
MAA_CTRL_CLC_MUL Value.
Definition: tpu_regs.h:372
#define MXC_V_TPU_MAA_CTRL_CLC_SUB
MAA_CTRL_CLC_SUB Value.
Definition: tpu_regs.h:378
int MAA_Init(unsigned int size)
Configure MAA operation with appropriate MAA word size.