What are the strategies for PCB layout routing?

Layout is one of the most basic work skills for PCB design engineers. The quality of routing will directly affect the performance of the entire system. Most high-speed design theories must ultimately be implemented and verified through layout. It can be seen that routing is crucial in high-speed PCB design. The following will analyze the rationality of some situations that may be encountered in actual routing, and give some relatively optimized routing strategies. It is mainly explained from three aspects: right-angle routing, differential routing, and serpentine routing.

1.Right-angle routing

    Right-angle routing is generally a situation that is required to be avoided as much as possible in PCB routing, and it has almost become one of the standards for measuring the quality of routing. So how much impact will right-angle routing have on signal transmission? In principle, right-angle routing will change the line width of the transmission line, causing impedance discontinuity. In fact, not only right-angle routing, but also angle and sharp-angle routing may cause impedance changes. The influence of right-angle routing on signals is mainly reflected in three aspects: first, the corner can be equivalent to a capacitive load on the transmission line, slowing down the rise time; second, impedance discontinuity will cause signal reflection; third, EMI generated by the right angle.

    The parasitic capacitance caused by the right angle of the transmission line can be calculated by the following empirical formula:

    C=61W(Er)1/2/Z0

    In the above formula, C refers to the equivalent capacitance of the corner (unit: pF), W refers to the width of the routing (unit: inch), εr refers to the dielectric constant of the medium, and Z0 is the characteristic impedance of the transmission line. For example, for a 4Mils 50-ohm transmission line (εr is 4.3), the capacitance caused by a right angle is about 0.0101pF, and the rise time change caused by this can be estimated:

    T10-90%=2.2CZ0/2 = 2.20.010150/2 = 0.556ps

    Through calculation, it can be seen that the capacitance effect caused by right-angle routing is extremely small.

    As the line width of the right-angle routing increases, the impedance at this point will decrease, so a certain signal reflection phenomenon will occur. We can calculate the equivalent impedance after the line width increases according to the impedance calculation formula mentioned in the transmission line chapter, and then calculate the reflection coefficient according to the empirical formula: ρ=(Zs-Z0)/(Zs+Z0). Generally, the impedance change caused by right-angle routing is between 7%-20%, so the maximum reflection coefficient is about 0.1. Moreover, as can be seen from the figure below, the impedance of the transmission line changes to the minimum within the time of W/2 line length, and then returns to the normal impedance after W/2 time. The entire impedance change time is extremely short, often within 10ps. Such a fast and small change is almost negligible for general signal transmission.

    Many people have such an understanding of right-angle routing, thinking that it is easy to transmit or receive electromagnetic waves and generate EMI, which has become one of the reasons why many people think that right-angle routing cannot be used. However, many actual test results show that right-angle routing does not generate obvious EMI compared to straight lines. Perhaps the current instrument performance and test level restrict the test, but at least it shows a problem that the radiation of right-angle routing is already less than the measurement error of the instrument itself.

    In general, right-angle routing is not as terrible as imagined. At least in applications below GHz, any effects such as capacitance, reflection, EMI, etc. generated by it are almost not reflected in TDR testing. High-speed PCB design engineers should still focus on layout, power/ground design, routing design, vias and other aspects. Of course, although the impact of right-angle routing is not very serious, it does not mean that we can all use right-angle routing in the future. Paying attention to details is a basic quality that every engineer must have. Moreover, with the rapid development of digital circuits, the signal frequency processed by PCB engineers will continue to increase. In the RF design field above 10GHz, these small right angles may become the focus of high-speed problems.

    2.Differential routing

      Differential signals are increasingly used in high-speed circuit design. The most critical signals in the circuit often use differential structure design. What makes it so popular? How can its good performance be guaranteed in PCB design? With these two questions, let’s discuss the next part. What is a differential signal? In layman’s terms, the driver sends two equal and opposite signals, and the receiver determines the logical state “0” or “1” by comparing the difference between the two voltages. The pair of routing lines that carry differential signals is called differential routing.

      Compared with ordinary single-ended signal routing, the most obvious advantages of differential signals are reflected in the following three aspects:

      a. Strong anti-interference ability, because the coupling between the two differential routings is very good. When there is noise interference from the outside, it is almost coupled to the two lines at the same time, and the receiving end only cares about the difference between the two signals, so the common mode noise from the outside can be completely offset.

      b. It can effectively suppress EMI. In the same way, because the polarity of the two signals is opposite, the electromagnetic fields they radiate to the outside can offset each other. The tighter the coupling, the less electromagnetic energy is released to the outside.

      c. Timing positioning, because the switching change of the differential signal is located at the intersection of the two signals, unlike the ordinary single-ended signal that relies on the high and low threshold voltages, it is less affected by the process and temperature, which can reduce the timing error, and is also more suitable for circuits with low amplitude signals. The currently popular LVDS (low voltage differential signaling) refers to this small amplitude differential signal technology.

      For PCB engineers, the most important thing is how to ensure that these advantages of differential routing can be fully utilized in actual routing. Perhaps anyone who has been exposed to Layout will understand the general requirements of differential routing, which is “equal length and equal distance”. Equal length is to ensure that the two differential signals always maintain opposite polarity and reduce common mode components; equal distance is mainly to ensure that the differential impedance of the two is consistent and reduce reflection. “The principle of keeping as close as possible” is sometimes also one of the requirements for differential routing. But all these rules are not used to apply mechanically, and many engineers do not seem to understand the essence of high-speed differential signal transmission. The following focuses on several common misunderstandings in PCB differential signal design.

      Misunderstanding 1:

      It is believed that differential signals do not need a ground plane as a return path, or that differential routing provides a return path for each other. The reason for this misunderstanding is being confused by surface phenomena or not having a deep understanding of the mechanism of high-speed signal transmission. From the structure of the receiving end in Figure 1-8-15, it can be seen that the emitter currents of transistors Q3 and Q4 are equal and opposite, and their currents at the ground just cancel each other out (I1=0), so the differential circuit is insensitive to noise signals such as ground bounce and other noise signals that may exist on the power supply and ground plane. The partial return offset of the ground plane does not mean that the differential circuit does not use the reference plane as the signal return path. In fact, in the signal return analysis, the mechanism of differential routing and ordinary single-ended routing is the same, that is, high-frequency signals always return along the loop with the smallest inductance. The biggest difference is that in addition to the coupling to the ground, the differential lines also have mutual coupling. The one with stronger coupling becomes the main return path. Figure 1-8-16 is a schematic diagram of the geomagnetic field distribution of single-ended signals and differential signals.

      In PCB circuit design, the coupling between differential routing is generally small, often accounting for only 10~20% of the coupling degree, and more is the coupling to the ground, so the main return path of the differential routing still exists in the ground plane. When the ground plane is discontinuous, the coupling between differential routing will provide the main return path in the area without the reference plane, as shown in Figure 1-8-17. Although the discontinuity of the reference plane does not have a serious impact on the differential routing as on the ordinary single-ended routing, it will still reduce the quality of the differential signal and increase EMI, so it should be avoided as much as possible. Some designers also think that the reference plane under the differential trace can be removed to suppress some common-mode signals in differential transmission, but theoretically this approach is not advisable. How to control impedance? Not providing a ground impedance loop for common-mode signals will inevitably cause EMI radiation, which is more harmful than beneficial.

      Misunderstanding 2:

      It is believed that maintaining equal spacing is more important than matching line length. In actual PCB wiring, the requirements of differential design cannot be met at the same time. Due to factors such as pin distribution, vias, and routing space, appropriate winding must be used to achieve the purpose of line length matching, but the result is that some areas of the differential pair cannot be parallel. How should we choose at this time? Before drawing a conclusion, let’s take a look at the following simulation result.

      From the above simulation results, the waveforms of Scheme 1 and Scheme 2 are almost overlapping, that is, the impact caused by unequal spacing is minimal. In comparison, the impact of mismatched line length on timing is much greater (Scheme 3). From a theoretical analysis, although inconsistent spacing will cause changes in differential impedance, the impedance change range is also very small because the coupling between differential pairs is not significant, usually within 10%, which is equivalent to the reflection caused by a via, which will not have a significant impact on signal transmission. Once the line length is mismatched, in addition to the timing offset, common mode components are introduced into the differential signal, reducing the quality of the signal and increasing EMI.

      It can be said that the most important rule in the design of PCB differential routing is to match the line length, and other rules can be flexibly handled according to design requirements and practical applications.

      Misunderstanding 3:

      It is believed that differential routing must be very close. Bringing differential routing close is nothing more than enhancing their coupling, which can not only improve immunity to noise, but also make full use of the opposite polarity of the magnetic field to offset the electromagnetic interference to the outside world. Although this approach is very beneficial in most cases, it is not. If we can ensure that they are fully shielded and not interfered by the outside world, then we don’t need to achieve the purpose of anti-interference and EMI suppression through strong coupling with each other. How can we ensure that the differential traces have good isolation and shielding? Increasing the spacing with other signal traces is one of the most basic ways. The electromagnetic field energy decreases in a square relationship with the distance. Generally, when the line spacing exceeds 4 times the line width, the interference between them is extremely weak and can be basically ignored. In addition, the isolation through the ground plane can also play a good shielding role. This structure is often used in high-frequency (above 10G) IC package PCB design. It is called CPW structure, which can ensure strict differential impedance control (2Z0). Differential traces can also be routed in different signal layers, but this method is generally not recommended because the differences in impedance and vias generated by different layers will destroy the effect of differential mode transmission and introduce common mode noise. In addition, if the coupling between the two adjacent layers is not tight enough, the ability of the differential trace to resist noise will be reduced, but if the appropriate spacing with the surrounding traces can be maintained, crosstalk will not be a problem. At normal frequencies (below GHz), EMI will not be a serious problem. Experiments show that the radiation energy attenuation of differential lines 500 Mils apart at 3 meters has reached 60 dB, which is enough to meet the FCC’s electromagnetic radiation standards. Therefore, designers do not need to worry too much about electromagnetic incompatibility caused by insufficient differential line coupling.

      3.Serpentine line

        Serpentine line is a type of routing method often used in Layout. Its main purpose is to adjust the delay and meet the system timing design requirements. Designers must first have such an understanding: serpentine line will damage the signal quality and change the transmission delay, and should be avoided as much as possible during wiring. However, in actual design, in order to ensure that the signal has enough hold time, or to reduce the time offset between the same group of signals, it is often necessary to deliberately wind the line. So, what effect does the serpentine line have on signal transmission? What should be paid attention to when routing? The two most critical parameters are the parallel coupling length (Lp) and the coupling distance (S), as shown in Figure 1-8-21. Obviously, when the signal is transmitted on the serpentine line, coupling will occur between the parallel line segments in the form of differential mode. The smaller S is and the larger Lp is, the greater the degree of coupling will be. This may lead to a decrease in transmission delay and a significant reduction in signal quality due to crosstalk. The mechanism can be referred to the analysis of common-mode and differential-mode crosstalk in Chapter 3. Here are some suggestions for layout engineers when dealing with serpentine lines:

        1. Try to increase the distance (S) between parallel line segments to at least 3H, where H refers to the distance from the signal line to the reference plane. In layman’s terms, it means routing around large bends. As long as S is large enough, the mutual coupling effect can be almost completely avoided.
        2. Reduce the coupling length Lp. When the delay of twice the Lp approaches or exceeds the signal rise time, the crosstalk generated will reach saturation.
        3. The signal transmission delay caused by the serpentine line of the strip-line or embedded micro-strip is smaller than that of the micro-strip. Theoretically, the stripline will not affect the transmission rate due to differential mode crosstalk.
        4. For high-speed signal lines and those with strict timing requirements, try not to use serpentine lines, especially not to meander in a small range.
        5. You can often use serpentine lines at any angle, such as the C structure in Figure 1-8-20, which can effectively reduce mutual coupling.
        6. In high-speed PCB design, serpentine lines have no so-called filtering or anti-interference capabilities, and can only reduce signal quality, so they are only used for timing matching and have no other purpose.
        7. Sometimes you can consider winding in the form of spiral routing. Simulation shows that its effect is better than normal serpentine routing.

        Similar Posts