public class ConfigRow
extends Object
Constructor and Description |
---|
ConfigRow(int configRowIdx)
Creates a new ConfigRow
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Block block)
Adds the provided block to the end of this row of blocks
|
Block |
getBlock(int index)
Gets the block at the specified index within the row.
|
Block |
getBlockFromTileColumn(int tileColumnIdx)
Gets the block in this configuration row based on the the tile column index in the fabric
array.
|
List<Block> |
getBlocks()
Gets the raw list of blocks in this config row
|
int |
getRowIndex()
Gets the config row index as referenced from the Frame Address Register (FAR).
|
static int |
getTopRowCRIndex(Device device)
For a given device, gets the first clock region row that belongs
to the top half of the configuration.
|
boolean |
isTop()
Flag indicating if this config row is in the top half of the array.
|
int |
numOfBlocks()
Gets the number of blocks in this row.
|
void |
setRowIndex(int index)
Sets the config row index as referenced from the Frame Address Register (FAR).
|
void |
setTop(boolean isTop)
Sets the flag indicating if this config row is in the top half of the array.
|
public ConfigRow(int configRowIdx)
public static int getTopRowCRIndex(Device device)
device
- The device of interest.public int getRowIndex()
public void setRowIndex(int index)
public boolean isTop()
public void setTop(boolean isTop)
isTop
- True if this config row is in the top of the array, false othewise.public boolean add(Block block)
block
- The block to addpublic Block getBlock(int index)
index
- The index into the row from which to retrieve a blockpublic int numOfBlocks()
public List<Block> getBlocks()
public Block getBlockFromTileColumn(int tileColumnIdx)
tileColumnIdx
- The column index of the tile of interest (See: Tile.getColumn()
).