edu.byu.ece.edif.tools
Class EdifTools

java.lang.Object
  extended by edu.byu.ece.edif.tools.EdifTools

public class EdifTools
extends java.lang.Object

A class to hold any generic utilities that could be useful across the EDIF package.


Constructor Summary
EdifTools()
           
 
Method Summary
static int countXilinxFlipFlops(java.util.Collection<EdifCellInstance> ecis)
          Counts the number of Flip-Flops in a collection of EdifCellInstances.
static int countXilinxPersistentFlipFlops(FlattenedEdifCell flatCell)
          Counts the number of flip-flops found in persistent sections of a circuit.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdifTools

public EdifTools()
Method Detail

countXilinxFlipFlops

public static int countXilinxFlipFlops(java.util.Collection<EdifCellInstance> ecis)
Counts the number of Flip-Flops in a collection of EdifCellInstances. Note that this only looks for Xilinx flip-flops.

Parameters:
ecis -
Returns:
The number of flip-flops found

countXilinxPersistentFlipFlops

public static int countXilinxPersistentFlipFlops(FlattenedEdifCell flatCell)
Counts the number of flip-flops found in persistent sections of a circuit. The circuit must be flattened to get an accurate count.

Returns:
The number of flip-flops in the persistent sections of the given FlattenedEdifCell

main

public static void main(java.lang.String[] args)