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/packer/Virtex5PrimitiveStructure.hpp $ 00003 // $Id: Virtex5PrimitiveStructure.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 Virtex5PrimitiveStructure class. 00018 00019 #ifndef TORC_PACKER_VIRTEX5PRIMITIVESTRUCTURE_HPP 00020 #define TORC_PACKER_VIRTEX5PRIMITIVESTRUCTURE_HPP 00021 00022 #include "torc/packer/PrimitiveStructure.hpp" 00023 #include <iostream> 00024 00025 namespace torc { 00026 namespace packer { 00027 00028 using namespace torc::architecture; 00029 namespace packer { class Virtex5PrimitiveStructureUnitTest; } 00030 00031 /// \brief Subclass of PrimitiveStructure for Virtex5. 00032 class Virtex5PrimitiveStructure : public PrimitiveStructure { 00033 protected: 00034 /// \brief Our unit test class has access to our internals. 00035 friend class torc::packer::packer::Virtex5PrimitiveStructureUnitTest; 00036 // functions 00037 /// \brief Initialize this object based on the PrimitiveDef information. 00038 virtual void initialize(void); 00039 public: 00040 // constructors 00041 /// \brief Default constructor. 00042 Virtex5PrimitiveStructure(const PrimitiveDef* inPrimitiveDefPtr) 00043 : PrimitiveStructure(inPrimitiveDefPtr) { 00044 initialize(); 00045 } 00046 /// \brief Null constructor. 00047 Virtex5PrimitiveStructure(void) : PrimitiveStructure(0) {}; 00048 }; 00049 00050 } // namespace architecture 00051 } // namespace torc 00052 00053 #endif // TORC_PACKER_VIRTEX5PRIMITIVESTRUCTURE_HPP