Bitstream Interpretation Library (BIL)
0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
xdl
writer
PIPRefString.cpp
Go to the documentation of this file.
1
6
#include <
xdl/writer/PIPRefString.hpp
>
7
#include <
xdlrc/util/PIPString.hpp
>
8
9
using namespace
bil;
10
11
12
std::string
bil::pipRefString
(
const
PIPRef
& pipRef,
const
Tiles
& tiles,
13
const
TileTypes
& tileTypes)
14
{
15
// get tile location of PIP
16
const
Tile
& tile = tiles.at(pipRef.
tileIndex
());
17
// add tile name to result string
18
std::string pipRefStr(tile.
name
());
19
pipRefStr.push_back(
' '
);
20
21
// get start wire, direction, and end wire of PIP
22
const
TileType
& tileType = tileTypes.at(tile.
typeIndex
());
23
const
PIPs
& pips = tileType.
pips
();
24
const
PIP
& pip = pips.at(pipRef.
pipIndex
());
25
const
Wires
& wires = tileType.
wires
();
26
pipRefStr.append(
pipString
(pip, wires));
27
28
// return string
29
return
pipRefStr;
30
}
Generated on Wed Aug 8 2012 21:57:41 for Bitstream Interpretation Library (BIL) by
1.8.1.1