Академический Документы
Профессиональный Документы
Культура Документы
EMBEDDED SYSTEMS
1
BUS STRUCTURE
Transaction Protocol
Bunch of Wires
Electrical Specification
Address
Data
Control
Control lines:
Signal requests and acknowledgements
Indicate what type of information is on the data lines
Data lines carry information between the source and
the destination:
Data and Addresses
Address: special form of data
Complex commands
Versatility:
New devices can be added easily
Low cost:
A single set of wires is shared in multiple ways
Asynchronous Bus:
It is not clocked
Strobe Protocol
Master asserts REQ to receive data
Slave puts data on bus within time frame T(access)
Master receives data and de-asserts REQ
Slave becomes ready for next REQ
Handshake Protocol
Master asserts REQ to receive data
Slave puts data on bus and sends an assert ACK
Master receives data and de-assert REQ
Slave becomes ready for next REQ
Strobe/Handshake combination
Master asserts REQ to receive data
Slave cant put data within T(access) so it asserts WAIT
Slave puts data on bus and de-asserts WAIT
Master receives data and de-asserts REQ
Slave becomes ready for next REQ
Features
20-bit address
Compromise strobe/handshake control
4 cycles default
Unless CHRDY de-asserted resulting in additional wait
cycles(up to 6)
Advantage: Simple
Disadvantage:
Cannot assure fairness: a low-priority device may be locked
out indefinitely
The use of the daisy chain grant signal also limits the bus
speed
Types of priority
Fixed priority
Each peripheral has unique rank
Highest rank chosen first with simultaneous requests
Preferred when clear difference in rank between peripherals
Steps involved
Microprocessor is executing its program
Peripheral 1 and Peripheral 2 needs servicing so asserts IREQ1 and
IREQ2
Priority arbiter sees at least one IREQ input asserted, so asserts INT
Microprocessor stops executing its program and stores its state.
Microprocessor asserts INTA
Priority arbiter asserts IACK1 to acknowledge peripheral 1.
Peripheral 1 puts its interrupt address vector on he system bus
Microprocessor jumps to the address of ISR read from data bus, ISR
executes and returns.
Microprocessor resumes executing its program.
Overlapped arbitration
Perform arbitration for next transaction during current transaction
Bus parking
Master holds onto bus and performs multiple transactions as long as
no other master makes request
Overlapped address/ data phases
Requires one of the above techniques
Split-phase (or packet switched) bus
Completely separate address and data phases
Arbitrate separately for each
Address phase yield a tag which is matched with data phase
Processor-local bus
High speed, wide, most frequent communication
Peripheral bus
Lower speed, narrower, less frequent communication
Bridge
Single-purpose processor converts communication between
busses
Bandwidth: 5 Mbytes/s