Ebook Manual - English - Cadsoft Eagle Ver 4.04 To 4.09 - Complete Manual PDF
Ebook Manual - English - Cadsoft Eagle Ver 4.04 To 4.09 - Complete Manual PDF
Ebook Manual - English - Cadsoft Eagle Ver 4.04 To 4.09 - Complete Manual PDF
Manual
Version 4.04 and later
This software and documentation are copyrighted by CadSoft Computer, Inc., doing business under the tradename EAGLE. The software and documentation are licensed, not sold, and may be used or copied only in accordance with the EAGLE License Agreement accompanying the software and/or reprinted in this document. This software embodies valuable trade secrets proprietary to CadSoft Computer, Inc. All trademarks referenced in this document are the property of their respective owners. Specifications subject to change without notice. Copyright 2001 CadSoft Computer, Inc. All rights reserved worldwide No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electonic, mechanical, photocopying, recording, scanning, digitizing, or otherwise, without the prior consense of CadSoft. Printed in the United States of America.
How to reach us Office Hours are: Mon - Thu: 9 am to 5 pm EST Fri: 9 am to 4 pm EST Phone: Fax: E-mail : Web: +1 561 274-8355 +1 561 274-8218 [email protected] http://www.cadsoftusa.com
CadSoft Computer, Inc. 801 South Federal Highway, Suite 201 Delray Beach, Florida 33483-5185 U.S.A.
Grant of License
CadSoft grants to you the right to use one copy of the accompanying EAGLE software program and any and all updates that you may receive (the Software) on a single computer or workstation. You may, however, install the Software on more than one computer or on a file server provided you do not operate the Software on more than one computer or workstation at a time.
Copyright
The Software is owned by CadSoft and is protected by United States copyright laws and international treaty provisions. Therefore, you must treat the Software like any other copyrighted material (e.g., a book or musical recording). You may not copy the written materials accompanying the Software.
Other Restrictions
You may not rent or lease the Software, but you may transfer your stand-alone copy of the Software and accompanying written materials on a permanent basis provided you retain no copies and the recipient agrees to the terms of this Agreement. Any such transfer must include all updates and prior versions of the Software and accompanying written materials, and notice must be given by you to CadSoft that such transfer has taken place. You may not reverse engineer, decompile, disassemble, or create derivative works based on the Software for any purpose other than creating an adaptation to the Software as an essential step in its utilization for your own use. You acknowledge Cadsofts claim that the Software embodies valuable trade secrets proprietary to CadSoft; you may not disclose any information regarding the internal operations of the Software to others.
LIMITED WARRANTY
CadSoft warrants the accompanying Software and documentation to be free of defects in materials and workmanship for a period of ninety (90) days from the purchase date. The entire and exclusive liability and remedy for breach of this Limited Warranty shall be, at Cadsofts option, either (a) return of the price paid or (b) replacement of defective Software and/or documentation provided the Software and/or documentation is returned to CadSoft with a copy of your receipt. Cadsofts liability shall not include or extend to any claim for or right to recover any other damages, including but not limited to, loss of profit, data or use of the Software, or special, incidental or consequential damages or other similar claims, even if CadSoft has been specifically advised of the possibility of such damages. In no event will Cadsofts liability for any damages to you or any other person ever exceed the lower of suggested list price or actual price paid for the license to use the Software, regardless of any form of the claim. TO THE EXTENT PERMITTED UNDER APPLICABLE LAW, CadSoft DISCLAIMS ALL OTHER WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SPECIFICALLY, CadSoft MAKES NO REPRESENTATION OR WARRANTY THAT THE SOFTWARE IS FIT FOR ANY PARTICULAR PURPOSE, AND ANY IMPLIED WARRANTY OF MERCHANTABILITY IS LIMITED TO THE NINETY-DAY DURATION OF THE LIMITED WARRANTY COVERING THE SOFTWARE AND PHYSICAL DOCUMENTATION ONLY, AND IS OTHERWISE EXPRESSLY AND SPECIFICALLY DISCLAIMED. THIS LIMITED WARRANTY GIVES YOU SPECIFIC LEGAL RIGHTS; YOU MAY HAVE OTHERS WHICH MAY VARY FROM STATE TO STATE. SOME STATES DO NOT ALLOW THE EXCLUSION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, OR THE LIMITATION ON HOW LONG AN IMPLIED WARRANTY LASTS, SO SOME OF THE ABOVE MAY NOT APPLY TO YOU.
Table of contents
1 Introduction 2 Installation
1.1 What is in This Manual? 1.2 Technical Terms 2.1 What You Have Received 2.2 New Installations Windows Linux 2.3 Updating an Older Version 2.4 Changing or Extending the License 2.5 Multiple Users and Network Licenses Installing in a Network 11 12 15 15 15 16 17 17 18 18 21 21 21 22 22 22 23 23 25 26 27 27 28 29 35 36 37 38 42 44 45 46 50 51 52 53 54
4.1 The Control Panel Library Summary Design Rules User Language Programs, Scripts, CAM Jobs Projects Menu Bar 4.2 The Schematic Editor Window How You Obtain Detailed Information About a Command The Action Toolbar The Schematic Command Toolbar Commands Not Available in the Command Toolbar Mouse Keys 4.3 The Layout Editor Window The Commands on the Layout Command Toolbar 4.4 The Library Editor Window Load or Rename Package, Symbol, or Device The Package Editing mode The Symbol Editing mode Create Actual Components from Symbols and Packages
4.5 The CAM Processor Dialog Generate Data 4.6 The Text Editor Window
57 58 59 61 61 62 62 63 64 64 64 67 68 69 69 69 69 70 70 71 73 74 75 75 76 78 79 81 82 82 82 85 87 88 89 89 90 90 90 91 99 99
Specify the Board Outline Arrange Devices Boards with Components on Both Sides Exchanging Housing Forms Changing the Technology Define Forbidden Areas Routing - Placing Tracks Manually Defining a Copper Plane with POLYGON Checking the Layout and Correcting Errors Creating Manufacturing Data 6.4 Multilayer Boards Signal Layers Power Supply Layer with One Signal Ground Areas and Supply Layers with More than One Signal 6.5 Updating Components (Library Update) 6.6 Print Out Schematic and Layout
99 100 102 102 103 103 104 105 106 109 110 110 110 111 112 113 117 117 118 118 119 119 120 120 120 120 122 122 123 123 124 124 124 124 125 125 125 125 126 126 126 126 126 126
7 The Autorouter
7.1 Basic Features 7.2 What Can be Expected from the Autorouter 7.3 Controlling the Autorouter Bus Router Routing Pass Optimization 7.4 What Has to be Defined Before Autorouting Design Rules Track Width and Net Classes Grid Memory Requirement Layer Preferred Directions Restricted Areas for the Autorouter Cost Factors and Other Control Parameters 7.5 How the Cost Factors Influence the Routing Process cfBase.xx: 0..20 cfVia: 0..99 cfNonPref: 0..10 cfChangeDir: 0..25 cfOrthStep, cfDiagStep cfExtdStep: 0..30 cfBonusStep, cfMalusStep: 1..3 cfPadImpact, cfSmdImpact: 0..10 cfBusImpact: 0..10 cfHugging: 0..5 cfAvoid 0..10 cfPolygon 0..30
mnVia 0..30 mnSegments 0..9999 mnExtdSteps 0..9999 7.6 Number of Ripup/Retry Attempts 7.7 The Autorouter Menu 7.8 Routing Multi-Layer Boards Supply Layers Polygons as Supply Layers 7.9 Backup and Interruption of Routing 7.10 Information for the User Status Display Log file 7.11 Parameters of a Control File 7.12 Practical Tips General Single-Sided Boards SMD Boards With Supply Layers What can be done if not all signals are routed?
127 127 127 127 128 130 130 131 131 132 132 132 133 134 134 134 134 135 138 138 141 145 149 151 151 154 160 162 163 169 169 171 173 174 174 174 175 175 177 177 178 179
Gerber Format Drill Data Data for Milling Machines Data for Component Insertion Machines 9.2 Which Files does the Board Maker Need? Files Generated with the CAM Processor Additional Information for the Board Manufacturer 9.3 Rules that Save Time and Money 9.4 Generating the Data with Ready-Made CAM Jobs Gerber.cam Job for Two-Layer Boards Job rs274x.cam Drill Data 9.5 Set Output Parameters 9.6 Names of the Output Files 9.7 Automating the Output with CAM Processor Jobs Defining a Job Extending gerber.cam Job for Multilayer Boards 9.8 Gerber Files for Photoplotters with Fixed Aperture Wheels Info File Aperture Emulation Aperture Tolerances Defining the Aperture Configuration 9.9 Device Driver in File eagle.def Creating Your Own Device Driver Units in the Aperture Configuration File 9.10 Film Generation Using PostScript Files 9.11 Documentation Parts List Drill Plan A. Layers and their Usage In Layout and Package Editor In Schematic, Symbol, and Device Editor B. EAGLE Files C. EAGLE Options at a Glance D. Configuration of the Text Menu E. Text Variables F. Error Messages When Loading a File In a Library In the CAM Processor
179 180 180 181 181 181 182 183 183 183 184 184 186 187 189 189 190 191 192 192 192 192 194 194 195 195 196 196 197 199 199 200 201 202 206 207 207 207 210 210
Appendix
Chapter 1 Introduction
This manual describes the use of the EAGLE software and its basic principles. The order of chapters follows the typical process from drawing a schematic to a ready-to-use layout.
11
EAGLE Manual
Appendix Lists useful additional information and explains some error messages EAGLE prompts in certain situations. For a quick, hands-on introduction, refer to the EAGLE Tutorial. Please read the tutorial for a better understanding before working with the manual. Anybody who has already been working with a prior version of EAGLE is advised to read the file UPDATE under Linux or UPDATE.TXT under Windows. It contains a description of all the differences from earlier versions. This file is located in the eagle/doc directory. Please read it before you start working with EAGLE 4. Information that was not available or that has been changed since printing this manual is also described in UPDATE or UPDATE.TXT, or, if it exists, in a README file. Detailed information, especially about the EAGLE command language and the EAGLE User Language, is available on the help pages. You can reach a basic understanding very quickly by using this manual, and you can use the convenient search features of the help function to quickly locate the answers to particular questions.
12
Introduction
Electrical Rule Check (ERC): EAGLE can identify the violation of certain electrical rules (e.g. if two outputs are connected) with the ERC. It also checks the consistency of the schematic and the layout. Forward&Back Annotation: Transforms all the actions one makes in a schematic online into the layout (and with limitations from layout into schematic). Both files are consistent all the time. Gate: The term gate is used in this manual for a part of a component which can be individually placed on a schematic. This can be one gate of a TTL component, one contact pair in a relay, or an individual resistor from a resistor array. Hole: Non plated-through drilling in the layout (e.g. a mounting hole). Net: Electrical connection in a schematic. Package: Component footprint stored in a library. Pad: Through-hole pad associated with a package. Pin: Connection point on a schematic symbol. Rack: Configuration table for a drilling machine. Needed for generating drill data. Ratsnest: Command for calculating the shortest airwires. Restring: Remaining width of the copper ring around a plated-through pad or via. Signal: Electrical connection in a board. Supply Symbol: Represents a supply signal in the schematic. Causes the ERC to run special checks. Symbol: Schematic representation of a component, stored in a library. User Language: Freely programmable, C-like language for data import and export. Via: Plated-through hole for changing the layer of a track. Wheel: Aperture configuration file. Generated with Gerber data for board manufacturing. Wire: Electrical connection in a board, or a line (since lines are drawn with the WIRE command).
13
Chapter 2 Installation
2.1 What You Have Received
The EAGLE pack, with the license agreement on the outside, contains the EAGLE CD-ROM, a license disk, the User License Certificate with the personal installation code, a training manual and this reference manual. It may be that not all of these items are included if you have asked for an upgrade to an existing Version 4 installation or for an extension of your license. In all cases, however, there is a new License Certificate and a new license disk. Keep the User License Certificate with your personal installation code in a safe place, inaccessible to unauthorized persons! Never give the license file or installation code to others! Never send your installation code by e-mail to CadSoft or to anyone else. You need the license card as evidence of your entitlement to future upgrades or updates.
Windows
Place the CD-ROM in the drive. After a short delay the CD-ROM startup window should open. If this does not happen, double-click on the CD-ROM symbol in the My Computer folder on the Windows desktop.
15
EAGLE Manual
When the CD-ROM startup window has opened, the first thing to do is to select the language in which you want to work. The help texts and additional documentation will be installed in that language. In the next window, click on the Install program item, and then simply follow the setup routine. You will be asked for the license disk as the installation proceeds. Keep it to hand. The program must be licensed the first time it is called. Enter the path to the license file (usually A:\license.key) and your personal installation code, as noted on the EAGLE User License Certificate, into the EAGLE Product Registration window. The program will then start, and will show the license data in the Control Panel. You can display the license data at any time in the EAGLE Control Panel by means of the Help/Product Information menu.
Linux
You can either use the RPM or the TGZ archive to install EAGLE on your system. The following assumes that you have mounted the EAGLE CD-ROM as /cdrom, and that you are logged in to your system as root user.
By default this package installs to /opt/eagle, but you can relocate it to a different directory using rpms -prefix option. Note that a shell script will be executed that installs a symbolic link to the executable file in /usr/local/bin, and also copies the manual page to /usr/local/man/man1. You can use rpms -noscripts option to avoid this. Enter the command /opt/eagle/bin/eagle to invoke the product registration (you need to have write access to that directory for doing this!).
16
Installation
Change into the directory that has just been extracted from the archive: cd /opt/eagle/eagle-4.xxe Run the installation script: ./install Enter the command bin/eagle to invoke the product registration (you need to have write access to that directory for doing this!).
Usage
To use EAGLE you should create a working directory mkdir /home/username/eagle change into that directory cd /home/username/eagle and start the program eagle
17
EAGLE Manual
license.key file (on the license disc) and for the installation code. Enter both of these and click OK. The program has now been re-licensed. You can call up the license data at any time in the EAGLE Control Panel by means of the Help/Product Information menu.
Installing in a Network
The user rights of multiple-user or network licenses differ from those of the single-user version. It does not contain any special network mechanism, and can therefore be used in most networks. A typical installation can look like this: The EAGLE program is installed on a server. Library, design, ULP , project and other directories can be freely chosen. After installation, EAGLE is started and licensed from one of the workstations. This requires write access in the eagle/bin directory. The license file that has been created, eagle.key, is not changed again after the installation. Write access is no longer required. EAGLE can now be called from all the other workstations. Please ensure that all the workstations call EAGLE in the same way as was used when licensing. A private working directory (local or on the network) can now be set up for each computer. A user-specific configuration file (eaglerc.usr under Windows, or .eaglerc under Linux) is located in this directory. Further sub-directories can then, for instance, contain individual projects. Alternatively it is possible for each computer on which EAGLE is to be available to have a separate license. In this case, copy the eagle.key file that was created in the EAGLE program directory (eagle/bin) into the computers private working directory. When first starting the program, enter the installation code and the path to the license file license.key. This procedure is recommended, for instance, for multiple-user licenses for 3 to 5 users who will only work at specific computers.
18
Installation
Special Instructions Under Windows
Path Information
It has been found to be helpful to use the server names in UNC notation when giving the path for calling EAGLE, rather than the drive letters. For example: \\netservername\eagle\bin\eagle.exe
Different Operating Systems at the Working Computers
If network computers having different Windows systems are in use, it is first necessary to perform an installation as described above. The following situation can arise: All the computers that are using, for instance, Windows NT can run EAGLE. Computers with Windows 98, however, cannot. In order to be able to operate the computers running Windows 98 as well, copy the files eagle.exe and eagle.key, located in the eagle\bin directory on the server, to, for instance, eaglent.exe and eaglent.key. Now start all the computers that run Windows NT, using the command EAGLENT Then start EAGLE from a computer with Windows 98, and license it again with the installation code and the license disc. The eagle.key file is then valid for all the Windows 98 computers. The program is run with EAGLE You need write authorization for the eagle\bin directory to perform the copying and licensing!
19
Schematic Module
If you have the schematic module you begin by drawing a circuit diagram. You can generate the associated circuit board at any time with a mouse-click. EAGLE then changes to the Layout Editor, where the packages are placed next to an empty board - connected via airwires (rubber bands). From here you can go on designing with the Layout Editor as usual. Schematic and layout are automatically kept consistent by EAGLE (Forward&Back Annotation). Schematic diagrams can consist of up to 99 sheets.
21
Professional Edition
General
maximum drawing area 64 x 64 inches resolution 1/10,000 mm (0.1 microns) mm or inch grid up to 255 layers, user definable colors command (script) files C-like User Language for data export and import and the realization of self-defined commands easy library editing library browser and convenient component search function technology support (e. g. 74L00, 74LS00..) output of manufacturing data on plotter, photo plotter and drilling machine or as a graphic data format print via the operating systems printer devices user definable, free programmable User Language for generating data for mounting machines, in-circuit tester and milling machines Drag&Drop in the Control Panel Automatic backup function
Layout Editor
full SMD support full multilayer support (up to 16 signal layers) Design Rule Check for board layouts
22
Schematic Module
up to 99 sheets per schematic online Forward&Back Annotation between schematic and board automatic board generation automatic generation of supply signals (for ICs) Electrical Rule Check (checks logic in the schematic and the consistency of schematic and layout)
Autorouter Module
fully integrated into basic program uses the set of Design Rules you defined for the layout change between manual and automatic routing at any time ripup&retry algorithm user-definable strategy (by cost factors) routing grid down to 0.8 mil (0.02 mm) no placement restrictions up to 16 signal layers (with user definable preferred directions) up to 14 supply layers recognizes signal classes that define special settings for wire with and minimum distances
Standard Edition
Circuit boards up to a maximum size of 160 mm x 100 mm can be created with the Standard Edition. The components can only be placed within the range of coordinates from (0 0) up to (160 100) mm. The number of signal layers is limited to 4. This means that two inner layers are possible.
Light Edition
The Light edition permits boards with a maximum size of 100 mm x 80 mm (half eurocard format). A maximum of 2 signal layers (top and bottom) may be used. Circuit diagrams can only be drawn on a single sheet.
23
25
EAGLE Manual
Library Summary
The possibility of displaying the contents of the libraries is particularly interesting. It provides a very rapid overview of the available devices. Double-click on the Libraries entry. The library branch opens, and you can see the available libraries. In the Description field you can see a brief description of the contents. If a library is selected you will see more extensive information about the library in the right hand part of the Control Panel. If you then double-click on a library, the contents will be displayed together with a short description of each element. Devices and packages are marked with a small symbol. Now select, for example, a device. The description of the device and a graphical representation of it appear on the right. The available package and technology variants are listed. If you click on one of the package versions, the package shown above will change. If a Schematic Editor window is open the device can be fetched into the schematic diagram by clicking on ADD. If you are only working with the Layout Editor, this will of course also operate with packages. It is, additionally, possible to drag a device into a schematic diagram and to place it there by means of Drag&Drop. If it has more than one package version, the ADD dialog opens automatically, so that the desired housing form can be selected.
26
Design Rules
Special Design Rules can be specified in EAGLE to govern the board design. These can be saved as data sets in special files (*.dru). The parameter set that is to govern the current project is specified in the Design Rules branch of the tree view. If no data has been provided for the Design Rules (DRC command), EAGLE will itself provide parameters. The marking to the right of the file entry specifies the default parameter set for the current project. The layout will be checked by the DRC in accordance with these criteria. Further information about the DRC and the Design Rules is found starting on page 91.
27
EAGLE Manual
The paths can be set by means of the Options/Directories menu. This is discussed in more detail later in this chapter.
Projects
The various projects are managed from the Control Panel. A click on the Projects entry displays various folders. These are located under the path set under Options/Directories/Projects. It is allowed to define more than one path there. A project usually consists of a folder (directory) which represents the project by its name and the project's configuration file eagle.epf. The folder usually contains all files that belong to your project, for example, schematic and board file, special library files, script files and so on. Project directories that contain the project file eagle.epf will be marked with a red folder icon. 'Normal' folders will be marked with a yellow icon. The project to be edited is selected in the Projects branch. On the right of the project's name you will find a marker which is either gray or green. With the help of this marker one can open or close projects. Clicking onto a gray marker, loads the project. The marker appears green now. Clicking on the green marker again or clicking onto another gray marker closes the current project respectively opens another project after closing the current one. This way one can switch easily from one project to another. While closing a project the current settings will be stored in the corresponding project file eagle.epf, provided that the option Automatically save project file is set in the Options/Backup menu. New projects are created by clicking the right mouse button on a folder entry in this branch. A context menu opens which permits new files and directories to be created and the individual projects to be managed. Selecting the option New Project invokes a new folder which has to be given the project's title. The project file eagle.epf will be created automatically. You can also use the File/Open/Project or the File/New/Project menu to open or create a new project.
28
Context menu for project management The context menu contains the Edit Description item. A description of the project can be entered here, and this is then displayed in the Description box.
Menu Bar
The Control Panel allows various actions to be executed and settings made through pull-down menus that are explained below.
File Menu
The File menu contains the following items:
New
Creates a new layout (board), schematic, library, CAM job, ULP , script or text file. The Project option creates a new project. This initially consists simply of a new directory in which the files for a new project are handled. These will consist as a rule of the schematic diagram and layout, possibly of special libraries, script files, User Language programs, documentation files etc. and of the file eagle.epf, in which projectspecific settings are stored. The default directories for the various file types are defined in the Options/Directories menu. CAM jobs are definitions for generating output data which are created with the CAM Processor.
29
EAGLE Manual
Script and ULP files are text files containing command sequences in the EAGLE command language or the EAGLE User Language. They can be created and edited with the EAGLE text editor, or with any other text editor.
Open
All changed files are saved. The current settings for the project are saved in the file eagle.epf.
Refresh Tree
The program is terminated. When EAGLE is started again, the last program status is restored, i.e. the windows and other working environment parameters appear unchanged. The current status is also saved when you leave EAGLE with Alt-X from any program part.
Options Menu
Directories
The default directories for particular EAGLE files are entered in the directories dialog box. More than one path may be entered for each of these. In the Windows version the entries are separated by semicolons, while a colon is used in the Linux version. The Projects directory is the default directory for the text editor. The Projects directory contains subdirectories, each of which represents a particular project. Each of the project directories contains an EAGLE project file (eagle.epf). A project directory and its subdirectories usually contain all the files that are associated with one particular project, such as the schematic diagram and the layout, text files, manufacturing data, documentation files and so on.
30
The directories dialog in the Options menu Type the path directly into the corresponding box, or select the desired directory by clicking on the Browse button. The default settings can be seen in the diagram above. $EAGLEDIR stands for the installations EAGLE directory. You may also use $HOME for your home directory under Linux. Under Windows it is possible to define this environment variable wit the SET command. If a HOME variable has not been set within the environment, then under Windows EAGLE will suggest the directory My Documents. This directory is defined in the Windows registry in:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Personal
It is of course also possible to specify paths with an absolute format. Please note: EAGLE is available for various operating systems, and uses the forward slash, /, usual under Linux (Unix) to separate path elements, but will also accept the backslash, \, that is usual under Windows. The HOME variable must not point to the root directory of a drive.
Backup
When files are saved, EAGLE creates backup copies of the previous files. The maximum backup level field allows you to enter the maximum number of backup copies (default: 9). Backup files have different file extensions, enumerated sequentially. Schematic files receive the ending s#x, board files b#x, and library files l#x. x can run from 1 to 9. The file with x = 1 is the newest one. The automatic backup function also permits the backup to be scheduled. The time-interval can be between 1 and 60 minutes (default: 5 minutes). The backup files have the endings b##, s## and l## respectively.
31
EAGLE Manual
All these backup files can be further processed in EAGLE if they are renamed and given the usual file endings (brd, sch, lbr).
Backup dialog If the option to Automatically save project file is chosen, your project is automatically saved when you close the current project or leave the program.
User Interface
The User Interface dialog allows the appearance of the editor windows for the layout, schematic diagram and library to be adjusted to your preferences. You can also access this menu from the Editor windows.
Settings for the User Interface In the Controls box you specify which elements are to be displayed in the editor window. If you deactivate all the Controls, only the command line will remain for entry. This maximizes the free area available for the drawing. The option Always vector font shows and prints texts with the built-in vector font, independently from the originally used font. Using the vector font guarantees that the output with a printer or the CAM Processor is exactly the same as shown in the editor window. Fonts other than
32
Window Menu
From the Window menu you can choose the window (schematic, board, etc.) to be displayed in the foreground. The number on the left is the window number. It allows you to choose a window when combined with the Alt key (e.g. Alt+1 selects window 1). The combination Alt+0 can be used anywhere in the program to bring the Control Panel into the foreground.
Help Menu
The Help menu contains an item for calling the help function, as well as items for installing a new license (Product registration) and getting information about the program version etc. (Product information).
33
EAGLE Manual
Product Registration
The registration dialog is called automatically when you start EAGLE the first time. If you want to install an upgrade you must start this dialog from the Help menu, and then enter the necessary information according to the License/Product Registration section of the help function. Read the notes in the chapter on Installation for more information.
Product Information
If you contact our technical support you should provide the information you will find under this menu item.
34
The Schematic Editor On top you will see the title bar, which contains the file name, and then the menu bar, and the action toolbar. Below the action toolbar there is the parameter toolbar, which contains different icons, depending on the active command.
35
EAGLE Manual
Above the working area you will find the coordinate display on the left, with the command line, where commands can be entered in text format, to the right of it. EAGLE accepts commands in different but equivalent ways: as mouse clicks, text via keyboard, or from command (script) files. On the left of the work space you find the command toolbar, which contains most of the Schematic Editors commands. Below, in the status line, instructions for the user appear if a command is active. Each of the toolbars can be displayed or hidden using Options/User Interface. It is also possible to rearrange the toolbars within certain limits with the aid of the mouse. The command toolbar, for instance, can also be placed on the right, or the action and parameter toolbars can be placed together on one line.
Help Function
If you want to learn more about a command, e.g. the WIRE command, click its icon in the command toolbar, then click the help icon. As an alternative you can type HELP WIRE into the command line. The character symbolizes the Enter key.
36
On the left is the GRID icon for setting the grid pitch. To the right are buttons for the bend angle of the net line. Next to this is the Style menu where the type of line is defined. On the far right is a value menu for assigning a Net class. GRID command: This icon is available at any time. It is used to adjust the grid and to select the current unit. In EAGLE, any value relates to the current unit.
From the left: Open file, save file, print file, call CAM Processor, open/create corresponding board file (BOARD command).
Load/create another schematic sheet. SCRIPT command: Execute a script file. This enables you to execute any command sequence with a few mouse clicks. RUN command: Start a User Language program (ULP).
37
EAGLE Manual
WINDOW command: These icons represent different modes of the WINDOW command: Fit drawing into the screen (Alt-F2), zoom in (F3), zoom out (F4), redraw screen (F2), display new area. That part of the drawing displayed on the screen can be shifted by holding down the Ctrl key and moving the mouse at the same time.
UNDO and REDO: These commands allow you to cancel previous commands and to execute commands which have previously been cancelled. Function keys: F9 and F10 (default). Terminates the execution of EAGLE commands. Starts the execution of the active EAGLE command. This is only necessary if further parameters could be entered by the user.
SHOW
Highlights the object to be selected.
DISPLAY
Select and deselect the layers to be displayed. See the Appendix for the meaning of the layers. For further details please see help function.
MARK
The following mouse click defines the new origin for the coordinate display. You see relative coordinates as well as absolute coordinates in the coordinate display box. If you first click the MARK icon and then the traffic-light icon, only the absolute coordinate values will be displayed again.
MOVE
Move any visible object. The right mouse button rotates the object. If you move a net over a pin, no electrical connection will be established. If you move the pin of a gate over a net or another pin, an electrical connection (net) will be created.
38
COPY
Copy objects.
MIRROR
Mirror objects.
ROTATE
Rotate objects (also possible with MOVE).
GROUP
Define a group which can then be moved, rotated, or copied (with CUT and PASTE) to another drawing. After the icon has been clicked, a rectangular group can be defined by holding down the left mouse button and dragging the cursor to the diagonal corner of the rectangle. If you want to define a group by a polygon, use the left mouse button to determine the corners of the polygon. Then click the right mouse button to close the polygon.
CHANGE
Change the attributes of an object, e.g. the width of a line, the package variant or the size of text. See help for details.
CUT
Transfer the objects of a previously defined group into the paste buffer. See PASTE command. Not identical to the Windows cut function.
PASTE
Insert objects from the paste buffer into the drawing. Restrictions: see help. Not identical to the Windows paste function.
DELETE
Delete visible objects. Also in combination with GROUP command. If a group has been defined, it can be deleted with the right mouse button. The DELETE command deletes an entire part when clicking on a gate with the Shift key pressed. In that case, the wires connected to the element in the board will not be ripped up. Clicking on a net or bus wire with the Shift key pressed deletes the entire net or bus segment.
39
EAGLE Manual
ADD
Add library elements to the schematic. A search function helps devices to be found quickly. USE specifies which libraries are available.
NAME
Give names to components, nets, or buses.
VALUE
Provide values for components. Integrated circuits normally get the type (e.g. 74LS00N) as their value.
SMASH
Separate name and value texts from a device, so that they can be placed individually. The size of smashed texts can also be individually changed.
PINSWAP
Swap two nets connected to equivalent pins of a device, provided the pins have been defined with the same swaplevel.
GATESWAP
Swap two equivalent gates of a device, provided the gates have been defined with the same swaplevel. In EAGLE terminology, a gate is a part of a device which can be individually placed on a schematic (e.g. one transistor from a transistor array).
SPLIT
Insert an angle into a wire or net.
INVOKE
Fetch a particular gate from a device (e.g. gate D before gate C). This command allows you also to add a gate from a device which is located on another sheet. In such a case, type the name of the device (e.g. IC1) into the command line after the INVOKE command has been selected.
WIRE
Draw line (this command is called WIRE because it is used to define electrical connections, i.e. wires, in the Layout Editor). The type of line can be changed with CHANGE STYLE.
TEXT
Placing text. Use CHANGE SIZE to alter the height of the text. If the text is using a vector font, CHANGE RATIO will alter the thickness. CHANGE TEXT is used to alter the text itself. CHANGE FONT alters the typeface. You change label texts by assigning a different name to the bus or to a net by means of the NAME command. See also LABEL command.
40
ARC
Draw an arc.
RECT
Draw a rectangle.
POLYGON
Draw a polygon.
BUS
Draw a bus line. The meaning of a bus is more conceptual than physical. It is only a means to make a schematic easier to read. Only nets define an electrical connection. Nets, however, can be dragged out of a bus.
NET
Draw a net. Nets with the same name are connected (even if located on different sheets). Nets and pins which appear to the eye to be connected are not necessarily electrically connected. Please check with the SHOW command, the ERC, or by exporting a netlist with the EXPORT command. See also MOVE.
JUNCTION
Place the symbol for a net connection. In general, junctions are placed automatically, but nets which cross over can also be joined manually by the JUNCTION command.
LABEL
Place the name of a bus or net as a label. Labels cannot be changed with CHANGE TEXT but rather with the NAME command.
ERC
Perform an Electrical Rule Check and a consistency check for schematic and board.
41
ASSIGN
Assign function keys. The most convenient way of doing this is to use the Options/Assign menu.
CLASS
Select and define net classes (Edit/Net classes...). A net class specifies the width of a track, the clearance from neighboring signals, and the diameter of vias for the Autorouter and the ROUTE command. These settings are also used in polygons.
CLOSE
Text command for closing an editor window (Edit/Close).
EDIT
Text command for loading a file or a library object. You can, for instance, load a board from the Schematic Editor (EDIT name.brd).
EXPORT
Output lists (especially netlists), directories, script files, or images (File/Export...).
LAYER
Choose or define the drawing layer. When using drawing commands the layer can be chosen in the parameter toolbar.
MENU
Specifies the contents of the text menu. See also the example in the appendix. The text menu can be made visible with the aid of Options/User Interface. See help function for details.
42
PRINT
Call up the print dialog with the printer icon in the action toolbar or the menu item File/Print.... Normally the PRINT command is used to print schematics or check the drawings needed for the pcb production. The actual production data are generated with the CAM Processor. If you want to output your drawing in black and white check the Black option (and Solid, if you dont want layers to be printed in their different fill styles). The caption text is suppressed unless you check Caption (available via the Page button) . Set Page limit to 1 if your drawing is to be fitted on one page.
QUIT
Quit EAGLE. Identical with the menu item File/Exit or Alt-X.
REMOVE
Delete files or schematic sheets. REMOVE .S3 for instance, deletes sheet 3 of the loaded schematic.
SET
Set system parameters and modes. Best done via the Options/Set menu item. Please note that not all of the possibilities are available through this dialog. Presettings can be defined in the script file eagle.scr by using text commands. Further information can be found in the help function.
UPDATE
The UPDATE command checks the parts in a board or schematic against their respective library objects and automatically updates them if they are different. (Library/Update... or Library/Update all). The context menu in the Control Panel's' tree view offers the Options Use all and Use none for a quick selection of libraries.
43
EAGLE Manual
USE
Select libraries that will be referred to by the ADD dialog. Click the USE icon in the Layout Editor's or Schematic Editor's action toolbar or select the menu item Library/Use to start this command. This selection can also be done by clicking on the library markers (green for selected, gray for deselected) in the Libraries branch of the Control Panel's tree view. The context menu of the Libraries entry in the tree view contains two items: Use all and Use none for an easy selection of all or none of the libraries. The command has to be used in script files to select the library from which one wants to use elements.
WRITE
Text command for saving the currently loaded file. Please note that, in contrast to Save as, the name of the currently edited file is never changed when the WRITE command is used.
Mouse Keys
The middle and right mouse button have a special meaning for a number of commands.You can use the middle mouse button only if the operating system knows your mouse is a 3-button mouse, that is your mouse must be installed this way. If you are working with a wheel mouse you can use the wheel to move the drawing area in an editor window. Selecting another value than 0 for the option Mouse wheel zoom in the Options/User Interface menu sets a zoom factor for zooming in and out with the mouse wheel. The help section on keyboard and mouse contains a table showing the commands in which the middle and right button have a special meaning.
44
45
SHOW
Highlights the object to be selected.
DISPLAY
Select and deselect the layers to be displayed. Components on the top side of the board can only be selected if the layer 23, tOrigins, is displayed. The same applies to components on the bottom side of the board and layer 24, bOrigins. See Appendix for the meaning of the layers. Additional information about further options of the DISPLAY command can be found in the program's help.
MARK
The following mouse click defines the new (relative) origin for the coordinate display. You see relative coordinates (with a @ in front of the values) as well as absolute coordinates in the coordinate display box. If you first click the MARK icon and then the traffic-light icon, only the absolute coordinate values will be displayed again.
MOVE
Move any visible object. The right mouse button rotates the object. The MOVE command cannot connect signals even if a wire (trace) is moved over another wire or a pad. Use ROUTE or WIRE to route signals. See Schematic Editor section for moving groups.
COPY
Copy objects.
MIRROR
Mirror objects. Components can be placed on the opposite side of the board by using the MIRROR command.
ROTATE
Rotate objects (also possible with MOVE).
46
CHANGE
Change the attributes of an object, e.g. the width of a track or the size of a text. If the Esc key is pressed after changing a property, the previously used value menu will appear. In this way a new value can be conveniently chosen. See the help pages.
CUT
Transfer the objects of a previously defined group into the paste buffer. See PASTE command. Not identical to the Windows cut function.
PASTE
Insert objects from the paste buffer into the drawing. Restrictions: see help. Not identical to the Windows paste function.
DELETE
Delete visible objects. If a group has been defined, it can be deleted with the right mouse button. The DELETE command deletes an entire polygon when clicking on a polygon wire with the Shift key pressed. If objects cannot be deleted, the reason can lie with error polygons related to the DRC command. They can be deleted with the ERRORS command (ERRORS CLEAR). If layer 23, tOrigins, or 24, bOrigins, is not displayed, components cannot be deleted.
ADD
Add library parts to a drawing. It offers a convenient search function. The USE command determines which libraries are available.
NAME
Give names to components, signals (polygons as well) or vias.
VALUE
Provide values for components. Integrated circuits normally get the IC type (e.g. 7400) as their value.
47
EAGLE Manual
SMASH
Separates name and value texts from a component, so that they can be placed individually. The size of smashed texts can also be changed individually.
PINSWAP
Swap two signals connected to equivalent pads of a component, provided the pins have been defined with the same swaplevel.
REPLACE
Replace a package with another package from any library. This is permitted as long as you are working in a layout that is not connected to a consistent schematic by Forward&Back Annotation. In that case you must use CHANGE PACKAGE in order to change the package variant.
SPLIT
Insert a bend into a wire.
OPTIMIZE
Joins wire segments in a signal layer which lie in one straight line.
ROUTE
Route signals manually. Airwires are converted to wires.
RIPUP
Convert routed wires (tracks) into unrouted signals (airwires). Change the display of filled (calculated) polygons to outline view.
WIRE
Draw line. If used in the layers 1 through 16, the WIRE command creates electrical connections. The style parameter (CHANGE) determines the line type. The DRC and the Autorouter always treat a WIRE as a continuous line, regardless of what style is used.
TEXT
Place a text string. Use CHANGE SIZE to set the height of the text. If the text is using a vector font, CHANGE RATIO will alter the thickness. CHANGE TEXT is used to alter the text itself. CHANGE FONT alters the typeface. The option Always vector font (Options/User Interface) shows and prints all texts in vector font, regardless of which font is actually set for a particular text. It is strongly recommended to write texts in copper layers as vector font! So you can be sure that the CAM processor's output is identical with the text shown in the Layout Editor. See also help function.
48
ARC
Draw an arc.
RECT
Draw a rectangle. This command creates restricted areas for the Autorouter if used in the layers 41, tRestrict, 42, bRestrict, or 43, vRestrict.
POLYGON
Draw a polygon. Polygons in the signal layers are treated as signals. They keep an adjustable distance to objects belonging to other signals (copper pouring, flood fill). This enables you to realize different signal areas on the same layer. The POLYGON command creates restricted areas for the Autorouter if used in the layers tRestrict, bRestrict, or vRestrict, . For other possibilities of the POLYGON command see help.
VIA
Place a via-hole. Vias are placed automatically if the layer is changed during the ROUTE command. You can assign a via to a signal with the NAME command by changing its name to the name of the signal.
SIGNAL
Manual definition of a signal. This is not possible if the Forward&Back Annotation is active. In that case you have to define the connection with the NET command in the Schematic Editor.
HOLE
Define a mounting hole.
RATSNEST
Calculate the shortest airwires and the real mode (filled) display of polygons. The polygon calculation can be deactivated with the SET command (Options/Set/Misc).
AUTO
Start Autorouter.
ERC
Perform consistency check of schematic and board.
49
EAGLE Manual
DRC
Define Design Rules and perform Design Rule Check.
ERRORS
Show errors found by the DRC and clear error polygons.
50
EDIT
Load device or package (if you only have the Layout Editor) for editing.
From the left: Load device, load package, load symbol. These icons are shown in the action toolbar.
REMOVE
Delete device/package/symbol from library. Available only through the Library menu or the command line. See help.
RENAME
Rename device/package/symbol. Available only through the Library menu or the command line. See help.
51
PAD
Place the pad of a conventional component.
SMD
Place a SMD pad. You can change the name of the pads or SMDs with the NAME command. Use the WIRE, ARC, etc. commands to draw the symbol for the silkscreen on layer 21, tPlace, additional graphical information for the documentation print into layer 51, tDocu. Draw restricted areas for the Autorouter, if needed, in layers 41, tRestrict, 42, bRestrict, or 43, vRestrict, or in layers 39, tKeepout, or 40, bKeepout, by using the commands CIRCLE, RECT, or POLYGON. Place mounting holes with the HOLE command, if needed. Use the TEXT command to place the string >NAME in layer 25, tNames, serving as a text variable containing the name of the component, the string >VALUE in layer 27, tValues, serving as a text variable containing the value of the component. Use the DESCRIPTION command to add a description for the package. Rich Text format can be used for this. You will find further information in the help pages.
52
PIN
Place pins.
53
EAGLE Manual
You can adjust the pin parameters (name, direction, function, length, visible, swaplevel) while the PIN command is active, or with the CHANGE command. The pin parameters are explained starting on page 142 and in the help pages under the keyword PIN. Pin names are changed using the NAME command. Use the TEXT command to place the string >NAME in layer 25, tNames, serving as a text variable containing the name of the component, the string >VALUE in layer 27, tValues, serving as a text variable containing the value of the component.
54
Device Editor window For these tasks you can use the following commands.
ADD
Add a symbol to a device. Gate name, swaplevel, and addlevel can be defined in the ADD command in the parameter toolbar, or redefined later with the CHANGE command. The swaplevel specifies whether there are equivalent gates.
55
EAGLE Manual
The addlevel defines, for instance, if a gate is to be added to the schematic only on the users request. Example: the power gate of an integrated circuit which is normally not shown on the schematic.
NAME
Change gate name.
CHANGE
Change swaplevel or addlevel.
PACKAGE
Define and name package variant(s). The PACKAGE command is started by clicking on the New button in the Device Editor window, or by typing on the command line.
CONNECT
Define which pins (gate) relate to which pads (package).
PREFIX
Provide prefix for the component name in the schematic (e.g. R for resistors).
VALUE
In the device mode, VALUE is used to specify whether the component value can be freely selected from within the schematic diagram or the layout, or whether it has a fixed specification. On: The value can be changed from within the schematic (e.g. for resistors). The component is not fully specified until a value has been assigned. Off: The value corresponds to the device name, including, when present, assignment of the technology and the package version (e.g. 74LS00N). Even if the value is Off, the value of a component can be changed. The new value is specified after a query checks that the action is intended. If, however, the technology or the package version is altered at a later stage by means of CHANGE PACKAGE or CHANGE TECHNOLOGY, then the value of the component returns to the original value.
TECHNOLOGY
If necessary, various TECHNOLOGIES can be defined for, for example, a logic component.
56
CAM Processor
57
Load Board
Before you can generate an output you must open the File menu and load a board. At the bottom left in the CAM Processor window you can see the BRD file for which data is being generated.
Output Parameters
If a job file is loaded, the output parameters are already adjusted. A job can contain several sections with different parameter sets. The various peripheral devices accept different parameters. If no job is loaded, set the parameters to whatever you need (see page 186).
Start Output
If you want to execute the job which has been loaded, click the Process Job button. If you just want to get an output using the currently visible parameter settings, click the Process Section button.
58
59
Command Line
When entering commands into the command line of an editor window you may abbreviate key words as long as they cannot be mistaken for another key word, or you may use small or capital letters (the input is not case sensitive). The following command line entries are equivalent: CHANGE WIDTH 0.024 is equivalent to cha wi 0.024 The actual unit for values is set in the GRID menu. Most commands can be executed whilst declaring coordinate values in the command line. Examples: MOVE IC1 (2.50 1.75) ; Element IC1 moves to position 2.50 1.75 in the layout.
61
EAGLE Manual
HOLE 0.15 (5 8.5) ; Place a hole with drill diameter 0.15 at position 5 8.5. VIA 'GND' 0.070 round (2.0 3.0) ; A round shaped via with a diameter of 0.070 belonging to signal GND will be placed at position 2.0 3.0.
History Function
You can recall the most recently entered commands by pressing CrsrUp () or Crsr-Down () and edit them. The Esc key deletes the contents of the command line.
Function Keys
Texts may be allocated to the function keys and to combinations of those keys with Alt, Ctrl and Shift, if not occupied by the operating system or a Linux Window Manager (for example F1 for help). If a function key is pressed, this corresponds to the text being typed in via the keyboard. Since every command is capable of being entered as text, every command, together with certain parameters, can be assigned to a function key. Even whole sequences of commands can be assigned to a function key in this way. The command ASSIGN displays the current function key assignments. Changes to the key assignments can be carried out in the assign window. The New button can be used to define a new key assignment. A click on Del will delete a marked entry, while Change alters an existing definition. OK closes the dialog and saves the definitions, while Cancel aborts the dialog. These settings can also be made via the Options/Assign menu in the Schematic or Layout Editor.
62
The dialog for the ASSIGN command To predefine certain assignments you can also use the ASSIGN command in the file eagle.scr (see page 78). Examples: The combination of Ctrl + Shift + G displays a grid of 0.127mm: ASSIGN CS+G 'GRID MM 0.127 ON;'; The combination of Alt + F6 changes the layer to Top and starts the ROUTE command: ASSIGN A+F6 'CHANGE LAYER TOP; ROUTE'; The combination of the keys Alt + R displays only the layers Top, Pads, Vias and Dimension first and then starts the print out with the default printer: ASSIGN A+R 'DISPLAY NONE 1 17 18 20; PRINT;';
Script Files
Script files are a powerful tool. They can contain long sequences of commands, such as the specification of specific colors and fill-patterns for all layers. On the other hand they might contain netlists converted from the data of other programs. The SCRIPT command is used to execute script files. Many User Language programs (ULP) create script files that can be read in order to modify a layout or a schematic. EAGLE outputs an entire library, for instance, as a script file with the aid of the EXPORT command (Netscript option). This file can be modified with a text editor, after which it can be read in again. This allows changes to be made to a library quite easily. There is more information about script files and export commands later in this chapter.
63
Typographical Conventions
Enter key and Semicolon
If EAGLE commands are entered via the command line they are finished with the Enter key. In some cases a command must have a semicolon at the end, so that EAGLE knows that there are no more parameters. It is a good idea to close all commands in a script file with a semicolon. The use of the Enter key is symbolized at many places within this handbook with the sign. However in the following examples neither the Enter key sign nor the semicolon are shown, since all of these commands can be used both on the command line and within script files.
64
Lower Case
Parameters shown here in lower case are to be replaced by names, numbers or keywords. For example: Syntax: GRID grid_size grid_multiple Input: GRID 1 10 This sets the grid to 1 mm (assuming that the current unit is set to mm). Every tenth grid line is visible. The figures 1 and 10 are placed into the command instead of the placeholders grid_size and grid_multiple.
Underscore
In the names of parameters and keywords the underscore sign is often used in the interests of a clearer representation. Please do not confuse it with an empty space. As can be seen in the example above, grid_size is a single parameter, as is grid_multiple. If a keyword contains an underscore sign, such as COLOR_LAYER does in the command SET COLOR_LAYER layer_name color_word then the character is to be typed in just like any other. For example: SET COLOR_LAYER BOTTOM BLUE
Spaces
Wherever a space is permissible, any number of spaces can be used.
Alternative Parameters
The | character means that the parameters are alternatives. For example: Syntax: SET BEEP ON|OFF
65
EAGLE Manual
Input: SET BEEP ON or SET BEEP OFF The beep, which is triggered by certain actions, is switched on or off.
Repetition Points
The .. characters mean either that the function can be executed multiple times, or that multiple parameters of the same type are allowed. For example: Syntax: DISPLAY option layer_name.. Input: DISPLAY TOP PINS VIAS The layer number can alternatively be used: DISPLAY 1 17 18 More than one layer is made visible here. If a layer (in this case Bottom) is to be hidden: DISPLAY -16
Mouse Click
The following sign usually means that at this point in the command an object is to be clicked with the left mouse button. For example: Syntax: MOVE .. Input: MOVE (or click the icon) Mouse click on the first element to be moved Mouse click on the destination Mouse click on the second element to be moved and so on. You can also see from these examples how the repetition points are to be understood in the context of mouse clicks.
66
67
EAGLE Manual
You draw a rectangular forbidden area in layer 41 tRestrict: LAYER TRESTRICT; RECT (0.5 0.5) (2.5 4) ;
The Grid Menu The current grid Size is set in the grid menu. The units chosen under Units are used. The Multiple option indicates how many grid lines are displayed. If, for instance, the value 5 is entered at Multiple, every fifth line will be displayed.
68
Forbidden Characters
No names may contain spaces or umlauts. Quotation marks, semicolons, and other exotic characters (above 127 in the ASCII table) should be avoided as far as possible. Device names must not contain either question marks or asterisks, since these characters are used as placeholders for package variants and technologies. Commas must be avoided in pad names. Part-bus names must not contain colons, commas or square brackets.
Automatic Naming
If a name is given together with one of the commands PIN, PAD, SMD, NET, BUS or ADD, then other names will be derived from it as long as the command is still active. The name is simply typed into the command line before placing the element (while it is attached to the mouse). Note that the name must be placed within simple quotation marks. Entry is completed with . The examples illustrate how automatic naming functions: ADD DIL14 'U1' fetches three DIL14 elements to the board and names them U1, U2 and U3 ( corresponds to a mouse click). PAD OCT '1' places four octagonal pads with the names 1, 2, 3, and 4. If the name consists of only one character from A...Z, then the following objects receive the following letters of the alphabet as names:
69
EAGLE Manual
ADD NAND 'A' fetches four NAND gates with the names A, B, C and D. If the generated name reaches Z, then names with the default prefix will again be generated (e.g. G$1).
70
DIRECTORY
Outputs a list of the contents (devices, symbols, and packages) of the currently loaded library.
NETLIST
Outputs a netlist for the currently loaded schematic or board in an EAGLE-specific format. It can be used to check the connections in a drawing. Use a ULP to obtain other formats.
NETSCRIPT
Outputs a netlist of the currently loaded schematic in the form of a script file. The netscript can be read into the board file with the help of the SCRIPT command.
PARTLIST
Outputs a component list for the schematic or board.
PINLIST
Outputs a pin/pad list for the schematic or board, listing the connected nets.
SCRIPT
Outputs the currently loaded library in the form of a script file. This script can be modified with a text editor in order to generate, for example, a user defined library, or to copy parts of one library into another. The modified script file can be imported into a new or an already existing library with the help of the SCRIPT command. The script file also serves as a good example for the EAGLE command syntax. In order to avoid loss of precision the grid unit in the script file is set to Millimeter.
71
EAGLE Manual
IMAGE
The option Image allows you to generate files in various graphic formats. The following formats are available: bmp png pbm pgm ppm xbm xpm Windows Bitmap file Portable Network Graphics file Portable Bitmap file Portable Grayscale Bitmap file Portable Pixelmap file X Bitmap file X Pixmap file
Settings for graphic file output Click the Browse button, select the output path, and type in the graphic file name with its extension. The file extension determines the graphic file type. To generate a black and white image activate the option Monochrome. To make the image available via the system's clipboard set the Clipboard option. The Resolution can be set in dots per inch. The resulting Image Size will be shown in the lowest field. Further graphic formats, like HPGL, Postscript (PS), or Encapsulated Postscript (EPS), can be generated with the help of the CAM processor. The User Language Program dxf.ulp generates DXF data.
72
73
EAGLE Manual
74
Configuration Commands
Most of the options are usually set by means of the Options menu in the individual EAGLE windows. The Control Panel allows settings to be made for Directories, file Backup and the appearance of the editor window (User interface). These options are described in the chapter on the Control Panel under the Options menu heading, starting on page 30. Through the User interface settings it is possible to select the icon-based menu or a configurable text menu. The MENU command allows the text menu to be given a hierarchical configuration by means of a script file. There is an example of this in the appendix. The Options menu in the editor windows for schematic diagrams, layouts and libraries contains, in addition to the User interface item, two further entries: Assign and Set. The ASSIGN command alters and displays the assignment of the function keys. You will find information about this on page 62. General system parameters are altered with the SET command. The CHANGE command allows a variety of initial settings for object properties. The GRID command sets the grid size and the current unit. Further information about this starts on page 68.
75
EAGLE Manual
Settings in Options/Set/Misc The above window is reached through the Options/Set menu in an editor window, or by entering SET on the command line. Changes can also be made by typing in the complete SET command. Entering SET POLYGON_RATSNEST OFF or, in short SET POLY OFF for instance switches off polygon calculation for the RATSNEST command. The help system provides you with more instructions about the SET command.
76
BRD: #Menu Add Change Copy Delete Display Grid Group Move\ # Name Quit Rect Route Script Show Signal Split \ # Text Value Via Window ';' Wire Write Edit; Set Set Set Set Set Pad_names on; Width_menu 0.008 0.01 0.016; Drill_menu 0.024 0.032 0.040; Size_menu 0.05 0.07 0.12; Used_layers 1 16 17 18 19 20 21 22 23 24 25 26 \ 27 28 39 40 41 42 43 44 45; Change width 0.01; Change drill 0.024; Change size 0.07; SCH: Grid Default; Change Width 0.006; #Menu Add Bus Change Copy Delete Display Gateswap \ # Grid Group Invoke Junction Label Move Name Net \ # Pinswap Quit Script Show Split Value Window ';' \ # Wire Write Edit; LBR: #Menu Close Export Open Script Write ';' Edit; DEV: Grid Default; #Menu Add Change Copy Connect Delete Display Export \ # Grid Move Name Package Prefix Quit Script Show \ # Value Window ';' Write Edit;
77
EAGLE Manual
SYM: Display all; Grid Default On; Change Width 0.010; #Menu Arc Change Copy Cut Delete Display Export \ # Grid Group Move Name Paste Pin Quit Script \ # Show Split Text Value Window ';' Wire Write Edit; PAC: Grid Default On; Change Width 0.005; Change Size 0.050; Change Smd 0.039 0.039; #Menu Add Change Copy Delete Display Grid Group \ # Move Name Pad Quit Script Show Smd Split Text \ # Window ';' Wire Write Edit;
These files should not be edited. With the help of various User Language programs it is also possible to define settings in EAGLE. Visit our web site: http://www.cadsoftusa.com/download.htm (UserFiles directory).
78
79
81
Place Symbols
First you have to load the libraries you want to take elements from with the USE command before you can begin to place parts. Only libraries which are in use will be recognized by the ADD command and its search function. More information concerning the USE command can be found on page 44.
82
ADD dialog: Results from the search key letter The ADD command may also be entered via the command line or in script files. The frame can also be placed using the command: add [email protected] Wildcards like * and ? may also be used in the command line. The command add letter*@frames.lbr for example opens the ADD windows and shows various frames in letter format to select. The search will only examine libraries that are in use. That means that the library has been loaded by the USE command. If a certain library should not be listed in the ADD dialog anymore, select the library name in the tree and click the Drop button. Now it is not in use anymore.
83
EAGLE Manual
If you have placed a device with ADD, and then want to return to the ADD dialog in order to choose a new device, press the Esc key or click the ADD icon again. Give the devices names and values (NAME, VALUE). If the text for the name or the value is located awkwardly, separate them from the device with SMASH, and then move them to whatever position you prefer with MOVE. Clicking with DELETE on either of the texts makes it invisible. DELETE on the text that is still visible causes both to appear at their original positions. The texts are now no longer separate from the device. MOVE relocates elements, and DELETE removes them. With INFO or SHOW information about an element is displayed on the screen. Repeated circuitry can be reproduced in the schematic diagram with the aid of the GROUP , CUT and PASTE commands. First make sure that all the layers are made visible (DISPLAY ALL).
Hidden Supply Gates
Some devices are defined in the libraries in such a way that the power supply pins are not visible on the schematic diagram. Visibility is not necessary, since all the power pins with the same name are automatically connected, regardless of whether or not they are visible. If you want to connect a net directly to one of the hidden pins, fetch the gate into the schematic diagram with the aid of the INVOKE command. Click on the INVOKE icon, and then on the device concerned, assuming that it is located on the same sheet of the schematic diagram. If the gate is to be placed on a different schematic diagram sheet, go to that sheet, activate INVOKE, and type the name of the device on the command line. Select the desired gate in the INVOKE window, then place it. Then join the supply gate to the desired net.
84
Some devices consist not of one but of several gates. These can normally be placed onto the schematic diagram one after another with the ADD command. To place a certain gate you can use the gate name directly. Example: The device 74*00 from the 74xx-eu library consists of for NAND gates named A to D and one power gate named P. If you want to place the gate C first, use the gate name with the ADD command: ADD 'IC1' 'C' [email protected] See also help function for the ADD command. As soon as one gate has been placed, the next one is attached to the mouse (addlevel is Next). Place one gate after another on the diagram. When all the gates in one device have been used, the next device is brought in. If the gates in one device are distributed over several sheets, place them first with ADD, change to the other sheet of the schematic diagram, and type, for example INVOKE IC1 on the command line. Select the desired gate from the INVOKE window.
85
EAGLE Manual
The JUNCTION command is used to mark connections on nets that cross one another. Junctions are placed by default. This option, (Auto set junction), can also be deactivated through the Options/Set/Misc menu. Nets must be drawn with the NET command, not with the WIRE command. Do not copy net lines with the COPY command. If you do this, the new net lines wont get new net names. This could result in unwanted connections. If the MOVE command is used to move a net over another net, or over a pin, no electrical connection is created. To check this, you can click the net with the SHOW command. All the connected pins and nets will be highlighted. If a gate is moved, the nets connected to it will be dragged along. An identifier can be placed on a net with the LABEL command.
Bus menu Clicking on the bus line while the NET command is active, opens the menu as illustrated above. The name of the net that is to be placed is selected from here.
86
87
EAGLE Manual
Swaplevel: Pins layer is visible Input pins 1 and 2 have swaplevel 1, so they can be exchanged with one another. The output pin, 3, which has swaplevel 0, cannot be exchanged. You can find the swaplevel of a gate by means of the INFO command.
Power Supply
Pins defined as having the direction Pwr are automatically wired up. This is true, even if the associated power gate has not explicitly been fetched into the schematic. The name of the Pwr pin determines the name of the voltage line. This is already fixed by the definition of the symbols in the library. If nets are connected to a devices Pwr pins, then these pins are not automatically wired. They are joined instead to the connected net. For every Pwr-pin there must be at least one pin with the same name but the direction Sup (a supply pin). There must be one on every sheet. These Sup pins are fetched into the schematic in the form of power supply symbols, and are defined as devices in a library (see supply.lbr). These devices do not have a package, since they do not represent components. They are used to represent the supply voltages in the schematic diagram, as is required by the electrical rule check (ERC) for the purposes of its logical checks. Various supply voltages, such as 0 V or GND, which are to have the same potential (GND, lets say), can be connected by adding the corresponding supply symbols and connecting them with a net. This net is then given the name of that potential (e.g. GND).
Supply symbols
88
89
EAGLE Manual
Open Pins when MOVEing
If an element is moved then its open pins will be connected to any nets or other pins which may be present at its new location. Use UNDO if this has happened unintentionally.
90
General Principles
The first time that you call the DRC, the Design Rules are provided by the program. If necessary, adjust the values to suit your requirements. When you have finished the adjustments, start the error check by clicking on OK. This will result in the Design Rules being stored in the layout file itself. By clicking on Select you specify the region of the layout that is to be examined. Simply drag a rectangle over the desired region with the mouse. The error check will then automatically start. Only signal layers visible before the Design Rule Check has been started are examined (DISPLAY).
91
EAGLE Manual
The Apply button stores the values that are currently set in the layout file. This means that the values that have so far been chosen are not lost if you do not immediately start the error check and if you want to leave the DRC dialog via the Cancel button. Changes to various Design Rules are immediately displayed in the Layout Editor after clicking on Apply. The Design Rules can be saved in a special Design Rules file (*.dru) by the use of the Save as.. button. To apply a set of Design Rules to a board, you can drag any dru file of the Design Rules branch of the tree view in the Control Panel into the Layout Editor window. The Load.. button allows any particular set of Design Rules to be loaded from a file. Change can be used to alter the descriptive text for the current parameter set. The description usually appears in the DRC dialog (File tab), as can be seen in the foregoing diagram. Rich Text format can be used with the text. You will find notes on this in the help system. If you open the Design Rules dialog with the menu Edit/Design Rules.. the Select button will not be shown. In this case OK ends the dialog, in difference to the DRC call, where OK starts the Design Rule Check. The Design Rules dialog offers a range of different options that can be selected through the tabs. The options include: File Manage the Design Rules Clearance Distances between objects in the signal layers representing signals that may be different or the same Distance Distances from the board edge and between holes Sizes Restring Shapes Supply Mask Misc Minimum track widths and hole diameters Width of the remaining ring at pads and vias Shapes of pads and SMDs Thermal and insulation symbols in supply layers Values for solder stop and solder cream masks Additional checks
92
Clearance refers to the minimum distances between tracks, pads, SMDs and vias of different signals, and between SMDs, pads and vias of the same signal. Setting the values for Same signal checks to 0, disables the respective check. Distance allows settings to be made for the minimum distances between objects in layer 20, Dimension, in which the board outline is usually drawn, and between holes. Exceptionally, nets that belong to special net classes are drawn here. Values for minimum clearance and hole diameters defined by means of the CLASS command apply to these. Setting the value for Copper/Dimension to 0 switches off the minimum clearance check between copper and dimension. In this case polygons don't keep their distance to objects in layer 20, Dimension! EAGLE's minimum resolution is 1/10.000 of a millimeter. That is why the DRC can report only distance and clearance errors which are larger than 1/10.000 mm.
Sizes
The minimum values for track width and for hole diameter allowed in the layout are selected here.
Restring
The settings made under Restring determine the width of the ring remaining at pads and vias. The remaining ring refers to the ring of copper that remains around a hole after a pad or via has been drilled. Different selections can be made for the width of the remaining ring in the inner and outer layers. Pads may also differ between the Top and Bottom layers. Usually the value is expressed as a percentage of the hole diameter. Minimum and maximum values can additionally be specified. As soon as you change a parameter and click on the Apply button you can directly see the effects in the layout. If you want to use different values for the upper and lower layer (or different shapes, see Shapes tab), it is recommended to set the layer color for layers 17, Pads, and 18, Vias, the same as the background color (black or white). In this case you can recognize the real size and shape of the pad/via in its respective layer. The INFO command shows the via diameter seperately for outer and inner layers, and additional the initially user-defined value.
93
EAGLE Manual
Design Rules: Restring setting The diagram illustrates the template for setting the width of the residual ring. The standard value for the restring around holes is 25% of the hole diameter. Since the width of the ring on small holes specified this way would soon fall below a technically feasible value, a minimum value (10 mil in this case) is specified here. It is also possible to specify a maximum value. Example: The ring around a hole with 40 mil diameter is 10 mil (25%). It therefore lies in between the maximum and minimum values. If the hole is only 24 mil in diameter (e.g. for a via), the calculation yields a restring value of only 6 mil. For a board made in standard technology this is extremely fine, and cannot easily be made. It might well involve extra costs. In this case a minimum value of 10 mil is given. If you like to define a restring with a fixed width, use the same value for minimum and maximum. The value in percent has no effect in this case. Set the checkboxes Diameter, and the via/pad diameter will be taken into consideration for the inner layers. This can be of interest if a pre-defined pad or via diameter exceeds the calculated value. Otherwise the pad or via in the inner layers would be smaller than in the outer layers. If you want pads/vias to have the same diameter in all layers, set the option Diameter. The option is set off, by default, for new created boards, but will be set on for boards that are updated from version 3.5 or prior because in these versions pads and vias had the same diameter in all layers. Thus the update process does not change the original layout. All the values can also be given in millimeters (for example 0.2mm).
94
A rounding factor can be specified here for SMD pads. The value can be between 0% (no rounding) and 100% (maximum rounding).
A square SMD has been placed instead of an oblong one on the far right of the diagram. After assigning the property Roundness = 100%, the SMD becomes round. This is where the form of the pads is specified. It is possible to give different settings for the top and bottom layers. The As in library option adopts the form defined in the package editor. Clicking on Apply shows the change immediately in the Layout Editor. Pads within inner layers are always round, the diameter being determined by the restring settings. Notes on the display in the Layout Editor: If pads or vias have different shapes on different layers, the shapes of the currently visible (activated with DISPLAY) signal layers are displayed on top of each other. If the color selected for layer 17, Pads, or 18, Vias, is 0 (which represents the current background color black or white), the pads and vias are displayed in the color and fill style of their respective layers. If no signal layer is visible, pads and vias are not displayed. If the color selected for layer 17, Pads, or 18, Vias, is not the background color and no signal layers are visible, pads and vias are displayed in the shape of the uppermost and undermost layer. This also applies to printouts made with PRINT.
Supply
Specifies the settings for thermal and annulus symbols. These special symbols are generated in supply layers that are created automatically (layer name starting with a $-sign). EAGLE calculates the required dimensions for annulus and thermal apertures based on the pads drill diameter and the annulus and thermal parameters set in the Design Rules: Gap defines the gap between the insulation bridges on a thermal symbol. The specification is made as a % of the hole diameter, and is constrained by maximum and minimum values.
95
EAGLE Manual
The Isolate values for Thermal and Annulus determine the width of the thermal bridge or ring. The Restring option determines whether the insulation bridge of the thermal symbol should be drawn immediately at the edge of the hole or at a distance from the hole given by the restring value (Restring tab, Inner setting). If the Restring option for Annulus is deactivated, a filled circle is generated instead of the annulus ring. This is the default setting. The isolate value for Thermal also applies to polygons. It determines the distance between a polygon and the restring of the pad or via that is joined to the polygon through a thermal symbol. The Generate thermals for vias flag permits thermal symbols at throughhole contacts. Otherwise vias are fully connected to the copper plane. Calculations for automatically created symbols in supply layers: Annulus:
Inner diameter = pad hole diameter + 2 * restring Outer diameter = max(pad-hole diameter, inner diameter) + 2*isolate
Isolate
Masks
Gap
Restring
Settings for the overmeasure of the solder stop mask (Stop) and the solder cream mask (Cream) are made here.
96
Design Rules: Settings for Solder Stop and Cream Frame The default value for solder stop is 4 mil, i.e. minimum value is maximum value is 4 mil. The percent value has no effect in this case. The value for the cream frame is set to 0, which means that it has the same dimensions as the smd. If the values are given in percent, in the case of smds and pads of the form XLongOct or YLongOct the smaller dimension is the significant one. The values are constrained by minimum and maximum values. The value for Cream is given positively, as is Frame, although its effect is to reduce the size of the solder cream mask (creamframe). The solder cream mask is only generated for SMDs, and is displayed on layer 31, tCream, or layer 32, bCream. The solder stop mask is drawn in layers 29, tStop, or 30, bStop. Limit determines, together with the hole diameter, whether or not a via is to be covered with solder stop lacquer. Example: Limit = 24: All through-plated holes with diameters up to 24 mil are lacquered (no solder stop symbol), but vias with larger hole diameters receive a solder stop symbol. This setting does not affect pads!
Misc
Here you can select/deselect various checks: Check grid examines whether elements lie precisely on the grid currently set by the GRID command. This test is not always worthwhile, since in many cases devices built to both metric and imperial grids are in use at the same time. No common grid can be found in such a case.
97
EAGLE Manual
Check angle ensures that all tracks are laid at whole multiples of 45 degrees. This test is normally switched off, but can be activated if required. Check font (de-)selects the font check. The DRC checks if texts are written in vector font. Text which is nonvector font is marked as an error. This check is necessary due to the fact that the CAM Processor can't work with others than vector font for the generation of manufacturing data. Assumed you use proportional font text in the bottom layer, place it between two tracks, and use the CAM Processor to generate Gerber files, it could happen that the tracks are shorted by the text (height and length of the text can change)! Default: on. Check restrict can be set off if copper objects should not be checked against restricted areas drawn in layers 39, tRestrict, and 40, bRestrict. Default: on. Stop after xx errors specifies the maximum number of errors in the error list. As soon as this many errors have been found, the DRC stops examining the layout and automatically opens the error list. Advice on handling errors is found later in this chapter. The DRC treats a line (wire) whose Style is LongDash, ShortDash or DashDot in the same way as a continuous line. If a wire drawn with one of these styles is laid as a signal, the DRC reports a Wirestyle error.
98
99
EAGLE Manual
Board command: Create the layout from the schematic The devices are automatically placed at the left of the board. The board outline is drawn as a simple line in layer 20, Dimension. The outline of an eurocard is displayed in the Professional and Standard editions, a half-eurocard in the Light edition. If you wish, you may alter the size or shape of the empty board with the MOVE and SPLIT commands. You can also delete the outline and add a frame out of a library (such as 19inch.lbr) with ADD. A script file can, alternatively, be read by the SCRIPT command. The euro.scr file, for instance, can be used. Simply type SCRIPT EURO on the command line. The board outline serves simultaneously as a boundary for the autorouter (if present).
Arrange Devices
Drag the various elements to the desired positions. You use the MOVE command for this purpose. Devices can be clicked on directly, or addressed by name.
100
101
CHANGE Command
It is assumed that the layout and the schematic diagram are consistent and the Device has been defined with more than one package variant. Click on the CHANGE icon and select the Package option. You select the desired package, and confirm it with OK, in the dialog that then appears.
CHANGE package dialog If the Show all option is active, the package versions for all the technologies available for this device are displayed. If this option is not active you will only see packages that are defined in the selected technology. The package can also be exchanged from within the schematic diagram. Devices with a single package variant have to be modified in the Library Editor before. Add further package variants as needed. See page 165 Choosing the Package Variants for further information.
102
REPLACE command
If you have a layout without an associated schematic diagram, you exchange the package with the aid of the REPLACE command. REPLACE opens the window that is familiar from the ADD dialog, in which it is possible to search for devices. When the package has been chosen you click on the device that is to be replaced in the layout. The REPLACE command operates in two ways, chosen with the SET command: SET REPLACE_SAME NAMES; (default) SET REPLACE_SAME COORDS; The first mode permits packages whose pad or SMD names are identical to be exchanged. The connecting areas can have any position. In the second case (replace_same coords) the pads or SMDs in the new package must be located at the same coordinates (relative to the origin). The names may differ. The text for the name and value of a device is only exchanged if they have not been separated from the device with SMASH. The new package can come from a different library, and can contain additional pads and SMDs. Connections on the old package that were connected to signals must exist correspondingly in the new package. The new package can even have fewer connections, provided that this condition is satisfied.
103
104
POLYGON command: Parameter toolbar Width: Line thickness with which the polygon is drawn. Select the largest possible width. That avoids unnecessary quantities of data when the board is sent for manufacture. If the wire width is lower than the resolution of the output driver in the CAM Processor, a warning is issued. A finer line width permits the polygon to have a more complex shape. Pour: Specifies the filling type. The whole area (Solid) or a grid (Hatch). Rank: Overlapping polygons must not create any short-circuits. Rank can therefore be used to determine which polygons are to be subtracted from others. A polygon with rank = 1 has the highest priority in the Layout Editor (no other polygon drawn in the layout is ever subtracted from it), while one with rank = 6 has the lowest priority. As soon as there is an overlap with a higher rank, the appropriate area is cut out from the polygon with rank = 6. Polygons with the same rank are compared by the DRC. Polygons that are created in the Package Editor can be assigned the rank 0 or 7. Rank = 0 has highest priority and will not be touched by other polygons. Polygons with rank = 7 will be pushed away from all other polygons drawn in the layout. Spacing: If the option Hatch is chosen for Pour, this value determines the spacing of the grid lines.
105
EAGLE Manual
Isolate: Defines the value that the polygon must maintain with respect to all other elements not part of its signal. If higher values are defined for special elements in the Design Rules or net classes, the higher values apply. Thermals: Determines whether pads in the polygon are connected via thermal symbols, or are completely connected to the copper plane. This also applies to vias, assuming that the option has been activated in the Design Rules. The width of the thermal connectors is calculated as the half of the pad's drill diameter. The width has to be in the limits of a minimum of the wire width and a maximum of twice the wire width of the polygon. Don't choose the polygon's width too fine, otherwise the thermal connectors won't carry the current load. This is also true for bottlenecks in the layout. Orphans: Defines whether the polygon may contain areas which are not connected electrically to polygon's signal or not. If Orphans is set Off they will be eliminated. When drawing a polygon, please take care to ensure that the outline is not drawn more than once (overlapping) anywhere, and that the polygon outline does not cross over itself. It is not possible for EAGLE to compute the contents of the area in this case. An error message Signalname contains an invalid polygon! is issued, and the RATSNEST command is aborted. If this message appears, the outline of the polygon must be corrected. Otherwise, manufacturing data cannot be created by the CAM Processor. The CAM Processor automatically computes the polygons in the layout before generating its output.
106
DRC error list in the Layout Editor Signal layers which are not visible (DISPLAY command) will not be checked by the Design Rule Check!
107
EAGLE Manual
Design Rules (Distance tab). Setting the value Copper/Dimension to 0 deactivates this check. In this case polygons do not keep a minimum distance to objects in layer 20, Dimension, and holes! The DRC will not check if holes are placed on tracks! Drill Distance: Distance violation between holes. Defined by the value Drill/Hole in the Design Rules (Distance tab). Drill Size: Drill diameter violation in pads, vias, and holes. This value is defined in the Design Rules (Minimum Drill, Sizes tab). It is also possible to define a special value (Drills) for vias in a given net class (CLASS command). Keepout: Restricted areas for components drawn in layer 39, tKeepout, or 40, bKeepout, lie one upon another. No vector font: The font check (Design Rules, Misc tab) recognizes text in a signal layer which is not written in EAGLE's internal vector font. If you want to generate manufacturing data with the help of the CAM Processor the texts, at least in the signal layers, ought to be written in vector font. This is the only font the CAM Processor can work with. Otherwise the board will not look the same as it is shown. Change the font with the help of the command CHANGE FONT or use the option Always vector font in the Layout Editor's Options/User Interface menu: If activated, the Layout Editor shows all texts in vector font. This is the way the manufactured board will look like. Activating the sub-option Persistent in this drawing saves the setting in the drawing file. If you send the layout file, for example, to the boardhouse you can be sure that the vector font will be displayed also at his system. No real vector font: The font check (Design Rules, Misc tab) recognizes text in a signal layer which is not written in EAGLE's internal vector font although it is displayed as vector font in the Layout Editor window. This situation arises if the option Always vector font in the menu Options/User Interface is active. See error message No vector font for further details. Off Grid: The object does not fit onto the currently chosen grid. This check can be switched on or off in the Design Rules (Misc tab). Default: off. Restrict: A wire drawn in layer 1, Top, or 16, Bottom, or a via lies in a restricted area which is defined in layer 41 or 42, t/bRestrict.
108
109
EAGLE Manual
Signal Layers
You use the ROUTE command as before to place tracks in those inner layers which are provided for signals. Eagle will itself ensure that the tracks are connected by way of plated-through holes to the appropriate signals in the outer layers. The CAM Processor will output the inner signal layers if the inner layer concerned is activated together with the layers 17, Pads and 18, Vias.
Enter the signal name for the layer, and activate the Supply layer checkbox. If the layer is to be visible in the layout immediately, then click also on the Displayed checkbox. The command corresponding to this example would be:
110
Ground Areas and Supply Layers with More than One Signal
Areas of the board can be filled with a particular signal (e.g. ground) using the POLYGON command. The associated pads are then automatically connected using thermal symbols. The isolate value for the thermal symbols is specified in the Design Rules (DRC command, Supply tab). The width of the connecting bridge depends on the line thickness with which the polygon is drawn (see page 106). You can also specify whether or not vias are to be connected through thermals. The minimum clearances from elements carrying other signals specified in the Design Rules are maintained (Clearance and Distance tabs). Changes are shown in the layout when the polygon is next computed (RATSNEST command). In this way you can also create layers in which several areas are filled with different signals. In that case you can assign different ranks (priorities) for the polygons. The rank property determines which polygon is subtracted from others if they overlap. Rank = 1 signifies the highest priority in the layout; nothing will be subtracted from such a polygon
111
EAGLE Manual
(with the exception of polygons with rank = 0, drawn as a part of a package in the Package Editor). Rank = 6 signifies the lowest priority. Polygons with the same rank are compared by the DRC. Please read the notes regarding polygons in the section on Defining a Copper Plane on page 105. Please note that this does not apply to supply layers defined by $name... Supply layers made with polygons are not plotted inversely. This can lead to high plotting times with Gerber photoplotters, since large areas have to be filled. Do not, therefore, choose a line thickness for a polygon that is too narrow! This is of no significance in the case of output on Postscript.
112
113
EAGLE Manual
The currently selected printer is shown at the top of the window. The selected printer can be altered by means of the Printer... button. Style permits a number of output options to be selected: Mirror inverts the drawing from left to right, Rotate turns it 90 degrees, and Upside down turns it through 180 degrees. If both are activated, a rotation of 270 degrees is the result. If the Black option is chosen, a black-and-white printout is made. Otherwise the print will be either in color or gray scale, depending on the printer. Solid causes each element to be entirely filled. If you want to see the different filling patterns of the individual layers, then deactivate this option. The Scale factor specifies the scale of the drawing. If Page limit is set to 0, the printer will use whatever number of pages is needed to print the output at the selected scale. If a different value is selected, EAGLE will adjust the scale of the drawing to fit it onto the stated number of pages. This can mean that, under unfavorable circumstances, the selected scale cannot be used. It is possible to select which sheets from a schematic diagram are printed using the Sheets box. This only appears in the Schematic Editor. The Page... button brings you to another window that permits various page settings.
PRINT: Page Setup The edges of the print can be defined with the aid of the four entry boxes under Border. The values may be entered in mm or in inches. If you have changed the values and want to use the printer driver's standard settings again, simply enter a 0. The Vertical and Horizontal boxes allow the position of the printout on the sheet to be specified.
114
115
117
EAGLE Manual
Autorouters whatsoever. However, in practice, the required amount of time is not always available, and therefore certain boards will not be completed even by a 100 % Autorouter. The EAGLE Autorouter is based on the ripup/retry algorithm. As soon as it cannot route a track, it removes prerouted tracks (ripup) and tries it again (retry). The number of tracks it may remove is called ripup depth which is decisive for the speed and the routing result. This is, in principle, the previously mentioned restriction. Those who expect an Autorouter to supply a perfect board without some manual help will be disappointed. The user must contribute his ideas and invest some energy. If he does, the Autorouter will be a valuable tool which will greatly reduce routine work. Working with the EAGLE Autorouter requires that the user places the components and sets control parameters which influence the routing strategy. These parameters must be set carefully if the best results are to be achieved. They are therefore described in detail in this section.
Bus Router
Normally the bus router (whose parameters are set such that the bus structures can be optimally routed) is the first pass. This step may be omitted.
118
The Autorouter
Busses, as understood by the Autorouter, are connections which can be laid as straight lines in the x or y direction with only a few deviations. Busses are only routed if there is a layer with an appropriate preferred direction.
Routing Pass
The actual routing pass is then started, using parameters which make a 100 % routing as likely as possible. A large number of vias are deliberately allowed to avoid paths becoming blocked.
Optimization
After the main routing pass, any number of optimization passes can be made. The parameters are then set to remove superfluous vias and to smooth the track paths. In the optimization passes tracks are removed and rerouted one at a time. This can, however, lead to a higher degree of routing, since it is possible for new paths to be freed by the changed path of this track. The number of optimization passes must be specified before starting the Autorouter. It is not possible to optimize at a later stage. Once the routing job has been completed all the tracks are considered to have been prerouted, and may no longer be changed. Any of the steps mentioned above may be separately activated or deactivated.
119
EAGLE Manual
Grid
The Design Rules determine the routing and placement grid. The minimum routing grid is 0.02 mm, which is about 0.8 mil.
Placement Grid
Although the Autorouter does permit any placement grid, it is not a good idea to place the components on a grid that is too fine. Two good rules are: The placement grid should not be finer than the routing grid. If the placement grid is larger than the routing grid, it should be set to an integral multiple of the routing grid. These rules make sense if, for example, you consider that it might be possible, within the Design Rules, to route two tracks between two pins of a component, but that an inappropriate relationship between the two grids could prevent this (see diagram).
120
The Autorouter
Routing Grid
The Autorouter grid has to be set in the AUTO command setup menu (Routing Grid). This is not the same as the currently used grid in the Layout Editor window that you have selected with the GRID command. Bear in mind that for the routing grid the time demand increases exponentially with the resolution. Therefore select as large a grid as possible. The main question for most boards is how many tracks are to be placed between the pins of an IC. To answer this question, the selected Design Rules (i.e. the minimum spacing between tracks and pads or other tracks) must of course also be considered. The result is: The two grids must be selected so that components pads are located on the routing grid.
Track patterns with different placement grids There are of course exceptions, such as with SMDs to which the opposite may apply, namely that a position outside of the routing grid leads to the best results. In any event the choice of grid should be carefully considered in the light of the Design Rules and the pad spacing. The example above may clarify the situation: For the component on the left, the pads are placed on the routing grid. Two tracks can be routed between two pads. The pads of the component in the middle are not on the routing grid, and therefore only one track can be routed between them. On the right you see the exception from the rule shown for SMD pads, which are placed between the routing grid lines so that one track can be routed between them.
121
EAGLE Manual
When choosing the grid, please also ensure that each pad covers at least one grid point. Otherwise it can happen that the Autorouter is unable to route a signal, even though there is enough space to route it. In this case the Autorouter issues the message Unreachable SMD at x y as it starts. The parameters x and y specify the position of the SMD pad. The default value for the routing grid is 50 mil. This value is sufficient for simple through-hole layouts. Working with SMD components demands a finer routing grid. Usual values are 25, 12.5, 10, or 5 mil. Please remember that finer values require significantly more routing memory.
Memory Requirement
The amount of routing memory required depends in the first place on the selected routing grid, the area of the board and the number of signal layers in which tracks are routed. The static memory requirement (in bytes) for a board can be calculated as follows:
number of grid points x number of signal layers x 2
Note that a supply layer generated by giving the appropriate name ($name) does not occupy any autorouting memory. On the other hand, a supply layer that has been created with the aid of one or more polygons consumes as much routing memory as any other signal layer. Space is also required for dynamic data, in addition to the static memory requirement. The dynamic data require in a very rough estimate about 10% up to 100 % (in some cases even more!) of the static value. This depends heavily on the layout. Total memory requirement (rough approximation):
static memory x (1.1..2,0) [bytes]
This much RAM should be free before starting the Autorouter. If this is insufficient, the Autorouter must store data on the hard disk. This lengthens the routing time enormously, and should be avoided at all costs. Short accesses to the hard disk are normal, since the job file on the hard disk is regularly updated. Try to choose the coarsest possible routing grid. This saves memory space and routing time!
Layer
If you want to design a double-sided board, then select Top and Bottom as route layers. You should only use the Bottom layer for a single-sided board. In the case of inner layers, it is helpful to use the layers from the outside to the inside, i.e. first 2 and 15 and so on.
122
The Autorouter
Inner layers are converted to supply layers if they are renamed to $name, where name is a valid signal name. These layers are not routed. Supply layers with more than one signal can be implemented with polygons. These layers are treated as normal signal layers. In the case of boards that are so complex that it is not certain whether they can be wired on two sides, it is helpful to define them as multilayer boards, and to set very high costs for the inner layers. This will cause the Autorouter to avoid the inner layers and to place as many connections as possible in the outer layers. It can, however, make use of an inner layer when necessary. These settings are made in the Autorouter menu (see page 128).
Preferred Directions
On the two outside layers the preferred directions are normally set to 90 degrees from each other. For the inner layers it may be useful to choose 45 and 135 degrees to cover diagonal connections. Before setting the preferred direction it is well worth examining the board (based on the airwires) to see if one direction offers advantages for a certain side of the board. This is particularly likely to be the case for SMD boards. Please also follow the preferred direction when pre-placing tracks. The defaults are vertical for the Top (red) and horizontal for the Bottom (blue). Experience has shown that small boards containing mainly SMD components are best routed without any preferred direction at all (set * in the Autorouter setup). The router then reaches a usable result much faster. Single sided boards should be routed without a preferred direction.
123
EAGLE Manual
An area drawn in layer 20 can also be used as a restricted region for all signals. It should, however, be noted that this area should be deleted before sending the board for manufacture, since layer 20 is usually output during the generation of manufacturing data.
cfBase.xx: 0..20
Base costs for one step on the corresponding layer. Recommendation: outside layers (Top, Bottom) always 0, inside layers greater than 0.
cfVia: 0..99
Controls the use of vias. A low value produces many vias but also allows the preferred direction to be followed. A high value tries to avoid vias and thus violates the preferred direction. Recommendation: low value for the routing pass, high value for the optimization.
124
cfChangeDir: 0..25
Controls how often the direction is changed. A low value means many bends are allowed within a track. A high value produces virtually straight tracks.
cfOrthStep, cfDiagStep
Implements the rule that the hypotenuse of a right-angled triangle is shorter than the sum of the other two sides. The default values are 2 and 3. That means that the costs for the route using the two other sides are 2+2, as against 3 for the hypotenuse. This parameter should only be altered with great care!
cfExtdStep: 0..30
Controls the avoidance of track sections which run at an angle of 45 degrees to the preferred direction, and which would divide the board into two sections. A low value means that such sections are allowed while a high value tries to avoid them. In combination with the parameter mnExtdStep you can control the length of these tracks. If mnExtdStep = 0, each grid step at 45 degrees to the preferred direction causes costs that are defined in parameter cfExtdStep. Choosing for example mnExtdStep = 5 allows a track to run five steps at 45 degrees without any additional costs. Each further step causes costs defined in cfExtdStep. In this way, 90 degree bends can be given 45 degree corners. Settings like cfExtdStep = 99 and mnExtdStep = 0 should avoid tracks with 45 degree angles. This parameter is only relevant to layers which have a preferred direction. Recommendation: use a lower value for the routing pass, and a higher value for the optimization.
125
cfBusImpact: 0..10
Controls whether the ideal line is followed for bus connections (see also cfPadImpact). A high value ensures that the direct line between start and end point is followed. Only important for bus routing.
cfHugging: 0..5
Controls the hugging of parallel tracks. A high value allows for a strong hugging (tracks are very close to each other), a low value allows for a more generous distribution. Recommendation: higher value for routing, lower value for the optimization.
cfAvoid 0..10
During the ripup, areas are avoided from which tracks were removed. A high value means strong avoidance. Not relevant to the optimization passes.
cfPolygon 0..30
Every step within a polygon is associated with this value. A low value allows routing inside a polygon. The probability that the polygon is broken into several pieces is higher. A higher value causes the Autorouter to make as few connections as possible inside a polygon.
126
mnSegments 0..9999
Determines the maximum number of wire pieces in one connecting track.
mnExtdSteps 0..9999
Specifies the number of steps that are allowed at 45 degrees to the preferred direction without incurring the value of cfExtdStep. See also cfExtdStep.
127
EAGLE Manual
If one of these values is exceeded, the router interrupts the ripup process and reestablishes the status which was valid at the first track which could not be routed. This track is considered as unroutable, and the router continues with the next track.
Autorouter setup: General settings (General tab) This is where you specify the layers that may be used for routing and which preferred directions apply. Click in the appropriate combo box with the mouse, and select the desired value. Setting the preferred directions: horizontal | vertical / diagonal at 45 \ diagonal at 135 * none N/A Layer not active Define a suitable Routing grid and select the shape of the through-plated holes (Via shape). You may use the Load... and Save as.... buttons to load a different parameter set from an Autorouter control file (*.ctl) or to save the settings in a CTL file. You now make the settings for the individual routing steps. Click on the corresponding tab and make any settings you may want.
128
The Autorouter
Autorouter setup: Settings for the Route pass The parameters in the Layer costs, Costs and Maximum groups can be different for each pass. The Active check box specifies whether this step should be executed or not. Additional optimization passes can be inserted with the Add button. Clicking on the Select button allows certain signals to be selected for autorouting. Select these with a mouse click, or enter their names on the command line. Then start the Autorouter with a click on the trafficlight icon in the action toolbar. It is, alternatively, possible to enter the signals on the command line while the AUTO command is active. Examples: VCC GND ; The signals VCC and GND are routed. The semicolon at the end of the line starts the Autorouter immediately. It is alternatively possible to click on the traffic-light icon. ! VCC GND ; All signals except VCC and GND are routed. The Autorouter is started for all the signals that have not yet been laid by clicking on the OK button. The Cancel menu item interrupts the AUTO command without storing any changes.
129
EAGLE Manual
Autorouter setup: Restarting an interrupted job Do not at first make any changes to the parameters if you want to restart an interrupted routing job. Use the Continue existing job check box to decide whether you want to continue with an existing job, or whether you want to choose new settings for the remaining signals. End job ends the autorouting job and loads the previous routing result.
Supply Layers
The definition of supply layers has already been described in the previous section under Power Supply Layers with One Signal on page 105. The following points must be considered when autorouting: The layer name specifies the signal that is carried by this layer. The layer $VCC, for example, only carries the VCC signal. The layer is represented with an inverse display. The layer is not active during autorouting (setting N/A in the Autorouter setup, General tab). After routing, an isolation layer is drawn around the layout using WIRE. This prevents short-circuits at the edge of the board. No other signals or polygons may be drawn!
130
131
EAGLE Manual
Connections means 2-point connections. The significance of the various RIPUP options: Number of ripups: This indicates the number of connections that have already been routed during the foregoing routing procedure that have been (can be) removed in order to be able to route new signals. Current RipupLevel: This indicates the number of connections that have been removed or converted in airwires in order to lay the track for the current signal. Current RipupTotal: After a signal's routes have been ripped up it can be broken down into a large number of two-point connections. These connections are then routed again. This variable indicates the number of such two-point connections still to be routed.
Log file
For each routing pass the Autorouter generates a file called name.pro, containing useful information. Example:
EAGLE AutoRouter Statistics: Job Start at End at Elapsed time Signals Connections : d:/eagle4/test-design/democpu.brd : : : : : 15.43.18 16.17.08 00.33.48 84 238 (24.07.2000) (24.07.2000)
132
The Autorouter
Router memory : Passname: 1121760 Busses Route Optimize1 Optimize2 Optimize3 Optimize4 00.06.32 0 0 0 238 178 100.0 % 00.06.15 0 0 0 238 140 100.0 % 00.06.01 0 0 0 238 134 100.0 % 00.05.55 0 0 0 238 128 100.0 %
Time per pass: 00.00.21 00.08.44 Number of Ripups: 0 32 max. Level: 0 1 max. Total: 0 31 Routed: Vias: Resolution: Final: 16 0 6.7 % 238 338 100.0 %
100.0% finished
cfVia cfNonPref cfChangeDir cfOrthStep cfDiagStep cfExtdStep cfBonusStep cfMalusStep cfPadImpact cfSmdImpact cfBusImpact cfHugging cfAvoid cfPolygon cfBase.1 cfBase.2 ... cfBase.15 cfBase.16 mnVias mnSegments mnExtdSteps mnRipupLevel mnRipupSteps mnRipupTotal tpViaShape PrefDir.1 PrefDir.2 ... PrefDir.15 PrefDir.16
= 8 = 5 = 2 = 2 = 3 = 30 = 1 = 1 = 4 = 4 = 4 = 3 = 4 = 10 = = = = 0 1 1 0
Maximum number of... ...Vias per connection ...Wire segments per connection ...Steps 45 deg. against preferred direction ...Ripups per connection ...Ripup sequences per connection ...Ripups at the same time Track parameters for... ...Via shape (round or octagon) Preferred direction in the given layer Symbols: 0 - / | \ * 0 : Layer not used for routing * : No preferred direction - : X is preferred direction | : Y is preferred direction / : 45 deg. is preferred direction \ : 135 deg. is preferred direction
133
EAGLE Manual
General
The layer costs (cfLayer) should increase from the outer to the inner layers or be the same for all layers. It is unfavorable to use lower values in the inner layers than in the outer layers. This could increase the needed routing memory enormously.
Single-Sided Boards
There are two procedures, depending on the kind of layout: In the simplest case, only layer 16, Bottom, is active. No preferred direction is defined. Select a suitable grid and run the Autorouter. If the layout is rather more complex, it may be possible to achieve a usable result with special parameter settings. Please take a look at the project named singlesided, which can be found in the eagle/projects/examples directory. This example project comes with various control files (*.ctl), which are optimized for singlesided routing. The Autorouter may use the Top layer as well. The tracks laid there will be realized as wire bridges on the board. In layer 41, tRestrict, you can define restricted areas around the components and in regions where wire bridges are not allowed. Feel free to experiment with the parameter settings for your layout.
134
The Autorouter
Now switch off the bus router and all the optimization passes in the Autorouter setup. Only the routing remains active. Alter the following cost factors: cfVia = 0 Vias are wanted mnVia = 1 Max. 1 via per connection cfBase.1/16 = 30..99 Short tracks in Top/Bottom mnSegments = 2..8 short tracks Start the Autorouter, using the Select button, and choose the signals to be routed. After the routing pass it is possible, if appropriate, to optimize the result manually. The rest of the connections are routed after this. Use AUTO to open the Autorouter setup menu, and load the previous stored control parameters with the Load.. button (standard.ctl). Adjust the values to any special wishes you may have, and start the Autorouter. This procedure is identical for both types of supply layer (automatically generated supply layer, or a supply layer generated with polygons).
135
137
EAGLE Manual
Would you like to change the name of an element in your library? Then use the RENAME command. You can type it in the command line. For example: RENAME DIL16 DIL-16; The package receives the new name DIL-16.
Resistor Package
Define a New Package
Select the package editing mode via the icon in the action toolbar, and enter the package name R-10 in the New field. Answer the question Create new package R-10? with Yes. Later when creating a new symbol and a new device you will again have to answer the corresponding questions with Yes.
Solder Pads
For a resistor with lead-wires, select PAD, and set the pad shape and the drill diameter in the parameter toolbar. The default value for the pad diameter is auto (respectively 0). This value should be kept. The actual diameter is specified by the Design Rules for the layout. Then place two pads at the desired distance. The origin of the drawing will later be the identifying point with which a component is selected. For this reason it should be somewhere near the center of the device.
138
SMD command: Parameter toolbar All properties can be altered after placement using the CHANGE command or by typing the command directly on the command line. Select Top as the layer, even if the component will later be placed on the underside of the board. SMD components are located on the other side of a board using the MIRROR command. This moves the elements in all the t..-layers into the corresponding b..-layers. Place the two SMD pads (which in EAGLE are just called SMDs) at the desired distance. It may be necessary first of all to alter the grid setting to a suitable value. The SMD can be rotated with the right mouse button before it is placed. The parameter ROUNDNESS specifies whether the corners of the SMDs are to be rounded. By default this value is set to 0% (no rounding). This value is usually kept, since the final roundness of SMDs is specified in the Design Rules. The help system provides you with more information about this parameter. The INFO command provides you here with a quick summary of the current properties of a SMD or pad.
Pad Name
You can now enter the names, such as 1 and 2, for the pads or SMDs using the NAME command.
139
EAGLE Manual
Layer 51, tDocu, is not used to print onto the board itself, but is a supplement to the graphical presentation which might be used for printed documentation. Care must be taken in layer 21, tPlace, not to cover any areas that are to be soldered. A more realistic appearance can be given, however, in the tDocu layer, which is not subject to this limitation. In the example of the resistor, the symbol can be drawn in layer 21, tPlace, but the wires, which go over the pads, are drawn in layer 51, tDocu.
Labeling
With the TEXT command you place the texts >NAME (in layer 25, tNames) and >VALUE (in layer 27, tValues) in those places where in the board the actual name and the actual value are to appear. 0.07 inch for the text height (size) and 10% for the ratio (relationship of stroke width to text height, which can only be set, using CHANGE, for vector fonts) are recommended. SMASH and MOVE can be used later to change the position of this text relative to the package symbol on the board. In the case of ICs, for instance, the value corresponds to what will later be the device name (e.g. 74LS00). When working with only the Layout Editor, the value is specified in the board.
140
Description
Finally, you click on the Description box. Text can then be entered in the lower part of the window which then opens. Rich Text format can be used. This is a syntax somewhat similar to HTML, which permits formatting of the text. You will find detailed information in the help system under Rich Text. Example: <b>R-10</b> <p> Resistor 10 mm grid. Keywords from this text can be searched for from the ADD dialog in the layout. Do not forget to save the library from time to time!
Note
The CHANGE command can be used at a later stage to alter object properties such as the stroke thickness, text height, pad shape, or the layer in which the object is located. If you want to change the properties of several objects at one go, define a group with the GROUP command, click the CHANGE command, select the parameter and the value, and click on the drawing surface with the right mouse button. Example: Use GROUP to define a group that contains both pads, then select CHANGE and SHAPE/SQUARE. Click on the drawing surface with the right mouse button. The shape of both pads changes.
Resistor Symbol
Define a New Symbol
Select the symbol editing mode, and enter the symbol name R in the New field. This name only has a meaning internal to the program, and does not appear in the schematic.
141
EAGLE Manual
Set the Grid
Now check that 0.1 inch is set as the grid size. The pins in the symbol must be placed on this grid, since this is what EAGLE expects.
Set the direction of the pins (Orientation parameter) using the four left-hand icons in the parameter toolbar or, more conveniently, by rotating with the right mouse button.
Function
The function parameter is set with the next four icons on the parameter toolbar. This specifies whether the symbol is to be shown with an inversion circle (Dot), with a clock symbol (Clk), with both (DotClk) or simply as a stroke (None). The diagram illustrates the four representations on one package.
Pin Functions
Length
The next four icons on the parameter toolbar permit setting of the pin length (0, 0.1 inch, 0.2 inch, 0.3 inch). The 0 setting is used if no pin-line is to be visible, or if, as in the resistor symbol, a pin shorter than 0.1 inch is desired. In that case the pin is to be drawn with the WIRE command as a line in layer 94, Symbols.
142
The next four icons in the parameter toolbar specify whether the pins are to be labeled with pin names, pad names, both or neither. The diagram illustrates an example in which pin names are shown inside and pad-names outside. The location of the label relative to the pin is fixed. The text height is also fixed (at 60 mil).
Pin labeling
Direction
The Direction parameter specifies the logical direction of the signal flow: NC In Out I/O OC Hiz Pas Pwr Sup Not connected Input Output Input/output Open Collector or Open Drain High impedance output Passive (resistors, etc.) Power pin (power supply input) Power supply output for ground and power supply symbols
The electrical rule check is based on these parameters. It will flag, for example, if two pins whose direction is out are connected. Please note that the ERC can only offer warnings. You must interpret the messages yourself.
143
EAGLE Manual
The Pwr and Sup directions are used for the automatic connection of supply voltages (see page 171).
Swaplevel
The swaplevel is a number between 0 and 255. The number 0 means that the pin cannot be exchanged for another pin in the same gate. Any number bigger than 0 means that pins can be exchanged for other pins which have the same swaplevel and are defined within the same symbol. The pins can be swapped in the schematic or in the board with the PINSWAP command. The two pins of a resistor can have the same swaplevel (e.g. 1), since they are interchangeable. If the layer 93, Pins, is being displayed, the connection points on nets are shown with green circles. The Direction and Swaplevel parameters moreover (here Pas and 1) are displayed in this layer. The connections of a diode, for instance, cannot be exchanged, and are therefore given swaplevel 0.
144
Schematic Symbol
The schematic symbol is drawn in the symbols layer using WIRE and the other drawing commands. Place the texts >NAME and >VALUE in layers 95, Names, and 96, Values (TEXT command). Place them where the name and value of the component are to appear in the schematic. Precise placement of the text can be achieved by setting the grid finer, which can even be done while the TEXT command is active. Afterwards, however, set the again grid to 0.1 inches.
Resistor Device
Define a New Device
Create the new device R-10 with this icon. When you later use the ADD command to fetch the component into the schematic, you will select it by using this name. It is only a coincidence that in this case the name of the package and the name of the device are the same. So enter the name R on the New line. The device editor opens after the confirming question Create new device R?.
145
EAGLE Manual
You can change the name of the gate or gates with the NAME command. The name is unimportant for a device with only one gate, since it does not appear in the schematic. Keep the automatically generated name! In the case of devices with several gates, the name of the particular gate is added to the name of the device. Example: The gates are called A, B, C and D, and the name of the component in the schematic is IC1, so the names which appear are IC1A, IC1B, IC1C and IC1D.
146
Define Prefix
The PREFIX command is used to specify a prefix for a name. The name itself will initially be automatically allocated in the schematic. For a resistor this would, naturally enough, be R. The resistors will then be identified as R1, R2, R3 etc.. The names can be altered at any time with the NAME command
Value
On: You are allowed to change the value in the schematic (for example for resistors). Without a value the part will not be specified exactly. Off: The value will be generated from the device name and includes technology and package variant (e. g. 74LS00N), if available. Also recommended for supply symbols.
Description
Click on the Description in the description box. You can enter a description of the component here. The search facility of the ADD command in the schematic diagram will search through this text. You can use the Rich Text format, as in the package description. You will find notes about this in the help system under the keyword Rich Text. It can look like this: <b>R-10</b> <p> Resistor 10mm package
147
EAGLE Manual
Save
This completes definition of the resistor, and it can be fetched into the schematic diagram. If you have not already saved the library, please do it at this stage!
Use
The newly created library has to be made available for the schematic or layout with the help of the USE command. This command has to be used in the Schematic or Layout Editor. It is also possible to mark a library as in Use in the Control Panel's tree view. See help for details. Now the library will be recognized by the ADD command and its search function.
148
149
EAGLE Manual
Data sheet for the 541032 All the data for this component has been extracted from a data book published by Texas Instruments, whom we thank for permission to reproduce it.
150
DIL-14 data sheet Click on the Edit a package icon in the action toolbar, and enter the name of the package in the New box of the Edit menu, which is DIL-14 in our present example. Click on OK, and confirm the question Create new package DIL-14? by answering Yes. The package editor window now opens.
151
EAGLE Manual
Set the Grid
First set the appropriate grid (50 mil in this case) using the GRID command, and let the grid lines be visible. The grid can easily be shown and hidden with the F6 function key.
Place Pads
Use the PAD command, and place the solder pads in accordance with the specifications on the data sheet. The pads should be arranged in such a way that the coordinate origin is located somewhere near the center of the package. Each pad can have individual properties such as its Shape, Diameter and Drill hole diameter. Enter the desired pad shape (the default is octagon), and specify the hole diameter. The pad diameter is defined with the standard value auto (respectively 0), since the size is finally determined in the layout by means of the Design Rules. The pad appears in the library with the default value of 55 mil. You may, however, assign an individual value. If, for instance, you specify 70 mil, the consequence is that the diameter of the pad on the board cannot be less than 70 mil. You select this value when the PAD command is active (i.e. the pad is attached to the mouse cursor) using the parameter toolbar. It is also possible to specify the drill hole diameter and the pad shape.
The parameter toolbar when the PAD command is active The properties of pads that have already been placed can be altered at a later stage by means of the CHANGE command. Click on the CHANGE icon and select the property and the appropriate value. Then click on the pads whose properties are to be altered. CHANGE can also be applied to groups (using the GROUP command). After the property has been selected, click inside the group with the right mouse button. As soon as a pad has been placed, EAGLE automatically generates solder stop symbols in layers 29 and 30, t/bStop. The dimensions of the solder stop symbols is specified in the Design Rules (the Stopframe parameter).
Pad Name
EAGLE automatically assigns pad names, P$1, P$2, P$3 etc., as placement proceeds. Assign the names in accordance with the information in the data book. The names can easily be checked by clicking the Options/Set/Misc menu and choosing the Display pad names option. All the pad names are displayed when the screen is next redrawn (F2).
152
Description
Click on Description in the description box. A window opens in whose lower part it is possible to enter text, while the formatted appearance of the description is displayed in the upper part (Headline). The text can be entered in Rich Text format. This format works with a subset of HTML tags that allow the text to be formatted. You will find detailed information in the help system under Rich Text.
153
EAGLE Manual
The descriptive text for our DIL-14 might look like this: <b>DIL-14</b> <p> 14-Pin Dual Inline Plastic Package, Standard Width 300 mil It is also possible to add, for instance, the reference data book, the e-mail address of the source or other information here. The search facility in the Layout Editors ADD dialog also looks in this text for keywords.
Save
At this stage if not before the library should be saved under its own name (e.g. my_lib.lbr).
154
SMD package, FK version. Click again on the Edit a package icon, and enter the name of the package in the New box in the edit menu. The package is to be called LCC-20. Click on OK and confirm the question Create new package LCC-20? by answering Yes.
155
EAGLE Manual
Click therefore in the SMD icon, and type 0.8 2 on the command line. Create two vertical rows as well. The SMDs can be rotated in 90 degree increments with the right mouse button.
Placing the SMDs The Roundness parameter (CHANGE command) specifies whether curves should be given to the corners of the solder pads. The default value is 0%, which means that there is no rounding. See also the section on page 95. If a square SMD is selected, and if Roundness is defined as 100%, the result is a round SMD, as is needed when creating ball grid array housings (BGA). Roundness is usually chosen to be 0% when a package is being defined. A general value can be specified in the Design Rules if slightly rounded solder pads are preferred. Drag the 4 SMD rows into the correct position. You select a finer GRID, such as 0.05 mm, for this. The commands GROUP and MOVE, followed by a right mouse click on the marked group can be used to drag the marked group into the correct position. The size of the central SMDs in the upper row can be altered with the CHANGE SMD command. Since the value 0.8 x 3.4 is not contained in the menu as standard, type change smd 0.8 3.4
156
SMD Names
If no names are visible in the SMD pads, click the Options/Set/Misc menu and activate the Display pad names option. Alternatively you can type the following onto the command line: set pad_names on All the names will be visible once the screen is redrawn (WINDOW command). Use the NAME command to adjust the names to match the specifications of the data sheet. It is alternatively possible to assign names as the SMDs are being placed, if the component has a large number of pads with sequential numbers. Select the SMD command, type in the name of the first SMD, e.g. '1', and place the pads in the correct sequence. The single quote marks must be entered on the command line. See also the section on Names and Automatic Naming on page 69. You can also combine several statements on the command line, for example: smd 0.8 2 '1' A SMD of 0.8 mm x 2.0 mm and with the name 1 is now attached to the mouse cursor.
157
EAGLE Manual
Package Name and Package Value
The labeling now follows. Use the TEXT command and write >NAME in layer 25, tNames, for the name placeholder, and >VALUE in layer 27, tValues, as the placeholder for the value, and place this at a suitable location. The texts can be separated and relocated at a later stage using SMASH and MOVE.
Locating Point
As soon as you have finished drawing the package, please check where the coordinate origin is located. It should be somewhere near the middle of the package. If necessary, use GRID to choose a suitable grid (e.g. 0.635 mm), and shift the whole package with GROUP and MOVE. First make sure that all the layers are made visible (DISPLAY ALL). That is the only way to be sure that all the elements have indeed been moved.
Description
Then click on Description in the description box. You can insert a detailed description of this package form here. The Rich Text format can be used. This format is described in the programs help system under Rich Text . The entry of the LCC-20 in Rich Text format could look like this: <b>LCC-20</b> <p> FK ceramic chip carrier package from Texas Instruments. The ADD dialog in the Layout Editor can search for this description or for keywords within it.
Save
Please do not forget to save the library from time to time!
158
The fully defined LCC-20 By the way: Supposed you found a package (or of course a symbol) that is exactly the one you need, simply copy it into your current library. This can be done by the commands GROUP, CUT, and PASTE. See also page 53. In short: OPEN the 'source' library and EDIT the package/symbol DISPLAY all layers and use GROUP to select all elements Use CUT and click into the group to set a reference point OPEN your 'target' library EDIT a new Package/Symbol Use PASTE to place it This is not possible for Devices!
159
EAGLE Manual Defining the Logic Symbol for the Schematic Diagram
Our device contains four OR gates, each having two inputs and one output. We first create an OR symbol.
Logical appearance of the 541032. Click on the Edit a symbol icon. Enter a name for the symbol on the New line, such as 2-input_positive_or, and click OK. Confirm the question Create new symbol 2-input_positive_or? by answering Yes. You now have the Symbol Editor window in front of you.
160
Save
This is a good moment to save the work that you have done so far.
161
Pin Name
You use the NAME command to give the two pins the names of the signals that they are to carry. In this case, these are GND and VCC. For reasons of appearance, the pin property Visible is set to Pad in the symbol shown below, and the pin label has been placed on layer 95, Names, using TEXT.
162
163
EAGLE Manual
Click on the Edit a device icon. Enter the name for the device on the new line. In our example this is a 541032A. This device is to be used in two different technologies, as the 54AS1032A and as the 54ALS1032A. A * is used as a placeholder at a suitable location in the device name to represent the different technologies. Enter, therefore, the name 54*1032A, and confirm the question Create new device 54*1032A? with Yes. The device editor window opens.
Select Symbols
First use ADD to fetch the symbols that belong to this device. A window opens in which all the symbols available in the current library are displayed. Double-click on the 2-input_positive_or symbol and place it four times. Click again on the ADD icon, and select the VCC-GND symbol from the list. Place this too onto the drawing area.
164
165
EAGLE Manual
The pin assignment for the packages Select the J version from the package list and click on the CONNECT button. The connect window opens.
CONNECT dialog The list of pins is on the left, and the pads are in the center. Click on a pin-entry, and select the associated pad. Both entries are now marked. You join them with the connect button. This pair now appears on the right, in the Connection column. Join each pin to its pad in accordance with the data sheet. Finish the definition by clicking on OK. Define the connections for the second package version, FK, in the same way. Select the version, and click on the Connect button. The usual dialog appears in the connect window. Proceed exactly as described above. Please note that six pads are not connected in this version. They are left over in the Pad column. Finish the process by clicking on OK.
166
Defining Technologies
As noted above, the 541032 is to be used in two different technologies AS and ALS . By including a * as a placeholder in the device name we have already taken the first step towards this. In the schematic diagram the code for the chosen technology will appear instead of the *. The data sheet shows that both technologies are available in both packages. Select the J package from the list on the right of the device editor window. Then click on Technologies in the description box. The technologies window opens. Define the technology in the New line, and confirm the entry with OK. When the entry has been completed, the AS and ALS entries are activated with a tick.
Technologies for package version J Close the window by clicking on OK again. Select the FK version from the package list. Click on Technologies in the description box again. You will now see that AS and ALS are available as selections in the technologies window. Activate both of these by clicking in the small box to the left, so that a tick is displayed. Finish the definition by clicking on OK. The technologies available for the selected package version are now listed in the description area of the device editor.
167
EAGLE Manual
Specifying the Prefix
The prefix of the device name is defined simply by clicking on the Prefix button. IC is to be entered in this example.
Value
The setting of value determines whether the VALUE command can be used to alter the value of the device in the schematic diagram and in the layout. The default setting is off, so that alteration is not permitted. Since that appears to be appropriate here too, value is left off. The value of the device corresponds to the device name in this case.
Description
Click on the Description in the description box. You can enter a description of the device in the window which now opens. Use typical terms that you might apply for a keyword search. The search facility of the ADD command in the schematic diagram will also search through this text. You can use Rich Text format. This is described in the help system under the keyword Rich Text. It can look like this: <b>541032A</b> <p> Quadruple 2-Input Positive-OR Buffers/Drivers from TI.
Save
This completes definition of the device set. If you have not already saved the library, please do it at this stage!
168
Device-Editor: 54*1032A.dev
169
EAGLE Manual
NAND symbol 7400 (European representation) The two input pins are called I0 and I1 and are defined as having direction In, swaplevel 1, visible Pin and function None. The output pin is called O and is defined with direction Out, swaplevel 0, visible Pin, and function Dot. Now define the supply gate with the name PWRN, and the following properties:
Power gate The two pins are called GND and VCC. They are defined with direction Pwr, swaplevel 0, function None, and visible Pad. Now create the 7400 device in the Device Editor: Specify the package with PACKAGE (which must already be present in the library) and use PREFIX to specify the name prefix as IC. Use the ADD command to place the 7400 symbol four times, with addlevel being set to Next and swaplevel to 1. Then label the gates as A, B, C and D with the NAME command.
170
171
EAGLE Manual
Supply symbol for GND As has been explained above, the device receives the name of the pin that is used in the symbol. The corresponding device is defined with addlevel Next. If you set value to off you can be sure that the labeling is not accidentally changed. On the other hand, you have more flexibility with value set to on. You can alter the label if, for instance, you have a second ground potential. You must, however, then create explicit nets for the second ground. Quick guide to define a Supply Symbol: Create a new symbol in the library Place the pin, with direction Supply Pin name corresponds to the signal name Value placeholder Create a new device Device name is signal name Package assignment not necessary
172
Labeling of a schematic symbol In the first case all the symbols are labeled with >NAME. In the second case, the symbol of the first gate is labeled with >PART and >GATE, the other three with >GATE only. SMASH cannot separate >PART and >GATE from their symbols for individual movement.
173
EAGLE Manual
Summary
Next: For all gates that should be fetched in sequence (e.g. the NAND gates of a 7400). This is also a good option for devices with a single gate. The ADD command first takes unused next-gates from components which exist on the current sheet before opening a new component. Must: For gates which must be present if some other gate from the component is present. Typical example: the coil of a relay. Must-gates cannot be deleted before all the other gates from that component have been deleted. Can: For gates which are only used as required. In a relay the contacts may be defined with addlevel Can. In such a case the individual contacts can be specifically fetched with INVOKE, and can later be deleted with DELETE. Always: For gates which as a general rule will be used in the schematic as soon as the component is used at all. Example: contacts from a multi-contact relay, of which a few are occasionally left unused. These contacts can be removed with DELETE, provided that they were defined with addlevel Always. Request: Only for components supply gates. The difference from Can is that they are not counted in name allocation. So a device with a Nextgate and a Request-gate will not be named IC1A and IC1B.
174
Component Design Explained through Examples Relay: Coil and First Contact must be Placed
A relay with three contacts is to be designed, of which typically only the first contact will be used. Define the coil and one contact as their own symbols. In the device, give the coil and the first contact the addlevel Must. All the other contacts are given the addlevel Can.
Relay with one coil and three contacts If the relay is fetched into the schematic with the ADD command, the coil and the first contact are placed. If another contact is to be placed, this can be done with the INVOKE command. The coil cannot be deleted on its own. It disappears when all the contacts have been deleted (beginning with those defined with addlevel Can).
175
EAGLE Manual
Package of a circuit board connector Now define a symbol representing one contact area. Set visible to Pad, so that the names 1 to 10, defined in the package, appear in the schematic.
Connector symbol for the schematic diagram Then fetch the symbol ten times into a newly created device, setting the addlevel in each case to Always, and use the CONNECT command to create the connections between the SMDs and the pins. When you now fetch this device into a schematic, all the connections appear as soon as it is placed. Individual connections can be removed with DELETE.
176
Component Design Explained through Examples Connector with Fixing Hole and Forbidden Area
A connector is to be defined having fixing holes. On the solder side (bottom), the Autorouter must avoid bringing tracks closer to the holes than a certain distance.
Fixing holes with restricted areas The drill holes are placed, with the desired diameter, on the package using the HOLE command. The drilling diameter can be retrospectively changed with CHANGE DRILL. The forbidden area for the Autorouter is defined in layer 42, bRestrict, using the CIRCLE command. For reasons of representational clarity the circle is shown here with a non-zero width. Circles whose width is 0 are filled. In this case it has no effect on the Autorouter, since it may not route within the circle in either case. These forbidden areas are also taken into account by a polygon in layer 16, Bottom.
177
EAGLE Manual
Text variables in the documentation field The text variables >DRAWING_NAME, >LAST_DATE_TIME and >SHEET are contained, as well as some fixed text. The drawings file name, date and time of the last change appear at these points together with the sheet number in the schematic (e.g., 2/3 = sheet 2 of 3). In addition, the variable >PLOT_DATE_TIME is available. It contains the date and time of the last printout. All of these text variables can be placed on the schematic, and (with the exception of >SHEET) on the board. The frame is defined in the device with addlevel Next, and the documentation field with addlevel Must. This means that the documentation field cannot be deleted as long as the frame is present.
178
179
EAGLE Manual
RS-274D, or subsets of it, is the commonest format, which can be generated with the CAM Processor. Therefore choose the devices GERBER and GERBERAUTO. In this case a file with the associated aperture table must be supplied, in addition to the files with the plot data. All the further explanations in this section are based on this format.
Drill Data
The generation of drill data is very similar to the generation of photoplot data. The aim is to create files which are sent to the board manufacturer. The appropriate device drivers are SM1000, SM3000, and EXCELLON. A drill configuration has to be defined before an output can be generated. The manufacturer must know this configuration, otherwise he cannot drill the proper holes. It is therefore advisable to send the drill rack configuration file along with the drill data file(s) to the manufacturer. EAGLE generates drill holes for the objects pads, vias, and holes. The appropriate data for pads and vias (plated-through holes) are generated if layer 44, Drills, is active during the CAM Processor output session. The data for holes (with no contact between different layers) are generated if layer 45, Holes, is active. Both layers must be active if all holes should be drilled together. If they should be drilled separately, either the Holes or the Drills layer must be active, and two separate files created. A tolerance can be specified for drills. In such cases please make sure that your Design Rules are maintained. The Rotate option given in the configuration is useful if the board appears in the Layout Editor in landscape format.
180
181
EAGLE Manual
File
demo.cmp
Active layers
Top Via Pad Via Pad $GND
Comments/recommended options
Component side. Options: pos. coord., optimize, fill pads. Multilayer inner layer. Options: pos. coord., optimize, fill pads. Multilayer supply layer. Is automatically output inverse. Options: pos. coord., optimize. Solder side. Options: pos. coord., optimize, fill pads. Component side silkscreen. Options: pos. coord., optimize. Solder side silkscreen. Only needed if there are components on the underside Options: pos. coord., optimize. Component side solder mask. Options: pos. coord., optimize. Solder side solder mask. Options: pos. coord., optimize. Component side cream frame. Options: pos. Coord., Optimize. Solder side cream frame. Only required if there are SMD components on the underside Options: pos. Coord., Optimize. Drilling data for NC drilling machines. Options: (rotate), pos. coord., optimize.
demo.ly2 demo.ly3
demo.sol
Bottom Vias Pads tPlace Dimension tName bPlace Dimension bName tStop bStop tCream bCream
demo.plc
demo.pls
demo.drd
Drills Holes
182
183
EAGLE Manual
The first message is generated by the entry in the Prompt field, and reminds you to delete the temporary files created when generating the aperture table when the job is done. The second message advises you that more than one signal layer is active at the same time. Normally only one signal layer is active while output is generated. However, when generating the wheel, all the layers need to be active at the same time in order to form a common aperture table for all Gerber output. Data for the following layers is subsequently output:
name.cmp name.sol name.plc name.stc name.sts component side solder side Silkscreen Solder stop mask, component side Solder stop mask, solder side
If other layers are also to be generated, e.g. silkscreen for the bottom side, or a solder cream mask, the Gerber job can be extended as required. Extending the job is discussed later in this section.
Job rs274x.cam
This job can be used as an alternative to gerber.cam if the circuit board manufacturer uses the Extended Gerber format. In contrast to gerber.cam, a separate aperture table is not created. The various Gerber files are simply output one after another.
Drill Data
A drill table is required first in order to create the drill data for a board. This is created from the Layout Editor by means of a User Language program. The drill data is then output with the CAM Processor. You proceed as follows: Load the board into the Layout Editor. Execute the drillcfg.ulp User Language program with the RUN command. It generates the boardname.drl drill configuration file. Start the CAM Processor (e.g. File/CAM Processor). Load the board into the CAM Processor (File/Open/Board) if it was not loaded automatically during the start sequence. Load the predefined job excellon.cam, e.g. with File/Open/Job.
184
Example of a drill configuration file: All dimensions are given here in inches. It is also possible to enter the values with their unit, e.g. 0.010in or 0.8mm. Comments in drill configuration files are identified by a semicolon, which may stand at the start of a line or be preceded by a space.
Info File
The file name.dri contains the missing drill diameters and other important information. It is written into the same directory as the output file.
185
EAGLE Manual
186
187
EAGLE Manual
CAM Processor: Solder side section of the gerber.cam job. The diagram shows the ending .whl in the Wheel line for the aperture table. This means that the file democmp.whl is looked for. The output (File) receives the name democmp.sol. The flag options Optimize and Pos. coords. are active. A tolerance of 6 1% is permitted for the aperture selection. This is necessary in order to compensate for small rounding errors (of around 0.00005 inch) that can arise during the conversion from mm to inch values as the aperture table is generated. The status line below shows which layout is loaded.
188
189
contained
in
3. Solder side (already contained in gerber.cam): 4. Silkscreen print, component side (already contained in gerber.cam): 5. Silkscreen print, solder side (already contained in gerber.cam): 6. Supply layer $GND (new in gerber.cam): 7. VCC inner layer (new in gerber.cam): 8. Solder stop mask, component side (already contained in gerber.cam): 9. Solder stop mask, solder side (already contained in gerber.cam): 10. Solder cream mask, component side (new in gerber.cam): 11. Solder cream mask, solder side (new in gerber.cam):
190
191
Aperture Emulation
If objects exist in a drawing which are not compatible with the available aperture sizes, it is possible to emulate the desired dimensions by selecting the Emulate Apertures option. The CAM Processor then selects smaller apertures to emulate dimensions which are not matched by aperture sizes. The file name.gpi indicates the need for emulation and which apertures must be emulated. Thermal or annulus apertures are only emulated with draw apertures if the Emulate Thermal or Emulate Annulus options, respectively, are activated. Note: emulation results in longer plot times and higher costs, so it should be avoided whenever possible.
Aperture Tolerances
If you enter tolerances for draw and/or flash apertures, then if the aperture with the exact value is not available the CAM Processor will use apertures within the tolerances. Please bear in mind that your Design Rules might not be observed as a result of allowing tolerances! Refer to file name.gpi for tolerances used.
192
x x x x x
All values default to inches, unless a unit is added (e.g. 0.010in or 0.8mm). Comments are marked with semicolons at the beginning of a line, or with a semicolon following a blank character.
193
EAGLE Manual
= = = =
With automatic wheel file generation ; avoids message! D%d ; (Aperture number) 10
194
195
EAGLE Manual
9.11 Documentation
Many documentation items can be generated with the aid of User Language programs. You can find a description of a ULP in the User Language programs branch of the tree view in the Control Panel, or at the start of a ULP file itself. In that case, examine the ULP with a text editor. Note also the wide range of programs that are made available on our web server.
Parts List
The parts list can be created by a number of User Language programs. One very convenient program for the generation of the parts list is bom.ulp. Start it from the schematic diagram editor, using the RUN command. The Bill Of Material window with the parts summary opens first.
bom.ulp: Dialog window It is possible to import additional information from a database into the parts list (Load), or to create a new database with its own properties such as manufacturer, stores number, material number or price (New). You can obtain further details about the current version of the ULP by clicking the help button. A simple parts list can also be created by means of the EXPORT command (Partlist option).
196
. Configuration of the drill symbols The buttons New, Change, Delete and Add can be used to create a new table, to modify certain entries, delete them or to add new ones. The Set button extracts all the hole diameters from the layout and automatically assigns them a drill symbol number. The values of Diameter and Width determine the diameter and line thickness of the drill symbol on the screen and in a printout. The image above shows that the drill symbol 1 is assigned to a drill diameter of 0.01 inch. In the following image you can see how the respective symbol drawn in layer 44, Drills, or 45, Holes looks like. The symbol number 1 looks like a plus sign (+).
197
EAGLE Manual
198
Appendix
A. Layers and their Usage
In Layout and Package Editor
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 Top Route2 Route3 Route4 Route5 Route6 Route7 Route8 Route9 Route10 Route11 Route12 Route13 Route14 Route15 Bottom Pads Vias Unrouted Dimension tPlace bPlace tOrigins bOrigins tNames bNames tValues bValues tStop bStop tCream bCream tFinish bFinish Tracks, top side Inner layer (signal or supply) Inner layer (signal or supply) Inner layer (signal or supply) Inner layer (signal or supply) Inner layer (signal or supply) Inner layer (signal or supply) Inner layer (signal or supply) Inner layer (signal or supply) Inner layer (signal or supply) Inner layer (signal or supply) Inner layer (signal or supply) Inner layer (signal or supply) Inner layer (signal or supply) Inner layer (signal or supply) Tracks, bottom side Pads (through-hole) Vias (through all layers) Airlines (rubber bands) Board outlines (circles for holes) *) Silk screen, top side Silk screen, bottom side Origins, top side (generated autom.) Origins, bottom side (generated autom.) Service print, top side (component NAME) Service print, bottom s. (component NAME) Component VALUE, top side Component VALUE, bottom side Solder stop mask, top side (gen. autom.) Solder stop mask, bottom side (gen. autom.) Solder cream, top side Solder cream, bottom side Finish, top side Finish, bottom side
199
EAGLE Manual
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 tGlue bGlue tTest bTest tKeepout bKeepout tRestrict bRestrict vRestrict Drills Holes Milling Measures Document Reference tDocu bDocu Glue mask, top side Glue mask, bottom side Test and adjustment information, top side Test and adjustment inf., bottom side Restricted areas for components, top side Restricted areas for components, bottom s. Restricted areas for tracks, top side Restricted areas for tracks, bottom side Restricted areas for via-holes Conducting through-holes Non-conducting holes Milling Measures Documentation Reference marks Detailed top screen print Detailed bottom screen print
*) Holes generate circles with their diameter in this layer. They are used to place restrictions on the Autorouter.
Layers can be used with their names or their numbers. Names can be changed with the LAYER command or in the DISPLAY menu. The functions of the special layers remain. If you want to create your own layers, please use layer numbers above 100. Use the DISPLAY menu to create new layers (New button) or type the LAYER command on the command line. If you want to create, for example, layer 200, Remarks, type in: LAYER 200 Remarks To set up color and fill style of this layer use the DISPLAY command.
200
Appendix
B. EAGLE Files
EAGLE uses the following file types:
Name *.brd *.sch *.lbr *.ulp *.scr *.txt *.dru *.ctl *.pro *.job *.b$$ *.cam *.erc *.b#x *.s#x *.l#x *.b## *.s## *.l## Type of file Layout Schematic Library User Language Program Script file Text file (also other suffixes) Design Rules Control parameter for the Autorouter Autorouter protocol file Autorouter job Backup file of brd after finishing the Autorouter CAM Processor job Error file from electrical rule check Backup file of BRD (x Backup file of SCH (x Backup file of LBR (x Automatic backup file Automatic backup file Automatic backup file = 1..9) = 1..9) = 1..9) of BRD of SCH of LBR
EAGLE for Linux only creates and recognizes lower case characters in file endings!
201
EAGLE Manual
Where:
xxx Further data, e.g. file name as with -W or a decimal number as with -s. Examples: -W /home/user/eagle/project/aperture.whl -s 1.25 - Default for option is off + Default for option is on Example: -e Aperture Emulation on
202
Appendix
-e+ -editto Aperture Emulation off
Flag options (e.g. -e) can be used without repeating the - character: -eatm -ea-t+ Aperture emulation on, annulus and thermal emulation on, mirror output Aperture emulation on, NO annulus emulation, thermal emulation on
Defining tolerance values: If there is no sign, the value applies to either direction, + signifies a positive tolerance, - a negative tolerance. -D0.10 -D+0.1 -D-0.05 adjusts the draw tolerance to 610% adjusts the draw tolerance to +10% and -5%
Notes on the individual options: -D -E -F -O Draw Tolerance (0.1 = 10%): Default: 0 Drill Tolerance (0.1 = 10%): Default: 0 Flash Tolerance (0.1 = 10%): Default: 0 Route-Optimizing: With this option the route-optimizing for the plotter can be turned on and off. Default: on Plotter Pen (layer=pen): If you use a color pen plotter, you can determine which layer is to be drawn in which color. Example: -P1=0 -P15=1 Drill Rack File: With this option you define the path to a file with the drill configuration table. Script File: When opening the editor window, EAGLE executes the eagle.scr file. This option allows a different name or directory to be selected for the script file. The script file is not read by the CAM Processor.
-P
-R -S
203
EAGLE Manual
-W -X -a -c Aperture Wheel File: This option defines the path to the wheel file which should be used Calls command line version of the CAM Processor Annulus Symbol Emulation: Default: off Positive Coordinates: If this option is set the CAM Processor creates data without negative coordinates. The drawing is moved to the zero-coordinates. This option can be turned off with the option -c-. Please be careful with this option, especially if you use mirrored and rotated drawings, because negative coordinates normally cause problems. Default: on Device: This option determines the output driver. The following command displays a list of the available drivers: eagle -d? -e Emulate Apertures: If this option is selected, apertures that do not exist are emulated with smaller apertures. If this option is turned off, no apertures are emulated. Thermal or annulus apertures are not emulated either Default: off Fill Pads: This option can only work with generic devices like Postscript. Default: on for all devices Page Height (inch): Printable region in the y-direction (in inches). The Y direction is the direction in which the paper is transported. See also the -w parameter. Mirror Output: Default: off. Output File Name Pen Diameter [mm]: EAGLE uses the Pen-diameter measurement to calculate the number of lines required when areas are to be filled. Default: 0
-d
-f
-h
-m -o -p
204
Appendix
-q Quick Plot: Generates a draft or fast output, which only prints the frames of the objects. Default: off Rotate Output: Rotates the output by 90 degrees. Default: off Scale Factor: Those devices which cannot change their scale-factor (in the menu of the CAM Processor), have a scale factor of 1. Default: 1 Emulate Thermals: Works only in combination with -e+. Default: off Rotate Output by 180 degrees: In combination with -r+ one can rotate by 270 degrees. Default: off Pen Velocity in cm/s: This option is for pen plotters supporting different speeds. To select a plotters default speed, use a value of 0. Default: 0 Page Width (inch): Printable area in x direction. See also -h. Offset X (Inch): This option can be used to move the origin of the drawing. Default: 0 Offset Y (Inch): Default: 0
-r -s
-t -u -v
-w -x -y
205
EAGLE Manual
206
Appendix
E. Text Variables
Text variable Meaning >NAME >VALUE >PART >GATE >SHEET Component name (eventually + gate name) 1) Component value/type 1) Component name 2) Gate name 2) Sheet number of a circuit diagram 3)
>DRAWING_NAME Drawing name >LAST_DATE_TIME Time of the last modification >PLOT_DATE_TIME Time of the plot creation 1) Only for package and symbol 2) Only for symbol 3) Only for symbol or circuit diagram
F. Error Messages
When Loading a File
Library objects with the same names.
The text editor shows this message if you attempt to load an older file (BRD or SCH) that contains different versions of a library element. In this case it added @1, @2, @3... to the names of the devices so that they can be identified. This message can also appear if you use CUT and PASTE commands.
207
EAGLE Manual
Pad Replaced with a Hole
In older versions of EAGLE it was possible to define pads in which the hole diameter was larger than the pad diameter. This is no longer permitted. If you attempt to load a library file that was created with an earlier version and that contains such a pad, the following message appears:
The pad or via is automatically converted into a hole, provided it is not connected by CONNECT to a pin in one of the library's devices. If there is such a connection to a pin, the following message appears:
In that case the file must be manually edited in order to correct the pad.
208
Appendix
Can't update files prior to version 2.60
If this message appears when loading an EAGLE file that was made with a version earlier than 2.60 it is necessary first to convert the file.
The program update26.exe, which is located in the eagle/bin directory, is used for this purpose. Copy the file that is to be converted into the directory containing both update26.exe and the file layers.new. Then open a DOS window under Windows, and change into this directory. Type the command: update26 dateiname.ext The file is converted, after which it can be read by the new version of EAGLE. If the conversion is successful, the message in the DOS box is: ok... If the message Please define replacement for layer xxx in layers.new should appear, it means that you have defined your own layers in layout/schematic/library. Because of the new layer structure used since version 2.6, a new layer number (greater than 100) must be assigned. This requires you to edit the file layers.new using a simple text editor, adding, for example, a new layer number as the last line of the file. If, for instance, you have used layer 55, and want to give it number 105, enter: 55 105
209
It is allowed to CHANGE pins or pads. To change the number of pins/pads you have to delete the corresponding device(s) first (REMOVE command).
This message always appears if you have drawn a signal polygon in the layout whose line thickness is less than the resolution of the selected output driver (Device). In order to avoid unnecessary large plot files you should assign a higher value to the polygons line width (CHANGE width).
210
Index
A
Action toolbar 35,37 Add Components 40 ADD 40,47,55 Addlevel 174 Airwire 12 Alt-X 30 Always 174 Annulus aperture 191,192 Annulus symbol 12,95 Aperture Configuration 182,192,195 Draw 192 Emulation 192 Fixed wheel file 191 Flash 192 Forms 193 Shapes 193 Tolerance 192,195 Units 195 ARC 41,49 ASSIGN 42,62,75 AUTO 49 Automatic naming 69 Autorouter 117 Backup 131 Control file 133 Cost Factors 124 Design Rules 120 Features 117 Grid 120,121 Interrupting 131 Layer 122 Load parameters 128 Log file 132 Memory requirement 122 Menu 128 Min. distance/clearance 120 Minimum grid 117 Preferred direction 111,117,123,128 Restarting 130,131 Restricted areas 123 Ripup/Retry 127 Run 128 Save parameters 128 Select signals 129 Single-sided boards 134 Status display 132 Supply layer 130,190 Supply polygons 131 Track width 120 Unreachable SMD 122 Autorouter module 22
Back annotation Background adjustment Backup Backup copy Bend Inserting BMP graphic Board Components on both sides Creation BOARD bRestrict Bubble help BUS Bus router
CAM Job Extended Gerber Gerber Output Section CAM Processor Aperture tolerances Drill data
Drill plan 197 Flag options 186,189 Gerber output 191 Job 189 Messages 183 Output file name 187 Photoplot output 191 Start from a Batch 202 Can 174 Caption 115 CHANGE 39,47,56,75,141 Change font 40 Change package 102 Checking Layout 106 Schematic 89 CIRCLE 41,49 CLASS 42,87 Clearance 93 Clk 142 CLOSE 42 Command language 64 Command line 36,61 Command parameters 37 Command toolbar 36 Commands ADD 40 ARC 41 CHANGE 39 CIRCLE 41 COPY 39 CUT 39 DELETE 39 DESCRIPTION 57 DISPLAY 38 DRC 50 ERRORS 50 EXPORT 71 GATESWAP 40 GROUP 39 INFO 38 INVOKE 40 MARK 38
MIRROR 39 MOVE 38 NAME 40 PACKAGE 56 PASTE 39 PINSWAP 40 POLYGON 41 PRINT 113 RECT 41 ROTATE 39 SHOW 38 SMASH 40 SPLIT 40 TECHNOLOGY 56 TEXT 40 UPDATE 43 USE 44 VALUE 40,147 WIRE 40 WRITE 44 Component design 137 Component insertion machines 181 Component list 71 Configuration Commands 75 EAGLE conf. 75 EAGLE.SCR 76 EAGLERC 78 Project file 79 CONNECT 56,146,165 Connector 175 Consistency 41,74 Context menu 28 Control panel 25 Coordinate display 38,46 Coordinate display 36 Coordinates Entering 61,67 Copper plane 105 Copy 39 COPY 39,46 Creamframe 97 Current unit 68
33 39,47
194 72
Default Default directories Default settings Delete From library Sheet DELETE Design Rule Check Design rules Desktop publishing Device driver Device set Diameter of lands Dimensions of pads Directories Directory Default DISPLAY Distance Documentation Documentation print Dot DotClk Drag&Drop Drawing Frames Name DRC Errors Drill Configuration Data Diameter Hole diameters Info file Plan Rack file Tolerance DRILLCFG.ULP
12 30 75 51,137 43 39,47 50,91 27 195 194 12 90 90 30 30 38,46 93 196 139 142 142 25 178 50,177 178 12,50 107 12 180,185 184 177,197 90 185 197 186 180 184
$EAGLEDIR 31 EAGLE.DEF 194,195 EAGLE.EPF 79 EAGLE.SCR 76 EAGLECON.EXE 202 EDIT 42,51 Edition Light 23 Professional 22 Standard 23 Electrical Rule Check 13,89 Enter key 36 Environment variable 31 EPS format 195 ERC 13,41,49,74,89 Error correction 106 Error messages 207 DRC 107 Number of e. 98 ERRORS 50,106 EXCELLON 180 EXCELLON.CAM 184 Exit program 30 EXPORT 42,63,71,89
File Open Print Save File menu New Open Film generation Film maker Fixing hole Font check Forbidden areas Forward&Back Annotation
Function keys
38,42,62,75
>GATE Gate GATESWAP Generate data GERB274X.CAM Gerber Fixed aperture wheel Information file GERBER GERBER.CAM GERBER_RS274X GERBERAUTO GND symbol Graphic format Grid Current unit GRID LINES Ground layer GROUP
173 164,173 40,87 58 179 191 192 183 183 179 183,190,195 171 72 68 37,75 65 111 39,47
183,189 58 41,86
$HOME Help function History function Hiz Hole HOLE HOME variable Housings Exchanging
31 36 62 143 13 49 31 102
LABEL Labeling >LAST_DATE_TIME LAYER Layout Specify outline Layout editor Library Closing Copy a Package Copy a Symbol Editor List contents Opening Output script Use Library editor Library summary License Extending L. New installation Line Type
Manufacturing data MARK MENU Menu bar Minimum clearance MIRROR Mixed input Mouse click Mouse keys Mouse Wheel Zoom MOVE Multilayer boards Multiple board creation
Must
174
>NAME NAME NC Neighboring objects Selecting Net Connection point NET Net Classes Net script Netlist Network License Next None
Object properties Pre-setting OC OPEN Optimization OPTIMIZE Options CAM processor Options menu Orientation Out Output See Also Export as CAM job Device Drawings Drivers Files Parameters
38 75 143 43 119 48 186 30 142 143 186 189 186 43 194 186 58
Editing 52 Renaming variant 165 Replacing 48,102 PACKAGE 56 Pad 13 Appearance in editor 95 Form 95 PAD 52 Parameter toolbar 35 >PART 173 Parts list 71,196 Pas 143 PASTE 39,47 Path specification 31 PBM graphic 72 PGM graphic 72 Photoplotter 112 Annulus aperture 192 Pin 13 Connecting point 85 Direction 88,143 Function 142 Length 142 List 89 Names 145 Parameter 142 Superimposed 89 PIN 53 Pin/pad connection 146,165 Pin/pad list 71 PINSWAP 40,48,87 >PLOT_DATE_TIME 178 PNG graphic 72 Polygon Invalid 106 Rank 111 Thermals 111 POLYGON 41,49,105,111 PostScript 112,195 Pour 105 Power Supply 88 Supply Layer 110
PPM graphic PREFIX PRINT Printout time Product information Product registration Project Creating File (EPF) Management Prototype manufacture Pwr
Q R
43 69
Rack file Rank Ratio Ratsnest RATSNEST RECT REDO REMOVE Rename Device Package Symbol RENAME REPLACE Request Resistor Device Package Symbol Restring width RIPUP ROTATE ROUTE Routing Automatically Manually
13,185,186 105 140 13 49,101 41,49 38 43,51,137 138 138 138 51 48,103 174 145 138 141 93 48,104 39,46 48,104 117 104
Schematic Entry Grid Module New sheet Points to note Symbol Symbol, labeling SCRIPT Script files Search devices Section Select objects Serial number SET Shape of lands >SHEET Sheet Delete Max. number New SHOW Signal Show name SIGNAL Signal layers Silkscreen SM1000 SM3000 SMASH SMD Change Placing Round SMD Solder cream mask Solder stop mask Spaces
81 82 21 82 89 145 173 37 63,70 83 189 44 34 43,75 90 178 82 21 82 38,46 13 104 49 110 139 180 180 40,48,84 52,139 156 155 156 97 96,184 65
Spacing SPLIT Status display Stopframe Sup Superimposed pins Supply Autorouting layer Defining symbol Hidden gates Invisible Pin Layer Pin Symbol Swaplevel Symbol Copy Editing mode Labeling
105 40,48 132 96 88,143 89 130 162 84 169 123 169 13,171 144 13 54,159 53 173
tRestrict
123
>VALUE VALUE Variants Vector font Persistent in drawing Via VIA vRestrict
Technology Changing Termination Of command Text In copper layer Menu Size, thickness Variables TEXT Text Editor Text menu Thermals In polygons In supply layers Title bar Tool tips Track Decompose Width Tree view Update
Wheel file Wheel mouse Window Menu Number Wire WIRE Wire style WRITE
X Z
72 72
33