Arm Amba Ahb Split & Retry
Arm Amba Ahb Split & Retry
ARMAMBA2.0AHBSplitandRetry SOCIALPROFILES
4:04AM AMBA
Whatisthediffrencebetweensplitandretry?
Both the Split and Retry responses are used by slaves which require a large number of Search
cycles to complete a transfer. These responses allow a data phase transfer to appear
Popular Tags BlogArchives
completed to avoid stalling the bus, but at the same time indicate that the transfer
shouldbereattemptedwhenthemasterisnextgrantedthebus.
ThedifferencebetweenthemisthataSPLITresponsetellstheArbitertogivepriorityto
all other masters until the SPLIT transfer can be completed (effectively ignoring all
further requests from this master until the SPLIT slave indicates it can complete the
SPLIT transfer), whereas the RETRY response only tells the Arbiter to give priority to
higherprioritymasters.
ASPLITresponseismorecomplicatedtoimplementthanaRETRY,buthastheadvantage
thatitallowsthemaximumefficiencytobemadeofthebusbandwidth.
ThemasterbehaviourisidenticaltobothSPLITandRETRYresponses,themasterhasto
cancelthenextaccessandreattemptthecurrentfailedaccess.
DoallslaveshavetosupporttheSPLITandRETRYresponses?
No. A slave is only required to support the response types that it needs to use. For
example,asimpleonchipmemoryblockwhichcanrespondtoalltransfersinjustafew
waitstatesdoesnotneedtouseeithertheSPLITorRETRYresponses.
DoallmastershavetosupportSPLITandRETRY?
Yes.AllmastersmustsupportSPLITandRETRYresponsestoensuretheyarecompatible
withanybusslave.AmasterwillhandlebothSPLITandRETRYresponsesinanidentical
manner.
Note that if the system is based on AHBLite, SPLIT and RETRY responses are not
supported. AHBlite is a single master solution, so SPLIT and RETRY responses would chipguru2011.PoweredbyBlogger.
havenomeaning.
CanaSPLITorRETRYresponsebegivenatanypointduringaburst?
Yes.ASPLIT,RETRYorERRORresponsecanbegivenbyaslavetoanytransferduringa
burst.Theslaveisnotrestrictedtoonlygivingtheseresponsestothefirsttransfer.
CanaslaveassertHSPLITxinthesamecyclethatitgivesaSPLITresponse?
No. The specification requires that HSPLITx can only be asserted after the slave has
givenaSPLITresponse.
The1KBrestrictionyourefertoisnotarestrictiononmaximumslavesizebutaconstraintwithin
AHBthatsaysthataburstmustnotcrossa1KBboundary.Thelimitisdesignedtopreventbursts
crossing from one device to another and to give a reasonable tradeoff between burst size and
efficiency.Inpractise,thismeansthatamastermustALWAYSbreakaburstthatwouldotherwise
crossthe1KBboundaryandrestartitwithanonsequentialtransfer,thus:
Address:0x3F00x3F40x3F80x3FC0x4000x4040x408
Transfer:NSEQSEQSEQSEQNSEQSEQSEQ
CanaslaveusebothSPLITandRETRYresponses?
Normally a slave will not use both the SPLIT and RETRY responses. The SPLIT response
should be used by any slave that may be accessed by many different masters at the
same time. The RETRY response is intended to be used by peripherals that are only
accessedbyonebusmaster.
WhataddressshouldbeonthebusduringtheIDLEcycleafteraSPLITorRETRY?
It does not matter what address is driven onto the bus during this cycle. The slave
selectedbythedrivenaddressshouldnottakeanyactionandmustrespondwithazero
waitstateOKAYresponse.
Inmanycasesitwillbesimplerforthemastertoleavetheaddressunalteredduringthis
cycle, so that it remains at the address of the next transfer that the master wishes to
performandonlyinthefollowingcycledoesthemasterreturntheaddresstothatofthe
transferthatmustberepeatedbecauseoftheSPLITorRETRYresponse.
Insomedesignsitmaybepossibleforthemastertoreturntheaddresstothatrequired
torepeattheprevioustransferduringtheIDLEcycleandthisbehaviourisalsoperfectly
acceptable.
WhatvalueshouldbeusedforHTRANSwhenanAHBmastergetsaRETRYresponsefrom
aslaveinthemiddleofburst?
WheneveratransferisrestarteditmustuseHTRANSsettoNONSEQanditmayalsobe
necessarytoadjusttheHBURSTinformation(usuallyjusttoindicateINCR).
WillamasteralwayslosethebusafteraSPLITresponse?
Yes.AslavemustnotasserttherelevantbitoftheHSPLITbusinthesamecyclethatit
givestheSPLITresponseandthereforethemasterwillalwayslosethebus.
Copyright2015ChipGuru|PoweredbyBlogger
DesignbyNewWpThemes|BloggerThemebyLasanthaPremiumBloggerThemes|VirtualDesktop