-
- News
- Books
Featured Books
- design007 Magazine
Latest Issues
Current IssueRules of Thumb
This month, we delve into rules of thumb—which ones work, which ones should be avoided. Rules of thumb are everywhere, but there may be hundreds of rules of thumb for PCB design. How do we separate the wheat from the chaff, so to speak?
Partial HDI
Our expert contributors provide a complete, detailed view of partial HDI this month. Most experienced PCB designers can start using this approach right away, but you need to know these tips, tricks and techniques first.
Silicon to Systems: From Soup to Nuts
This month, we asked our expert contributors to weigh in on silicon to systems—what it means to PCB designers and design engineers, EDA companies, and the rest of the PCB supply chain... from soup to nuts.
- Articles
- Columns
Search Console
- Links
- Media kit
||| MENU - design007 Magazine
Estimated reading time: 6 minutes
PCB Design Techniques for DDR, DDR2 & DDR3, Part 2
This column appeared originally in the June issue of PCB Magazine.
If you missed Part 1 of this series, click here and catch up.
One major difference between DDR2 and DDR3 SDRAM is the use of levelling. To improve signal integrity and support higher frequency operations, the JEDEC committee defined a fly-by termination scheme used with the clocks, command and address bus signals. Fly-by topology reduces simultaneous switching noise (SSN) by deliberately causing flight-time skew between the data and strobes at every chip/DRAM, requiring controllers to compensate for this skew by adjusting the timing per byte lane.
Table 1.
During a write, DQS groups are launched at separate times to coincide with a clock arriving at components on the DIMM/PCB, and must meet the timing parameter between the memory clock and DQS defined as tDQSS of ± 0.25 tCK.
The design process can be simplified using the new levelling feature of DDR3 and controller ICs. The fly-by daisy chain topology increases the complexity of the data path and controller design to achieve levelling, but also greatly improves performance and eases board layout for DDR3.
DDR3 Design Guidelines: Critical Constraints
- Clock nets, DQ (data) and DQS (strobes) are routed differentially. 4.5” max length +/- 25MIL
- Net length from driver to first DIMM or chip: between 2” to 3” max depending on load
- Net length between DIMMs or chips: 0.5”
- Net length from last DIMM or Chip to the VTT Termination: 0.2” to 0.55”
- All DSQ/DQ (data and data strobe) should be minimized to reduce the skew within groups (or lanes) and across groups. 50 MIL within groups and 800 MIL across groups.
- Skew between address nets should be 200MIL. Address and command nets are daisy chained with a VTT pull-up for termination.
Other constraints to consider:
- DDR3 data nets have dynamic On-Die Termination (ODT) built into the controller and SDRAM. The configurations are 40Ω, 60Ω and 140Ω so VTT pull-up is not necessary.
- Zo for DDR3 is 50Ω. Zdiff is 100Ω.
Figure 1. 2.375Pre-Layout Analysis
I can’t emphasize enough the importance of pre-layout analysis. Without it, you are just relying on luck, which is not a design parameter. The pre-layout simulation is used to predict and eliminate signal integrity issues early, proactively constraining routing and optimizing clock, critical signal topologies and terminations prior to board layout.
As previously mentioned, the value and placement of the series resistors and VTT pull-ups for data, address and command signals depends on the distances between the loads, number of loads and the stackup of the board and are best determined by simulation. The series terminator may not be required if a single SDRAM is used and the trace length is short, but how do you know if you don’t simulate the proposed layout?
In general, try to keep the SDRAM as close as possible to the controller, but bear in mind that sometimes it will not be not possible because of other physical constraints. Also, if there are two or more SDRAM chips, this becomes more difficult and requires extended signal lengths terminators. Now the question becomes: Where should they be placed and what values should be used?
Figure 2.In this design, signal integrity will be better if the series terminator is placed 4.5” away from the driver.
The series terminator would normally be placed close to the driver. Surprisingly, however, in the above case, the signal integrity was much better with a long distance (4.5 inches) away from the driver, and then the signal split through two series resistors and into each bank of DDR2 SDRAM. This is unusual, but demonstrates the importance of simulation in order to achieve the best possible outcome. By the way, this design ran at full rate with no rework required.
Placement
If you have completed the pre-layout analysis, then placement is a matter of following the constraints determined for length and placement rules. Series terminators are normally placed in RESNET 1206 (4 resistor packages) or 0402 on the bottom of the board, as the top is typically taken up by large active devices.
Decaps should be placed directly beneath the devices where possible, using 20 MIL traces connected to the supply pins to reduce inductance. It is sometimes possible to use the vias coming down from fine pitch BGA supply pins as one pin for the 0402 decap and routing the other to ground.
Matched Length and Differential Pair Routing
Setting up the design rules is a little tedious in any PCB tool, but, once done on the first design, you can export them into the next design to save time. Below is an example of DDR2 high-speed design rules for Altium Designer.
Table 2.
When possible, I normally reduce the tolerance within Data Lanes 0-3 to 25 MIL in order to get a tighter match, although the JEDEC Spec is 50 MIL. These special high-speed design rules should be given top priority in the design rule hierarchy.
Final Post Layout Analysis
The final post-layout analysis includes a batch mode simulation of all the nets. This flags signal integrity, crosstalk and EMI hot spots. Basically, look carefully through this report to see any issues that may have to be dealt with.
The batch mode simulation reports:
- Signal Integrity issues including over/under shoot.
- Nets that are too long and need termination.
- Crosstalk from multiple aggressor nets.
- Possible EMI sources.
Go through these items one at a time and look at whether there needs to be action taken. For instance, a long “Reset” signal or a signal going to a static pull-up may be reported as being too long, but we can obviously ignore these particular warnings. Another possible case that needs to be addressed: a critical signal that is routed over the Manhattan length and needs termination.
Crosstalk is quite common in high speed designs because of the cramped real estate; signals have to be packed tightly into a small area. Crosstalk can be minimized by increasing trace spacing and by reducing the signal layer to reference plane separation. Try to keep prepreg thickness to 3 MIL to tightly couple the signals to the plane. Also, it may be necessary to add additional planes to the stackup to isolate the offending aggressor signals. Routing adjacent signal layers orthogonally also helps reduce noise coupling.
Crosstalk problems can cause intermittent operation due to timing glitches and interference, dramatically reducing your product’s reliability. So, it is best to address these issues at the source.
If a good job has been done routing the high-speed signals, on the internal layers and away from the edges of the board, then EMI should be minimal. However, if there is an EMI issue, different routing strategies can be tried to eliminate the problem. EMC can be measured during the design process to FCC, CISPR, VCCI Class A & B standard; this alone saves multiple iterations of a design.
All critical high-speed signals should be individually checked. Signal flight times need to be within spec, and eye diagrams must have eyes wide open.
By simulating during the design process, you can be assured that your PCB layout will be of the highest quality and will pass the relevant EMC tests, saving you time, money and frustration for a fraction of the cost of board iterations and multiple compliancy testing. Plus, the simulation can be done before the design is finalized (before Gerber output or even earlier in the design process) to further reduce production time and costs.
References
1. Advanced Design for SMT – Barry Olney, In-Circuit Design Pty Ltd. 2. JEDEC Specifications JESD 79F, JESD79-2E & JESD79-3D 3. Altera Board Layout Guidelines, EMI_Plan_BoardBarry Olney is managing director of In-Circuit Design Pty Ltd. (ICD), Australia, a PCB design service bureau and board-level simulation specialist. Among others through the years, ICD was awarded “Top 2005 Asian Distributor Marketing,” and “Top 2005 Worldwide Distributor Marketing” by Mentor Graphics, Board System Division. Click here to contact Barry.
More Columns from Beyond Design
Beyond Design: High-speed Rules of ThumbBeyond Design: Integrated Circuit to PCB Integration
Beyond Design: Does Current Deliver the Energy in a Circuit?
Beyond Design: Termination Planning
Beyond Design: Dielectric Material Selection Guide
Beyond Design: The Art of Presenting PCB Design Courses
Beyond Design: Embedded Capacitance Material
Beyond Design: Return Path Optimization