|
|||||||||||
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
byucc.jhdl.Xilinx.Memory
byucc.jhdl.Xilinx.Virtex2.srl16
SRL16 is a shift register look up table (LUT). The inputs A3, A2, A1, and A0 select the output length of the shift register. The shift register may be of a fixed, static length or dynamically adjusted. The shift register LUT contents are initialized by assigning a four-digit hexadecimal number to an INIT attribute. The first, or the left-most, hexadecimal digit is the most significant bit. If an INIT value is not specified, it defaults to a value of four zeros (0000) so that the shift register LUT is cleared during configuration. The data (D) is loaded into the first bit of the shift register during the Low-to-High clock (CLK) transition and appears on the Q output. During subsequent Low-to-High clock transitions data is shifted to the next highest bit position as new data is loaded into Q. Static Length Mode To get a fixed length shift register, drive the A3 through A0 inputs with static values. The length of the shift register can vary from 1 bit to 16 bits as determined from the following formula: Length = (8*A3) +(4*A2) + (2*A1) + A0 +1 If A3, A2, A1, and A0 are all zeros (0000), the shift register is one bit long. If they are all ones (1111), it is 16 bits long. Dynamic Length Mode The length of the shift register can be changed dynamically by changing the values driving the A3 through A0 inputs. For example, if A2, A1, and A0 are all ones (111) and A3 toggles between a one (1) and a zero (0), the length of the shift register changes from 16 bits to 8 bits. Internally, the length of the shift register is always 16 bits and the input lines A3 through A0 select which of the 16 bits reach the output. (Source: XACT Libraries Guide, Xilinx Corporation, 1991-1998.)
Field Summary | |
static CellInterface[] |
cell_interface
The port interface for: srl16 CLK : implicit (1) d : sin (1) a : ain (4) q : aout (1) |
static java.lang.String |
cellname
The static cellname (netlist reference name) for srl16 |
Fields inherited from class byucc.jhdl.Xilinx.Memory |
implicit_interface |
Fields inherited from class byucc.jhdl.Xilinx.BasicMemory |
bitmasksl, 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 |
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 | |
protected |
srl16(Node parent)
Used only by child classes to pass up the parent cell. |
|
srl16(Node parent,
ArgBlockList abl)
Constructs a new srl16, connecting its ports as given by the String-Wire pairs in the ArgBlockList . |
protected |
srl16(Node parent,
java.lang.String name)
Used only by child classes to pass up the parent cell and instance name. |
|
srl16(Node parent,
java.lang.String instanceName,
ArgBlockList abl)
Constructs a new srl16, connecting its ports as given by the String-Wire pairs in the ArgBlockList . |
|
srl16(Node parent,
java.lang.String instanceName,
java.lang.String s0,
Wire w0,
java.lang.String s1,
Wire w1,
java.lang.String s2,
Wire w2)
Constructs a new srl16, connecting each Wire to the port whose name is given by the accompanying String parameter
The initial String parameter specifies the instance name. |
|
srl16(Node parent,
java.lang.String instanceName,
java.lang.String s0,
Wire w0,
java.lang.String s1,
Wire w1,
java.lang.String s2,
Wire w2,
java.lang.String INIT)
Constructs a new srl16, connecting each Wire to the port whose name is given by the accompanying String parameter
The initial String parameter specifies the instance name. |
|
srl16(Node parent,
java.lang.String instanceName,
java.lang.String s0,
Wire w0,
java.lang.String s1,
Wire w1,
java.lang.String s2,
Wire w2,
java.lang.String s3,
Wire w3)
Constructs a new srl16, connecting each Wire to the port whose name is given by the accompanying String parameter
Note: this includes enough wires for the implicit ports. |
|
srl16(Node parent,
java.lang.String instanceName,
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 INIT)
Constructs a new srl16, connecting each Wire to the port whose name is given by the accompanying String parameter
Note: this includes enough wires for the implicit ports. |
|
srl16(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)
|
|
srl16(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)
|
|
srl16(Node parent,
java.lang.String s0,
Wire w0,
java.lang.String s1,
Wire w1,
java.lang.String s2,
Wire w2)
Constructs a new srl16, connecting each Wire to the port whose name is given by the accompanying String parameter |
|
srl16(Node parent,
java.lang.String s0,
Wire w0,
java.lang.String s1,
Wire w1,
java.lang.String s2,
Wire w2,
java.lang.String INIT)
Constructs a new srl16, connecting each Wire to the port whose name is given by the accompanying String parameter
The final String parameters set the generics , INIT |
|
srl16(Node parent,
java.lang.String s0,
Wire w0,
java.lang.String s1,
Wire w1,
java.lang.String s2,
Wire w2,
java.lang.String s3,
Wire w3)
Constructs a new srl16, connecting each Wire to the port whose name is given by the accompanying String parameter
Note: this includes enough wires for the implicit ports. |
|
srl16(Node parent,
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 INIT)
Constructs a new srl16, connecting each Wire to the port whose name is given by the accompanying String parameter
Note: this includes enough wires for the implicit ports. |
|
srl16(Node parent,
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)
|
|
srl16(Node parent,
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)
|
|
srl16(Node parent,
java.lang.String instanceName,
Wire d,
Wire a,
Wire q)
Constructs a new srl16. |
|
srl16(Node parent,
java.lang.String instanceName,
Wire d,
Wire a,
Wire q,
java.lang.String INIT)
Constructs a new srl16. |
|
srl16(Node parent,
java.lang.String instanceName,
Wire CLK,
Wire d,
Wire a,
Wire q)
Constructs a new srl16. |
|
srl16(Node parent,
java.lang.String instanceName,
Wire CLK,
Wire d,
Wire a,
Wire q,
java.lang.String INIT)
Constructs a new srl16. |
|
srl16(Node parent,
Wire d,
Wire a,
Wire q)
Constructs a new srl16. |
|
srl16(Node parent,
Wire d,
Wire a,
Wire q,
java.lang.String INIT)
Constructs a new srl16. |
|
srl16(Node parent,
Wire CLK,
Wire d,
Wire a,
Wire q)
Constructs a new srl16. |
|
srl16(Node parent,
Wire CLK,
Wire d,
Wire a,
Wire q,
java.lang.String INIT)
Constructs a new srl16. |
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. |
void |
clock()
Users define synchronous behavior in this method using standard JHDL constructs. |
java.lang.String |
getCellName()
Access the cell name associated with a derived class. |
boolean |
isAsynchronousSourceSinkResolved()
|
boolean |
isNetlistLeaf()
A few rare cells are leafCells during netlisting, but not during simulation. |
static void |
main(java.lang.String[] argv)
|
void |
propagate()
Users defined propagatable behavior using standard JHDL constructs. |
void |
reset()
If you define a behavior, you must also define a reset method for resetting the synchonous part of your model. |
static void |
test()
|
int |
type()
This method returns one of the predefined schematic constants to identify the type of this cell. |
Methods inherited from class byucc.jhdl.Xilinx.Memory |
connectImplicitPorts, externallyUpdated, fetchState, resetExternallyUpdated, updateState |
Methods inherited from class byucc.jhdl.Xilinx.BasicMemory |
defaultSimulationModelIsBehavioral, getBits, getMemoryElement, getMemoryRange, getMemoryWidth, getSize, hexStr2Long, hexString2bin, init, initialize, padBits, read, readl, reverseBits, shiftl, splitBits, write |
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 java.lang.String cellname
public static CellInterface[] cell_interface
Constructor Detail |
protected srl16(Node parent)
parent
- Parent cellprotected srl16(Node parent, java.lang.String name)
parent
- Parent cellname
- Instance name of the cellpublic srl16(Node parent, Wire d, Wire a, Wire q)
parent
- The parent Cell
to the srl16d
- The Wire
to be connected to input port da
- The Wire
to be connected to input port aq
- The Wire
to be connected to output port qpublic srl16(Node parent, java.lang.String instanceName, Wire d, Wire a, Wire q)
String
parameter specifies the instance name.
parent
- The parent Cell
to the srl16instanceName
- The instance name of the srl16d
- The Wire
to be connected to input port da
- The Wire
to be connected to input port aq
- The Wire
to be connected to output port qpublic srl16(Node parent, Wire CLK, Wire d, Wire a, Wire q)
parent
- The parent Cell
to the srl16CLK
- The Wire
to be connected to implicit port CLKd
- The Wire
to be connected to input port da
- The Wire
to be connected to input port aq
- The Wire
to be connected to output port qpublic srl16(Node parent, java.lang.String instanceName, Wire CLK, Wire d, Wire a, Wire q)
String
parameter specifies the instance name.
parent
- The parent Cell
to the srl16instanceName
- The instance name of the srl16CLK
- The Wire
to be connected to implicit port CLKd
- The Wire
to be connected to input port da
- The Wire
to be connected to input port aq
- The Wire
to be connected to output port qpublic srl16(Node parent, Wire d, Wire a, Wire q, java.lang.String INIT)
String
parameters set the generics , INIT
parent
- The parent Cell
to the srl16d
- The Wire
to be connected to input port da
- The Wire
to be connected to input port aq
- The Wire
to be connected to output port qINIT
- The String
assignment for generic INITpublic srl16(Node parent, java.lang.String instanceName, Wire d, Wire a, Wire q, java.lang.String INIT)
String
parameter specifies the instance name.
The final String
parameters set the generics , INIT
parent
- The parent Cell
to the srl16instanceName
- The instance name of the srl16d
- The Wire
to be connected to input port da
- The Wire
to be connected to input port aq
- The Wire
to be connected to output port qINIT
- The String
assignment for generic INITpublic srl16(Node parent, Wire CLK, Wire d, Wire a, Wire q, java.lang.String INIT)
String
parameters set the generics , INIT
parent
- The parent Cell
to the srl16CLK
- The Wire
to be connected to implicit port CLKd
- The Wire
to be connected to input port da
- The Wire
to be connected to input port aq
- The Wire
to be connected to output port qINIT
- The String
assignment for generic INITpublic srl16(Node parent, java.lang.String instanceName, Wire CLK, Wire d, Wire a, Wire q, java.lang.String INIT)
String
parameter specifies the instance name.
The final String
parameters set the generics , INIT
parent
- The parent Cell
to the srl16instanceName
- The instance name of the srl16CLK
- The Wire
to be connected to implicit port CLKd
- The Wire
to be connected to input port da
- The Wire
to be connected to input port aq
- The Wire
to be connected to output port qINIT
- The String
assignment for generic INITpublic srl16(Node parent, java.lang.String s0, Wire w0, java.lang.String s1, Wire w1, java.lang.String s2, Wire w2)
Wire
to the port whose name is given by the accompanying String
parameter
parent
- The parent Cell
to the srl16s0
- The name of the port to which w0 will be connectedw0
- The Wire
to be connected to the port specified by s0s1
- The name of the port to which w1 will be connectedw1
- The Wire
to be connected to the port specified by s1s2
- The name of the port to which w2 will be connectedw2
- The Wire
to be connected to the port specified by s2public srl16(Node parent, java.lang.String s0, Wire w0, java.lang.String s1, Wire w1, java.lang.String s2, Wire w2, java.lang.String INIT)
Wire
to the port whose name is given by the accompanying String
parameter
The final String
parameters set the generics , INIT
parent
- The parent Cell
to the srl16s0
- The name of the port to which w0 will be connectedw0
- The Wire
to be connected to the port specified by s0s1
- The name of the port to which w1 will be connectedw1
- The Wire
to be connected to the port specified by s1s2
- The name of the port to which w2 will be connectedw2
- The Wire
to be connected to the port specified by s2INIT
- The String
assignment for generic INITpublic srl16(Node parent, java.lang.String instanceName, java.lang.String s0, Wire w0, java.lang.String s1, Wire w1, java.lang.String s2, Wire w2)
Wire
to the port whose name is given by the accompanying String
parameter
The initial String
parameter specifies the instance name.
parent
- The parent Cell
to the srl16instanceName
- The instance name of the srl16s0
- The name of the port to which w0 will be connectedw0
- The Wire
to be connected to the port specified by s0s1
- The name of the port to which w1 will be connectedw1
- The Wire
to be connected to the port specified by s1s2
- The name of the port to which w2 will be connectedw2
- The Wire
to be connected to the port specified by s2public srl16(Node parent, java.lang.String instanceName, java.lang.String s0, Wire w0, java.lang.String s1, Wire w1, java.lang.String s2, Wire w2, java.lang.String INIT)
Wire
to the port whose name is given by the accompanying String
parameter
The initial String
parameter specifies the instance name.
The final String
parameters set the generics , INIT
parent
- The parent Cell
to the srl16instanceName
- The instance name of the srl16s0
- The name of the port to which w0 will be connectedw0
- The Wire
to be connected to the port specified by s0s1
- The name of the port to which w1 will be connectedw1
- The Wire
to be connected to the port specified by s1s2
- The name of the port to which w2 will be connectedw2
- The Wire
to be connected to the port specified by s2INIT
- The String
assignment for generic INITpublic srl16(Node parent, java.lang.String s0, Wire w0, java.lang.String s1, Wire w1, java.lang.String s2, Wire w2, java.lang.String s3, Wire w3)
Wire
to the port whose name is given by the accompanying String
parameter
Note: this includes enough wires for the implicit ports.
parent
- The parent Cell
to the srl16s0
- The name of the port to which w0 will be connectedw0
- The Wire
to be connected to the port specified by s0s1
- The name of the port to which w1 will be connectedw1
- The Wire
to be connected to the port specified by s1s2
- The name of the port to which w2 will be connectedw2
- The Wire
to be connected to the port specified by s2s3
- The name of the port to which w3 will be connectedw3
- The Wire
to be connected to the port specified by s3public srl16(Node parent, 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 INIT)
Wire
to the port whose name is given by the accompanying String
parameter
Note: this includes enough wires for the implicit ports.
The final String
parameters set the generics , INIT
parent
- The parent Cell
to the srl16s0
- The name of the port to which w0 will be connectedw0
- The Wire
to be connected to the port specified by s0s1
- The name of the port to which w1 will be connectedw1
- The Wire
to be connected to the port specified by s1s2
- The name of the port to which w2 will be connectedw2
- The Wire
to be connected to the port specified by s2s3
- The name of the port to which w3 will be connectedw3
- The Wire
to be connected to the port specified by s3INIT
- The String
assignment for generic INITpublic srl16(Node parent, java.lang.String instanceName, java.lang.String s0, Wire w0, java.lang.String s1, Wire w1, java.lang.String s2, Wire w2, java.lang.String s3, Wire w3)
Wire
to the port whose name is given by the accompanying String
parameter
Note: this includes enough wires for the implicit ports.
The initial String
parameter specifies the instance name.
parent
- The parent Cell
to the srl16instanceName
- The instance name of the srl16s0
- The name of the port to which w0 will be connectedw0
- The Wire
to be connected to the port specified by s0s1
- The name of the port to which w1 will be connectedw1
- The Wire
to be connected to the port specified by s1s2
- The name of the port to which w2 will be connectedw2
- The Wire
to be connected to the port specified by s2s3
- The name of the port to which w3 will be connectedw3
- The Wire
to be connected to the port specified by s3public srl16(Node parent, java.lang.String instanceName, 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 INIT)
Wire
to the port whose name is given by the accompanying String
parameter
Note: this includes enough wires for the implicit ports.
The initial String
parameter specifies the instance name.
The final String
parameters set the generics , INIT
parent
- The parent Cell
to the srl16instanceName
- The instance name of the srl16s0
- The name of the port to which w0 will be connectedw0
- The Wire
to be connected to the port specified by s0s1
- The name of the port to which w1 will be connectedw1
- The Wire
to be connected to the port specified by s1s2
- The name of the port to which w2 will be connectedw2
- The Wire
to be connected to the port specified by s2s3
- The name of the port to which w3 will be connectedw3
- The Wire
to be connected to the port specified by s3INIT
- The String
assignment for generic INITpublic srl16(Node parent, ArgBlockList abl)
String-Wire
pairs in the ArgBlockList
. Any generic assignments are made through String-String
pairs in the ArgBlockList
.
parent
- The parent Cell
to the srl16abl
- The list of String-Wire
pairs for port assignments, and String-String
pairs for generic assignments.public srl16(Node parent, java.lang.String instanceName, ArgBlockList abl)
String-Wire
pairs in the ArgBlockList
. Any generic assignments are made through String-String
pairs in the ArgBlockList
.
The initial String
parameter is the instance name.
parent
- The parent Cell
to the srl16instanceName
- The instance name of the srl16abl
- The list of String-Wire
pairs for port assignments, and String-String
pairs for generic assignments.public srl16(Node parent, 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)
public srl16(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)
public srl16(Node parent, 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)
public srl16(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)
Method Detail |
public java.lang.String getCellName()
Cell
getCellName
in class Cell
public final boolean isAsynchronousSourceSinkResolved()
isAsynchronousSourceSinkResolved
in class Cell
public final boolean cellInterfaceDeterminesUniqueNetlistStructure()
Cell
cellInterfaceDeterminesUniqueNetlistStructure
in class Cell
public boolean isNetlistLeaf()
Cell
isNetlistLeaf
in class Cell
public final void clock()
Structural
clock
in interface Clockable
clock
in class Structural
public final void propagate()
Structural
propagate
in interface byucc.jhdl.base.Propagateable
propagate
in class Structural
public void reset()
Structural
reset
in interface Clockable
reset
in class BasicMemory
public int type()
PreDefinedSchematic
type
in interface PreDefinedSchematic
public static void main(java.lang.String[] argv)
public static void test()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |