torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
XilinxDatabaseTypes.cpp
Go to the documentation of this file.
1 // Torc - Copyright 2011-2013 University of Southern California. All Rights Reserved.
2 // $HeadURL$
3 // $Id$
4 
5 // This program is free software: you can redistribute it and/or modify it under the terms of the
6 // GNU General Public License as published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
11 // the GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License along with this program. If
14 // not, see <http://www.gnu.org/licenses/>.
15 
16 /// \file
17 /// \brief Device database types for Xilinx architectures.
18 
20 
21 namespace torc {
22 namespace architecture {
23 namespace xilinx {
24 
25  TileIndex operator +(const TileOffset& inTileOffset, const TileIndex& inTileIndex) {
26  return TileIndex(TileIndex::pod(inTileOffset) + TileIndex::pod(inTileIndex));
27  }
28 
29 } // namespace xilinx
30 } // namespace architecture
31 } // namespace torc
Encapsulation of a tile index in an unsigned 32-bit integer.
Encapsulation of a tile offset in an unsigned 32-bit integer.
TileIndex operator+(const TileOffset &inTileOffset, const TileIndex &inTileIndex)
Addition operator to add an anchor tile index to a relative tile offset.
boost::uint32_t pod
Alias for the encapsulated Plain-Old-Data type.
Device database types for Xilinx architectures.