How do we calculate the EVT number corresponding to the different events. Say - C2:58, Ref:23, etc. in the Performance Monitoring Events Table?
Cycles a read is taking in UPM C2:58 —
Cycles a read is taking in SDRAM C3:57 —
Cycles a write is taking in GPCM C4:56 —
i.e. How to convert C2:58 or Ref:23 to PMLCA[EVENT]?
Thanks
Dijo
Solved! Go to Solution.
Please refer to Application note AN3636 "Using the Core and System Performance Monitors"
https://www.freescale.com/webapp/Download?colCode=AN3636
C2:58 -> PMLCa2[EVENT]=58+64=122, PMLCA2=0x007A0000
C3:57 -> PMLCa3[EVENT]=57+64=121, PMLCA3=0x00790000
C4:56 -> PMLCa4[EVENT]=56+64=120, PMLCA4=0x00780000
Ref:23 -> PMLCa5[EVENT]=23, PMLCA5=0x00170000
Have a great day,
Pavel
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Please refer to Application note AN3636 "Using the Core and System Performance Monitors"
https://www.freescale.com/webapp/Download?colCode=AN3636
C2:58 -> PMLCa2[EVENT]=58+64=122, PMLCA2=0x007A0000
C3:57 -> PMLCa3[EVENT]=57+64=121, PMLCA3=0x00790000
C4:56 -> PMLCa4[EVENT]=56+64=120, PMLCA4=0x00780000
Ref:23 -> PMLCa5[EVENT]=23, PMLCA5=0x00170000
Have a great day,
Pavel
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks!