Ratlines and Ground Planes - Page 1
Forum section: electronics / general

author: NivagSwerdna
author_rank: Super Contributor
timestamp: October 11, 2016, 10:24:41 am
content: OK so I am laying out my second ever(2-layer) PCB... I'm planning to manually route...This time my circuit is a bit more complex and one thing I've noticed is that the rat lines associated with a component don't seem to really follow the logic of the circuit (from my point of view) so for example my circuit has power coming in at a jumper going through a diode, past a capacitor, to a regulator, etc but the ratlines don't really reflect the flow. Is there a way of changing the ratlines as you lay out?Also...Initially I have no ground plane so I get a lot of ratlines which will ultimately end up as being grounded to the plane. How do you approach this? Do you layout the ground plane first or layout some connections and combine them later.Thanks in advance

author: DerekG
author_rank: Frequent Contributor
timestamp: October 11, 2016, 11:33:03 am
content: Quote from: NivagSwerdna on October 11, 2016, 10:24:41 amShift the components to where you want them on the board (& lock them there if you want them there forever), then runVERIFICATIONCOMPARE TO SCHEMATICThe rats nesting lines will be recalculated based on which is now the shortest length to connect the components. If you placed the above components quite close to each other, the "new" rats nesting lines will show them directly connected together.QuoteI lay down the ground plane first, then make some non ground connections. Every now and then, I regenerate the ground plane which will then be disconnected from your new (non ground) routes. Alternatively, just lay down your ground plane first, then set it to "unpoured", connect all your non ground connections, then "repour" the ground plane.Remember that the auto-place function gives you a good head start (just lock in place the components that must be in set locations first like LEDs & switches) & the auto-router in DipTrace ver 3.0.0.2 actually works quite well.ADDED: In fact since the latest release, I now reach for DipTrace over Altium & Proteus everytime. The latest ver 3 release has come a long way over ver 2.

author: NivagSwerdna
author_rank: Super Contributor
timestamp: October 11, 2016, 01:34:01 pm
content: Thanks. Some great tips there!My circuit comprises 5 sheets with signals crossing the sheets via 1 connection PortsMaybe that introduces extra nets?(I'm on a very recent version)

author: Farley
author_rank: Regular Contributor
timestamp: October 11, 2016, 01:54:37 pm
content: Depending on the complexity of the PCB you can spend almost as much time placing the components as routing the traces.As you are placing, rotating, and adjusting components you can periodically press the F12 key to recalculate the ratlines.Another method I use (similar to DerekG's suggestion) is that once the component placement is close to final I go ahead and lay in a ground plane and connect it to whatever net is representing ground/common of the circuit. Then on the right side of the layout window I uncheck Copper Pours under the Objects tab. That will hide the ground plane but keep the connections to it so the ratlines don't reappear. As you route, and consequently nudge components around, you may need to update the copper pour periodically. You can keep it hidden as you do this.Adding a hotkey to update the copper pours is helpful.

author: John Coloccia
author_rank: Super Contributor
timestamp: October 11, 2016, 04:02:06 pm
content: Right click on the ground net and select "Hide Ratlines"....and poof, they're gone, ground plane or not.And yes, hit F12 to clean up the ratlines. The most useful feature is when you mouse over a pad, all of the pads in that net light up. Sometimes I find that more useful than the ratlines.There are some other useful things they could do to make it a little better, and it would be very simple, but my experience is it would be a complete waste time and energy to suggest them.