Professional Documents
Culture Documents
03 On-Chip Bus PDF
03 On-Chip Bus PDF
Tian-Sheuan Chang
Outline
• Communication in a system
• Differences between traditional bus and OCB
• Bus architecture
• Basic bus operation
• OCB's issues
• Conclusion
Tian-Sheuan Chang
Microcomputer Buses,
4 R. M. Cram, 1991, Academic Press,
Copyright ©2003 Inc.reserved
All rights
Communication
• Different views of communication
– Bus (Abstract)
– Channel (Point-to-Point)
– Interconnection (Primitive)
• Definition of a bus (microcomputer busses)
– A tool designed to interconnect functional blocks of a (macro)
computer in a systematic manner. It provides for
standardization in mechanical form, electrical specifications,
and communication protocols between board-level devices.
Tian-Sheuan Chang
VCC
resister
three-state control or
current soucre
D Q
DI DO
Master 1 Slave 1 CE
DO DI
clock
Q D
DO DI
Master 2 Slave 2 CE
DI DO
Tian-Sheuan Chang
– read or write
– asynchronous or synchronous
– transfer size 8, 16, 32, 64, 128 bits
– transfer operations
• Others
Master 1 Master 2
Tian-Sheuan Chang
crossbar
swith
• Peripheral bus
– Components with other design considerations (power, gate count, etc.)
– Bridge is the only bus master
memory
– Disadvantage:
• Relatively high power requirements
• Gate count (7-15K gates)
• Multiplexed, tri-state address and data lines,
– Splitting the tri-states is trivial
29 Copyright ©2003 All rights reserved
Other Buses Proposed in VSIA OCB
DWG
• FISP bus (GF-FISP bus) - Mentor Graphics
Tian-Sheuan Chang
• Default acknowledge
Synchronous: a signal is changed/sampled
37 when risingCopyright
edge of©2003
the All
clock
rights reserved
Basic Transfer Cycle - Single
READ/WRITES
Tian-Sheuan Chang
⌦Data transfer at
every cycle
every n cycles
⌦Addressing
Alignment
Tian-Sheuan Chang
• Arbitration cycle
– Overlapped arbitration
45 Example
Copyrightfrom
©2003 AMBA
All rights reserved
OCB for Testability During
Simulation
Tian-Sheuan Chang
each elements in a
bus
- arbiter
- buffer
How to test?
47 Copyright ©2003 All rights reserved
Integrate IP Without AMBA Interface
User IP without
AMBA interface AMBA System
Processor Memory
or FIFO Interface AHB AHB APB APB
Master 1 Master 2 Slave 1 Slave 2
AHB Master
Wrapper
Local Memory
Data Communication
Channel
mc_comm_w hm_comm_w
Tian-Sheuan Chang
mc_comm_r hm_comm_r
fifo_data FIFO
fifo_push
fifo_full
Interface
fifo_data FIFO
fifo_pop
fifo_empty
APB Slave 1
AHB Master AHB Master
Protocol Checker Protocol Checker
AHB Master AHB Master APB Slave
Coverage Mointor Coverage Mointor Coverage Mointor
Bridge
AHB Slave AHB Slave APB Slave
Protocol Checker Protocol Checker Coverage Mointor
AHB Slave AHB Slave
Coverage Mointor Coverage Mointor
APB Slave 2
hclk
htrans NSEQ SEQ SEQ SEQ
haddr A A+4 A+8 A+8 AHB Master Protocol Transfer Response Summary
hwrite -------------------------------------
hwdata DA DA+4 DA+4 DA+8
violation: Response Type | Count
hresp OKAY OKAY OKAY OKAY Address was changed -------------------------------------
hready
while in transfer OKAY | 104
ERROR | 0
extension (hready low). RETRY | 5
Ref. Spec. section 3.4 SPLIT | 13
-------------------------------------
51 Copyright ©2003 All rights reserved
Outline
• Communication in a system
• Differences between traditional bus and OCB
• Bus architecture
• Basic bus operation
• OCB's issues
• Conclusion
Tian-Sheuan Chang