torc::architecture::Sites Class Reference

Site type and population data for the family and the device. More...

#include <Sites.hpp>

List of all members.

Public Member Functions

SiteCount getSiteCount (void) const
 Returns the site count for this device.
SiteTypeCount getSiteTypeCount (void) const
 Returns the site type count for this family.
const Array< const PrimitiveDef > & getSiteTypes (void) const
 Returns the site types for this family.
const Array< const Site > & getSites (void) const
 Returns the sites for this family.
const SitegetSite (SiteIndex inSiteIndex) const
 Returns the site for the specified index.
const Array< const Package > & getPackages (void) const
 Returns the packages for this family.
SiteIndex findSiteIndex (const string &inName) const
 Returns the site index for the given site name.
PackageIndex findPackageIndex (const string &inName) const
 Returns the package index for the given package name.

Protected Types

typedef std::string string
 Imported type name.
typedef xilinx::TileIndex TileIndex
 Imported type name.
typedef xilinx::WireIndex WireIndex
 Imported type name.
typedef xilinx::PinFlags PinFlags
 Imported type name.
typedef xilinx::PinCount PinCount
 Imported type name.
typedef xilinx::SiteCount SiteCount
 Imported type name.
typedef xilinx::SiteIndex SiteIndex
 Imported type name.
typedef xilinx::SiteFlags SiteFlags
 Imported type name.
typedef xilinx::SiteTypeCount SiteTypeCount
 Imported type name.
typedef xilinx::SiteTypeIndex SiteTypeIndex
 Imported type name.
typedef xilinx::PackageCount PackageCount
 Imported type name.
typedef xilinx::PackageIndex PackageIndex
 Imported type name.
typedef xilinx::PadCount PadCount
 Imported type name.
typedef xilinx::PadIndex PadIndex
 Imported type name.
typedef std::map< string,
SiteIndex
SiteNameToSiteIndexMap
 Map from site name to site index.
typedef std::map< string,
PackageIndex
PackageNameToPackageIndexMap
 Map from package name to package index.

Protected Member Functions

size_t readPrimitiveTypes (DigestStream &inStream)
 Read the primitive types for the family.
size_t readPrimitivePinMaps (DigestStream &inStream)
 Read the site pin mappings for the family.
size_t readSites (DigestStream &inStream)
 Read the sites for the device.
size_t readPackages (DigestStream &inStream)
 Read the packages for the device.
void activatePackage (const string &inName)
 Activate the specified device package.
void activatePackage (PackageIndex inPackageIndex)
 Activate the specified device package.

Protected Attributes

Array< const PrimitiveDefmSiteTypes
 The site types for this family.
Array2D< const WireIndexmPrimitivePinMaps
 The site pin maps for this family.
Array< const SitemSites
 The logic sites for this device.
SiteNameToSiteIndexMap mSiteNameToSiteIndex
 The mapping from site name to site index for this device.
Array< const PackagemPackages
 The packages for this device.
PackageNameToPackageIndexMap mPackageNameToPackageIndex
 The mapping from package name to package index for this device.

Friends

class DDB
 The database has access to our protected functions.


Detailed Description

Site type and population data for the family and the device.

Each device has a collection of logic sites. Those sites are instantiations of family defined site types, with each instance also including a mapping from site pin to Tilewire.

Definition at line 44 of file Sites.hpp.


Member Typedef Documentation

typedef std::string torc::architecture::Sites::string [protected]

Imported type name.

Definition at line 50 of file Sites.hpp.

Imported type name.

Definition at line 51 of file Sites.hpp.

Imported type name.

Definition at line 52 of file Sites.hpp.

Imported type name.

Definition at line 53 of file Sites.hpp.

Imported type name.

Definition at line 54 of file Sites.hpp.

Imported type name.

Definition at line 55 of file Sites.hpp.

Imported type name.

Definition at line 56 of file Sites.hpp.

Imported type name.

Definition at line 57 of file Sites.hpp.

Imported type name.

Definition at line 58 of file Sites.hpp.

Imported type name.

Definition at line 59 of file Sites.hpp.

Imported type name.

Definition at line 60 of file Sites.hpp.

Imported type name.

Definition at line 61 of file Sites.hpp.

Imported type name.

Definition at line 62 of file Sites.hpp.

Imported type name.

Definition at line 63 of file Sites.hpp.

Map from site name to site index.

Definition at line 65 of file Sites.hpp.

Map from package name to package index.

Definition at line 67 of file Sites.hpp.


Member Function Documentation

size_t torc::architecture::Sites::readPrimitiveTypes ( DigestStream inStream  )  [protected]

Read the primitive types for the family.

Todo:
Throw a proper exception.

Todo:
Throw a proper exception.

Todo:
Throw a proper exception.

Todo:
Throw a proper exception.

Todo:
Throw a proper exception.

Todo:
Throw a proper exception.

Todo:
Throw a proper exception

Definition at line 90 of file Sites.cpp.

size_t torc::architecture::Sites::readPrimitivePinMaps ( DigestStream inStream  )  [protected]

Read the site pin mappings for the family.

Todo:
Throw a proper exception.

Definition at line 267 of file Sites.cpp.

size_t torc::architecture::Sites::readSites ( DigestStream inStream  )  [protected]

Read the sites for the device.

Todo:
Throw a proper exception.

Todo:
Throw a proper exception.

Definition at line 304 of file SitePin.cpp.

size_t torc::architecture::Sites::readPackages ( DigestStream inStream  )  [protected]

Read the packages for the device.

Todo:
Throw a proper exception.

Todo:
Throw a proper exception.

Todo:
Throw a proper exception.

Definition at line 25 of file SitePin.cpp.

void torc::architecture::Sites::activatePackage ( const string inName  )  [inline, protected]

Activate the specified device package.

Definition at line 91 of file Sites.hpp.

void torc::architecture::Sites::activatePackage ( PackageIndex  inPackageIndex  )  [inline, protected]

Activate the specified device package.

Definition at line 95 of file Sites.hpp.

SiteCount torc::architecture::Sites::getSiteCount ( void   )  const [inline]

Returns the site count for this device.

Definition at line 120 of file Sites.hpp.

SiteTypeCount torc::architecture::Sites::getSiteTypeCount ( void   )  const [inline]

Returns the site type count for this family.

Definition at line 122 of file Sites.hpp.

const Array<const PrimitiveDef>& torc::architecture::Sites::getSiteTypes ( void   )  const [inline]

Returns the site types for this family.

Definition at line 124 of file Sites.hpp.

const Array<const Site>& torc::architecture::Sites::getSites ( void   )  const [inline]

Returns the sites for this family.

Definition at line 126 of file Sites.hpp.

const Site& torc::architecture::Sites::getSite ( SiteIndex  inSiteIndex  )  const [inline]

Returns the site for the specified index.

Definition at line 128 of file Sites.hpp.

const Array<const Package>& torc::architecture::Sites::getPackages ( void   )  const [inline]

Returns the packages for this family.

Definition at line 130 of file Sites.hpp.

SiteIndex torc::architecture::Sites::findSiteIndex ( const string inName  )  const [inline]

Returns the site index for the given site name.

Definition at line 133 of file Sites.hpp.

PackageIndex torc::architecture::Sites::findPackageIndex ( const string inName  )  const [inline]

Returns the package index for the given package name.

Definition at line 139 of file Sites.hpp.


Friends And Related Function Documentation

friend class DDB [friend]

The database has access to our protected functions.

Definition at line 47 of file Sites.hpp.


Member Data Documentation

The site types for this family.

Definition at line 70 of file Sites.hpp.

The site pin maps for this family.

Definition at line 72 of file Sites.hpp.

The logic sites for this device.

Definition at line 74 of file Sites.hpp.

The mapping from site name to site index for this device.

Definition at line 76 of file Sites.hpp.

The packages for this device.

Definition at line 78 of file Sites.hpp.

The mapping from package name to package index for this device.

Definition at line 80 of file Sites.hpp.


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

Generated on Thu Oct 13 16:49:36 2011 for TORC by  doxygen 1.5.6