ChipFind - документация

Электронный компонент: ARM7TDMIBUSINTERFACE

Скачать:  PDF   ZIP

Document Outline

1
Features
Links an Embedded ARM7TDMI
TM
Core to the Atmel AMBA
TM
Bus
Bus Master Granted State Machine
Bus Interface State Machine
Fully Scan Testable (up to 96% Fault Coverage)
Description
Designed for the Atmel implementation of the AMBA Bus, the ARM7TDMI Bus Inter-
face module enables an ARM7TDMI embedded core to become an AMBA bus
master.
The bus interface is designed to link the embedded ARM7TDMI core signals to the
AMBA Bus. It includes two state machines. The first state machine determines if the
master is currently granted the bus, and the second, more complex, state machine is
used to control the bus interface of the master.
This peripheral can only be used with an embedded ARM7TDMI core.
There are no user-programmable registers in this block.
Figure 1. ARM7TDMI Bus Interface Pin Configuration
blast_in
nreset_r
berror_in
agnt
nreset_f
nwait
abort
ARM7TDMI
Bus Interface
(AMBA Wrapper)
AMBA Bus
Inputs
ARM7TDMI
AMBA Related
Signals
system clock_n
bwait_in
system clock
btran[1:0]
bprot[1:0]
nmreq
seq
nopc
ntrans
mabe
scan_test_mode
test_se
AMBA Bus
Outputs
test_so
test_si
Scan Interface
32-bit
Embedded Core
Interface
ARM7TDMI
TM
Bus Interface
Rev. 1283D03/01
2
Bus Interface
1283D03/01
Table 1. Bus Interface Pin Description
Name
Direction
Source/Destination
Description
AMBA Bus Inputs
nreset_r
Input
Reset Controller
System reset for flip-flop working on the rising edge of the System
Clock (nreset_r synchronous to nclock). Active low.
nreset_f
Input
Reset Controller
System reset for flip-flop working on the rising edge of the inverted
System Clock (nreset_f synchronous to clock). Active low.
clock
Input
System Clock
nclock
Input
Inverted System Clock
bwait_in
Input
Slaves + decoder
Multiplexed BWAIT response from all the peripherals. Active high.
berror_in
Input
Slaves + decoder
Multiplexed BERROR response from all the peripherals. Active
high.
blast_in
Input
Slaves + decoder
Multiplexed BLAST response from all the peripherals. Active high.
agnt
Input
Arbiter
Bus Grant: indicates that the bus master (ARM7TDMI) will be
granted the bus when BWAIT is low.
AMBA Bus Outputs
btran[1:0]
Output
Current bus
master/decoder, slaves
Transfer type: type of the next transaction (Address-only, Non-
sequential or Sequential). To be connected to the tri-state bus
BTRAN[1:0] of the ASB.
bprot[1:0]
Output
Current bus master
Protection control: indicates if the transfer is an opcode fetch or
data access, as well as if the transfer is a supervisor mode access
or a user mode access. To be connected to the tri-state bus
BPROT[1:0] of the ASB.
mabe
Output
Master address bus enable: indicates when BA bus can be taken
into account. Active high.
ARM7TDMI AMBA Related Signals
nwait
Output
ARM7TDMI
Not wait: used when accessing slow peripherals to make the
processor wait. Active Low.
abort
Output
ARM7TDMI
Memory abort: tells the processor that a requested access is not
allowed. Active High.
nmreq
Input
ARM7TDMI
Not memory request: memory access requested by the processor.
Active Low.
seq
Input
ARM7TDMI
Sequential address: next address (memory access) will be related
to the last memory access. Active High.
nopc
Input
ARM7TDMI
Not op-code fetch: indicates that the processor is fetching an
instruction from the memory. Active Low.
ntrans
Input
ARM7TDMI
Not memory translate: indicates that the processor is in user mode.
Active Low.
3
Bus Interface
1283D03/01
Note:
1. The scan chain uses the clock BCLK.
Scan Test
Configuration
The coverage is maximum if all non-scan inputs can be controlled and all non-scan outputs
can be observed. In order to achieve this, the ATPG vectors must be generated on the entire
circuit (top level) which includes the ARM7TDMI Bus Interface or all ARM7TDMI Bus Interface
I/Os must have a top level access and ATPG vectors must be applied to these pins.
Scan Test
scan_test_mode
Input
Must be tied to 1 during scan test
Must be tied to 0 in functional mode
test_se
Input
Test scan shift enabled when tied to 1
test_si
(1)
Input
Test scan input (input of the scan chain)
test_so
(1)
Output
Test scan output (output of the scan chain)
Table 1. Bus Interface Pin Description (Continued)
Name
Direction
Source/Destination
Description
4
Bus Interface
1283D03/01
Operating in an
AMBA Bus System
Figure 2. An Example of ARM7TDMI Core and Bus Interface Implementation
a[31:0]
commrx
commrx
commtx
commtx
dbgack
dbgack
dout[31:0]
bwdata[31:0]
eclk
eclk
lock
block
mas[1:0]
bsize[1:0]
nexec
nexec
nfiq
nfiq
nirq
nirq
nm[4:0]
nm[3:0]
ntdoen
ntdoen
tapsm[3:0]
tbit
tbit
tapsm[3:0]
tdo
tdo
ba[31:0]
breakpt
dbgrq
dbgrq
breakpt
brdata[31:0]
din[31:0]
core_clock
mclk
nreset_f
nreset
bwrite
nrw
ntrst
tck
ntrst
tck
tdi
tdi
tms
tms
clock
clock_n
nreset_r
nreset_f
scan_test_mode
wrapper_clock
wrapper_clock_n
nreset_r
scan_test_mode
ARM7TDMI Bus Interface
ARM7TDMI Core
nwait
nwait
abort
abort
bwait_in
bwait
blast_in
blast
berror_in
berror
agnt
agnt
nmreq
nmreq
seq
seq
nopc
nopc
ntrans
ntrans
btran[1:0]
btran[1:0]
bprot[1:0]
bprot[1:0]
mabe
mabe
cpa
bigend
cpb
dbgen
extern0
extern1
isync
sdoutbs
dbe
busen
abe
ale
ape
tbe
nenin
bl[3:0]
"0"
"1"
5
Bus Interface
1283D03/01
Figure 3. AMBA Data Buses
brdata
BD_from_masters
BD_from_APB
BDout
ARM Memory
Controller
(including Decoder,
EBI and ARAM
Controller)
bwait_from_APB
bwait_to_ASB
wait_1C
data_to_master
pdc_data
data_from_masters
APB
Peripherals
Bridge
areq
agnt
bwait_in
bwdata
Arbiter
(N masters)
agnt[N-1]
areq[N-1]
pdc_sel_bridge
ARM7TDMI
Core and Wrapper
bridge_sel
Advanced System
Bus (ASB)
Advanced Peripheral
Bus (APB)
dsel_bridge
Read
Data
Manager
Master
Signals
Manager
agnt[i]
areq[i]
bwait_in
bwdata
brdata
agnt
areq
Master[i]
(DOUT on
ARM Core)
(DIN on
ARM Core)