Is it possible to count cache hits and misses on the PSoC 6?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
stalc_2666271
Level 1
Level 1

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
1 Solution
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

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
1 Reply
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

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

Regards,
Dheeraj

0 Likes