|
|||||||||||
| 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.Xilinx.Virtex2.RamPack.BlockRamViewL
This class is for the simulation of block ram's to work correctly. Do not instance this class directly.
| Field Summary | |
static CellInterface[] |
cell_interface
|
static CellInterface[] |
implicit_interface
|
static int |
READ_FIRST
|
static int |
WRITE_FIRST
|
| 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 class byucc.jhdl.base.Cell |
BOOLEAN, CELL_NAME_DECLARATION, CellInterfaceDeterminesUniqueNetlistStructure, DETERMINE_FROM_STRING, GENERICS_DECLARATION, IMPLICIT_INTERFACE_DECLARATION, INTEGER, INTERFACE_DECLARATION, LONG, PORT_IOS_DECLARATION, PORT_NAMES_DECLARATION, PORT_NET_NAMES_DECLARATION, PORT_PROPERTIES, PORT_WIDTHS_DECLARATION, SIGN_EXT, STRING, ZERO_PAD |
| Constructor Summary | |
BlockRamViewL(Node parent,
Wire rst,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
java.lang.String name,
long[] contents,
long[] contentsP)
|
|
BlockRamViewL(Node parent,
Wire rst,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
java.lang.String name,
long[] contents,
long[] contentsP,
boolean connect_implicit_ports)
|
|
BlockRamViewL(Node parent,
Wire rst,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
java.lang.String name,
long[] contents,
long[] contentsP,
boolean connect_implicit_ports,
int write_mode)
|
|
BlockRamViewL(Node parent,
Wire rst,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
java.lang.String name,
long[] contents,
long[] contentsP,
int write_mode)
|
|
BlockRamViewL(Node parent,
Wire clk,
Wire rst,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
java.lang.String name,
long[] contents,
long[] contentsP)
|
|
BlockRamViewL(Node parent,
Wire clk,
Wire rst,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
java.lang.String name,
long[] contents,
long[] contentsP,
int write_mode)
|
|
| Method Summary | |
static int |
addrWidthFromDataWidth(int width)
|
boolean |
cellInterfaceDeterminesUniqueNetlistStructure()
When false, the default behavior of this method, each cell will list itself separately in a netlist, guaranteeing that the netlist will not have invalid data at the expense of a larger file-size. |
void |
clock()
Users define synchronous behavior in this method using standard JHDL constructs. |
void |
connectImplicitPorts()
Connects the implicit ports. |
boolean |
defaultSimulationModelIsBehavioral()
The default simulation model is structural for Structural cells. |
BV |
getMemoryElement(int addr)
Return the given memory position |
BV[] |
getMemoryRange(int sIndex,
int elements)
Return the given memory range |
int |
getMemoryWidth()
Returns the memory width |
long |
getSize()
Returns the memory size |
boolean |
isNetlistLeaf()
A few rare cells are leafCells during netlisting, but not during simulation. |
static int |
parityWidthFromDataWidth(int width)
|
void |
reset()
If you define a behavior, you must also define a reset method for resetting the synchonous part of your model. |
void |
update()
|
| 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 |
| Field Detail |
public static final int WRITE_FIRST
public static final int READ_FIRST
public static CellInterface[] implicit_interface
public static CellInterface[] cell_interface
| Constructor Detail |
public BlockRamViewL(Node parent,
Wire clk,
Wire rst,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
java.lang.String name,
long[] contents,
long[] contentsP)
public BlockRamViewL(Node parent,
Wire clk,
Wire rst,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
java.lang.String name,
long[] contents,
long[] contentsP,
int write_mode)
public BlockRamViewL(Node parent,
Wire rst,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
java.lang.String name,
long[] contents,
long[] contentsP)
public BlockRamViewL(Node parent,
Wire rst,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
java.lang.String name,
long[] contents,
long[] contentsP,
int write_mode)
public BlockRamViewL(Node parent,
Wire rst,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
java.lang.String name,
long[] contents,
long[] contentsP,
boolean connect_implicit_ports)
public BlockRamViewL(Node parent,
Wire rst,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
java.lang.String name,
long[] contents,
long[] contentsP,
boolean connect_implicit_ports,
int write_mode)
| Method Detail |
public boolean isNetlistLeaf()
Cell
isNetlistLeaf in class Cellpublic void connectImplicitPorts()
Logic#implicit_ports.
If you used the old version of connect_implicit_ports, this method will use
reflection to see that the old version gets called correctly.
connectImplicitPorts in class Logicpublic boolean cellInterfaceDeterminesUniqueNetlistStructure()
Cell
cellInterfaceDeterminesUniqueNetlistStructure in class Cellpublic static int addrWidthFromDataWidth(int width)
public static int parityWidthFromDataWidth(int width)
public boolean defaultSimulationModelIsBehavioral()
Structural
defaultSimulationModelIsBehavioral in class Structuralpublic void clock()
Structural
clock in interface Clockableclock in class Structuralpublic void update()
update in interface MemoryUpdatablepublic void reset()
Structural
reset in interface Clockablereset in class Structural
public BV[] getMemoryRange(int sIndex,
int elements)
MemoryInterface
getMemoryRange in interface MemoryInterfacesIndex - the starting indexelements - how many entries to get
public BV getMemoryElement(int addr)
MemoryInterface
getMemoryElement in interface MemoryInterfaceaddr - the memory address to get
public long getSize()
MemoryInterface
getSize in interface MemoryInterfacepublic int getMemoryWidth()
MemoryInterface
getMemoryWidth in interface MemoryInterface
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||