Distributed Embed Ed System
Distributed Embed Ed System
Distributed Embed Ed System
OSI Model
Hardware and Software Architecture
P-P Communication
Simplex
Duplex Half/Full
Buses
Use for communication
uses packets
have some payload
Arbitration Fixed priority
Fair arbitration (Round Robin-No starvation)
Network
Dataflow
Single stage/Multistage
Networks for Embedded Systems
•I2C Bus
•CAN Bus
•Ethernet
•Myrinet
•Internet
I2C (Inter IC)Bus
1 7 1 1
S Addr W/ Data P
R
0-W, 1-R
An I2C Interface in a Microcontroller
CAN (Controller Area Network)
Physical Layer
Designed for Automotive Electronics
Uses serial bit transmission
Speed 1Mbps over twisted pair max of 40 meters
Multi master Bus: supports multiple masters
Logical 1-Recessive and 0-Dominant
Synchronous Bus
Data Link Layer
uses CSMA/AMP (Arbitration on message priority)
S-0
P-0000000
Remote Transmission Request (RTR) 0-Read, 1-Write
1 12 6 0-64bits 16 2 7
S Arbitration Control DATA CRC ACK P
Identifier Data
length
Architecture of CAN Controller
SHARC link Ports
Uses CSMA/CD
Network is Not Synchronized
Low Cost
Bus with Single Path
Uses Twisted Pair/ Co-Ax Cable
Ethernet Organization
Ethernet Packet format
Node A Node B
Application Application
Presentation Presentation
Session Session
Router
Transport Transport
IP Packet Structure
Header Service
Version Total Length
length type
Source Address
Destination Address
Payload Data
Uses IP
Uses Routers
Uses Network Layer
32 bits for IPV4 and 128 bits for IPV6
TCP UDP
IP
• Communication Analysis
• System Performance Analysis
• Hardware platform Design, Allocation and Scheduling
Communication Analysis
Message Delay
Tm = Tx + Tn + Tr
where Tx = Transmitter side overhead
Tn = Network transmission time
Tr = Receiver side overhead
Total delay
T = Td + Tm
Where Td = Network availability delay
Tm = message delay
Td depends on the arbitration used (fixed priority or fair (RR))
PE 1 PE 1
PE 1
PE 1 PE 1
Tp1 Tp2
nTx
P1 P2
PE 2
PE 1 P2 PE 3
P1 P3
P4
Hardware platform Design, Allocation and Scheduling
Hardware platform issues
• Number of PEs required
• Types of all PEs
• Number of networks used
• Type of networks