|
|||||||||||
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.apps.Tbone.Tbone
Tbone is a generic test bench used to simulate a circuit.
Tbone will create a test bench environment in which the user can put values on the in ports and watch the simmulation of the circuit.
In order to use Tbone on a design that design must have a cell interface that has the same number of ports in the cell interface as wires in the first constructer. These ports and wires must be in the same order so Tbone can match the ports and wires.
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 |
Constructor Summary | |
Tbone(Node parent)
|
|
Tbone(Node parent,
java.lang.String[] argv)
|
Method Summary | |
void |
buildCommands()
|
void |
CLICommandEventFired(CLICommandEvent e)
|
void |
clock()
Users define synchronous behavior in this method using standard JHDL constructs. |
boolean |
compareBehav()
|
int |
convertBaseToDecimal(java.lang.String st)
|
long |
convertLongBaseToDecimal(java.lang.String st)
|
java.lang.Object |
execute()
|
int |
getClockCycles()
|
int |
getClockSteps()
|
int |
getCycles()
|
java.io.Serializable |
getData()
Called by the checkpointing code to get all of the data that should be checkpointed. |
StateObject |
getHardwareState(ExternallyUpdateable[] eCells,
LargeExternallyUpdateable[] leCells,
Checkpointable[] cCells)
Returns the hardware state |
HWSystem |
getHWSystem()
|
java.lang.String[] |
getInNames()
|
boolean |
getInsertPads()
Returns the current setting of insertPads. |
java.lang.String |
getModuleName()
Returns the hardware module name |
int |
getNumInoutPorts()
|
int |
getNumInPorts()
|
int |
getNumOutPorts()
|
java.lang.String[] |
getParamNames()
|
java.lang.String[] |
getPortNames()
|
java.lang.String[] |
getTargetNames()
|
boolean |
hasNoMoreLines()
|
void |
holdTb()
|
boolean |
isBuilt()
|
boolean |
isHeld()
|
boolean |
isMultiClockMode()
|
boolean |
isReady()
|
boolean |
isSimulateOnly()
|
boolean |
isTestSuccessful()
|
boolean |
isVecHasOutput()
|
boolean |
isVerifyOnly()
|
boolean |
isWithFileOutput()
|
void |
loadNewClass()
|
static void |
main(java.lang.String[] argv)
|
void |
netlist(java.lang.String cellname,
java.lang.String filename,
boolean insertPads)
|
void |
printFileEndln()
|
void |
printlnOut(java.lang.String fileMessage)
|
void |
printOut(java.lang.String fileMessage)
|
void |
releaseTb()
|
void |
reset()
If you define a behavior, you must also define a reset method for resetting the synchonous part of your model. |
void |
setBrowserCore(BrowserCore bCore)
|
void |
setConsole(CLInterpreter cli)
|
void |
setData(java.io.Serializable data)
This is called on a checkpoint restore, and the object checkpointed out is passed back in. |
void |
setNumInoutPorts(int val)
|
void |
setNumInPorts(int val)
|
void |
setNumOutPorts(int val)
|
void |
setTestSuccessful(boolean val)
|
void |
stepHardwareClock(int clock_count)
Steps the hardware clock |
void |
targetMapper(java.lang.String mapper,
java.lang.String name)
|
void |
targetMapper(java.lang.String mapper,
java.lang.String name,
boolean techMappingEnabled)
|
void |
useVectorFile(int size,
boolean withOutput)
|
Methods inherited from class byucc.jhdl.base.Node |
addObservable, addSimulatorCallback, checkAll, delete, getBuildingFlag, getChildren, getChildrenEnumeration, getInstanceName, getParent, getParentCell, getRelatives, getSystem, getWires, optimize, orphanAllowed, printAllChildren, printTree, removeSimulatorCallback, setDefaultClock |
Methods inherited from class byucc.jhdl.base.Nameable |
caseSensitivity, caseSensitivity, disableNameClashChecking, getFullName, getFullNameNoTestBench, getHierNameNoTestBench, getInstanceNo, getInstanceNumber, getLeafName, getLeafName, getRelativeName, getUserName, getUserName, hasUserSpecifiedName, isDescendantOf, setInstanceNumber |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Tbone(Node parent)
public Tbone(Node parent, java.lang.String[] argv)
Method Detail |
public static void main(java.lang.String[] argv)
public void reset()
Structural
reset
in interface Clockable
reset
in class Structural
public void clock()
Structural
clock
in interface Clockable
clock
in class Structural
public void loadNewClass()
public void useVectorFile(int size, boolean withOutput)
public void holdTb()
public void releaseTb()
public boolean isReady()
public int convertBaseToDecimal(java.lang.String st) throws java.lang.StringIndexOutOfBoundsException, java.lang.NumberFormatException
java.lang.StringIndexOutOfBoundsException
java.lang.NumberFormatException
public long convertLongBaseToDecimal(java.lang.String st) throws java.lang.StringIndexOutOfBoundsException, java.lang.NumberFormatException
java.lang.StringIndexOutOfBoundsException
java.lang.NumberFormatException
public void printOut(java.lang.String fileMessage)
public void printlnOut(java.lang.String fileMessage)
public void printFileEndln()
public boolean isMultiClockMode()
public boolean isSimulateOnly()
public boolean isVerifyOnly()
public boolean isWithFileOutput()
public boolean hasNoMoreLines()
public boolean compareBehav()
public void setTestSuccessful(boolean val)
public boolean isTestSuccessful()
public boolean isVecHasOutput()
public boolean isHeld()
public boolean isBuilt()
public int getClockCycles()
public int getClockSteps()
public int getCycles()
public void setNumInPorts(int val)
public void setNumOutPorts(int val)
public void setNumInoutPorts(int val)
public int getNumInPorts()
public int getNumOutPorts()
public int getNumInoutPorts()
public void setConsole(CLInterpreter cli)
public void setBrowserCore(BrowserCore bCore)
public void buildCommands()
public void netlist(java.lang.String cellname, java.lang.String filename, boolean insertPads)
public boolean getInsertPads()
public void targetMapper(java.lang.String mapper, java.lang.String name)
public void targetMapper(java.lang.String mapper, java.lang.String name, boolean techMappingEnabled)
public java.lang.String getModuleName()
HardwareInterface
getModuleName
in interface HardwareInterface
public void stepHardwareClock(int clock_count)
HardwareInterface
stepHardwareClock
in interface HardwareInterface
clock_count
- How many cycles to clockpublic HWSystem getHWSystem()
public StateObject getHardwareState(ExternallyUpdateable[] eCells, LargeExternallyUpdateable[] leCells, Checkpointable[] cCells)
HardwareInterface
getHardwareState
in interface HardwareInterface
eCells
- the ExternallyUpdateable
cells to look atleCells
- the LargeExternallyUpdateable
cells to look atcCells
- the Checkpointable
cells to look at
public void CLICommandEventFired(CLICommandEvent e)
CLICommandEventFired
in interface CLICommandListener
public java.lang.Object execute()
public java.lang.String[] getParamNames()
public java.lang.String[] getPortNames()
public java.lang.String[] getInNames()
public java.lang.String[] getTargetNames()
public java.io.Serializable getData()
Checkpointable
getData
in interface Checkpointable
public void setData(java.io.Serializable data)
Checkpointable
setData
in interface Checkpointable
data
- the state that was saved earlier
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |