may 9, 20012 usb on-the-go implementation trade-offs zong liang wu transdimension zong liang wu...

13

Upload: allison-craig

Post on 02-Jan-2016

217 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: May 9, 20012 USB On-The-Go Implementation Trade-offs Zong Liang WU TransDimension Zong Liang WU TransDimension
Page 2: May 9, 20012 USB On-The-Go Implementation Trade-offs Zong Liang WU TransDimension Zong Liang WU TransDimension

May 9, 2001 2

USB On-The-Go Implementation Trade-offsUSB On-The-Go

Implementation Trade-offs

Zong Liang WUTransDimension

Zong Liang WUTransDimension

Page 3: May 9, 20012 USB On-The-Go Implementation Trade-offs Zong Liang WU TransDimension Zong Liang WU TransDimension

May 9, 2001 3

AgendaAgenda

On-The-Go device vs. Dual role device Dual role device: top level architecture Basic issues: system constraints System constraints vs. Implementation choices Compliance & interoperability Product decision

On-The-Go device vs. Dual role device Dual role device: top level architecture Basic issues: system constraints System constraints vs. Implementation choices Compliance & interoperability Product decision

Page 4: May 9, 20012 USB On-The-Go Implementation Trade-offs Zong Liang WU TransDimension Zong Liang WU TransDimension

May 9, 2001 4

On-The-Go Device Vs. Dual Role DeviceOn-The-Go Device Vs. Dual Role Device

Dual role device (DRD):– Supports master negotiation protocol– Acts as master or slave, after MNP– Capable of supplying at least 4mA

On-The-Go device (OTG):– Dual Role Device– Slave-only device drawing less than 4mA from Vbus

Dual role device (DRD):– Supports master negotiation protocol– Acts as master or slave, after MNP– Capable of supplying at least 4mA

On-The-Go device (OTG):– Dual Role Device– Slave-only device drawing less than 4mA from Vbus

Page 5: May 9, 20012 USB On-The-Go Implementation Trade-offs Zong Liang WU TransDimension Zong Liang WU TransDimension

May 9, 2001 5

Dual Role DeviceTop-Level ArchitectureDual Role DeviceTop-Level Architecture

HOSTHOST

FunctionFunctionMNPMNP

AnalogTransceiver

AnalogTransceiver

ProcessorInterface

ProcessorInterface

Registers Top level control

Registers Top level control

SystemSystemprocessorprocessor

CableCable

Charge Pump

Charge Pump

5V 5V @4mA@4mA

Page 6: May 9, 20012 USB On-The-Go Implementation Trade-offs Zong Liang WU TransDimension Zong Liang WU TransDimension

May 9, 2001 6

Basic IssuesSystem ConstraintsBasic IssuesSystem Constraints

Microprocessors– Wide range of performance (uP itself or the part

available for DRD)– Different interfaces: often DRD is not allowed to be

system bus master System software

– Latency of HW interrupt processing Maybe critical for Isochronous applications

– Different RTOS

Microprocessors– Wide range of performance (uP itself or the part

available for DRD)– Different interfaces: often DRD is not allowed to be

system bus master System software

– Latency of HW interrupt processing Maybe critical for Isochronous applications

– Different RTOS

Page 7: May 9, 20012 USB On-The-Go Implementation Trade-offs Zong Liang WU TransDimension Zong Liang WU TransDimension

May 9, 2001 7

System Constraints Vs.Implementation ChoicesSystem Constraints Vs.Implementation Choices

Performance of the master: – Throughput supported: full 12mbits/s (as good as or even better

than a PC) vs. Very limited bandwidth– Endpoint types supported: all 4 types vs. A subset – Number of devices and endpoints supported: capable of

supporting many devices/endpoints simultaneously vs. Onlya few endpoints

Difficulties:– How to get maximum master performance with a limited uP?– How to do in embedded applications where DRD is not allowed

to be system bus master ?– How to support Isochronous applications within a RTOS having

a large interrupt latency (like wince)?

Performance of the master: – Throughput supported: full 12mbits/s (as good as or even better

than a PC) vs. Very limited bandwidth– Endpoint types supported: all 4 types vs. A subset – Number of devices and endpoints supported: capable of

supporting many devices/endpoints simultaneously vs. Onlya few endpoints

Difficulties:– How to get maximum master performance with a limited uP?– How to do in embedded applications where DRD is not allowed

to be system bus master ?– How to support Isochronous applications within a RTOS having

a large interrupt latency (like wince)?

Page 8: May 9, 20012 USB On-The-Go Implementation Trade-offs Zong Liang WU TransDimension Zong Liang WU TransDimension

May 9, 2001 8

System Constraints Vs.Implementation ChoicesSystem Constraints Vs.Implementation Choices

uP requirements vs. Master performance:– Desired target for portable or STB applications:

1. Optimal performance2. Light load on uP3. Minimum interrupt frequency 4. Loose requirement on uP’s interrupt latency5. Keep at low cost (HW+SW)

– Trade-off vs. Smart SW/HW partitioning Learn from OHCI and UHCI partitioning

Call for major architecture innovation

uP requirements vs. Master performance:– Desired target for portable or STB applications:

1. Optimal performance2. Light load on uP3. Minimum interrupt frequency 4. Loose requirement on uP’s interrupt latency5. Keep at low cost (HW+SW)

– Trade-off vs. Smart SW/HW partitioning Learn from OHCI and UHCI partitioning

Call for major architecture innovation

Page 9: May 9, 20012 USB On-The-Go Implementation Trade-offs Zong Liang WU TransDimension Zong Liang WU TransDimension

May 9, 2001 9

System Constraints Vs.Implementation ChoicesSystem Constraints Vs.Implementation Choices

Many applications:– Portable (PDA, mobile phone, MP3, pocket PC, digital camera etc)

and less portable (set-top-box, game machine, etc): Many RTOS on the market

RTOS-based stack vs. Dedicated system SW– RTOS is not always necessary– Think of a dedicated microprocessor

RTOS-based: how to design once for all?– Try to comply with and reuse OHCI/UHCI stack– Partner with specialty system software house

Many applications:– Portable (PDA, mobile phone, MP3, pocket PC, digital camera etc)

and less portable (set-top-box, game machine, etc): Many RTOS on the market

RTOS-based stack vs. Dedicated system SW– RTOS is not always necessary– Think of a dedicated microprocessor

RTOS-based: how to design once for all?– Try to comply with and reuse OHCI/UHCI stack– Partner with specialty system software house

Page 10: May 9, 20012 USB On-The-Go Implementation Trade-offs Zong Liang WU TransDimension Zong Liang WU TransDimension

May 9, 2001 10

System Constraints Vs.Implementation ChoicesSystem Constraints Vs.Implementation Choices

Power management:– Portable appliances require low power– OTG spec introduces the concept of session

and wakeup protocol– Manage power at chip architecture level, by

introducing appropriate power management logic

Power management:– Portable appliances require low power– OTG spec introduces the concept of session

and wakeup protocol– Manage power at chip architecture level, by

introducing appropriate power management logic

Page 11: May 9, 20012 USB On-The-Go Implementation Trade-offs Zong Liang WU TransDimension Zong Liang WU TransDimension

May 9, 2001 11

System Constraints Vs.Implementation ChoicesSystem Constraints Vs.Implementation Choices

Single chip vs. 2-chip solution– OTG master needs to supply 5V@4mA (minimum)– Analog transceiver’s signaling is 3.3V – Standard 0.18um process has trouble to implement

Put the charge pump and the analog transceiverinto a separate chip

Define a standard interface: ongoing effort

Single chip vs. 2-chip solution– OTG master needs to supply 5V@4mA (minimum)– Analog transceiver’s signaling is 3.3V – Standard 0.18um process has trouble to implement

Put the charge pump and the analog transceiverinto a separate chip

Define a standard interface: ongoing effort

Page 12: May 9, 20012 USB On-The-Go Implementation Trade-offs Zong Liang WU TransDimension Zong Liang WU TransDimension

May 9, 2001 12

Compliance & InteroperabilityCompliance & Interoperability

Compliance to WHAT:– A DRD must be a 100% compliant USB function– OTG master vs. Embedded master vs. Standard

PC host (OHCI/UHCI): OTG: one to one: simpler master Embedded: Strong sales point if the master can

support what a standard PC host can do(endpoint types, number, sizes)

An OTG compliance spec is in development

Compliance to WHAT:– A DRD must be a 100% compliant USB function– OTG master vs. Embedded master vs. Standard

PC host (OHCI/UHCI): OTG: one to one: simpler master Embedded: Strong sales point if the master can

support what a standard PC host can do(endpoint types, number, sizes)

An OTG compliance spec is in development

Page 13: May 9, 20012 USB On-The-Go Implementation Trade-offs Zong Liang WU TransDimension Zong Liang WU TransDimension

May 9, 2001 13

Product DecisionProduct Decision

What do you really want:1. Slave-only with mini-connector and draws <=4ma2. Dual role device (master or slave depending on MNP

result)3. Simultaneous master and slave

Do not forget your expectation on master’s performance

Discrete IC or integrate an IP into your system:– Time to market vs. Cost vs. Risk

What do you really want:1. Slave-only with mini-connector and draws <=4ma2. Dual role device (master or slave depending on MNP

result)3. Simultaneous master and slave

Do not forget your expectation on master’s performance

Discrete IC or integrate an IP into your system:– Time to market vs. Cost vs. Risk