torc-master
|
Segment and irregular arc data for the device. More...
#include <Segments.hpp>
Data Structures | |
class | CompactSegmentTilewire |
Encapsulation of a wire belonging to a compact segment. More... | |
class | IrregularArc |
Encapsulation of an irregular arc. More... | |
class | SegmentReference |
Encapsulation of compact segment index and an anchoring tile index. More... | |
Public Member Functions | |
uint32_t | getTotalWireCount (void) const |
Return the total number of wires in the device (pruned and actual). More... | |
uint32_t | getActualWireCount (void) const |
Return the number of actual wires in the device (unpruned and non-trivial). More... | |
uint32_t | getPrunedWireCount (void) const |
Return the number of pruned wires in the device. More... | |
uint32_t | getTrivialSegmentCount (void) const |
Return the total number of trivial segments in the device. More... | |
uint32_t | getNonTrivialSegmentCount (void) const |
Return the total number of non-trivial segments in the device. More... | |
uint32_t | getTotalSegmentCount (void) const |
Return the total number of full segments in the device. More... | |
uint32_t | getCompactSegmentCount (void) const |
Return the number of compact segments in the device. More... | |
uint32_t | getIrregularArcCount (void) const |
Return the total number of irregular args in the device. More... | |
const Segments::SegmentReference & | getTilewireSegment (const Tilewire &inTilewire) const |
Return the segment reference for the given tile and wire index. More... | |
Protected Types | |
enum | { eSegmentUndefined = 0xffffffff, eSegmentTrivial = 0 } |
typedef std::string | string |
Imported type name. More... | |
typedef xilinx::TileCount | TileCount |
Imported type name. More... | |
typedef xilinx::TileIndex | TileIndex |
Imported type name. More... | |
typedef xilinx::WireIndex | WireIndex |
Imported type name. More... | |
typedef xilinx::TileOffset | TileOffset |
Imported type name. More... | |
typedef xilinx::CompactSegmentCount | CompactSegmentCount |
Imported type name. More... | |
typedef xilinx::CompactSegmentIndex | CompactSegmentIndex |
Imported type name. More... | |
Protected Member Functions | |
Segments (void) | |
Protected constructor. More... | |
size_t | readTilewireSegments (DigestStream &inStream) |
Read the segment entries for every tile. More... | |
size_t | readSegments (DigestStream &inStream, bool inExtendedAnchorTileCount) |
Read the compact segments for the device. More... | |
size_t | readIrregularArcs (DigestStream &inStream) |
Read the irregular arcs for the device. More... | |
const Segments::IrregularArc * | getIrregularArc (TileIndex inTileIndex, WireIndex inSourceWireIndex, WireIndex inSinkWireIndex) |
Return a pointer to the requested IrregularArc, or 0 if the arc does not exist. More... | |
Protected Attributes | |
Array2D< CompactSegmentTilewire > | mCompactSegments |
The compact segments in the device. More... | |
Array2D< SegmentReference > | mTilewireSegments |
The segment references for every wire in every tile. More... | |
Array2D< IrregularArc > | mIrregularArcs |
The irregular arcs for in the device. More... | |
CompactSegmentCount | mCompactSegmentCount |
The number of compact segments in the device. More... | |
uint32_t | mIrregularArcCount |
The number of irregular arcs in the device. More... | |
uint32_t | mTotalWireCount |
The total number of wires in the device (pruned and actual). More... | |
uint32_t | mPrunedWireCount |
The number of pruned wires in the device. More... | |
uint32_t | mActualWireCount |
The number of actual wires on non-trivial segments in the device. More... | |
uint32_t | mTrivialSegmentCount |
The number of defined trivial segments. More... | |
uint32_t | mNonTrivialSegmentCount |
The number of defined non-trivial segments. More... | |
uint32_t | mTotalSegmentCount |
The total number of defined segments. More... | |
Private Types | |
typedef std::basic_istream< char > | istream |
Internal typedef of istream;. More... | |
typedef std::basic_ostream< char > | ostream |
Internal typedef of ostream;. More... | |
Private Member Functions | |
istream & | mIn (void) |
Returns the database console input stream. More... | |
ostream & | mOut (void) |
Returns the database console output stream. More... | |
ostream & | mErr (void) |
Returns the database console error stream. More... | |
ostream & | mLog (void) |
Returns the database console log stream. More... | |
istream & | getConsoleIn (void) |
Returns the database console input stream. More... | |
ostream & | getConsoleOut (void) |
Returns the database console output stream. More... | |
ostream & | getConsoleErr (void) |
Returns the database console error stream. More... | |
ostream & | getConsoleLog (void) |
Returns the database console log stream. More... | |
void | setConsoleIn (istream &inStream) |
Sets the database console input stream. More... | |
void | setConsoleOut (ostream &inStream) |
Sets the database console output stream. More... | |
void | setConsoleErr (ostream &inStream) |
Sets the database console error stream. More... | |
void | setConsoleLog (ostream &inStream) |
Sets the database console log stream. More... | |
virtual void | setConsoleStreams (istream &inIn, ostream &inOut, ostream &inErr, ostream &inLog) |
Sets all of the database console streams. More... | |
Private Attributes | |
istream * | mInPtr |
Pointer to the database console input stream. More... | |
ostream * | mOutPtr |
ostream * | mErrPtr |
ostream * | mLogPtr |
Static Private Attributes | |
static DDBConsoleStreams | sDefaultConsoleStreams |
static DDBConsoleStreams | sNullConsoleStreams |
Friends | |
class | DDB |
The database has access to our protected functions. More... | |
class | torc::architecture::architecture::architecture_segments |
Our unit test has access to our protected functions. More... | |
class | torc::architecture::architecture::segments_regression_test_helper |
class | torc::architecture::architecture::segments_unit_test_helper |
Segment and irregular arc data for the device.
Segment data is encoded in a collection of compact segments (segment shapes normalized to tile index 0) and a mapping from tilewires to segment references and anchor tile indexes.
Definition at line 40 of file Segments.hpp.
|
protected |
Imported type name.
Definition at line 55 of file Segments.hpp.
|
protected |
Imported type name.
Definition at line 56 of file Segments.hpp.
|
inherited |
Internal typedef of istream;.
Definition at line 41 of file DDBConsoleStreams.hpp.
|
inherited |
Internal typedef of ostream;.
Definition at line 43 of file DDBConsoleStreams.hpp.
|
protected |
Imported type name.
Definition at line 50 of file Segments.hpp.
|
protected |
Imported type name.
Definition at line 51 of file Segments.hpp.
|
protected |
Imported type name.
Definition at line 52 of file Segments.hpp.
|
protected |
Imported type name.
Definition at line 54 of file Segments.hpp.
|
protected |
Imported type name.
Definition at line 53 of file Segments.hpp.
|
protected |
|
protected |
Protected constructor.
Definition at line 27 of file Segments.cpp.
|
inline |
Return the number of actual wires in the device (unpruned and non-trivial).
Definition at line 168 of file Segments.hpp.
|
inline |
Return the number of compact segments in the device.
Definition at line 178 of file Segments.hpp.
|
inlineinherited |
Returns the database console error stream.
Definition at line 69 of file DDBConsoleStreams.hpp.
|
inlineinherited |
Returns the database console input stream.
Definition at line 65 of file DDBConsoleStreams.hpp.
|
inlineinherited |
Returns the database console log stream.
Definition at line 71 of file DDBConsoleStreams.hpp.
|
inlineinherited |
Returns the database console output stream.
Definition at line 67 of file DDBConsoleStreams.hpp.
|
protected |
Return a pointer to the requested IrregularArc, or 0 if the arc does not exist.
Definition at line 213 of file Segments.cpp.
|
inline |
Return the total number of irregular args in the device.
Definition at line 180 of file Segments.hpp.
|
inline |
Return the total number of non-trivial segments in the device.
Definition at line 174 of file Segments.hpp.
|
inline |
Return the number of pruned wires in the device.
Definition at line 170 of file Segments.hpp.
|
inline |
Return the segment reference for the given tile and wire index.
Definition at line 182 of file Segments.hpp.
|
inline |
Return the total number of full segments in the device.
Definition at line 176 of file Segments.hpp.
|
inline |
Return the total number of wires in the device (pruned and actual).
Definition at line 166 of file Segments.hpp.
|
inline |
Return the total number of trivial segments in the device.
Definition at line 172 of file Segments.hpp.
|
inlineinherited |
Returns the database console error stream.
Definition at line 61 of file DDBConsoleStreams.hpp.
|
inlineinherited |
Returns the database console input stream.
Definition at line 57 of file DDBConsoleStreams.hpp.
|
inlineinherited |
Returns the database console log stream.
Definition at line 63 of file DDBConsoleStreams.hpp.
|
inlineinherited |
Returns the database console output stream.
Definition at line 59 of file DDBConsoleStreams.hpp.
|
protected |
Read the irregular arcs for the device.
Definition at line 173 of file Segments.cpp.
|
protected |
Read the compact segments for the device.
Definition at line 89 of file Segments.cpp.
|
protected |
Read the segment entries for every tile.
Definition at line 32 of file Segments.cpp.
|
inlineinherited |
Sets the database console error stream.
Definition at line 77 of file DDBConsoleStreams.hpp.
|
inlineinherited |
Sets the database console input stream.
Definition at line 73 of file DDBConsoleStreams.hpp.
|
inlineinherited |
Sets the database console log stream.
Definition at line 79 of file DDBConsoleStreams.hpp.
|
inlineinherited |
Sets the database console output stream.
Definition at line 75 of file DDBConsoleStreams.hpp.
|
inlinevirtualinherited |
Sets all of the database console streams.
inIn | The console input stream. |
inOut | The console output stream. |
inErr | The console error stream. |
inLog | The console log stream. |
Reimplemented in torc::architecture::DDB.
Definition at line 85 of file DDBConsoleStreams.hpp.
|
friend |
The database has access to our protected functions.
Definition at line 43 of file Segments.hpp.
|
friend |
Our unit test has access to our protected functions.
Definition at line 45 of file Segments.hpp.
|
friend |
Definition at line 46 of file Segments.hpp.
|
friend |
Definition at line 47 of file Segments.hpp.
|
protected |
The number of actual wires on non-trivial segments in the device.
Definition at line 137 of file Segments.hpp.
|
protected |
The number of compact segments in the device.
Definition at line 123 of file Segments.hpp.
|
protected |
The compact segments in the device.
Definition at line 117 of file Segments.hpp.
|
protectedinherited |
Definition at line 96 of file DDBConsoleStreams.hpp.
|
protectedinherited |
Pointer to the database console input stream.
Definition at line 94 of file DDBConsoleStreams.hpp.
|
protected |
The number of irregular arcs in the device.
Definition at line 125 of file Segments.hpp.
|
protected |
The irregular arcs for in the device.
Definition at line 121 of file Segments.hpp.
|
protectedinherited |
Definition at line 97 of file DDBConsoleStreams.hpp.
|
protected |
The number of defined non-trivial segments.
Definition at line 145 of file Segments.hpp.
|
protectedinherited |
Definition at line 95 of file DDBConsoleStreams.hpp.
|
protected |
The number of pruned wires in the device.
Definition at line 133 of file Segments.hpp.
|
protected |
The segment references for every wire in every tile.
Definition at line 119 of file Segments.hpp.
|
protected |
The total number of defined segments.
Definition at line 149 of file Segments.hpp.
|
protected |
The total number of wires in the device (pruned and actual).
Definition at line 129 of file Segments.hpp.
|
protected |
The number of defined trivial segments.
Definition at line 141 of file Segments.hpp.
|
staticinherited |
Definition at line 45 of file DDBConsoleStreams.hpp.
|
staticinherited |
Definition at line 46 of file DDBConsoleStreams.hpp.