How To Be A Circuit Board Designer - Routing Traces
During component placement you were organizing parts into functional groups. During this phase you may have noticed that many of the connections are very short. Often there will be very short netlines, like two pins of a gate shorted together or two surface mount components sitting side by side, and the connection between them can be made on the surface layer with no via. Keep in mind that if a test fixture will be developed for the product, even though the connection can be made between them directly, you may need to add a via anyway to provide access to the short trace from the other side of the board (test fixtures are much cheaper if all of the circuit nodes are accessible from one side of the assembly, usually the bottom). At this point in the design, I usually can't resist doing some of the really short routes on the top and bottom layers, but before going on we should take a step back and have a look at the big picture...
If Component Placement is similar to a Jigsaw Puzzle,
Then Routing Traces is similar to Connect-The-Dots.
You may have spent quite a long time doing very specific component placements for each section, now let's zoom out and have a look at the whole design. By this point in the design process we know that the components will fit in the area provided by mechanical constraints, we can see our functional groups in a general floorplan, and if our CAD system supports it, we can turn on the remaining netlines and see the interconnections between groups. Unless this is a simple two-layer design, we can't really go much further until we define (or refine) the layer structure and plane assignments.
It is difficult to make specific recommendations without knowing the parameters of a design. Many RF and analog boards have relatively simple circuits on two-layer boards, but the feature sizes and material properties are critical. Digital designs typically have more complex circuits with many layers, and power boards may need heavy copper thicknesses, isolation requirements and large copper fills. Each of these will have specific design constraints. It is often beneficial to find a similar design by the same customer for comparison, and ask for details if it is outside the scope of your experience.
Don't let that last paragraph discourage you!Very simple designs may be able to be routed successfully using only the top and bottom layers of the board. If you can complete the routing using only a 2-layer stackup (top and bottom, no internal layers), the board will be relatively inexpensive to fabricate compared to multi-layer designs.
Most modern designs will incorporate power and ground planes. There aren't too many decisions that have to be made for 4-layer designs, except that one routing layer will usually be declared for mostly horizontal traces, and the other layer will be routed with mostly vertical traces. The ground plane will most often placed in the stack to be nearest the side with the most active devices.
The next two layers to be added are usually trace layers to provide more routing capability. On 6-layer boards, it is usually best to put the most critical routing on inner layers, and the outside layers will be used by land patterns, via fanout traces, very short routes to connect adjacent components, and if needed, heavy power traces or small copper area fills for high-current or heat-sinking.
Beyond this brief introduction to PCB layer stack-ups, I would merely be duplicating the work of others who have already explained it far better than I would. For example, Henry Ott has written a very good introduction to PCB Stack-ups which can be found in the Tech Tips section of his website at HottConsultants.com. Look for a six-part article called PCB Stack-ups in Section 10. In case the link becomes unavailable, I have collected all six parts into a PDF file which you can read HERE, but Henry Ott deserves all the credit... READ IT, MEMORIZE IT, LIVE IT!
(and as another compliment to Henry, his new book "Electromagnetic Compatibility Engineering" is getting rave reviews and won the 2009 Publishers Association Prose Award for the field of Engineering and Technology. Good Job, Mr. Ott!)
If I ever write a book about Signal Integrity, I would like to call it "A Field Guide to Guiding Fields". Because that's what we are really doing; transporting an energy field from one place to another, hopefully along paths that we have carefully constructed, without stray energy causing unintended consequences or being diverted unintentionally.
EMC is an acronym for Electro-Magnetic Compatibility and also Electro-Magnetic Compliance (which is closely related).
Compatibility refers to the influence of a particular electronic circuit ON the environment around it (Emissions) and how well it performs when subjected to influences FROM the environment (Immunity).
Compliance usually refers to how well a particular electronic circuit meets minimum specifications or regulations.
You may have heard the phrase "electricity follows the path of least resistance", which is not entirely accurate when evaluating modern electronic circuits. Impedance is a better term than resistance, because whether we are looking at 60Hz AC from the wall socket or high-frequency multi-GHz signals, impedance is opposition of current flow from the combined effects of resistance, capacitance and inductance.
If we were using perfect conductors in a vacuum, we could expect our signals to travel from one place to another at the speed of light with no loss. Unfortunately, we haven't devised a practical way to approximate that yet, so we have to study how our design will perform in the real world. We are using copper and other conductive metals which are not perfect conductors, we're separating them with different forms of insulating materials that have various and sometimes inconsistent properties, and we are usually forced to put different types of tranmission lines operating at different frequencies in close proximity to each other.
The signal loss we should expect is a combination of five general factors:
Although some measures may have been taken by the design engineer to mitigate unwanted effects (like the addition of filtering and termination components), our focus here will be on the routing of conductors
As current flows through a conductor an electromagnetic field forms around it, and at higher frequencies more of the current will be flowing near the surface of the conductor than near the center. This is called the SKIN EFFECT. As the frequency increases, the skin depth decreases. When the skin depth is very thin, sometimes the roughness of the copper surface has to be taken into account because it can have an effect on the circuit performance. For some circuits, different materials may be needed with smaller copper crystal structure and a smoother surface (sometimes referred to as "less tooth").
By this point in the design you have components placed on the board and you are preparing to route traces. If you take a moment to review everything you know about the design parameters (current requirements, voltage clearances, layer assignments, impedance control, etc.) it might seem like there are too many variables to manage at once. We're more than halfway through this tutorial, stressing the importance of many various topics, but we haven't even started routing traces yet!
I hope you aren't overwhelmed with Too Much Information and little actual progress, but important decisions have to be made early in the design cycle that will affect the cost, performance, and reliability of the final product forever. My advice to you is to take advantage of as many of the features of your CAD system as possible, to embed as many of these rules and guidelines into the design as possible, so the computer can do automatic error-checking.
Most CAD systems have some way of assigning net properties and then using them to make many tasks easier, such as maintaining appropriate distances between features, setting minimum trace widths, and selecting default via sizes. Most systems prevent you from making an error once the rule is in place, but also provide an automated Design-Rule Check (DRC) process to identify potential problems before the final data is generated.
Finally, Routing