00001 // Torc - Copyright 2011 University of Southern California. All Rights Reserved. 00002 // $HeadURL: https://torc-isi.svn.sourceforge.net/svnroot/torc-isi/branches/staging/0.9/src/torc/physical/TilewirePlaceholder.hpp $ 00003 // $Id: TilewirePlaceholder.hpp 10 2011-10-12 18:40:16Z nsteiner $ 00004 00005 // This program is free software: you can redistribute it and/or modify it under the terms of the 00006 // GNU General Public License as published by the Free Software Foundation, either version 3 of the 00007 // License, or (at your option) any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00010 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 00011 // the GNU General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU General Public License along with this program. If 00014 // not, see <http://www.gnu.org/licenses/>. 00015 00016 /// \file 00017 /// \brief Header for the TilewirePlaceholder class. 00018 00019 #ifndef TORC_PHYSICAL_TILEWIREPLACEHOLDER_HPP 00020 #define TORC_PHYSICAL_TILEWIREPLACEHOLDER_HPP 00021 00022 #include <boost/cstdint.hpp> 00023 00024 namespace torc { 00025 namespace physical { 00026 00027 // Pack Tilewire objects tightly. 00028 #ifdef __GNUC__ 00029 #pragma pack(push, 2) 00030 #endif 00031 00032 /// \brief Drop-in placeholder for a Tilewire with no torc::architecture dependencies. 00033 class TilewirePlaceholder { 00034 protected: 00035 // members 00036 /// \brief The tile index placeholder. 00037 boost::uint32_t m32; 00038 /// \brief The wire index placeholder. 00039 boost::uint16_t m16; 00040 public: 00041 // constructors 00042 /// \brief Null constructor. 00043 TilewirePlaceholder(void) : m32(0), m16(0) {} 00044 }; 00045 00046 #ifdef __GNUC__ 00047 #pragma pack(pop) 00048 #endif 00049 00050 } // namespace physical 00051 } // namespace torc 00052 00053 #endif // TORC_PHYSICAL_TILEWIREPLACEHOLDER_HPP