|
|||||||||||
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.RAMB16
byucc.jhdl.Xilinx.Virtex2.RAMB16_S
This class provides the functionality of the RAMB16_Sn Virtex2
library elements - The Single-ported BlockRams. Data width and
address width must match as follows:
Data Width | 1 | 2 | 4 | 8, 9 | 16, 18 | 32, 36 | Addr Width | 14 | 13 | 12 | 11 | 10 | 9 |
Field Summary | |
protected boolean |
_islong
|
static CellInterface[] |
cell_interface
|
protected long[] |
contents
|
static CellInterface[] |
implicit_interface
|
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 | |
RAMB16_S(Node parent,
java.lang.String name,
java.lang.String s0,
Wire w0,
java.lang.String s1,
Wire w1,
java.lang.String s2,
Wire w2,
java.lang.String s3,
Wire w3,
java.lang.String s4,
Wire w4,
java.lang.String s5,
Wire w5,
java.lang.String s6,
Wire w6,
java.lang.String[] contents)
|
|
RAMB16_S(Node parent,
java.lang.String name,
java.lang.String s0,
Wire w0,
java.lang.String s1,
Wire w1,
java.lang.String s2,
Wire w2,
java.lang.String s3,
Wire w3,
java.lang.String s4,
Wire w4,
java.lang.String s5,
Wire w5,
java.lang.String s6,
Wire w6,
java.lang.String s7,
Wire w7,
java.lang.String[] contents)
|
|
RAMB16_S(Node parent,
java.lang.String name,
java.lang.String s0,
Wire w0,
java.lang.String s1,
Wire w1,
java.lang.String s2,
Wire w2,
java.lang.String s3,
Wire w3,
java.lang.String s4,
Wire w4,
java.lang.String s5,
Wire w5,
java.lang.String s6,
Wire w6,
java.lang.String s7,
Wire w7,
java.lang.String s8,
Wire w8,
java.lang.String[] contents,
java.lang.String[] contentsP)
|
|
RAMB16_S(Node parent,
Wire ssr,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout)
Constructs a new single-ported Block RAM. |
|
RAMB16_S(Node parent,
Wire ssr,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
int[] contents)
Constructs a new single-ported Block RAM. |
|
RAMB16_S(Node parent,
Wire ssr,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
int[] contents,
java.lang.String name)
Constructs a new named, single-ported Block RAM. |
|
RAMB16_S(Node parent,
Wire ssr,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
long[] contents)
Constructs a new single-ported Block RAM. |
|
RAMB16_S(Node parent,
Wire ssr,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
long[] contents,
java.lang.String name)
Constructs a new named, single-ported Block RAM. |
|
RAMB16_S(Node parent,
Wire ssr,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
java.lang.String name)
Constructs a new named, single-ported Block RAM. |
|
RAMB16_S(Node parent,
Wire ssr,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
java.lang.String[] contents)
|
|
RAMB16_S(Node parent,
Wire ssr,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
java.lang.String[] contents,
java.lang.String name)
|
|
RAMB16_S(Node parent,
Wire clk,
Wire ssr,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout)
Constructs a new single-ported Block RAM with clock. |
|
RAMB16_S(Node parent,
Wire clk,
Wire ssr,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
int[] contents)
Constructs a new, named single-ported Block RAM with clock. |
|
RAMB16_S(Node parent,
Wire clk,
Wire ssr,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
int[] contents,
java.lang.String name)
Constructs a new, named single-ported Block RAM with clock. |
|
RAMB16_S(Node parent,
Wire clk,
Wire ssr,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
long[] contents)
Constructs a new, named single-ported Block RAM with clock. |
|
RAMB16_S(Node parent,
Wire clk,
Wire ssr,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
long[] contents,
java.lang.String name)
Constructs a new, named single-ported Block RAM with clock. |
|
RAMB16_S(Node parent,
Wire clk,
Wire ssr,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
java.lang.String name)
Constructs a new, named single-ported Block RAM with clock. |
|
RAMB16_S(Node parent,
Wire clk,
Wire ssr,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
java.lang.String[] contents)
|
|
RAMB16_S(Node parent,
Wire clk,
Wire ssr,
Wire en,
Wire din,
Wire we,
Wire addr,
Wire dout,
java.lang.String[] contents,
java.lang.String name)
|
Method Summary | |
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. |
protected void |
connectImplicitPorts()
Connects the implicit ports. |
protected boolean |
defaultSimulationModelIsBehavioral()
The default simulation model is structural for Structural cells. |
BV[] |
fetchBVState()
|
int[] |
fetchState()
This method is used to fetch the current state of the Cell. |
java.lang.String |
getCellName()
Access the cell name associated with a derived class. |
java.io.Serializable |
getData()
Called by the checkpointing code to get all of the data that should be checkpointed. |
int |
getSize(int wid,
int aWid)
|
boolean |
isNetlistLeaf()
A few rare cells are leafCells during netlisting, but not during simulation. |
void |
setData(java.io.Serializable data)
This is called on a checkpoint restore, and the object checkpointed out is passed back in. |
void |
updateState(int[] update_value)
This method is used to update the state of the Cell in simulator. |
Methods inherited from class byucc.jhdl.Xilinx.Virtex2.RamPack.RAMB16 |
addMyProperties, addMyProperties, addParityProperties, addParityProperties, fillArray, fillArrayIntToLong, fillArrayL, fillArrayLongToLong, InitializeContents, InitializeContentsL, InitializeParity, InitializeParityL, PropertyStringsToIntArray |
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 CellInterface[] implicit_interface
public static CellInterface[] cell_interface
protected boolean _islong
protected long[] contents
Constructor Detail |
public RAMB16_S(Node parent, Wire ssr, Wire en, Wire din, Wire we, Wire addr, Wire dout)
parent
- The parent Cell
to the RAMB16Singlessr
- The Wire
connected to input port ssren
- The Wire
connected to input port endin
- The Wire
connected to input port dinwe
- The Wire
connected to input port weaddr
- The Wire
connected to input port addrdout
- The Wire
connected to output port doutpublic RAMB16_S(Node parent, Wire ssr, Wire en, Wire din, Wire we, Wire addr, Wire dout, int[] contents)
parent
- The parent Cell
to the RAMB16_Sssr
- The Wire
connected to input port ssren
- The Wire
connected to input port endin
- The Wire
connected to input port dinwe
- The Wire
connected to input port weaddr
- The Wire
connected to input port addrdout
- The Wire
connected to output port doutcontents
- An int[]
representing the contents of the
entire BlockRam. THIS ARRAY IS NOT PACKED! Each element corresponds to
an address.public RAMB16_S(Node parent, Wire ssr, Wire en, Wire din, Wire we, Wire addr, Wire dout, java.lang.String name)
parent
- The parent Cell
to the RAMB16_Sssr
- The Wire
connected to input port ssren
- The Wire
connected to input port endin
- The Wire
connected to input port dinwe
- The Wire
connected to input port weaddr
- The Wire
connected to input port addrdout
- The Wire
connected to output port doutname
- Instance name of the RAMB16_Spublic RAMB16_S(Node parent, Wire ssr, Wire en, Wire din, Wire we, Wire addr, Wire dout, int[] contents, java.lang.String name)
parent
- The parent Cell
to the RAMB16_Sssr
- The Wire
connected to input port ssren
- The Wire
connected to input port endin
- The Wire
connected to input port dinwe
- The Wire
connected to input port weaddr
- The Wire
connected to input port addrdout
- The Wire
connected to output port doutcontents
- An int[]
representing the contents of the
entire BlockRam. THIS ARRAY IS NOT PACKED! Each element corresponds
to an address.name
- Instance name of the RAMB16_Spublic RAMB16_S(Node parent, Wire clk, Wire ssr, Wire en, Wire din, Wire we, Wire addr, Wire dout)
parent
- The parent Cell
to the RAMB16_Sclk
- The Wire
connected to input port clkssr
- The Wire
connected to input port ssren
- The Wire
connected to input port endin
- The Wire
connected to input port dinwe
- The Wire
connected to input port weaddr
- The Wire
connected to input port addrdout
- The Wire
connected to output port doutpublic RAMB16_S(Node parent, Wire clk, Wire ssr, Wire en, Wire din, Wire we, Wire addr, Wire dout, java.lang.String name)
parent
- The parent Cell
to the RAMB16_Sclk
- The Wire
connected to input port clkssr
- The Wire
connected to input port ssren
- The Wire
connected to input port endin
- The Wire
connected to input port dinwe
- The Wire
connected to input port weaddr
- The Wire
connected to input port addrdout
- The Wire
connected to output port doutname
- Instance name of the RAMB16_Spublic RAMB16_S(Node parent, Wire clk, Wire ssr, Wire en, Wire din, Wire we, Wire addr, Wire dout, int[] contents)
parent
- The parent Cell
to the RAMB16_Sclk
- The Wire
connected to input port clkssr
- The Wire
connected to input port ssren
- The Wire
connected to input port endin
- The Wire
connected to input port dinwe
- The Wire
connected to input port weaddr
- The Wire
connected to input port addrdout
- The Wire
connected to output port doutcontents
- An int[]
representing the contents of the
entire BlockRam. THIS ARRAY IS NOT PACKED! Each element corresponds to
an address.public RAMB16_S(Node parent, Wire clk, Wire ssr, Wire en, Wire din, Wire we, Wire addr, Wire dout, int[] contents, java.lang.String name)
parent
- The parent Cell
to the RAMB16_Sclk
- The Wire
connected to input port clkssr
- The Wire
connected to input port ssren
- The Wire
connected to input port endin
- The Wire
connected to input port dinwe
- The Wire
connected to input port weaddr
- The Wire
connected to input port addrdout
- The Wire
connected to output port doutcontents
- An int[]
representing the contents of the
entire BlockRam. THIS ARRAY IS NOT PACKED! Each element corresponds to
an address.name
- Instance name of the RAMB16_Spublic RAMB16_S(Node parent, Wire ssr, Wire en, Wire din, Wire we, Wire addr, Wire dout, long[] contents)
parent
- The parent Cell
to the RAMB16_Sssr
- The Wire
connected to input port ssren
- The Wire
connected to input port endin
- The Wire
connected to input port dinwe
- The Wire
connected to input port weaddr
- The Wire
connected to input port addrdout
- The Wire
connected to output port doutcontents
- A long[]
representing the contents of the
entire BlockRam. THIS ARRAY IS NOT PACKED! Each element corresponds to
an address.public RAMB16_S(Node parent, Wire ssr, Wire en, Wire din, Wire we, Wire addr, Wire dout, long[] contents, java.lang.String name)
parent
- The parent Cell
to the RAMB16_Sssr
- The Wire
connected to input port ssren
- The Wire
connected to input port endin
- The Wire
connected to input port dinwe
- The Wire
connected to input port weaddr
- The Wire
connected to input port addrdout
- The Wire
connected to output port doutcontents
- A long[]
representing the contents of the
entire BlockRam. THIS ARRAY IS NOT PACKED! Each element corresponds to
an address.name
- Instance name of the RAMB16_Spublic RAMB16_S(Node parent, Wire clk, Wire ssr, Wire en, Wire din, Wire we, Wire addr, Wire dout, long[] contents)
parent
- The parent Cell
to the RAMB16_Sclk
- The Wire
connected to input port clkssr
- The Wire
connected to input port ssren
- The Wire
connected to input port endin
- The Wire
connected to input port dinwe
- The Wire
connected to input port weaddr
- The Wire
connected to input port addrdout
- The Wire
connected to output port doutcontents
- A long[]
representing the contents of the
entire BlockRam. THIS ARRAY IS NOT PACKED! Each element corresponds to
an address.public RAMB16_S(Node parent, Wire clk, Wire ssr, Wire en, Wire din, Wire we, Wire addr, Wire dout, long[] contents, java.lang.String name)
parent
- The parent Cell
to the RAMB16_Sclk
- The Wire
connected to input port clkssr
- The Wire
connected to input port ssren
- The Wire
connected to input port endin
- The Wire
connected to input port dinwe
- The Wire
connected to input port weaddr
- The Wire
connected to input port addrdout
- The Wire
connected to output port doutcontents
- A long[]
representing the contents of the
entire BlockRam. THIS ARRAY IS NOT PACKED! Each element corresponds to
an address.name
- Instance name of the RAMB16_Spublic RAMB16_S(Node parent, java.lang.String name, java.lang.String s0, Wire w0, java.lang.String s1, Wire w1, java.lang.String s2, Wire w2, java.lang.String s3, Wire w3, java.lang.String s4, Wire w4, java.lang.String s5, Wire w5, java.lang.String s6, Wire w6, java.lang.String s7, Wire w7, java.lang.String s8, Wire w8, java.lang.String[] contents, java.lang.String[] contentsP)
public RAMB16_S(Node parent, java.lang.String name, java.lang.String s0, Wire w0, java.lang.String s1, Wire w1, java.lang.String s2, Wire w2, java.lang.String s3, Wire w3, java.lang.String s4, Wire w4, java.lang.String s5, Wire w5, java.lang.String s6, Wire w6, java.lang.String s7, Wire w7, java.lang.String[] contents)
public RAMB16_S(Node parent, java.lang.String name, java.lang.String s0, Wire w0, java.lang.String s1, Wire w1, java.lang.String s2, Wire w2, java.lang.String s3, Wire w3, java.lang.String s4, Wire w4, java.lang.String s5, Wire w5, java.lang.String s6, Wire w6, java.lang.String[] contents)
public RAMB16_S(Node parent, Wire clk, Wire ssr, Wire en, Wire din, Wire we, Wire addr, Wire dout, java.lang.String[] contents)
public RAMB16_S(Node parent, Wire clk, Wire ssr, Wire en, Wire din, Wire we, Wire addr, Wire dout, java.lang.String[] contents, java.lang.String name)
public RAMB16_S(Node parent, Wire ssr, Wire en, Wire din, Wire we, Wire addr, Wire dout, java.lang.String[] contents)
public RAMB16_S(Node parent, Wire ssr, Wire en, Wire din, Wire we, Wire addr, Wire dout, java.lang.String[] contents, java.lang.String name)
Method Detail |
protected 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 Logic
public java.lang.String getCellName()
Cell
getCellName
in class Cell
public boolean isNetlistLeaf()
Cell
isNetlistLeaf
in class Cell
public final boolean cellInterfaceDeterminesUniqueNetlistStructure()
Cell
cellInterfaceDeterminesUniqueNetlistStructure
in class Cell
protected boolean defaultSimulationModelIsBehavioral()
Structural
defaultSimulationModelIsBehavioral
in class Structural
public void updateState(int[] update_value)
LargeExternallyUpdateable
updateState
in interface LargeExternallyUpdateable
update_value
- the state to update topublic int[] fetchState()
LargeExternallyUpdateable
fetchState
in interface LargeExternallyUpdateable
public BV[] fetchBVState()
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 earlierpublic int getSize(int wid, int aWid)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |