|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectbyucc.jhdl.base.Nameable
byucc.jhdl.base.Node
byucc.jhdl.base.Cell
byucc.jhdl.base.Structural
byucc.jhdl.Logic.LogicGates
byucc.jhdl.Logic.LogicStatic
byucc.jhdl.Logic.Logic
byucc.jhdl.platforms.util.GenericBoard
Class designed for making the board-level of board models easier to create. The class supplies methods for declaring wires and the board level and specifying how they wire up to the sub components. The class also provides the basic board-level functionality. If a given method does not apply to a board model, or if more functionality is needed, the board model writer is free to overload and/or add methods to get the desired functionallity.
| Field Summary |
| Fields inherited from class byucc.jhdl.Logic.Logic |
ABOVE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_LSB, ALIGN_MSB, ALIGN_RIGHT, ALIGN_TOP, BELOW, DOWN, EAST_OF, LEFT_OF, MAX_PACK, NORTH_OF, ON, ONTOP, ONTOP_OF, RIGHT_OF, SOUTH_OF, TOLEFT, TORIGHT, UNCONSTRAINED, UP, WEST_OF |
| Fields inherited from class byucc.jhdl.Logic.LogicGates |
tech_mapper |
| Fields inherited from interface byucc.jhdl.platforms.util.UtilConstants |
directions, IN, NONE, OUT, TRISTATE, UNASSIGNED |
| Constructor Summary | |
protected |
GenericBoard(Node parent)
Creates a new GenericBoard with the specified parent and no instance name. |
protected |
GenericBoard(Node parent,
java.lang.String instance)
Creates a new GenericBoard with the specified parent and instance name. |
| Method Summary | |
protected void |
buildMemList()
|
protected void |
buildPeList()
|
protected void |
buildRegList()
|
protected void |
circuitChanged()
|
protected void |
constructDescribedModel()
This method will take all the information that is defined by the Board and will construct all the board-level elements. |
protected void |
declareCell(java.lang.String cellname,
java.lang.String classname)
This call is used to declare all the cells that will be wired together using the defineConnection() call. |
protected void |
declareMemory(java.lang.String cellname,
java.lang.String classname,
int index)
Declare a memory to be instanced in the board model. |
protected void |
declarePE(java.lang.String cellname,
java.lang.String classname,
int index)
Declare a PE to be instanced in the board model. |
protected void |
declareRegisterInteface(java.lang.String cellname,
java.lang.String classname,
int set)
Declare a register interface to be instanced in the board model. |
protected void |
defineConnection(int width,
java.lang.String connection,
java.lang.String wirename)
This will define a connection between two or more ports on two or more cells. |
protected java.util.Enumeration |
getAllWires()
|
protected Cell |
getCell(java.lang.String name)
Gets a cell for the cell list by its instance name. |
StateObject |
getHardwareState(ExternallyUpdateable[] eCells,
LargeExternallyUpdateable[] leCells,
Checkpointable[] cCells)
Returns the hardware state |
java.lang.String |
getModuleName()
Returns the hardware module name |
GenericProcessingElement |
getPE(int i)
|
java.lang.String |
getPEName(int i)
|
protected PortAssociation |
getPortAssociation(java.lang.String cellname)
|
int |
getTotalRegisterSets()
|
protected Wire |
getWireByName(java.lang.String name)
Gets a wire created by a defineConnection() call. |
protected Cell |
instanceCell(java.lang.String instance)
Instances a declared cell. |
PlatformCommandStatus |
loadMem(int index,
java.lang.String filename)
|
PlatformCommandStatus |
peProgram(int index,
java.lang.String classname)
|
PlatformCommandStatus |
readRegister(int set,
int address,
BV value)
|
protected void |
setCellAsMemory(LargeWritableMemory cell,
int index)
Set a previously instanced cell to be a memory in the board model. |
protected void |
setCellAsPE(GenericProcessingElement cell,
int index)
Set a previously instanced cell to be a PE in the board model. |
protected void |
setCellAsRegisterInterface(GenericRegisterInterface cell,
int set)
Set a previously instanced cell to be a register interface in the board model. |
protected void |
setTotalMems(int number)
Tells GenericBoard how many memories there are in the platform. |
protected void |
setTotalPEs(int number)
Tells GenericBoard how many PEs there are in the platform. |
protected void |
setTotalRegisterSets(int number)
Tells GenericBoard how many register sets there are in the platform. |
void |
stepHardwareClock(int steps)
Steps the hardware clock |
PlatformCommandStatus |
writeRegister(int set,
int address,
BV value)
|
PlatformCommandStatus |
writeRegister(int set,
int address,
java.lang.String value)
|