com.sun.electric.tool.io.input.verilog
Class VerilogData.VerilogModule

java.lang.Object
  extended by com.sun.electric.tool.io.input.verilog.VerilogData.VerilogModule
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
VerilogData

public class VerilogData.VerilogModule
extends java.lang.Object
implements java.io.Serializable

Class to represent subcells

See Also:
Serialized Form

Method Summary
 java.util.List<java.lang.Object> getAllSorted()
          Returns list of ports and wires sorted by name
 java.util.List<VerilogData.VerilogInstance> getInstances()
          Function to return list of VerilogInstance objects in the module.
 java.lang.String getName()
          Function returning the name of the module
 java.util.Collection<VerilogData.VerilogPort> getPorts()
          Function to return collection of VerilogPort objects in the module.
 java.util.List<VerilogData.VerilogWire> getWires()
          Function to return list of VerilogWire objects in the module.
 boolean isPrimitive()
          Returns true if this was defined as a 'primitive' instead of a 'module'.
 boolean isValid()
          Returns if module is valid, i.e., theinformation was 100% read from the file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isValid

public boolean isValid()
Returns if module is valid, i.e., theinformation was 100% read from the file

Returns:
true if is a valid module

getName

public java.lang.String getName()
Function returning the name of the module

Returns:
String with name of the module

isPrimitive

public boolean isPrimitive()
Returns true if this was defined as a 'primitive' instead of a 'module'.

Returns:
true if this module was defined as a primitive

getAllSorted

public java.util.List<java.lang.Object> getAllSorted()
Returns list of ports and wires sorted by name

Returns:
list of ports and wires sorted by namea

getInstances

public java.util.List<VerilogData.VerilogInstance> getInstances()
Function to return list of VerilogInstance objects in the module. The list is sorted.

Returns:
List of VerilogInstance objects

getWires

public java.util.List<VerilogData.VerilogWire> getWires()
Function to return list of VerilogWire objects in the module. The list is sorted.

Returns:
List of VerilogWire objects

getPorts

public java.util.Collection<VerilogData.VerilogPort> getPorts()
Function to return collection of VerilogPort objects in the module. The ports are sorted by the name

Returns:
Collection of VerilogPort objects