Unit Iv Hardware Accelerates & Networks
Unit Iv Hardware Accelerates & Networks
cost
deadline w.
deadline RMS overhead
performance
Accelerated systems
Use additional computational unit dedicated to some
functions?
Hardwired logic.
Extra CPU.
Hardware/software co-design: joint design of
hardware and software architectures.
Accelerated system architecture
request
accelerator
result
datadata
CPU
memory
I/O
Accelerator vs. co-processor
A co-processor executes instructions.
Instructions are dispatched by the CPU.
An accelerator appears as a device on the bus.
The accelerator is controlled by registers.
IMPLEMENTATIONS
Application-specific integrated circuit.
Field-programmable gate array (FPGA).
Standard component.
Example: graphics processor.
Network elements
distributed computing platform:
PE
PE
communication link
network
PE
PEs may be CPUs or ASICs.
Networks in embedded systems
initial processing
more processing
PE sensor
PE
PE actuator
Why distributed?
Higher performance at lower cost.
Physically distributed activities---time constants may
not allow transmission to central site.
Improved debugging---use one CPU in network to
debug others.
May buy subsystems that have embedded processors.
Network abstractions
International Standards Organization (ISO)
developed the Open Systems Interconnection (OSI)
model to describe networks:
7-layer model.
Provides a standard way to classify network
components and operations.
OSI model
application end-use interface
transport connections
PE 1 PE 2 PE 3
link 1 link 2
Bus networks
Common physical connection:
PE 1 PE 2 PE 3 PE 4
fixed A B C A B C
round-robin
A B C B C A
A,B,C A,B,C
Crossbar
out4
out3
out2
out1
clock line
SCL
slave 1 slave 2
I2C data format
SCL ...
...
...
SDL
SDL
SCL
I2C signaling
Sender pulls down bus for 0.
Sender listens to bus---if it tried to send a 1 and heard
a 0, someone else is simultaneously transmitting.
Transmissions occur in 8-bit bytes.
S adrs 1 data P
Ethernet topology
Bus-based system, several possible physical layers:
A B C
CSMA/CD
Carrier sense multiple access with collision detection:
sense collisions;
exponentially back off in time;
retransmit.
time
Ethernet packet format
hop 1 hop 2
A B C
Network 1 Network 2
System performance analysis
System analysis is difficult in general.
multiprocessor performance analysis is hard;
communication performance analysis is hard.
Simple example: uncertainty in P1 finish time ->
uncertainty in P2 start time.
P1 P2
Analysis challenges
P2 and P3 can delay each other, even though they are
P1
in separate tasks.
Delays in P1 propagate to P2, then P3, then to P4.
P2
P3
P4
Lower bounds on system
Communication
Computational requirements:
requirements:
Count
sum upall
process
transmissions
requirements
in oneover
period.
least-common
multiple of periods, average over one period.
Hardware platform design
Need to choose:
number and types of PEs;
number and types of networks.
Evaluate a platform by allocating processes,
scheduling processes and communication.
I/O-intensive systems
Start with I/O devices, then consider computation:
inventory required devices;
identify critical deadlines;
chooses devices that can share PEs;
analyze communication times;
choose PEs to go with devices.
Computation-intensive systems
Start with shortest-deadline tasks:
Put shortest-deadline tasks on separate PEs.
Check for interference on critical communications.
Allocate low-priority tasks to common PEs wherever
possible.
Balance loads wherever possible.
Internet Protocol
Internet Protocol (IP) is basis for Internet.
Provides an internetworking standard: between two
Ethernets, Ethernet and token ring, etc.
Higher-level services are built on top of IP.
IP in communication
application application
presentation presentation
session session
IP
transport transport
node A router
node B
IP packet
Includes:
version, service type, length
time to live, protocol
source and destination address
data payload
Maximum data payload is 65,535 bytes.
IP addresses
32 bits in early IP, 128 bits in IPv6.
Typically written in form xxx.xx.xx.xx.
Names (foo.baz.com) translated to IP address by
domain name server (DNS).
Internet routing
Best effort routing:
doesn’t guarantee data delivery at IP layer.
Routing can vary:
session to session;
packet to packet.
Higher-level Internet services
Transmission Control Protocol (TCP) provides
connection-oriented service.
Quality-of-service (QoS) guaranteed services are
under development.
The Internet service stack
User
TCP UDP Datagram
Protocol
IP
Internet-enabled embedded system
Internet-enabled embedded system: any
embedded system that includes an Internet
interface (e.g., refrigerator).
Internet appliance: embedded system designed for
a particular Internet task (e.g. email).
Examples:
Cell phone.
Laser printer.
Sensor networks
Wireless networks, small nodes.
Ad hoc networks---organizes itself without system
administrator:
Must be able to declare membership in network, find
other networks.
Must be able to determine routes for data.
Must update configuration as nodes enter/leave.
Node capabilities
Must be able to turn radio on/off quickly with low
power overhead.
Communication/computation power = 100x.
Radios should operate at several different power levels
to avoid interference with other nodes.
Must buffer, route network traffic.
CAN bus
First used in 1991.
Serial bus, 1 Mb/sec up to
40 m.
Synchronous bus.
Logic 0 dominates logic 1
on bus.
Arbitrated with
CSMA/AMP:
Arbitration on message
priority.
CAN data frame
11 bit destination
address.
RTR bit determines
read/write from/to
destination.
Any node can detect
bus error, interrupt
packet for
retransmission.
CAN controller
Controller implements
physical and data link
layers.
No network layer
needed---bus provides
end-to-end connections.
Other vehicle busses
FlexRay is next generation:
Time triggered protocol.
10 Mb/s.
Local Interconnect Network (LIN) connects
devices in a small area (e.g., door).
Passenger entertainment networks:
Bluetooth.
Media Oriented Systems Transport (MOST).