Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
ARM advanced microcontroller bus architecture (AMBA) specification.Rev 2.0.pdf
Скачиваний:
186
Добавлен:
23.08.2013
Размер:
1.92 Mб
Скачать

AMBA APB

5.6.3Back to back transfers

Figure 5-13 shows a number of back to back transfers. The sequence starts with a write, which is then followed by a read, then a write, then a read.

T1

T2

T3

T4

T5

T6

T7

T8

T9

T10

T11

T12

HADDR

Addr 1

Addr 2

Addr 3

 

 

 

Addr 4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

HWRITE

 

 

 

 

 

 

 

 

 

 

 

HWDATA

 

Data 1

 

 

 

 

Data 3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

HRDATA

 

 

 

 

 

Data 2

 

 

 

 

Data 4

 

 

 

 

 

 

 

 

 

 

 

HREADY

 

 

 

 

 

 

 

 

 

 

 

PADDR

 

 

Addr 1

 

Addr 2

 

 

Addr 3

 

Addr 4

 

 

 

 

 

 

 

 

 

 

 

 

PWRITE

 

 

 

 

 

 

 

 

 

 

 

PSELx

 

 

 

 

 

 

 

 

 

 

 

PENABLE

 

 

 

 

 

 

 

 

 

 

 

PWDATA

 

 

Data 1

 

 

 

 

Data 3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PRDATA

 

 

 

 

 

Data 2

 

 

 

 

Data 4

 

 

 

 

 

 

 

 

 

 

 

Figure 5-13 Back to back transfers

Figure 5-13 shows that if a read transfer immediately follows a write, then 3 wait states are required to complete the read. In fact, in a processor-based design a write followed by a read does not occur frequently as the processor will perform an instruction fetch between the two transfers and it is unlikely that the instruction memory would reside on the APB.

5-18

© Copyright ARM Limited 1999. All rights reserved.

ARM IHI 0011A

AMBA APB

5.6.4Tristate data bus implementations

It is recommended that the AMBA APB is implemented with separate read and write data buses, which allows the use of either a multiplexed bus or OR-bus scheme to interconnect the various slaves on the APB. If a tristate bus is used then the read and write data buses may be combined into a single bus, as read data and write data never occur simultaneously.

Figure 5-14 illustrates that no special consideration is required if the data bus is implemented using tristate buffers. If the data bus is tristate in the SETUP cycle of a read transfer and whenever the bus is in the Idle state then an entire clock cycle of turnaround always occurs between different drivers of the data. For bursts of write transfers there is no turnaround as the bridge will drive data in the SETUP cycle of every transfer, however this is perfectly acceptable as the bridge is the only driver of the data bus for write transfers and therefore no turnaround period is required.

Figure 5-14 shows how the read and write data buses can be successfully combined into a single tristate data bus.

T1

T2

T3

T4

T5

T6

T7

T8

T9

T10

T11

T12

HADDR

Addr 1

Addr 2

Addr 3

 

 

 

Addr 4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

HWRITE

 

 

 

 

 

 

 

 

 

 

 

HWDATA

 

Data 1

 

 

 

 

Data 3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

HRDATA

 

 

 

 

 

Data 2

 

 

 

 

Data 4

 

 

 

 

 

 

 

 

 

 

 

HREADY

 

 

 

 

 

 

 

 

 

 

 

PADDR

 

 

Addr 1

 

Addr 2

 

 

Addr 3

 

Addr 4

 

 

 

 

 

 

 

 

 

 

 

 

PWRITE

 

 

 

 

 

 

 

 

 

 

 

PSELx

 

 

 

 

 

 

 

 

 

 

 

PENABLE

 

 

 

 

 

 

 

 

 

 

 

PWDATA

 

 

Data 1

 

 

 

 

Data 3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PRDATA

 

 

 

 

 

Data 2

 

 

 

 

Data 4

 

 

 

 

 

 

 

 

 

 

 

PDATA

 

 

Data 1

 

 

Data 2

 

Data 3

 

 

Data 4

 

 

 

 

 

 

 

 

 

 

 

Figure 5-14 Tristate data bus

ARM IHI 0011A

© Copyright ARM Limited 1999. All rights reserved.

5-19