org.opencores.mapping
Class GlobalMap

java.lang.Object
  |
  +--org.opencores.mapping.GlobalMap

public class GlobalMap
extends java.lang.Object

Collection of functions, that allows global (special) node mapping.

See Also:
NodeGlobal

Field Summary
private  Graph g
          graph we are working on
static java.lang.String NAME_PIO_CLK
          Name definition for PIO clock.
static java.lang.String NAME_WB_CLK
          Name definition for Wishbone clock.
 
Constructor Summary
GlobalMap(Graph g)
          Constructs new Global mapper
 
Method Summary
 void mapGCLK0()
          Finds best net that could have use of GLCK0 and it assigns to NetGlobal GLCK0.
 void mapGCLK1()
          Finds best net that could have use of GLCK1 and it assigns to NetGlobal GLCK1.
 void mapGRST()
          Finds best net that could have use of GRST and it assigns to NetGlobal GRST.
 void mapGSET()
          Finds best net that could have use of GSET and it assigns to NetGlobal GSET.
 void mapLUT0()
          Converts all LUT0s, that don't drive FF.DATA into NodeGlobal.
 void mapping()
          Does complete global net mapping on graph g
 void mapPIO_CLK()
          Searches for port named PIO_CLK and assigns it to SR.
 void mapWB_CLK()
          Searches for port named WB_CLK and assigns it to SR.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

NAME_WB_CLK

public static final java.lang.String NAME_WB_CLK
Name definition for Wishbone clock.

NAME_PIO_CLK

public static final java.lang.String NAME_PIO_CLK
Name definition for PIO clock.

g

private Graph g
graph we are working on
Constructor Detail

GlobalMap

public GlobalMap(Graph g)
Constructs new Global mapper
Method Detail

mapLUT0

public void mapLUT0()
Converts all LUT0s, that don't drive FF.DATA into NodeGlobal. This function should be called after optimal mapping and before SPC and GPC groupping.

SPC, GPC and FF mapping should link to global nets instead of assigning null, to reduce complexity.


mapGCLK0

public void mapGCLK0()
Finds best net that could have use of GLCK0 and it assigns to NetGlobal GLCK0.
Parameters:
g - graph to work on

mapGCLK1

public void mapGCLK1()
Finds best net that could have use of GLCK1 and it assigns to NetGlobal GLCK1.
Parameters:
g - graph to work on

mapGRST

public void mapGRST()
Finds best net that could have use of GRST and it assigns to NetGlobal GRST.
Parameters:
g - graph to work on

mapGSET

public void mapGSET()
Finds best net that could have use of GSET and it assigns to NetGlobal GSET.
Parameters:
g - graph to work on

mapPIO_CLK

public void mapPIO_CLK()
Searches for port named PIO_CLK and assigns it to SR. NOTE: should be called before IOCMap

mapWB_CLK

public void mapWB_CLK()
Searches for port named WB_CLK and assigns it to SR. NOTE: should be called before IOCMap

mapping

public void mapping()
Does complete global net mapping on graph g