Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
APB confusion
Locked
Locked
Replies
2 replies
Subscribers
119 subscribers
Views
4587 views
Users
0 members are here
Options
Share
More actions
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
APB confusion
Ganesh Kuppan
over 12 years ago
Note: This was originally posted on 1st September 2011 at
http://forums.arm.com
Hi,
This may seem a very basic doubt. I have implemented APB peripheral on a Cortex M1 based ACTEL platform. I do 3 memory writes and 2 memory reads from the peripheral. The hardware peripheral takes 30 cycles to complete operation after 3 writes are completed to it. Then I do 2 reads. So, I estimated the whole operation to be completed in around 40-45 cycles. I read the AMBA specification and it says, APB peripherals require 2 cycles (address and data phase) to complete with no wait states. I have implemented AMBA 2.0 protocol, which does not have PREADY. But each Load or Store to the peripheral is taking 40 cycles each and the total goes to around 200 cycles. How is this possible? Am I missing some knowledge about AMBA APB?
As my AHB2APB bridge is encrypted RTL, I cannot verify whether somehow this bridge is adding wait states (it can as it is a AHB slave).
Is the FPGA slow in responding and so AHB2APB is adding wait cycles?
Also, if APB transfers can also be done in 2 cycles, why not use the AHB for the same with one WAIT state?
My cortex M1, AHB2APB bridge and hardware peripheral are all working on same clock of 20MHz.
Would appreciate a detailed response.
Also to add, the counter used is again a APB peripheral . I write a value 1 to it, to start counting. Then writes to the above HW peripheral start. After the whole write/read operation to above peripheral , I again write a 0 to counter to stop . Then I read the stored counter value. Because both the peripherals are APB and share the bridge any issues??
0
Quote