Bitstream Interpretation Library (BIL)
0.1
|
Per instance data of tiles. More...
#include <xdlrc/model/Tile.hpp>
Public Member Functions | |
Tile () | |
Constructs a new Tile instance. | |
std::string & | name () |
Gets tile name. | |
const std::string & | name () const |
Gets tile name read only. | |
PrimitiveSites & | primitiveSites () |
Gets primitive sites. | |
const PrimitiveSites & | primitiveSites () const |
Gets primitive sites read only. | |
void | row (unsigned short row) |
Sets tile row. | |
unsigned short | row () const |
Gets tile row. | |
void | column (unsigned short column) |
Sets tile column. | |
unsigned short | column () const |
Gets tile column. | |
void | siteX (unsigned short x) |
Sets site x-position. | |
unsigned short | siteX () const |
Gets site x-position. | |
void | siteY (unsigned short y) |
Sets site y-position. | |
unsigned short | siteY () const |
Gets site y-position. | |
void | typeIndex (unsigned short index) |
Sets index of TileType. | |
unsigned short | typeIndex () const |
Gets index of TileType. | |
void | clear () |
Resets all properties to default values. |
Friends | |
void | writeBinary (const Tile &data, std::ostream &outputStream) |
Writes data from a Tile into a binary stream. | |
void | readBinary (Tile &data, std::istream &inputStream) |
Reads data into a Tile from a binary stream. |
Per instance data of tiles.
The tile entity in XDLRC is broken up into two classes: Tile and TileType. The Tile class stores data belonging to a distinct tile. It contains its name, its primitive sites, its tile position, its site position, and its type index. The tile position determines a place on the regular 2D-grid of tiles the device is made of. Besides this there is another spatial ordering scheme called sites. Site are the rectangular areas on the FPGA, which are bounded by surrounding wire channels. They are not directly mentioned in XDLRC, but tile names carry the coordinates of their containing site. Every site includes a number of tiles of different types.
std::string & Tile::name | ( | ) |
const std::string & Tile::name | ( | ) | const |
PrimitiveSites & Tile::primitiveSites | ( | ) |
const PrimitiveSites & Tile::primitiveSites | ( | ) | const |
void Tile::row | ( | unsigned short | row | ) |
unsigned short Tile::row | ( | ) | const |
void Tile::column | ( | unsigned short | column | ) |
unsigned short Tile::column | ( | ) | const |
void Tile::siteX | ( | unsigned short | x | ) |
unsigned short Tile::siteX | ( | ) | const |
void Tile::siteY | ( | unsigned short | y | ) |
unsigned short Tile::siteY | ( | ) | const |
void Tile::typeIndex | ( | unsigned short | index | ) |
unsigned short Tile::typeIndex | ( | ) | const |
void Tile::clear | ( | ) |
|
friend |
|
friend |