Bitstream Interpretation Library (BIL)
0.1
|
Per TileType data of a primitive site. More...
#include <xdlrc/model/PrimitiveSiteType.hpp>
Public Member Functions | |
PrimitiveSiteType () | |
Constructs a new PrimitiveSiteType instance. | |
void | primitiveTypeIndex (unsigned short index) |
Sets index of this site's primitive type. | |
unsigned short | primitiveTypeIndex () const |
Gets index of this site's primitive type. | |
PinWires & | pinWires () |
Gets pin wires. | |
const PinWires & | pinWires () const |
Gets pin wires read only. | |
void | clear () |
Resets all properties to default values. |
Friends | |
void | writeBinary (const PrimitiveSiteType &data, std::ostream &outputStream) |
Writes data from a PrimitiveSiteType into a binary stream. | |
void | readBinary (PrimitiveSiteType &data, std::istream &inputStream) |
Reads data into a PrimitiveSiteType from a binary stream. |
Per TileType data of a primitive site.
The primitive site entity in XDLRC is broken up into two classes: PrimitiveSite and PrimitiveSiteType. The PrimitiveSiteType class stores common data of primitive sites located on tiles of a distinct type. This includes the primitive type of the site and the connections from tile wires to primitive pins. By storing this data per tile type and not per tile, data space requirements are decreased drastically.
Definition at line 26 of file PrimitiveSiteType.hpp.
PrimitiveSiteType::PrimitiveSiteType | ( | ) |
Constructs a new PrimitiveSiteType instance.
Definition at line 11 of file PrimitiveSiteType.cpp.
void PrimitiveSiteType::primitiveTypeIndex | ( | unsigned short | index | ) |
Sets index of this site's primitive type.
index | Index of PrimitiveType in corresponding Device. |
Definition at line 19 of file PrimitiveSiteType.cpp.
unsigned short PrimitiveSiteType::primitiveTypeIndex | ( | ) | const |
Gets index of this site's primitive type.
Definition at line 25 of file PrimitiveSiteType.cpp.
PinWires & PrimitiveSiteType::pinWires | ( | ) |
const PinWires & PrimitiveSiteType::pinWires | ( | ) | const |
Gets pin wires read only.
Definition at line 37 of file PrimitiveSiteType.cpp.
void PrimitiveSiteType::clear | ( | ) |
Resets all properties to default values.
Definition at line 43 of file PrimitiveSiteType.cpp.
|
friend |
Writes data from a PrimitiveSiteType into a binary stream.
data | The PrimitiveSiteType to write. |
outputStream | The stream to write into. |
. |
|
friend |
Reads data into a PrimitiveSiteType from a binary stream.
data | The PrimitiveSiteType to read into. |
inputStream | The stream to read from. |
. |