cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6 MCU

New Contributor

I'd like to count cache misses but am unable to find any registers that might be useful.

The three Cache Status registers seem to just indicate cache tag status and not hit/miss rate.

/* FLASHC.CM4_CA_STATUS0 */

#define FLASHC_CM4_CA_STATUS0_VALID16_Pos       0UL

#define FLASHC_CM4_CA_STATUS0_VALID16_Msk       0xFFFFUL

/* FLASHC.CM4_CA_STATUS1 */

#define FLASHC_CM4_CA_STATUS1_TAG_Pos           0UL

#define FLASHC_CM4_CA_STATUS1_TAG_Msk           0xFFFFFFFFUL

/* FLASHC.CM4_CA_STATUS2 */

#define FLASHC_CM4_CA_STATUS2_LRU_Pos           0UL

#define FLASHC_CM4_CA_STATUS2_LRU_Msk           0x3FUL

Is cache profiling supported?

Kind regards,

Steve

0 Likes
Reply
1 Solution
Moderator
Moderator

No, there are no registers present which keep a count of the HIT/MISS rate in PSoC6.

Regards,
Dheeraj

View solution in original post

0 Likes
Reply
1 Reply
Moderator
Moderator

No, there are no registers present which keep a count of the HIT/MISS rate in PSoC6.

Regards,
Dheeraj

View solution in original post

0 Likes
Reply
Top labels