CO3053 - Lecture 2 - Embedded Platform Architecture
CO3053 - Lecture 2 - Embedded Platform Architecture
Contents
§ Embedded hardware overview
§ Processor
§ Memory
§ Buses
anhpham@hcmut.edu.vn
CO3053 – Lecture Notes 3
Embedded Board
§ In embedded devices, all electronics hardware resides on a embedded board
or Printed Circuit Board (PCB).
anhpham@hcmut.edu.vn
CO3053 – Lecture Notes 6
IPhone 5S
anhpham@hcmut.edu.vn
CO3053 – Lecture Notes 9
Memory
Mapped USB
IO Controller
(MMIO )
PCI Ethernet
BUS Device
System Memory
map
Wireless
TOLM
802.11
PCI
Configuration
System
DRAM
anhpham@hcmut.edu.vn 0x000,0000
CO3053 – Lecture Notes 10
Buses
§ All of major components are interconnected via buses.
Bus is simply a collection of wires carrying various data signals, addresses, and control
signals (clock, ack, data type).
§ On more complex boards, multiple buses can be integrated on one board.
§ Bus Types
System buses
Backplane buses
I/O buses
§ Bus Expansion
PCMCIA, PCI, IDE, SCSI, USB
I2C, SPI
§ Bus Arbitration & Timing
anhpham@hcmut.edu.vn Image Source: Internet
CO3053 – Lecture Notes 12
Bus Types
§ System buses
Interconnect external main memory and cache to the master CPU and any
bridges to other bus.
Typical short, high speed.
§ Backplane buses
All in one bus, interconnect memory, master processor, I/O devices.
§ I/O buses
Extensions of the system bus to connect I/O devices to system bus via
bridge or processor I/O ports.
anhpham@hcmut.edu.vn
CO3053 – Lecture Notes 13
§ Bus arbitration - process of gaining access to the bus, determine by bus’s arbitration
scheme
§ Bus handshaking – way to communicate over the bus, determine by bus’s timing
scheme
anhpham@hcmut.edu.vn
CO3053 – Lecture Notes 15
FIFO-based Arbitration
§ FIFO queue stores list of master devices ready to use the bus in
order of bus requests.
§ Master device is allowed access bus from the start of the queue.
§ However, arbitrator don’t intervene even if the master at the front
never release its control.
anhpham@hcmut.edu.vn
CO3053 – Lecture Notes 16
Priority-based Arbitration
§ Every master device is assigned a priority.
§ For preemptive priority-based, the master with highest priority can
preempt lower priority devices.
anhpham@hcmut.edu.vn
CO3053 – Lecture Notes 17
anhpham@hcmut.edu.vn
CO3053 – Lecture Notes 18
anhpham@hcmut.edu.vn
CO3053 – Lecture Notes 19
Bus Expansion
§ Expandable bus
PCMCIA, PCI, IDE, SCSI, USB
Additional components can be plugged into the board on-the-fly.
More expensive to implement.
§ Non-expandable bus
Additional component cannot be simply plugged into and communicate to
others over that bus.
DIB,VME, I2C
anhpham@hcmut.edu.vn
CO3053 – Lecture Notes 21
PCI Bus
§ Peripheral Component Interconnect (PCI)
Synchronous bus
33 MHz – 66 MHz
Bus width
32 bits – 64 bits.
Throughput
132 MB/s (33MHz, 32bits)
528 MB/s (66Mhz, 64 bits)
I2C Bus
§ 2 wires bus
Serial data line (SDA)
Serial clock line (SCL)
§ Master/Slave relationship
Master initiates data transfer
Generate clock signals.
SPI Bus
§ Four-wire bus
Serial clock
Master output/slave input
Master input/slave output
Device select.
§ Speed up to 80MHz
§ Used to connect to serial flash for initial boot code in Intel platforms.
anhpham@hcmut.edu.vn
CO3053 – Lecture Notes 24
Summary
§ QnA
§ Further Readings
https://www.sciencedirect.com/topics/engineering/embedded-system-architecture
anhpham@hcmut.edu.vn