torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SharedFunctions.hpp
Go to the documentation of this file.
1 // Torc - Copyright 2011-2013 University of Southern California. All Rights Reserved.
2 // $HeadURL: https://svn.east.isi.edu/torc/trunk/src/torc/bitstream/assembler/lut/parser.yy $
3 // $Id: parser.yy 1303 2013-02-25 23:18:16Z nsteiner $
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 #ifndef TORC_BITSTREAM_ASSEMBLER_SHAREDFUNCTIONS_HPP
17 #define TORC_BITSTREAM_ASSEMBLER_SHAREDFUNCTIONS_HPP
18 
19 #include <iostream>
20 #include <vector>
21 #include <map>
22 #include <stdint.h>
23 
24 // Typedefs
25 typedef std::map<const std::string, std::vector<std::string> > CompoundSettingMap;
26 typedef std::map<const std::string, std::vector<uint32_t> > ConfigBitMap;
27 typedef std::map<const std::string, ConfigBitMap> ElementConfigMap;
28 typedef std::map<const std::string, ElementConfigMap> TiletypeElementMap;
29 
30 
31 // Shared constants
32 extern const std::string kNameSeparator;
33 extern const std::string kFamily;
34 extern const std::string kConfigOff;
35 extern const std::string kArchitectureName;
36 extern const std::string kXDLExtension;
37 
38 // Shared global variables
40 
42 bool DSPMaskOrPatternConfig(const std::string &siteType, const std::string &elementName);
44 
45 
46 #endif // TORC_BITSTREAM_ASSEMBLER_SHAREDFUNCTIONS_HPP
const std::string kConfigOff
const std::string kXDLExtension
std::map< const std::string, ConfigBitMap > ElementConfigMap
std::map< const std::string, std::vector< std::string > > CompoundSettingMap
std::map< const std::string, std::vector< std::string > > CompoundSettingMap
std::map< const std::string, ElementConfigMap > TiletypeElementMap
const std::string kNameSeparator
std::map< const std::string, std::vector< uint32_t > > ConfigBitMap
void InitializeCompoundSettingsMap()
const std::string kArchitectureName
bool elementNeedsCompoundSetting(std::string elementName)
std::string string
bool DSPMaskOrPatternConfig(const std::string &siteType, const std::string &elementName)
const std::string kFamily
CompoundSettingMap gCompoundSettingsMap