Bitstream Interpretation Library (BIL)  0.1
Public Member Functions | Friends
bil::PrimitiveSiteType Class Reference

Per TileType data of a primitive site. More...

#include <xdlrc/model/PrimitiveSiteType.hpp>

List of all members.

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.
PinWirespinWires ()
 Gets pin wires.
const PinWirespinWires () 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.

Detailed Description

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.


Constructor & Destructor Documentation

PrimitiveSiteType::PrimitiveSiteType ( )

Constructs a new PrimitiveSiteType instance.

Definition at line 11 of file PrimitiveSiteType.cpp.


Member Function Documentation

void PrimitiveSiteType::primitiveTypeIndex ( unsigned short  index)

Sets index of this site's primitive type.

Parameters:
indexIndex 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.

Returns:
Index of PrimitiveType in corresponding Device.

Definition at line 25 of file PrimitiveSiteType.cpp.

PinWires & PrimitiveSiteType::pinWires ( )

Gets pin wires.

Returns:
The pin wires.

Definition at line 31 of file PrimitiveSiteType.cpp.

const PinWires & PrimitiveSiteType::pinWires ( ) const

Gets pin wires read only.

Returns:
The pin wires.

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.


Friends And Related Function Documentation

void writeBinary ( const PrimitiveSiteType data,
std::ostream &  outputStream 
)
friend

Writes data from a PrimitiveSiteType into a binary stream.

Parameters:
dataThe PrimitiveSiteType to write.
outputStreamThe stream to write into.
Exceptions:
.
void readBinary ( PrimitiveSiteType data,
std::istream &  inputStream 
)
friend

Reads data into a PrimitiveSiteType from a binary stream.

Parameters:
dataThe PrimitiveSiteType to read into.
inputStreamThe stream to read from.
Exceptions:
.

The documentation for this class was generated from the following files: