torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VerilogNames.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 VerilogNames class.
18 
19 #ifndef TORC_GENERIC_VERILOG_VERILOGNAMES_HPP
20 #define TORC_GENERIC_VERILOG_VERILOGNAMES_HPP
21 
22 #include <string>
23 
24 namespace torc {
25 namespace generic {
26 
27 namespace generic { class VerilogNamesUnitTest; }
28 
29  /// \brief Encapsulation of library names used for Verilog importing and exporting.
30  class VerilogNames {
31  protected:
32  // friends
33  /// \brief The unit test class has access to our internals.
35  // types
36  /// \brief Imported type name.
38  // static members
39  /// \brief Library name for inferred black boxes.
41  /// \brief Library name for verilog library cells.
42  static string sImportedCellLibraryName;
43  /// \brief Library name for imported verilog.
45  /// \brief View name for imported verilog.
46  static string sImportedVerilogViewName;
47  /// \brief Property name for the vector range MSB.
49  /// \brief Property name for the vector range LSB.
51  /// \brief Property name for the wire assignment right-hand-side.
53  public:
54  // constructors
55  /// \brief Protected constructor.
56  VerilogNames(void);
57  // accessors
58  /// \brief Returns the inferred black box library name.
59  static string getInferredBlackBoxesLibraryName(void)
61  /// \brief Returns the imported cell library name.
62  static string getImportedCellLibraryName(void) { return sImportedCellLibraryName; }
63  /// \brief Returns the imported Verilog library name.
65  /// \brief Returns the imported Verilog view name.
66  static string getImportedVerilogViewName(void) { return sImportedVerilogViewName; }
67  /// \brief Property name for the vector range MSB.
69  /// \brief Property name for the vector range LSB.
71  /// \brief Property name for the wire assignment right-hand-side.
73  };
74 
75 } // namespace generic
76 } // namespace torc
77 
78 #endif // TORC_GENERIC_VERILOG_VERILOGNAMES_HPP
static string getImportedVerilogLibraryName(void)
Returns the imported Verilog library name.
static string getImportedCellLibraryName(void)
Returns the imported cell library name.
static string sTorcAssignRHSPropertyName
Property name for the wire assignment right-hand-side.
static string getTorcAssignRHSPropertyName(void)
Property name for the wire assignment right-hand-side.
static string getTorcRangeMSBPropertyName(void)
Property name for the vector range MSB.
VerilogNames(void)
Protected constructor.
static string sImportedVerilogLibraryName
Library name for imported verilog.
static string sTorcRangeLSBPropertyName
Property name for the vector range LSB.
std::string string
static string getTorcRangeLSBPropertyName(void)
Property name for the vector range LSB.
Encapsulation of library names used for Verilog importing and exporting.
friend class torc::generic::generic::VerilogNamesUnitTest
The unit test class has access to our internals.
static string sTorcRangeMSBPropertyName
Property name for the vector range MSB.
static string sImportedCellLibraryName
Library name for verilog library cells.
static string sImportedVerilogViewName
View name for imported verilog.
std::string string
Imported type name.
static string getImportedVerilogViewName(void)
Returns the imported Verilog view name.
static string sInferredBlackBoxesLibraryName
Library name for inferred black boxes.
static string getInferredBlackBoxesLibraryName(void)
Returns the inferred black box library name.