|
<< Click to Display Table of Contents >> Navigation: The Learning Tree > Routing |
Routing is the process of creating the physical copper connections that bring your electronic circuit to life. It transforms the electrical connections defined in your schematic into copper tracks, vias and interconnected conductive areas on your printed circuit board.
AutoTRAX DEX provides manual and automatic routing tools to help you complete these connections efficiently while satisfying your PCB design requirements.
Routing is much more than simply joining one component to another. The width, length, geometry and position of your copper tracks can significantly influence the electrical performance, reliability and manufacturability of your finished PCB.
Whether you are routing a simple circuit with a handful of components or a complex multilayer PCB containing thousands of connections, understanding the principles of routing will help you produce better electronic designs.
What you will learn
In this section of the learning tree, you will learn how to:
•Understand electrical nets and connectivity.
•Identify unrouted electrical connections.
•Route copper tracks manually.
•Automatically route your PCB.
•Route individual electrical connections and nets.
•Work with track widths and electrical clearances.
•Change routing layers.
•Insert and position vias.
•Create and modify track junctions.
•Route around components and other obstacles.
•Edit and optimise existing tracks.
•Remove unwanted routing.
•Balance the lengths of PCB tracks.
•Route power and ground connections.
•Understand differential pair routing.
•Route high-speed and sensitive signals.
•Check routing for design rule violations.
•Verify that all electrical connections are complete.
1. Understanding electrical nets
An electrical net is a collection of points within an electronic circuit that are intended to be electrically connected.
For example, the ground net of your circuit may connect dozens or even hundreds of component pins distributed throughout your PCB.
When you create electrical connections in your schematic, AutoTRAX DEX uses this connectivity information to determine which component pads must be connected on the PCB.
A routed PCB net may contain:
•Component pads.
•Copper tracks.
•Vias.
•Track junctions.
•Associated copper pours and conductive areas.
The objective of routing is to establish the required electrical connectivity between these points without creating unintended connections to other nets.
A net does not necessarily require a separate track between every pair of pads. Tracks can branch and share common electrical paths through track junctions.
2. Understanding the ratsnest
Before routing your PCB, AutoTRAX DEX displays visual indications of the electrical connections that have not yet been completed.
These connections are commonly referred to as the ratsnest.
Ratsnest lines are not physical copper tracks. They provide guidance by showing where electrical connections are still required.
The ratsnest is particularly useful when:
•Positioning components.
•Identifying unrouted connections.
•Planning routing strategies.
•Determining suitable component orientations.
•Identifying densely connected areas.
•Monitoring routing progress.
As you complete electrical connections, the corresponding unrouted connections disappear or are updated to reflect the remaining connectivity requirements.
A complicated ratsnest is often an indication that component placement could be improved.
3. Preparing your PCB for routing
Before you begin routing, spend some time preparing your PCB.
Good preparation can make the difference between a straightforward routing operation and hours of unnecessary work.
You should:
•Check that your schematic is complete.
•Verify that all components have suitable PCB footprints.
•Define the board outline.
•Configure the required copper layers.
•Establish appropriate design rules.
•Position and orientate components carefully.
•Identify critical electrical connections.
•Consider power distribution and ground return paths.
•Identify mechanical restrictions.
•Review your PCB manufacturer's capabilities.
Good component placement is particularly important.
Moving or rotating a single component can sometimes eliminate numerous track crossings, reduce the number of required vias and considerably simplify routing.
4. Understanding copper tracks
A copper track is a conductive path on a copper layer of your PCB.
Tracks provide electrical connections between component pads, vias and track junctions.
Important track characteristics include:
•Width.
•Length.
•Copper layer.
•Position.
•Geometry.
•Electrical net.
•Clearance from neighbouring conductive objects.
Although a copper track may appear to be a simple line on your screen, it has physical and electrical properties that must be considered during PCB design.
Every copper track has electrical resistance, inductance and capacitance. These properties become increasingly important when working with high currents, high frequencies or rapidly changing signals.
5. Manual routing
Manual routing allows you to create copper tracks interactively, giving you direct control over their position and geometry.
You can determine where tracks run, how they navigate around components and where they change between copper layers.
Manual routing is particularly useful when working with:
•Power supply connections.
•High-current circuits.
•Sensitive analogue signals.
•High-speed digital signals.
•Radio-frequency circuits.
•Differential signals.
•Timing-critical connections.
•Densely populated areas of a PCB.
It is also useful when you want precise control over the appearance and organisation of your PCB.
As you route a connection, consider the space that will remain available for subsequent connections. A track that is easy to route now may create an unnecessary obstacle for another track later.
6. Automatic routing
Automatic routing allows software to determine suitable paths for electrical connections on your PCB.
An autorouter attempts to complete electrical connections while respecting applicable routing constraints and navigating around existing PCB objects.
Automatic routing can save a considerable amount of time, particularly when designing boards containing large numbers of components and electrical connections.
The effectiveness of automatic routing depends on several factors:
•Component placement.
•Board dimensions.
•Number of available copper layers.
•Track widths.
•Electrical clearances.
•Via dimensions.
•Component density.
•Existing routing.
•Available routing space.
An autorouter cannot always compensate for poor component placement or unrealistic design constraints.
If automatic routing produces unsatisfactory results, consider improving component placement, reviewing your design rules or increasing the available routing space.
Always inspect the resulting PCB to ensure that the routing satisfies your engineering requirements.
7. Combining manual and automatic routing
You do not have to choose exclusively between manual and automatic routing.
Many electronic designs benefit from a combination of both techniques.
A practical approach is to manually route electrically critical connections first, followed by automatic routing of less critical connections.
For example, you might manually route:
•Power supply connections.
•Clock signals.
•Crystal oscillator connections.
•Sensitive analogue inputs.
•High-current connections.
•High-speed communication interfaces.
You can then use automatic routing to complete more conventional electrical connections.
Finally, inspect the completed routing and make any necessary improvements.
This approach combines the engineering judgement of the designer with the computational capabilities of automatic routing.
8. Choosing appropriate track widths
Not all electrical connections require the same track width.
The appropriate width of a copper track depends on its electrical and thermal requirements, as well as the capabilities of your PCB manufacturer.
Factors affecting track width include:
•Maximum expected current.
•Copper thickness.
•Track length.
•Acceptable voltage drop.
•Acceptable temperature rise.
•Signal impedance requirements.
•Manufacturing limitations.
Wider tracks generally have lower electrical resistance and can carry greater currents with less heating.
However, wider tracks also occupy more routing space.
Narrower tracks may be suitable for low-current signals and densely populated areas, but they must still satisfy manufacturing and electrical requirements.
Avoid selecting a track width simply because it is the smallest width your PCB manufacturer can produce.
The ability to manufacture a track does not necessarily mean that the track is suitable for your circuit.
9. Understanding electrical clearances
Electrical clearance is the separation between conductive objects.
Adequate clearance helps prevent unintended electrical connections and reduces the risk of manufacturing defects.
Clearance requirements may apply between:
•Tracks belonging to different nets.
•Tracks and component pads.
•Tracks and vias.
•Adjacent copper pours.
•Copper and mounting holes.
•Copper and board edges.
The required clearance depends on manufacturing capabilities, operating voltages, environmental conditions and applicable safety requirements.
High-voltage circuits require particular attention to both clearance and creepage distances.
Clearance is the shortest distance through air between conductive objects, whereas creepage is the shortest distance along the surface of an insulating material.
For safety-critical and high-voltage designs, always consult the relevant electrical safety standards rather than relying solely on the minimum clearances specified by your PCB manufacturer.
10. Routing on different copper layers
A multilayer PCB provides several copper layers on which electrical connections can be routed.
Using multiple layers allows tracks to cross one another without making unintended electrical connections, provided that they are on different copper layers and remain appropriately insulated.
On a two-layer PCB, routing typically takes place on the top and bottom copper layers.
More complex PCBs may contain additional internal layers dedicated to:
•Signal routing.
•Ground planes.
•Power distribution.
•High-speed signal connections.
Changing routing layers can help you navigate around obstacles and access areas that would otherwise be difficult to reach.
However, unnecessary layer changes can increase routing complexity and may affect electrical performance.
Choose routing layers according to the requirements of your design rather than simply using whichever layer has available space.
11. Working with vias
A via provides an electrical connection between copper layers.
When a track needs to move from one copper layer to another, a via provides the required conductive path.
A conventional through-hole via consists of a drilled hole with conductive plating connecting the relevant copper layers.
Important via characteristics include:
•Overall diameter.
•Drill diameter.
•Annular ring dimensions.
•Electrical clearance.
•Connected copper layers.
•Associated electrical net.
Vias can also be used for purposes other than changing routing layers.
These include:
•Connecting ground planes.
•Distributing power.
•Providing signal return paths.
•Improving heat dissipation.
•Connecting separate copper areas.
•Ground stitching.
Although reducing unnecessary vias is often desirable, vias are an essential part of multilayer PCB design.
A well-positioned via can simplify routing and improve electrical performance.
12. Working with track junctions
Many electrical nets contain more than two connection points.
Track junctions allow tracks to branch and form interconnected routing structures.
For example, a single power supply connection may need to supply several integrated circuits, capacitors and connectors.
Rather than routing an independent track between every pair of components, you can create a connected network of tracks with appropriately positioned junctions.
In AutoTRAX DEX, track junctions are explicit electrical connection points within a PCB net. They allow multiple tracks to terminate at a common location, maintaining the connectivity of the routing structure.
A track junction is not the same as a via. A junction allows tracks to connect and branch, whereas a via provides electrical connectivity between copper layers.
Careful positioning of track junctions can help reduce unnecessary track lengths and simplify the overall routing structure.
However, branching must be considered carefully when routing high-speed signals, where unwanted stubs can cause signal reflections.
13. Routing around obstacles
During routing, you will frequently encounter objects that prevent a direct connection between two points.
Typical routing obstacles include:
•Component pads belonging to other nets.
•Existing copper tracks.
•Vias.
•Copper areas.
•Mounting holes.
•Board edges.
•Routing restrictions.
•Mechanical features.
When encountering an obstacle, you may need to:
•Change the direction of a track.
•Route around the obstacle.
•Change copper layers using a via.
•Modify existing routing.
•Reconsider component placement.
•Review the available routing space.
The shortest geometric path between two points is not necessarily a valid routing path.
A suitable route must satisfy electrical connectivity requirements, maintain appropriate clearances and remain within the permitted routing area.
14. Editing existing routing
Routing is rarely completed perfectly on the first attempt.
As your PCB develops, you may discover opportunities to improve existing connections or make space for additional tracks.
Editing existing routing may involve:
•Moving track segments.
•Changing track widths.
•Adjusting track geometry.
•Moving vias.
•Moving track junctions.
•Changing routing layers.
•Removing unnecessary track segments.
•Rerouting individual connections.
•Modifying an entire electrical net.
When modifying existing routing, always ensure that electrical connectivity is preserved.
A visually continuous collection of copper tracks must also form the intended electrical connection.
Do not hesitate to remove and reroute a connection if doing so produces a simpler or more reliable PCB.
15. Removing unwanted routing
Sometimes the most effective way to improve a PCB is to remove existing routing and start again.
This process is commonly referred to as ripping up routing.
You may wish to remove routing when:
•A component has been repositioned.
•A connection follows an unnecessarily complicated path.
•Existing tracks obstruct other connections.
•Track widths need substantial changes.
•A different routing layer would be more appropriate.
•Component placement has been improved.
•An alternative routing strategy produces better results.
Removing a copper track does not mean that the corresponding electrical connection is no longer required.
The electrical connectivity defined by your design remains, and any resulting incomplete connection must be routed again.
16. Optimising your routing
Once your electrical connections are complete, examine the routing for opportunities to improve it.
A good routing solution should satisfy the electrical and manufacturing requirements of your design while making sensible use of the available board space.
Possible improvements include:
•Reducing unnecessary track lengths.
•Removing redundant track segments.
•Reducing unnecessary vias.
•Simplifying track geometry.
•Improving track spacing.
•Increasing electrical clearances.
•Improving power distribution.
•Improving signal return paths.
•Eliminating unnecessary branches and stubs.
•Making additional space available for other connections.
Routing optimisation involves balancing competing objectives.
For example, the shortest possible route may require several vias, while a slightly longer route may remain entirely on one copper layer.
Similarly, increasing track width may improve electrical performance but reduce the space available for other connections.
The best routing solution depends on the requirements of your particular circuit.
17. Routing power and ground connections
Power and ground connections are fundamental to the reliable operation of an electronic circuit.
Unlike many ordinary signal connections, power connections may need to carry substantial currents.
When routing power connections, consider:
•Current-carrying capacity.
•Voltage drop.
•Track resistance.
•Copper thickness.
•Track width.
•Thermal behaviour.
•Power supply noise.
•Ground return paths.
Large copper areas and dedicated power or ground planes can be particularly useful for distributing power throughout a PCB.
Where current flows between copper layers, multiple vias may be appropriate to reduce resistance and distribute heat.
Remember that electrical current always flows around a complete circuit.
A well-designed positive supply connection is of limited benefit if the corresponding ground return path is inadequate.
18. Routing decoupling capacitors
Decoupling capacitors help maintain stable power supply voltages and provide local current during rapid changes in component activity.
Their effectiveness depends not only on their capacitance but also on their physical placement and routing.
When routing decoupling capacitors:
•Position them close to the associated power supply pins.
•Keep connections short.
•Minimise the area of the current loop.
•Avoid unnecessary inductance.
•Provide suitable connections to power and ground planes.
•Follow the component manufacturer's layout recommendations.
A correctly selected capacitor with poor PCB routing may perform considerably worse than expected.
19. Routing high-speed signals
As signal transition times become shorter, the physical properties of copper tracks become increasingly important.
A PCB track may need to be treated as a transmission line rather than simply as an electrical connection.
High-speed routing considerations include:
•Controlled impedance.
•Signal propagation delay.
•Track length.
•Signal reflections.
•Crosstalk.
•Return path continuity.
•Reference planes.
•Via transitions.
•Track branching.
•Unwanted stubs.
High-speed signals should generally have a continuous and appropriate return path.
Avoid routing sensitive high-speed signals across interruptions in their reference planes without considering how the return current will flow.
Remember that the rise and fall times of a signal can be more significant than its repetition frequency when determining whether transmission-line effects must be considered.
20. Understanding differential pair routing
A differential pair consists of two associated signals used together to transmit information.
Differential signalling is widely used in modern electronic interfaces, including:
•USB.
•Ethernet.
•LVDS.
•HDMI.
•PCI Express.
•CAN bus.
•RS-485.
Depending on the interface, differential pair routing may require careful control of:
•Individual track widths.
•Separation between tracks.
•Differential impedance.
•Relative track lengths.
•Reference planes.
•Layer transitions.
•Via arrangements.
•Distance from neighbouring signals.
The precise routing requirements vary considerably between interfaces.
Always consult the relevant interface specifications and component manufacturer's layout recommendations.
21. Balancing track lengths
Some electronic circuits require signals to arrive at their destinations within a specified timing relationship.
Differences in track lengths can introduce differences in signal propagation delays.
Track length matching may be important when routing:
•Parallel memory interfaces.
•High-speed data buses.
•Differential pairs.
•Synchronous communication interfaces.
•Timing-critical signals.
AutoTRAX DEX provides tools for adjusting and balancing the lengths of PCB tracks.
Additional track length can be introduced by creating controlled deviations in the routing path, often referred to as serpentine or meander routing.
When balancing track lengths, consider the complete electrical path rather than simply the visible length of a particular track segment.
Layer transitions, vias, dielectric properties and routing geometry can all influence signal propagation.
Equal physical track lengths do not necessarily guarantee identical electrical propagation delays.
22. Routing sensitive analogue signals
Sensitive analogue circuits can be affected by electrical noise generated elsewhere on a PCB.
Examples include:
•Low-level sensor signals.
•Microphone inputs.
•Precision voltage references.
•Operational amplifier inputs.
•Analogue-to-digital converter inputs.
•High-impedance measurement circuits.
When routing sensitive analogue signals:
•Keep connections reasonably short.
•Avoid unnecessary proximity to noisy digital signals.
•Consider shielding and suitable ground arrangements.
•Minimise unwanted capacitive and inductive coupling.
•Keep sensitive signals away from switching power circuitry.
•Consider leakage currents in high-impedance circuits.
•Maintain appropriate signal return paths.
Good analogue routing requires an understanding of the electrical behaviour of the circuit, not simply its connectivity.
23. Routing high-current connections
High-current connections require particular attention because electrical resistance causes both voltage drop and heat generation.
When routing high-current connections, consider using:
•Wider copper tracks.
•Larger copper areas.
•Appropriate copper thickness.
•Multiple vias where necessary.
•Short current paths.
•Suitable thermal management techniques.
The power dissipated in a conductor increases with the square of the current flowing through it.
Consequently, even a relatively small track resistance can produce significant heating when carrying a large current.
Ensure that all parts of the current path are suitable, including component pads, vias, track junctions and connections to copper pours.
A wide track is of limited benefit if it narrows significantly at a critical connection point.
24. Working with copper pours and planes
Not every electrical connection needs to be implemented entirely using individual copper tracks.
Copper pours and planes can provide extensive conductive areas associated with particular electrical nets.
They are commonly used for:
•Ground connections.
•Power distribution.
•High-current connections.
•Thermal management.
•Signal return paths.
When routing around copper pours and planes, consider how your tracks affect the continuity of these conductive areas.
A collection of tracks can unintentionally divide a copper area into separate regions or create narrow conductive paths.
Review the completed copper areas to ensure that they provide the intended electrical connections and do not contain unwanted isolated regions.
25. Checking your routing
Once you have completed routing your PCB, use the Design Rule Checking facilities in AutoTRAX DEX to help identify potential problems.
Routing-related problems may include:
•Unrouted electrical connections.
•Insufficient electrical clearances.
•Incorrect track widths.
•Unintended electrical connections.
•Copper extending into restricted areas.
•Violations of applicable design rules.
In addition to automated checking, visually inspect your routing.
Ask yourself:
•Are all required electrical connections complete?
•Are the tracks wide enough for the expected currents?
•Are the clearances appropriate for the operating voltages?
•Are power and ground connections satisfactory?
•Are unnecessary vias present?
•Are sensitive signals appropriately routed?
•Are signal return paths continuous?
•Are critical timing requirements satisfied?
•Can the PCB be manufactured reliably?
A PCB that passes its Design Rule Check is not necessarily an electrically optimal PCB.
Design Rule Checking helps verify compliance with defined constraints, but it cannot replace an understanding of the circuit's electrical requirements.
26. Common routing mistakes
Even experienced PCB designers occasionally make routing mistakes.
Some of the most common include:
•Starting routing before component placement is complete.
•Using unnecessarily narrow copper tracks.
•Providing insufficient electrical clearance.
•Creating excessively long connections.
•Introducing unnecessary vias.
•Routing sensitive signals close to noisy circuitry.
•Creating long connections to decoupling capacitors.
•Interrupting important signal return paths.
•Creating unnecessary track branches and stubs.
•Overlooking voltage drop in power connections.
•Ignoring thermal requirements.
•Using unsuitable differential pair geometry.
•Leaving electrical connections unrouted.
•Assuming that automatic routing always produces the best result.
•Assuming that passing a Design Rule Check guarantees correct circuit operation.
Being aware of these common mistakes can help you avoid unnecessary design revisions and manufacturing costs.
A recommended routing workflow
Although every PCB is different, the following workflow provides a useful starting point:
1.Complete and verify your schematic.
2.Establish your PCB design rules.
3.Position and orientate your components.
4.Identify critical electrical connections.
5.Plan power distribution and ground return paths.
6.Route critical signals.
7.Route power and high-current connections.
8.Route the remaining electrical connections manually or automatically.
9.Add or update copper pours and planes.
10.Inspect and improve existing routing.
11.Verify track lengths where required.
12.Perform Design Rule Checking.
13.Confirm that all required electrical connections are complete.
14.Perform a final visual and electrical review.
You may need to repeat several of these steps as your PCB develops.
Routing is an iterative process, and improving an earlier design decision can often simplify many subsequent operations.
What makes a good routing solution?
A good routing solution is not necessarily the one with the shortest total track length, the fewest vias or the most visually attractive arrangement.
It should be:
•Electrically correct — all required electrical connections are completed without unintended connections.
•Electrically reliable — track widths, clearances and routing geometry satisfy the requirements of the circuit.
•Thermally suitable — copper tracks and conductive areas can carry the required currents without excessive heating.
•Manufacturable — the routing satisfies the capabilities of the PCB manufacturer.
•Efficient — available board space and copper layers are used sensibly.
•Maintainable — routing can be understood, inspected and modified when necessary.
•Appropriate — critical electrical connections receive the attention required by their particular function.
The ultimate objective is not simply to achieve 100% routing completion. It is to create a printed circuit board that works reliably.
Learning at your own pace
Routing is one of the most interesting and rewarding aspects of PCB design.
Start with a simple circuit and become familiar with creating tracks, changing copper layers, inserting vias and modifying existing connections.
As your experience grows, explore automatic routing, track length matching, multilayer routing, power distribution and more advanced signal integrity techniques.
Experiment with different component positions and routing strategies. Compare alternative solutions and observe how small changes can produce significant improvements.
There is rarely only one correct way to route a PCB. Different solutions may satisfy the same electrical requirements while offering different advantages in terms of board size, manufacturing cost, electrical performance and complexity.
Routing combines electronic engineering, geometry, mathematics, physics, computational algorithms and creativity.
And there is something particularly satisfying about watching the last unrouted connection disappear from your PCB.
Explore the topics in this section of the learning tree to discover how AutoTRAX DEX helps you transform electrical connections into efficient, reliable and manufacturable copper routing.