~ubuntu-branches/ubuntu/intrepid/electric/intrepid

« back to all changes in this revision

Viewing changes to com/sun/electric/tool/generator/flag/designs/Infinity2/Crosser.java

  • Committer: Bazaar Package Importer
  • Author(s): Onkar Shinde
  • Date: 2008-07-23 02:09:53 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080723020953-1gmnv7q2wpsdbnop
Tags: 8.07-0ubuntu1
* New Upstream version. Please check changelog for details. (LP: #242720)
* debian/control
  - Add build dependencies *-jdk, cdbs and bsh.
  - Remove build dependency dpatch. We will be using CDBS simple patchsys.
  - Refreshed runtime dependencies to default-jre | java2-runtime and bsh.
  - Added home page field.
  - Standard version 3.8.0.
  - Modify Maintainer value to match the DebianMaintainerField
    specification.
  - Changed email address for original maintainer to indicate who has
    refreshed the packaging.
* debian/rules
  - Revamped to use cdbs.
  - Added get-orig-source target.
* debian/patches
  - 00list, 02_sensible-browser.dpatch, 01_errors-numbers.dpatch,
    03_manpage.dpatch - Deleted, not relevant anymore.
  - 01_fix_build_xml.patch - Patch to fix the build.xml.
* debian/ant.properties
  - File to set various compilation properties.
* debian/electric.1
  - Remove the entry that causes lintian warning.
* debian/electric.desktop
  - Change as suggested by desktop-file-validate.
* debian/electric.docs
  - Updated as per changes in file names.
* debian/electric.svg
  - Name changed from electric_icon.svg.
* debian/install
  - Added appropriate locations for jar file, desktop file and wrapper shell
    script.
* debian/README.source
  - Added to comply with standards version 3.8.0.
* debian/TODO.Debian
  - Name changed form TODO.
* debain/wrapper/electric
  - Wrapper shell script to launch the application.
* debian/manpages
  - Added for installation of manpage.
* debian/watch
  - Updated to match jar files instead of older tar.gz files.
* debian/dirs
  - Removed, not needed anymore.
* debian/{electric.doc-base, electric.examples, substvars}
  - Removed, not relevant anymore.
* debian/*.debhelper
  - Removed auto generated files. Not relevant anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package com.sun.electric.tool.generator.flag.designs.Infinity2;
 
2
 
 
3
import java.util.List;
 
4
 
 
5
import com.sun.electric.database.topology.NodeInst;
 
6
import com.sun.electric.tool.generator.flag.FlagConstructorData;
 
7
import com.sun.electric.tool.generator.flag.FlagDesign;
 
8
import com.sun.electric.tool.generator.flag.LayoutNetlist;
 
9
import com.sun.electric.tool.generator.layout.LayoutLib;
 
10
import com.sun.electric.tool.generator.layout.LayoutLib.Corner;
 
11
 
 
12
/** Physical design for the Ring */
 
13
public class Crosser extends FlagDesign {
 
14
 
 
15
        private void stackInsts(List<NodeInst> layInsts) {
 
16
        NodeInst prev = null;
 
17
        for (NodeInst me : layInsts) {
 
18
                if (prev!=null) {
 
19
                        LayoutLib.alignCorners(prev, Corner.TL, me, Corner.BL, 0, 0);
 
20
                }
 
21
                prev = me;
 
22
        }
 
23
        }
 
24
 
 
25
        // Constructor does everything
 
26
        public Crosser(FlagConstructorData data) {
 
27
                super(Infinity2Config.CONFIG, data);
 
28
                
 
29
        LayoutNetlist layNets = createLayoutInstancesFromSchematic(data);
 
30
        
 
31
        stackInsts(layNets.getLayoutInstancesSortedBySchematicPosition());
 
32
        
 
33
        addEssentialBounds(layNets.getLayoutCell());
 
34
 
 
35
        stitchScanChains(layNets);
 
36
        
 
37
        routeSignals(layNets);
 
38
        
 
39
        reexportPowerGround(layNets.getLayoutCell());
 
40
        
 
41
        reexportSignals(layNets);
 
42
        
 
43
        addNccVddGndExportsConnectedByParent(layNets.getLayoutCell());
 
44
        
 
45
        }
 
46
}