Capture Projects Explained
When you set up your project by following the
File → New → Project menu path, you had five options from which to choose: a project, a design, a library, a VHDL file, or a Text file. The options we are most interested in are projects and libraries, and we look at those in great detail throughout the book. VHDL files are used in field programmable gate array projects and are not discussed here. A Text file is simply a text file (for making project notes, for example).
After you selected the
New Project option to begin setting up your project, four more options were available to you in the
New Project dialog box:
Analog or Mixed-Signal A/D,
PC Board Wizard,
Programmable Logic Wizard, or
Schematic. A flow diagram of these options and suboptions is shown in
Figure 3-1 (see also
Figure 2-2).
Analog or Mixed-Signal A/D is used to simulate analog and/or digital circuits using PSpice. PSpice is used to develop and test models (
Chapter 7), perform circuit simulations (
Chapter 7 and the PCB Design Examples), and simulate transmission lines (PCB Design Examples). For now, we work mostly with the second option, the
PC Board Wizard, while we focus on designing PCBs. The next option,
Programmable Logic Wizard, is for working with programmable devices and is not discussed in this text. A
Schematic is basically just a design file with only a schematic and a parts cache. The thick green line in
Figure 3-1 shows the path you followed in
Chapter 2, that is,
File → New → Project → PC Board Wizard → No Simulation.
There are four types of OrCAD libraries. As shown in
Figure 3-2, these four libraries have three file extensions. There are two types of OLB libraries: an LIB library and a symbols library, which contains .dra files as well as some
other files that are explained in detail in
Chapter 8. Inside the capture folder is a library folder, which contains one of the types of OLB files, and a folder called
pspice, which contains the other types of OLB files. The OLB files located directly in the Capture library folder contain simple schematic part symbols and are the ones we used in
Chapter 2. The libraries located in the pspice folder contain parts with schematic symbols, too, but the parts also contain PSpice templates, which are links to specific PSpice models. The PSpice models to which templates point are located in the main OrCAD pspice folder (shown at the bottom of
Figure 3-2). Individual models are grouped into various PSpice library files, which contain the .LIB extension. The share folder contains the footprint models (called
symbols), which are files with the .dra extension. Most parts in Capture are capable of having a PSpice template or a footprint assigned to them, but only some parts have them preassigned. It may seem
backward, but only parts from the PSpice part library (located in the Capture/library folder) have preassigned templates and footprints, and the footprints are OrCAD Layout footprints not PCB Editor footprints. So, in
Chapter 2, when you worked with the PCB Project Wizard, you selected libraries from the Capture/library folder, which had parts with schematic symbols but had no PSpice simulation capabilities or footprints assigned to them.
Once you clicked
Finish in the
PCB Project Wizard box, Capture opened up the
Project Manager window shown in
Figure 3-3. Behind the scenes, Capture generated two files: an OrCAD project file (name.OPJ) and a design file (name.DSN). These files will be in the directory you chose when you set up the project.
As you look at the
Project Manager window, you can see that a project contains three folders labeled
Design Resources,
Outputs, and
Referenced Projects. Initially, the
Outputs and
Referenced Projects folders are empty. When a netlist is created, netlist files are placed in the
Outputs folder. The
Design Resources folder contains one design (represented by the icon) and a
Library folder. A project can have only one design, but a design can have several subfolders, which in turn may contain several different items. The
Library folder contains links to the libraries used by your design. We discuss library management in
Chapter 7. The design contains at least one Schematic folder (the root folder) and a
Design Cache folder. A design can contain multiple Schematic folders, and each Schematic folder can contain multiple schematic pages. The
Design Cache folder contains a record of each part you used in your design. If you modify one of the parts on a Schematic page, Capture makes a copy of it (leaving the original part in the library unchanged) and adds a record of the modified part to the design
cache. A design with one Schematic folder and one or more Schematic pages connected together by off page connectors is called a
flat design. A design with more than one Schematic folder and one or more Schematic pages per folder or that contains hierarchical blocks is called a
hierarchical design. Hierarchical designs are not discussed here, since they are not used with PCB design projects. For more information on project details, see
Chapter 2 of the
Capture User’s Guide, under “Starting a New Project” (cap_ug.pdf in the OrCAD_16.0/DOC folder).
Capture Part Libraries Explained
Once the project is set up, the next step is to open the Schematic page (if it is not already open) and begin placing parts from the
Place dropdown menu. When the
Place Part dialog box opens (see
Figure 3-4), it shows a list of libraries (in the
Libraries window) and a list of the parts (in the
Part List window) within a library. If you select a part within one of the libraries, you can see what the part looks like in the preview window, as pointed out in
Figure 3-4(a). The libraries listed in the
Libraries window are ones that were added by the PC Board Wizard when you set up the current project and libraries that were added to the list during previous projects. You can add other libraries to the list by clicking the
Add Library… button. Likewise, you can remove a library from the list by selecting it and clicking on the
Remove Library button. The libraries that are listed may be from the Capture or the PSpice library. It is not obvious
which library it is from just by looking at the name, (compare
Figures 3-4(a) and 3-4(b)). However, if you have Windows ToolTips turned on and hold your mouse over the library name, the ToolTips text box will show the path of the library, (see
Figure 3-4(a)). From the path, you can tell which type of library it is. Another important note is that, if a PSpice or Layout library (not a PCB Editor library) is associated with the Capture part, you will see one or both of the icons below the part preview window, as shown in
Figure 3-4(b). If no icons are present, it means that it is just a Capture schematic part that has no footprint or PSpice template (models) assigned to it.
As you place parts in your design, Capture keeps track of the parts and stores the information in a database file generated the moment you place your first part. This file has a .DBK extension. After you finish your design and tell Capture to make the PCB Editor netlist, Capture generates three more files that describe which parts were used and how they were connected. The files are
pstxnet.dat (the netlist file),
pstxprt.dat (the reference designator and device type file), and
pstchip.dat (a device definition file also used for pin swapping, etc.); and they are located in the
Outputs folder. These files are also used when back-annotating information from PCB Editor to Capture. More on back-annotation is discussed in the PCB Design Examples. For the most part, these files are used behind the scenes, and you need not know much about them for what we cover in this text. If you want to know more about them, please see
Allegro®
PCB Editor Users Guide: Transferring Logic Design Data (algrologic.pdf, p. 18) which is located in the OrCAD documents folder.
Another file that gets created is the netrev.lst file, which is a netlisting report generated when the PCB Editor netlist files are created. If there is a problem during the netlisting process, this is where the errors and warnings are documented. If you have trouble trying to create a netlist, open this file with Microsoft Word or another text application and search for the word
error or
warning. An example of a netlist error is given in the PCB Design Examples.