~ubuntu-branches/ubuntu/jaunty/electric/jaunty

« back to all changes in this revision

Viewing changes to com/sun/electric/tool/io/output/Sim.java

  • Committer: Bazaar Package Importer
  • Author(s): Onkar Shinde
  • Date: 2009-01-08 02:05:08 UTC
  • mfrom: (1.1.2 upstream) (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090108020508-0h3li7zt9mu5gf0i
Tags: 8.08-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
import java.util.HashMap;
49
49
import java.util.HashSet;
50
50
import java.util.Iterator;
 
51
import java.util.Map;
51
52
import java.util.Set;
52
53
 
53
54
/**
55
56
 */
56
57
public class Sim extends Output
57
58
{
58
 
        private HashMap<Integer,String> globalNetNames;
 
59
        private Map<Integer,String> globalNetNames;
59
60
        private int globalNetVDD, globalNetGND, globalNetPhi1H, globalNetPhi1L, globalNetPhi2H, globalNetPhi2L;
60
61
        /** key of Variable holding COSMOS attributes. */       private static final Variable.Key COSMOS_ATTRIBUTE_KEY = Variable.newKey("SIM_cosmos_attribute");
61
62
 
255
256
                        PrimitiveNode.Function fun = ni.getFunction();
256
257
 
257
258
                        // if it is a transistor, write the information
258
 
                        if (fun == PrimitiveNode.Function.TRANMOS || fun == PrimitiveNode.Function.TRADMOS || fun == PrimitiveNode.Function.TRAPMOS)
 
259
                        if (fun.isFET())
259
260
                        {
260
261
                                Network gateNet = netList.getNetwork(ni.getTransistorGatePort());
261
262
                                int gate = ci.getNetID(gateNet);
267
268
                                int drain = ci.getNetID(drainNet);
268
269
 
269
270
                                String tType = "U";
270
 
                                if (fun == PrimitiveNode.Function.TRANMOS) tType = "e"; else
271
 
                                if (fun == PrimitiveNode.Function.TRADMOS) tType = "d"; else
272
 
                                if (fun == PrimitiveNode.Function.TRAPMOS) tType = "p";
 
271
                                if (fun.isNTypeTransistor()) tType = "e"; else
 
272
                                        if (fun.isPTypeTransistor()) tType = "p"; else
 
273
                                                tType = "d";
273
274
 
274
275
                                // determine size of transistor
275
276
                                TransistorSize size = ni.getTransistorSize(ci.getContext());