|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|

宏定义 | |
| #define | RISCV31_PATCH_FLPCTRL 0xE0000000 |
| #define | RISCV31_PATCH_FLPCTRL_OFFSET 0x0 |
| #define | RISCV31_PATCH_FLPRMP (RISCV31_PATCH_FLPCTRL + 0x4) |
| #define | RISCV31_PATCH_FLPLACMP0 (RISCV31_PATCH_FLPCTRL + 0x8) |
| #define | RISCV31_PATCH_FLPLACMP1 (RISCV31_PATCH_FLPCTRL + 0xC) |
| #define | RISCV31_PATCH_FLPIACMP0 (RISCV31_PATCH_FLPCTRL + 0x10) |
| #define | RISCV31_PATCH_FLPCTRL_ENABLE 0x1 |
| #define | RISCV31_PATCH_FLPCTRL_PCO_WITHIN_1M 0x0 |
| #define | RISCV31_PATCH_FLPCTRL_PCO_LARGER_1M 0x1 |
| #define | RISCV31_PATCH_FLPCTRL_WPT_WRITABLE 0x0 |
| #define | RISCV31_PATCH_FLPCTRL_WPT_UNWRITABLE 0x1 |
| #define | RISCV31_PATCH_FLPCTRL_FLPLACMP0_DISABLE 0x0 |
| #define | RISCV31_PATCH_FLPCTRL_FLPLACMP1_DISABLE 0x0 |
| #define | RISCV31_PATCH_FP_CMP_CTRL_INDEX 0 |
| #define | RISCV31_PATCH_FP_CMP_REMAP_INDEX 1 |
| #define | RISCV31_PATCH_FP_CMP_COUNT_INDEX 2 |
| #define | RISCV31_PATCH_FP_CMP_MATCH_INDEX 3 |
枚举 | |
| enum | sema_enum { GEN_BIT0 = 0 , WPT_BIT1 = 1 , PCO_BIT2 = 2 , LACEN0_BIT3 = 3 , LACEN1_BIT4 = 4 } |
函数 | |
| void | riscv_patch_init (riscv_cfg_t patch_cfg) |
| Initialises the patch. | |
| #define RISCV31_PATCH_FLPCTRL 0xE0000000 |
| #define RISCV31_PATCH_FLPCTRL_ENABLE 0x1 |
| #define RISCV31_PATCH_FLPCTRL_FLPLACMP0_DISABLE 0x0 |
| #define RISCV31_PATCH_FLPCTRL_FLPLACMP1_DISABLE 0x0 |
| #define RISCV31_PATCH_FLPCTRL_OFFSET 0x0 |
| #define RISCV31_PATCH_FLPCTRL_PCO_LARGER_1M 0x1 |
| #define RISCV31_PATCH_FLPCTRL_PCO_WITHIN_1M 0x0 |
| #define RISCV31_PATCH_FLPCTRL_WPT_UNWRITABLE 0x1 |
| #define RISCV31_PATCH_FLPCTRL_WPT_WRITABLE 0x0 |
| #define RISCV31_PATCH_FLPIACMP0 (RISCV31_PATCH_FLPCTRL + 0x10) |
| #define RISCV31_PATCH_FLPLACMP0 (RISCV31_PATCH_FLPCTRL + 0x8) |
| #define RISCV31_PATCH_FLPLACMP1 (RISCV31_PATCH_FLPCTRL + 0xC) |
| #define RISCV31_PATCH_FLPRMP (RISCV31_PATCH_FLPCTRL + 0x4) |
| #define RISCV31_PATCH_FP_CMP_COUNT_INDEX 2 |
| #define RISCV31_PATCH_FP_CMP_CTRL_INDEX 0 |
| #define RISCV31_PATCH_FP_CMP_MATCH_INDEX 3 |
| #define RISCV31_PATCH_FP_CMP_REMAP_INDEX 1 |
| enum sema_enum |
| void riscv_patch_init | ( | riscv_cfg_t | patch_cfg | ) |
Initialises the patch.
| patch_cfg | RISC-V patch configuration. |