15.08.2013 Views

DESIGN OF A CUSTOM ASIC INCORPORATING CAN™ AND 1 ...

DESIGN OF A CUSTOM ASIC INCORPORATING CAN™ AND 1 ...

DESIGN OF A CUSTOM ASIC INCORPORATING CAN™ AND 1 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The analysis to bind the worst-case latency of a given hard real-time message is an<br />

almost direct application of processor scheduling theory [68 – 70]. However, there are some<br />

assumptions made by this analysis: first, the deadline of a given message m (denoted Dm) must<br />

not be more than the period of the message (denoted Tm), and second, the bus controller must not<br />

release the bus to lower priority messages if there are higher priority messages pending (i.e. the<br />

controller cannot release the bus between sending one message and entering any pending<br />

message into the arbitration phase).<br />

The worst-case response time of a given message m is denoted by Rm, and is defined as<br />

the longest time between the start of a node queuing m and the latest time that the message<br />

arrives at the destination nodes. From this, the worst-case response time of a given hard real-<br />

time message m can be bound by equation 4.1.<br />

Rm Jm wm Cm<br />

(4.1)<br />

The term Jm is the queuing jitter of message m, and gives the latest queuing time of the message,<br />

relative to the start of the transmitting node. The term wm represents the worst-case queuing<br />

delay of message m (due to both higher priority messages pre-empting message m, and a lower<br />

priority message that has already obtained the bus). The term Cm represents the longest time<br />

taken to physically send message m on the bus. This time includes the time taken by the frame<br />

overheads, the data contents, and extra stuff bits (the CAN protocol specifies that the message<br />

contents and 34 bits of the overhead are subject to bit stuffing with a stuff width of 4 – worst<br />

case of 1 stuff bit for every 4 message bits). The stuff bit counts as the first bit in a new stuffing<br />

sequence. For an 11-bit identifier (slightly different formula below for 29-bit header), only 34 of<br />

the overhead bits are subject to stuffing; others aren’t subject to stuffing. Equation 4.2 gives Cm:<br />

99

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!