torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Virtex5PrimitiveStructure.hpp
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 Header for the Virtex5PrimitiveStructure class.
18 
19 #ifndef TORC_PACKER_VIRTEX5PRIMITIVESTRUCTURE_HPP
20 #define TORC_PACKER_VIRTEX5PRIMITIVESTRUCTURE_HPP
21 
23 #include <iostream>
24 
25 namespace torc {
26 namespace packer {
27 
28  using namespace torc::architecture;
29  namespace packer { class Virtex5PrimitiveStructureUnitTest; }
30 
31  /// \brief Subclass of PrimitiveStructure for Virtex5.
33  protected:
34  /// \brief Our unit test class has access to our internals.
35  friend class torc::packer::packer::Virtex5PrimitiveStructureUnitTest;
36  // functions
37  /// \brief Initialize this object based on the PrimitiveDef information.
38  virtual void initialize(void);
39  public:
40  // constructors
41  /// \brief Default constructor.
42  Virtex5PrimitiveStructure(const PrimitiveDef* inPrimitiveDefPtr)
43  : PrimitiveStructure(inPrimitiveDefPtr) {
44  initialize();
45  }
46  /// \brief Null constructor.
48  };
49 
50 } // namespace architecture
51 } // namespace torc
52 
53 #endif // TORC_PACKER_VIRTEX5PRIMITIVESTRUCTURE_HPP
Virtex5PrimitiveStructure(const PrimitiveDef *inPrimitiveDefPtr)
Default constructor.
Encapsulation of primitive site definition, with associated connections, elements, and pins.
Header for the PrimitiveStructure class.
Encapsulation of the site index, pin name, and pin flags for a package.
Subclass of PrimitiveStructure for Virtex5.