|
|||||||||||
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.BasicMemory
This layer of memory abstraction does what "Memory" used to, except doesn't implement ExternallyUpdateable. This is needed for use with luts and roms that are read-only.
Field Summary | |
static long[] |
bitmasksl
|
protected int |
contents
|
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 | |
protected |
BasicMemory(Node parent)
|
protected |
BasicMemory(Node parent,
boolean connect_implicit_ports)
|
protected |
BasicMemory(Node parent,
java.lang.String username)
|
protected |
BasicMemory(Node parent,
java.lang.String username,
boolean connect_implicit_ports)
|
Method Summary | |
protected boolean |
defaultSimulationModelIsBehavioral()
The default simulation model is structural for Structural cells. |
static byte[] |
getBits(java.lang.String s,
int depth)
|
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 |
static long |
hexStr2Long(java.lang.String str)
|
static java.lang.String |
hexString2bin(java.lang.String h)
|
protected void |
init(java.lang.String initial_state,
int width,
int length)
|
void |
initialize()
The simulator will call this method before simulation, when the cell can complete its initialization. |
java.lang.String |
padBits(java.lang.String s,
int width,
int depth)
|
protected int |
read(int addr)
|
protected long |
readl(int addr)
|
void |
reset()
If you define a behavior, you must also define a reset method for resetting the synchonous part of your model. |
static java.lang.String |
reverseBits(java.lang.String s)
|
protected void |
shiftl(int shamt)
|
java.lang.String[] |
splitBits(java.lang.String s,
int width,
int depth)
|
protected void |
write(int addr,
int val)
|
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 long[] bitmasksl
protected int contents
Constructor Detail |
protected BasicMemory(Node parent)
protected BasicMemory(Node parent, java.lang.String username)
protected BasicMemory(Node parent, boolean connect_implicit_ports)
protected BasicMemory(Node parent, java.lang.String username, boolean connect_implicit_ports)
Method Detail |
protected boolean defaultSimulationModelIsBehavioral()
Structural
defaultSimulationModelIsBehavioral
in class Structural
protected void init(java.lang.String initial_state, int width, int length)
public BV[] getMemoryRange(int sIndex, int elements)
MemoryInterface
getMemoryRange
in interface MemoryInterface
sIndex
- the starting indexelements
- how many entries to get
public BV getMemoryElement(int addr)
MemoryInterface
getMemoryElement
in interface MemoryInterface
addr
- the memory address to get
public long getSize()
MemoryInterface
getSize
in interface MemoryInterface
public int getMemoryWidth()
MemoryInterface
getMemoryWidth
in interface MemoryInterface
protected int read(int addr)
protected long readl(int addr)
protected void write(int addr, int val)
protected void shiftl(int shamt)
public java.lang.String padBits(java.lang.String s, int width, int depth)
public static long hexStr2Long(java.lang.String str)
public java.lang.String[] splitBits(java.lang.String s, int width, int depth)
public static byte[] getBits(java.lang.String s, int depth)
public static java.lang.String reverseBits(java.lang.String s)
public static java.lang.String hexString2bin(java.lang.String h)
public void reset()
Structural
reset
in interface Clockable
reset
in class Structural
public final void initialize()
Initializeable
initialize
in interface Initializeable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |