DW Technical Considerations Usb3 PDF
DW Technical Considerations Usb3 PDF
DW Technical Considerations Usb3 PDF
Authors
Gervais Fong Senior Product Marketing Manager, Synopsys, Inc. Eric Huang Senior Product Marketing Manager, Synopsys, Inc.
Introduction
The Universal Serial Bus (USB) protocol has been the standard way to connect computers to external devices for nearly two decades. The protocol continues to evolve to support the growing demands of consumer devices. With its simplicity of use, USB is the number one choice of connectivity protocols in the consumer world. Over the last decade, USB 2.0 successfully catered to diverse applications requiring a throughput up to 480 Mbps. More recently, higher performance consumer devicesHD video cameras, multi-megapixel digital cameras, terabit mass storage drives, and HD movies on flash drivesrequire higher throughput. These higher throughput demands, of gigabits per second, drove the definition of the next-generation USB protocol: USB 3.0, or SuperSpeed USB. USB 3.0, with 10X the throughput of USB 2.0 and with complete backward compatibility, will support the next decade of consumer electronics. USB 3.0 early adoption began in 2010. Now, key USB software and systems providers are shipping high volumes of products with USB 3.0. The ecosystem around USB 3.0 is in place. USB 3.0 is no longer just for cutting-edge applications. The time has come for all system-on-chip (SoC) designers to implement USB 3.0. This paper highlights the specific features and enhancements in the USB 3.0 protocol. These enhancements come with technical complexities, and this paper outlines complexities and the resulting design challenges. It shows how a USB 3.0 cores reconfigurability can broaden a designs potential applications and reuse. Finally, it talks about USB 3.0 selection and implementation considerations, from architecture, prototyping, and software, to testing and certification.
This fast-paced adoption of the USB 3.0 protocol is driving rapid growth of the USB 3.0 ecosystem. Early shipments of host controller discrete chips supporting USB 3.0 started over 3 years ago[2], and NEC/Renesas began early implementation of a host controller discrete chips supporting USB 3.0 in 2009[3]. These appeared on PC motherboards in late 2010 and laptops in early 2011, and mass production is ramping up. On the processor side, AMD implemented USB 3.0 in its Fusion APU, and its shipments started in Q2 2011[4]. One of the worlds largest makers of PC CPUs and chipsets began shipping USB 3.0 fully integrated into its Series 7 Ivy Bridge chipsets in April 2012. This makes USB 3.0 effectively free to laptop, ultrabook, and PC buyers this year[5]. The hardware ecosystem is growing, and the software ecosystem is also expanding. While everyone shipping USB 3.0 host includes Windows drivers for their PCs, expect widespread support from Microsoft and Linux in 2012. In 2011, Microsoft announced and demonstrated that it would include native USB 3.0 support in Windows 8. Microsoft demonstrated USB 3.0 at their Build conference in September[6]. At present, to support USB 3.0, many use third party vendors such as MCCI to develop the USB 3.0 driver stack. USB 3.0 peripheral manufacturers supply a USB 3.0 driver stack to run with Windows 7 and other operating systems. Third party and open source drivers for Linux also support USB 3.0. Apples Mac is expected to follow soon[7]. With PC chipset suppliers and software vendors shipping products, and mobile multimedia content creating immediate consumer demand, SoC designs starting today must support USB 3.0. It is critical to incorporate USB 3.0 into consumer products that will hit the market in the next 1-2 years.
can initiate a power saving mode. An idle USB 3.0 device will not drain power from the computer, but will go to a power saving state. This has a huge positive impact on a laptops battery life. In the USB 3.0 specification, devices can enter power-save states between isochronous transfers. These features, combined with updated power management features (idle, sleep and suspend states) at the link and device levels, allow USB 3.0 to support a 10X performance improvement over USB 2.0, with just a 2X increase in power. USB 3.0 is 100% backward compatible with USB 2.0. When a USB 3.0 device connects to a USB 2.0 port, only one pair of data lines is used and the SuperSpeed mode of operation is not used. The link and the PHY are implemented such that they operate in full compliance to the operational speed. Cable length is another change between USB 2.0 and USB 3.0. USB 3.0 supports a cable length of up to 3 meters. USB 2.0 supports a cable length of 5 meters. Typical USB 2.0 cables used are actually less than 2 meters in length, so the reduction in cable length makes little difference. For longer USB 3.0 cables, a device called an active cable actually allows for cable lengths of up to 13 meters. The incremental cost for adding this device is small if users need the length.
As shown in Figure 1, USB 3.0 can be used in many volume applications and selecting IP that is proven to support these applications can be difficult. The time-to-market window for SoCs implementing USB 3.0 is typically only a few months, so SoC designers need to minimize the tasks required that differentiate their products while meeting aggressive schedules. For example, modifying the USB 3.0 core to match the end application, and integrating it into the SoC, is challenging and time-consuming. Second, getting the controller and the PHY IP to interoperate and provide a 100% compliant and fully integrated solution is another challenge. Ensuring that the USB 3.0 PHY has sufficient performance margin across process, voltage, and temperature (PVT) while maintaining signal integrity and minimizing EMI/RFI emissions across the range of operations is a third challenge. This includes ensuring IP availability in multiple process technologies and price points while proving performance in silicon. Fourth, availability of device drivers stacks is a key criterion. New driver stacks are required to handle the faster USB 3.0 speeds, and simply extending USB 2.0 architectures
to support USB 3.0 would never reach USB 3.0 throughput. Lastly, stringent USB-IF certification demands rigorous simulation and FPGA validation before silicon implementation. Universality of the USB protocol requires that hosts are tested with hundreds of USB 2.0 devices and all available USB 3.0 devices. These tasks can take many engineering months for successful completion. For their first USB 3.0 designs, some designers try to add USB 3.0-capable register sets to an existing USB 2.0 controller architecture, in an attempt to reuse 10 years worth of USB 2.0 software written for USB 2.0 register sets. Unfortunately, extending the architecture of a USB 2.0 controller to be USB 3.0 capable will not work because a USB 3.0 MAC is different from a USB 2.0 MAC. A USB 3.0 MAC supports higher performance features like streams and bursts. Therefore, an extension of a USB 2.0 register set to USB 3.0 will never reach USB 3.0 speeds and a new USB 3.0 architecture is required. The advantage to a single USB 3.0 architecture is a single software stack can support all USB speeds. Building this new architecture and ensuring both USB 3.0 performance and USB 2.0 backward compatibility is a challenging task for a design team under pressure to deliver a complete SoC. A viable solution is to obtain proven third party USB IP, which can be cost competitive. High quality, certified controller and PHY IP cores are needed to address these complexities and meet the SoC time-to-market windows. The successful SoC designer will consider all these factors and implement a robust, flexible and reusable USB 3.0 solution.
SoC bus (AHB/AXI/Native) System CPU System memory Master DWC_usb3 controller Slave USB 3.0 PHY (PIPE3 and UTMI+)
Application
Figure 2: USB 3.0 system block diagram showing the controller IP and PHY IP cores and connectivity to processor and memory
Figure 2 shows the typical connectivity of the controller core to the PHY cores, memory and the SoC. It has two PHY interfaces: UTMI+/ULPI for USB 2.0 PHY connectivity and PIPE3 for USB 3.0 PHY communication. To support the USB 3.0 throughput of 5 Gbps, the system interface should be a high-performance industrystandard standard interface such as AXI. The interface bus widths should be configurable to match the operational mode. Todays design may use 32 bits, but later designs will move to a 64- or 128-bit interface. A memory management system that can handle USB 3.0 throughput speeds of 5 Gbps is critical to maximizing performance for USB 3.0 IP. Since the reusable IP will be used in several functional modes (host, device, and dual-role), memory sizes and types (SPRAM or DPRAM) and clocking speeds should be selectable to match the end-application needs. The buffer management scheme should take clocking speeds, memory types and system interfaces into account and define a low-latency memory system that can sustain the 5 Gbps throughput. In addition to hardcore configurability, the memory resource allocation needs to be done dynamically. For example, the endpoint mode needs to make sure that the FIFO buffers are appropriately allocated so that the data is fetched to meet the USB 3.0 turnaround times. The power management enhancements in the USB 3.0 specification affect datapaths and controller blocks. The power saving scheme at the link layer level varies based on the application. Therefore, power management state-machine design is different for each mode. For example, in USB 2.0 mode, IP implements the power-down scheme based on the link power management (LPM) token scheme, an enhancement to the original USB 2.0 link management scheme. In host and dual-role modes, the core needs to implement the xHCI specified power management schemes. The USB 3.0 protocol defines a system-level clock-gating scheme, referred to as the U0, U1, U2, and U3 states.
DP0/DM0
Serial interface (LS/FS) USB 3.0 host/device controller PIPE3 interface Power, clock, external resistor USB 3.0 PHY tx0_p, tx0_m; rx0_p, rx0_m
Controls
As shown in Figure 3, the USB 3.0 PHY has a line interface comprised of a 4-wire (two transmit and two receive) connection to support the USB 3.0 full-duplex mode. It uses a PIPE3 interface to connect to the USB 3.0 controller. It transmits and receives 480 Mbps data in USB 2.0 mode and 5 Gbps data in the USB 3.0 mode. On the receive side, it performs data recovery, alignment, decoding, de-serialization and adaptive equalization functions, and on transmit side, it serializes and sends data. One of the mandatory features to support the USB 3.0 protocol is spread-spectrum clock (SSC) generation and absorption. This clocking scheme reduces the EMI/RFI emissions by dithering the system clock and spreading the energy across the spectrum to reduce energy peaks. The PHY should provide an option to use a fixed-frequency reference clock and should be able to generate the modulated clock internally. It should handle a wide range of input clock frequencies to generate high-speed clocks for data transmission in all the modes. A single input reference clock is desirable for ease of use. These features make the PHY clocking architecture and test scheme more complex; however, they also simplify the IP integration and clock-routing tasks at the SoC level, which makes them important for successful PHY IP implementation. At USB 3.0 performance levels, signal integrity is a significant issuethe adaptive RX equalization function should be designed to adjust the receiver automatically to recover the 5 Gbps incoming data for channel lengths ranging from several centimeters to three meters. The PHY design should carefully match the controller design to prevent the false detection of electrical-idle on the data lines or low-frequency periodic signaling (LFPS) as defined in the PIPE3 specification. Similar to the controller, the PHY core needs to support the USB 3.0 compliant power management schemes (U0, U1, U2, and U3). The power-down modes vary based on the operating mode, i.e., SuperSpeed, Hi-Speed, Full-Speed, or On-the-Go (OTG) modes. The validation of the power-down functionality is complex but necessary for proper interoperability between the controller and PHY. The PHY needs to implement a robust electrostatic discharge (ESD) protection scheme as per the JEDEC class specifications and pass different ESD models (machine model, human body model, and charge device model). The design should allow sufficient metal widths in all the ESD paths. ESD protection devices should be designed into signal pads and power supply pads. The USB 3.0 PHY must be available in the foundry processes that meet the applications criteria such as wafer price, area, and power. Since multiple applications use USB 3.0, demand for the PHY ranges from low-cost 130-nm to state-of-the-art 28-nm processes. As a result, multiple USB 3.0 PHY architectures based on 3.3V I/O, 2.5V I/O, and 1.8V I/O devices are required depending on the process geometry. To minimize risk, thorough adherence to all foundry design, design-for-manufacturability rules, and long-term reliability rules are a requirement.
Figure 5 shows an example of a FPGA validation platform. It consists of the motherboard with an FPGA and a USB 3.0 PHY daughter card. The USB 3.0 controller core is mapped to the FPGA using a configuration file. When using such a validation platform, resets and clocks are sourced from the on-board clocking system to match the operational mode. The validation should be cycle-accurate and should support all types of USB 3.0 data transfers at-speed. Real world testing at USB 3.0 speeds helps to verify the architecture, such as memory management and interoperability tests for USB 3.0 standard compliance. Lastly, a FPGA validation platform can also be used for USB-IF certification of a prototype design.
7. USB-IF certification
The USB Implementers Forum (USB-IF) manages all aspects of the USB specification. The USB-IF oversees certification testing and authorizes third-party test labs. While certification applies primarily to end products, USB 3.0 digital and PHY IP can also be certified as part of a design. USB-IF certification is a critical and essential component of quality USB products. Through rigorous software and electrical testing, certification verifies compatibility with other USB devices. Built on 12 years of USB test knowledge, USB 3.0 certification includes protocol, link, physical, and electrical compliance tests. The USB-IF Platform Integration Lab (PIL) lists the tests based on the configuration of the USB core, which include device mode tests and hub configuration tests (e.g., cyclic redundancy check (CRC), packet robustness, U0/ U1/U2/U3 transitions, reset initiation, etc). Host certification involves xHCI host compliance tests and USB device specific tests for all speeds and tests as described in the USBCV chapter 9 (e.g., descriptors, suspend/
resume, remote wake function, multiple enumeration of devices, etc). The connector and cable electrical tests include time domain measurements such as near-end cross talk, impedance measurement, and insertion loss. Interoperability tests include verifying the attach/detach functionality and various lower management modes such as suspend, hibernate, and hybrid sleep modes, and warm and cold boot. USB 2.0 compatibility is tested by connecting a USB 3.0 host to USB-IF specified sample of 150 devices. Certification is an extensive process that typically takes about three months.
The DesignWare USB 3.0 controller IP is delivered with verification IP, which can be used at the block level or integrated into the SoC-level test bench implemented in Verilog, Vera, or VHDL. The extensive test suite is generated based on the configuration and it includes the USB 3.0 protocol and the IP-specific functions. The DesignWare USB 3.0 PHY verification methodology includes simulating analog functions such as RX equalization, LOS voltage setting, RX eye capture and I/O termination. Synopsys provides PHY models for SoC-level functional simulations and signal integrity simulations by providing link channel models, which are used for eye diagram and channel loss simulations. Several test and testability features are implemented in the DesignWare USB 3.0 IP. The digital IP implements JTAG as per IEEE 1149.1 specification and the TAP controller is designed to have easy access for all the hardware resources including the registers and the RAM buffers. It also implements the in-circuit emulator (ICE) function to assist debugging. The PHY BIST features includes pseudo-random binary sequence (PRBS) support for bit error testing. The link integrity tests provide flexible program parameters to validate the performance margin of the PHY. Comprehensive directed tests enable validation of the PHY during prototype development and volume production. The DesignWare USB 3.0 IP solution is prototyped and validated using the Synopsys HAPS FPGA-Based Prototyping Solution and the system is tested at-speed for functionality and performance. The HAPS Systems have the additional advantage that the USB 3.0 core is already pre-mapped to the FPGA, so clock speed, gate count, and other FPGA-specific considerations are not an issue. Synopsys provides example device drivers for the Linux operating system. It implements the USB-IF specified classes, which define the driver requirements for various device classes such as storage, human interface devices, card readers, and modems. The DesignWare USB 3.0 IP solution is USB-IF certified. In addition to certification in the USB PIL, the IP undergoes extensive interoperability testing in Synopsys state-of-the art in-house lab, where it is tested with over 200 USB devices. Synopsys also participates in PlugFests for interoperability testing with the latest consumer devices. This standard-compliant, feature-rich, and easy-to-use IP solution developed using advanced design methodology and stringent test and certification process enables a low-risk implementation of USB 3.0 in a SoC.
Summary
USB continues to be the de-facto standard for connecting consumer devices to PCs. Present day consumer entertainment applications such as HD movies, audio-video streaming, and state-of-the-art storage devices
10
need much higher bandwidth than the 480 Mbps supported by the USB 2.0 protocol. In addition, mobile devices such as smart phones and tablets are demanding more efficient data transfer and power management control to maximize battery life. With over 100 million USB 3.0 host chips shipped, integrated chipset support in 2012, and widespread support, anyone designing a USB product should upgrade their product to USB 3.0 now. USB 3.0 satisfies high performance and low power requirements by providing a 10X increase in throughput for just a 2X increase in power. These enhancements, along with backward compatibility with USB 2.0, make USB 3.0 a natural and obvious choice for USB SoC designers. USB 3.0 achieves its power-saving and throughput enhancements through new architectures in the link layer, the physical layer and the software. This results in significant design, verification, test, interoperability and certification challenges. Choosing reusable USB 3.0 IP is a low-risk and cost-effective option for an SoC designer. IP selection must take power and performance requirements into account, along with aggressive time-to-market windows. It is critical to select a silicon-proven and certified USB 3.0 IP that can be reused for multiple applications. Chief IP requirements include robust implementations of USB 3.0 features, along with backward compatibility to USB 2.0, test and certification. The digital core should be easily configurable to support multiple operational modes such as device and host, and the PHY should be compact and available in different process technologies. The PHY and the controller should be verified as a complete solution in various configurations. The cores and the test environment must render themselves for easy integration in to the SoC, and the IP supplier should include hardware validation using FPGA prototyping to complement simulations and to enable concurrent software development. The IP vendor also needs to provide a complete device driver stack that can interact with customers application software. Finally, USB-IF certification is a must. Choosing an IP solution such as the DesignWare USB 3.0 controller and PHY will enable SoC designers to develop a high-quality USB 3.0 silicon solution to meet growing market demands in a timely manner.
References
[1]
Agam Shah. High-Speed USB 3.0 to Reach Smartphones, Tablets by Year End. PCWorld. 8 Jan 2012. 13 March 2012 http://www.pcworld.com/article/247507/highspeed_usb_30_to_reach_smartphones_tablets_by_ year_end.html
[2]
Steven Sinofsky. Building robust USB 3.0 support. Building Windows 8. 22 August 2011. 13 March 2012 http://blogs.msdn.com/b/b8/archive/2011/08/22/building-robust-usb-3-0-support.aspx
[3]
NEC to begin sampling USB 3.0 controller chip. Semiconportal. 19 May 2009. 13 March 2012 https://www.semiconportal.com/en/archive/new-product/device/090519-nec-electronics-usb-3-controller.html
[4]
Brooke Crothers. AMD to back USB 3.0 in its chips. CNET. 12 April 2011. 13 March 2012 http://news.cnet.com/8301-13924_3-20053123-64.html?tag=mncol;txt
[5]
Brooke Crothers. Intel delivers USB 3.0 in its chips, finally. CNET. 9 April 2012. 13 April 2012 http://news.cnet.com/8301-13924_3-57411494-64/intel-delivers-usb-3.0-in-its-chips-finally/
[6]
Steven Sinofsky. Building robust USB 3.0 support. Building Windows 8. 22 August 2011. 13 March 2012 http://blogs.msdn.com/b/b8/archive/2011/08/22/building-robust-usb-3-0-support.aspx
[7]
Michael Lum. Apple to introduce its own proprietary version of USB 3.0 and DisplayPort? VR-Zone. 7 April 2011. 13 March 2012 http://vr-zone.com/articles/apple-to-introduce-its-own-proprietary-version-of-USB 3.0-anddisplayport-/11819.html
Synopsys, Inc. 700 East Middlefield Road Mountain View, CA 94043 www.synopsys.com 2012 Synopsys, Inc. All rights reserved. Synopsys is a trademark of Synopsys, Inc. in the United States and other countries. A list of Synopsys trademarks is available at http://www.synopsys.com/copyright.html. All other names mentioned herein are trademarks or registered trademarks of their respective owners. 05/12.AP.CS1573.