Swapping in Allegro Design Entry CIS and PCB Editor Flow: Product Version 16.5 October 7, 2011

Download as pdf or txt
Download as pdf or txt
You are on page 1of 30

Swapping in Allegro Design Entry CIS and

PCB Editor Flow

Product Version 16.5


October 7, 2011
Copyright Statement

© 2011 Cadence Design Systems, Inc. All rights reserved worldwide. Cadence and the
Cadence logo are registered trademarks of Cadence Design Systems, Inc. All others
are the property of their respective holders.

October 7, 2011 2 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Contents

Purpose ............................................................................. 5
Terms ................................................................................ 6
Audience ........................................................................... 8
Pin Swapping .................................................................... 9
Pin Swapping settings in Allegro Design Entry CIS ..................................................... 9
Pin Swapping in Allegro PCB Editor .......................................................................... 14
Creating a Pin Swap Report ...................................................................................... 15
Pin Swapping Using Placement Edit.......................................................................... 16
Back Annotate to Capture CIS ................................................................................... 17
Gate or Function Swapping ............................................. 19
Gate swapping settings in Allegro Design Entry CIS ................................................. 19
Gate Swapping in Allegro PCB Editor ........................................................................ 21
Back Annotate to Capture CIS ................................................................................... 23
Important points about Gate/Function Swap .............................................................. 24
In Capture CIS Schematic ...................................................................................... 24
Functions to be swapped must............................................................................... 25
Property assignments restrict swapping functions interactively.............................. 25
Component Swapping ..................................................... 27
To swap components interactively ............................................................................. 27
You cannot swap components ............................................................................... 27
Swap Functionality - Terms ............................................. 28
References: ..................................................................... 30

October 7, 2011 3 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

October 7, 2011 4 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Purpose
Swapping is one of the key contributors to quicken the PCB design flow. Due to the
increase in design complexity and smaller board size, routing in PCB board has become
more challenging. Designers are always looking for ways to ease routing complexity
and hence reduce the time to market. Based on the different critical routing situations
like differential pairs, bus routings, critical nets, clock signal etc., PCB designers may
seek the possibility of swapping at different levels and at different stages of the design
flow.

In the Cadence PCB flow, there are fast and easy ways to perform Pin Swapping, Gate
Swapping and Package Swapping which helps designers to synchronize the schematic
and board. This application note describes the swapping techniques in the Cadence
PCB Flow using „Allegro Design Entry CIS‟ as front-end and „Allegro PCB Editor‟ as
back-end software.

October 7, 2011 5 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Terms
HOMOGENEOUS PART: If all the parts in a package are identical except for the pin
numbers, the package is homogeneous. For example, IC 7400 is homogeneous: the
four NAND gates are identical, except for their pin numbers

Fig 1. Homogeneous Package having four parts

HETEROGENEOUS PART: If the parts in a package have different graphics, numbers


of pins, or properties, the package is heterogeneous. A relay, which has a normally
opened switch, a normally closed switch, and a coil, is heterogeneous: the three
physical parts differ in graphics, number of pins, and properties.

PIN SWAPPING: Method to perform pin-swapping in Allegro PCB Editor among the
pins of specific group. Swaps can take place between two pins on the specified part.
Only pins of the same type and shape on the part can be swapped. The pins are
identified by name or number. The schematic designer needs to obey some rules so
that those set of pins could be swappable in Allegro PCB Editor. Ex: Referring Fig1, you
can perform pin swapping among input pin viz pin numbers 1-2, 4-5, 9-10 and 12-13 if
they belong to same PinGroup. Or you can perform pin swapping among input pins viz
1,2,4,5,9,10,12 & 13, if they belong to same PinGroup.

GATE/FUNCTION SWAPPING: Method to perform Gate swapping in Allegro PCB


Editor among specific group of gates. Referring Fig.1, U1A, U1B, U1C and U1D can be
swapped among themselves or with another package like U2A, U2B, U2C and U2D. If
there is single part package, a gate swap would result in a component swap with the
package of the same type.

October 7, 2011 6 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Examples:-

GATESWAP U1 U2 ; Change part U1 to U2 and ; part U2 to U1


GATESWAP U1A U1B ; Swap gates A and B on U1
GATESWAP U1C U2B ; Swap gates U1C and U2B

COMPONENT SWAPPING: Method to perform packaging (IC) swapping in Allegro PCB


Editor which would ONLY result in the footprint‟s co-ordinate change in the board.
However, no connectivity change will take place.

BACK-ANNOTATE: This is a process where the user updates the schematic design
with the board change. Due to different design constraints like adding/deleting
constraint property/renaming refdes/swapping/etc, PCB designer may modify the board
content. To synchronize the schematic with the modified board, users have to perform
back-annotation and update the schematic.

SWAP FILE: For PCB designs, a swap file is a text file containing old and new part
references for use with the Back Annotate command. Swap files are typically created by
another application, such as PCB Editor. You can also create a swap (.SWP) file using
any text editor that saves files in ASCII format.

SWAP_INFO: The SWAP_INFO property, allows the swapping of pins across split
symbols in the Allegro PCB Editor. A common example of pin swapping occurs for
devices that have a large pin count. In the example given below, the device symbol is
split across five smaller physical sections. These symbols are then grouped into two
logical sections using the SWAP_INFO property.

Example:-

SWAP_INFO=(S1+S2),(S3+S4+S5)

The SWAP_INFO property allows the swapping of pins with the same PIN_GROUP
property across split symbols that belong to the same logical section. For example, pins
with the same PIN_GROUP property in S1 and S2 can be swapped with each other.
Similarly, pins with the same PIN_GROUP property in S3, S4, S5 can be swapped with
each other, where S1, S2, S3, S4, and S5 represent physical.

October 7, 2011 7 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Audience

The purpose of this Application Note is to reach the audience most likely for Capture
CIS-Allegro flow users who want to understand the different possibilities of swapping in
Cadence flow, all the properties involved in swapping and how those modifications can
be back-annotated to update the schematic. The Application Note includes a quick-set
of clear and concise basic steps that should be scrupulously followed to avoid a majority
of swapping problems. The focus is on understanding the importance of swapping and
the all steps involved in the Capture CIS-Allegro Flow.

October 7, 2011 8 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Pin Swapping
To perform pin swaps in Allegro PCB Editor and then back annotate those changes, a
user must first setup the pin properties in Capture CIS. Pin swap specifications will be
produced only if the Swap ID properties are set correctly on pin-swappable parts.

Pin Swapping settings in Allegro Design Entry CIS


Pin swapping process:

1. In Capture CIS, open the part library containing the part for which the pins are to
be swapped. Choose File > Open > Library > Browse the part library.
2. Double click the part to open it in the library editor.
3. Open the package view for the part. Choose> View > Package.
4. Open Package Properties dialog box. Choose Edit > Properties.

Fig 2. Package properties dialog box showing PinGroup assignment.

5. Place a unique number in the PinGroup column for specific pins you want to
swap within the gate. Pins with same value of pin group can be swapped. Say, if
user wants to swap among all input pins then the user could assign 1 to all input
pins and 2 to all output pins, as shown in Fig 2.

If there is a multi-section homogenous part, then set the PinGroup value for one
section; the part editor adds the same value for all the other sections
automatically.

October 7, 2011 9 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

For example, on a 7400, set the PinGroup to 1 for pins 1 and 2. Leave the other
PinGroup values blank and they are filled in automatically when you click the
“Update” button. Set PinGroup = 1 for pins 1 & 2 and similarly set PinGroup = 2
for pin 3 and click “Update” button.

Fig 3. Package Properties dialog box of Homogenous Part.

6. Select a pin in a Capture CIS schematic and edit its properties by opening the
property editor window. The value shows as the Swap Id property. The default
value is –1, meaning the pin is not swappable. So, the user must add the
PinGroup property to enable pin swapping for the part. If a pin swappable, and
later you decide to remove the swapability of the part, then just delete the
PinGroup property in the Package Properties (Fig 3). Any change done at library
level should be updated to the schematic page using Update Cache command.

Note: Swap Id value of 0 and greater implies that the pin is swappable.

October 7, 2011 10 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Fig 4. Property Editor showing Swap Id under Pins tab

7. Also, assign a property SWAP_INFO:

a. Open the library containing the part.


b. Double-click the part to open the part in the library editor.
c. Choose Options > Part Properties.
d. Check if it has a property SWAP_INFO defined. If it does, make sure that
the sections defined are the ones within which you want to swap pins.

ELSE

e. Click "NEW" and defined SWAP_INFO property as shown below.

Fig 5. User Properties dialog box at Library level

Here, you are allowed pin swap within all 4 sections. If you want to restrict pin
swapping within some sections then change the value of SWAP_INFO as follows. For
E.g. SWAP_INFO = (S1+S2),(S3+S4) will only allow pin swap of 1st section with 2nd
section or vice-versa and not with other 2 sections (i.e. S3 and S4). And pin of 3rd
section can only be swapped with pins of 4th section and vice-versa.

October 7, 2011 11 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

NOTE: Only pins with same pin group property can be swapped.

8. Go to your design and expand the “Design Cache” folder in Project Manager.
Locate the part. Right Mouse Click and choose Update Cache.

If there is any change at library level, to synchronize the change with the design you
have to perform “Update Cache” command.

9. Save the design.


10. Generate an Allegro netlist by choosing Tools > Create Netlist > PCB Editor
(tab).

Fig 6. Create Netlist Dialog Box

Complete the appropriate options in the dialog box.

11. Create the board automatically by checking "Create or Update PCB Editor Board
(NETREV)".

October 7, 2011 12 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

If you do not generate a board during netlisting by enabling this option in the Create
Netlist dialog box, you could import the schematic logic to Allegro PCB Editor using
the File > Import > Logic command in PCB Editor.

October 7, 2011 13 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Pin Swapping in Allegro PCB Editor


Once you have successfully imported the netlist in PCB Editor, you need to perform
component placement in the board.

To perform the pin swapping:

1. Choose Place > Swap > Pins.

Fig 7. Pin Swap command in PCB Editor

2. Select pin that you need to swap.


3. PCB Editor highlights the pins available for swap. If no pins are highlighted, then
read the command window at bottom for appropriate message.

As you can see in Fig. 8, all input pins of other sections are also highlighted because
of SWAP_INFO=(S1+S2+S3+S4)

October 7, 2011 14 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Fig 8. All swappable pins are highlighted in PCB Editor

4. Select the pin to swap. Check the message in the command window for
successful swap. In this case, U1.1 is swapped with U1.2.
5. Rightclick and choose Done, to complete the operation.
6. Once the swapping is complete, repeat the same for other pins if needed. Save
the board.

Creating a Pin Swap Report


You can create a standard Pin Swap report if you may want to cross check the valid
pin swapping on the board. Go to Tools > Reports > Pin Swap Reports.

The Reports dialog box displays.

October 7, 2011 15 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Fig 9. Reports Dialog Box and Sample Pin Swap Report

Pin Swapping Using Placement Edit


All pins are tracked using the property LAST_PIN_SWAP that is attached to the pin.
The property value is the name of the pin with which it was last swapped.

Note: Updating an Allegro design from the schematic or third party netlist causes all
pin swap properties to be deleted.

To swap pins interactively, choose Place – Swap – Pins. You can also execute the
command from within Placement Edit application mode by selecting the first pin, then
clicking the right mouse button and choosing Swap Pins from the popup menu.

The placement edit application mode can be activated in several ways.

October 7, 2011 16 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

You can:

1. Choose the menu option Setup > Application Mode > Place Mode
2. Enter placemode in the Command Console window.
3. Click the appropriate toolbar icon (if added to your toolbar).
4. Right click and choose Application Mode – Placement Edit

Back Annotate to Capture CIS


After the board designer has completed placement and routing task, the schematic
should be updated for any changes on the board.
To update the schematic using Back-annotation process:

1. Select the .dsn in Project Manager. Choose Tools > Back Annotate command in
Capture CIS and select the appropriate options in the Back-annotate dialog box.

Fig 10. Backannote Dialog Box

2. Check for swapped pins in swap file (.SWP file) which clearly indicates about the
swapping of U1.1 and U1.2

October 7, 2011 17 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Fig 11. Content of Swap file (.swp) showing the swap.

Since “Update Schematic” option is checked, you can also see pin swapped for
U1A in the schematic, as highlighted in below screenshots

Fig 12. Capture CIS schematic BEFORE and AFTER Pin-Swap.

NOTE:

Pins in a function with a NO_SWAP_PIN or a FIXED property attached are ineligible


for swapping.

The examples shown here are only to demonstrate the tool functionality. User needs
to assign the PINGROUP property taking care of design requirements.

October 7, 2011 18 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Gate or Function Swapping


This section describes Gate swap in PCB Editor. Gate swapping is described using the
example of the gates U1B and U1D (see Fig1).

Gate swapping settings in Allegro Design Entry CIS


Here, it is assumed that user has followed the guidelines mentioned in “Pin Swapping
settings in Allegro Design Entry CIS” section.

For Heterogeneous parts also you need to obey the basic rule as discussed in the “Pin
Swapping settings in Allegro Design Entry CIS” section. Below are few screenshots
which clarifies how a heterogeneous part looks like and how Gate swapping properties
have been assigned.

Fig 13 . Heterogeneous package with four parts with uneven pin count and pin
type.

October 7, 2011 19 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Fig 14. Pin distribution of Heterogeneous package and PinGroup assignment.

Fig 15. SWAP_INFO property to control the valid Pin swapping

October 7, 2011 20 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Gate Swapping in Allegro PCB Editor


1. Select Place > Swap > Functions.

Fig 16. Menu option for Function Swap.

2. Select a pin of the Gate/Function that needs to be swapped.


3. Allegro highlights the Gate/Functions available for swap.
If no pins are highlighted then read the bottom window for appropriate message.

Fig 17. All swappable Gates are highlighted in PCB Editor

October 7, 2011 21 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

4. Select the desired Gate pins to swap.


Check the message in Command window for successful swap. In this case, U1-B is
swapped with U1-D.
5. After swapping right-click and choose Done.
6. Repeat the same for other Gates if needed.
7. Save the board.

October 7, 2011 22 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Back Annotate to Capture CIS

1. Select Tools > Back Annotate command in Capture CIS.


2. Select the appropriate options in the Back-annotate dialog box.

Fig 18. Backannote Dialog Box

3. Check for swapped Gate in swap file (.SWP file) which clearly indicates about the
swapping of U1.B and U1.D

Fig 19 . Content of Swap file (.swp) and Schematic connection after Swap.

October 7, 2011 23 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Fig 20 . Schematic connection BEFORE Swap.

4. Since “Update Schematic” option is checked so Gate swap is updated in the


schematic.

Important points about Gate/Function Swap


In Capture CIS Schematic

- Gate swap is ONLY possible between parts with identical pin count and pin type.
- To perform Gate swap in Heterogeneous package, in addition to above point, pin
name of respective swappable part should be the same. Below figure shows that
pin name and pin type for part A & B and C & D are same and hence you could
perform Gate Swap.

October 7, 2011 24 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Fig 21. Pin distribution and PinGroup assignment in Heterogeneous


package.

- SWAP_INFO: Does not play any role for Gate and Component swapping. This
property is ONLY applicable for Pin swapping.

Functions to be swapped must

- Have the same function type and device type


- Be part of components with the same value and tolerance
- Have common pins on the same nets

Property assignments restrict swapping functions interactively

- A GROUP property attached to either function requires both functions to belong


to the same group.

October 7, 2011 25 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

- A NO_SWAP_GATE_EXT property on the function means that functions are


swappable only if they are in the same component.
- A SWAP_GROUP property on the function means that functions are swappable
only within their swap group, as specified by this property.

A function cannot be swapped if any of the following properties are assigned:

- A FIXED property on either net


- A FIX_ALL property on the component containing the function.
- A NO_SWAP_GATE property on either the function or component.
- When the NO_MOVE and/or NO_SWAP_COMP property is assigned to either
component.

NOTE: When the layout editor swaps functions, it replaces any etch/conductor
connected to the functions with ratsnest lines.

October 7, 2011 26 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Component Swapping
Swapping components interactively does not affect etch/conductor, so any
etch/conductor attached to a swapped component does not move with the
component. There is no specific property which is mandatory to be defined at
schematic level.

To swap components interactively


To swap components interactively, choose Place – Swap – Components

OR

You can also execute the command from within the Placement Edit application
mode, in which the command functions in a pre-selection use model:

You choose an element first, then right click and execute the command from the pop-
up menu.

Placement application mode, which provides an intuitive environment in which


commands used frequently during placement are readily accessible from right mouse
button pop-up menus, based on a selection set of design elements you have chosen.

In the pre-selection use model, the command is only available if the selection set
comprises exactly two components that you have chosen. If you choose components
and clines, for example, a warning displays for each invalid element, and the tool
ignores it.

You cannot swap components

- When the NO_MOVE and/or NO_SWAP_COMP property is assigned to either


component.
- When a component contains a pin on a net that is assigned the FIXED property.
- When attempting a swap that would cross a module boundary

If you swap a component with any of the constraints listed above, a message
prompts you that the swap has failed. When the layout editor performs the
component swap, it assigns to each swap candidate the X,Y coordinates, rotation,
and mirroring that, before the swap, were associated with the swap partner.

October 7, 2011 27 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

Swap Functionality - Terms


GROUP: The GROUP property, attached to a section on a component, identifies
schematic instances that will be packaged together. This property lets you control
packaging assignments without having to keep track of specific reference designators
and sections.

NO_SWAP_GATE_EXT: The NO_SWAP_GATE_EXT property, attached to a function


designator, specifies that the function cannot be swapped with one from another
component. However, the function can be swapped among slots within its current
component. Be sure that you set the value to TRUE.

SWAP_GROUP: The SWAP_GROUP property, attached to a function designator,


controls swapping for functions generated by Allegro Design Entry HDL bodies that
have the AS_FIXED_SIZE property. For example, if you create package with eight
functions and assigns SWAP_GROUP as A and B to each four parts. Any of the four
gates can be swapped in either Swap Group A or Swap Group B, but swapping is not
allowed between the two swap groups.

FIXED: The FIXED property, attached to components, symbols, nets, pins, vias, clines,
lines, filled rectangles, rectangles, shapes, and groups, indicates that the editor
prevents the following:

- Movement or deletion of the object


- The PCB Router from ripping up connections in the net
- Glossing on the net

Be sure that you set the value to TRUE.

FIX_ALL: The FIX_ALL property, attached to a reference designator (component),


indicates that you cannot swap this component, its functions, or its pins.

NO_SWAP_GATE: The NO_SWAP_GATE property, attached to a reference


designator or function designator (gate), specifies the functions within the component
that cannot be swapped. The function stays fixed in its current slot in the component. Be
sure that you set the value to TRUE.

NO_SWAP_COMP: The NO_SWAP_COMP boolean property, attached to component


instances, indicates that the swap components command does not allow the symbol
associated with this component to be swapped. Be sure that you set the value to TRUE.
NO_SWAP_PIN: The NO_SWAP_PIN property, attached to a reference designator,
function designator (gate), or pin, specifies that the pins on this component or function
cannot be swapped, either interactively or automatically. Be sure that you set the value
to TRUE.

October 7, 2011 28 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

LAST_PIN_SWAP: All pin swaps will be tracked with the property LAST_PIN_SWAP.
The property will attach to the pin and the value will be the name of the pin with which it
was last swapped. Updating the Allegro design from the Front End or third party netin
will cause all pin swap properties to be deleted.

October 7, 2011 29 Product Version SPB16.5


Swapping in Allegro Design Entry CIS and PCB Editor Flow

References:
OrCAD Capture CIS User Guide

Allegro® Platform Properties Reference

Allegro® User Guide: Placing the Elements

Cadence document within Installation

<Installation_dir_SPB165>\doc\cap_ug\cap_ug.pdf

<Installation_dir_SPB165>\propref\propref.pdf

October 7, 2011 30 Product Version SPB16.5

You might also like