Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Cortex-A9 L2 Cache simulation
Jump...
Cancel
Locked
Locked
Replies
6 replies
Subscribers
119 subscribers
Views
5051 views
Users
0 members are here
Cortex-A9
Cortex-A
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
Cortex-A9 L2 Cache simulation
Patrick Colp
over 12 years ago
Note: This was originally posted on 28th June 2011 at
http://forums.arm.com
Hi,
I'm trying to do some development for the Cortex-A9. I'm using RealView and have been able to get the real-time system model working.
I want to play around with the cache controller a bit, specifically cache locking, but I haven't been able to get the cache behaviour to model. I based my project off the Cortex-A9 Cached Dhrystone example, so I have the code from that to do cache and mmu init. I also downloaded the Cortex-A9MP PL310 Dhrystone example and built and ran that, which at the end states "L2 Data Read Hits = 0", which seems unlikely.
Is the cache simulated in the RealView Debugger? I turned on memory colouring to show L1 and L2 clean/dirty stuff, but none of the colours show up (just the blue and light blue to indicate changes). If the debugger does not provide this, how can I go about testing this? Is there another simulator/emulator that has cache support? Can I plug real hardware into the debugger and use that?
Thanks,
Patrick
Parents
Patrick Colp
over 12 years ago
Note: This was originally posted on 1st July 2011 at
http://forums.arm.com
Thanks Tom.
I downloaded Fast Models and built the Cortex-A9 EB model. I've managed to plug it into RealView Debugger and turned on the PL310 and enabled modelling the data cache in the core CPU. When I run code now, it runs slower, so something's definitely changed. However, I still don't seem to actually be able to model the cache (the colouring in the memory view doesn't show up and the previous Dhrystone example still returns 0 data read hits). I'm sure there's something obvious I'm missing. I don't suppose there's documentation anywhere about setting this sort of thing up?
Thanks,
Patrick
Cancel
Vote up
0
Vote down
Cancel
Reply
Patrick Colp
over 12 years ago
Note: This was originally posted on 1st July 2011 at
http://forums.arm.com
Thanks Tom.
I downloaded Fast Models and built the Cortex-A9 EB model. I've managed to plug it into RealView Debugger and turned on the PL310 and enabled modelling the data cache in the core CPU. When I run code now, it runs slower, so something's definitely changed. However, I still don't seem to actually be able to model the cache (the colouring in the memory view doesn't show up and the previous Dhrystone example still returns 0 data read hits). I'm sure there's something obvious I'm missing. I don't suppose there's documentation anywhere about setting this sort of thing up?
Thanks,
Patrick
Cancel
Vote up
0
Vote down
Cancel
Children
No data