• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

sst/core/techModels/libMcPATbeta/processor.h

00001 /*****************************************************************************
00002  *                                McPAT
00003  *                      SOFTWARE LICENSE AGREEMENT
00004  *            Copyright 2009 Hewlett-Packard Development Company, L.P.
00005  *                          All Rights Reserved
00006  *
00007  * Permission to use, copy, and modify this software and its documentation is
00008  * hereby granted only under the following terms and conditions.  Both the
00009  * above copyright notice and this permission notice must appear in all copies
00010  * of the software, derivative works or modified versions, and any portions
00011  * thereof, and both notices must appear in supporting documentation.
00012  *
00013  * Any User of the software ("User"), by accessing and using it, agrees to the
00014  * terms and conditions set forth herein, and hereby grants back to Hewlett-
00015  * Packard Development Company, L.P. and its affiliated companies ("HP") a
00016  * non-exclusive, unrestricted, royalty-free right and license to copy,
00017  * modify, distribute copies, create derivate works and publicly display and
00018  * use, any changes, modifications, enhancements or extensions made to the
00019  * software by User, including but not limited to those affording
00020  * compatibility with other hardware or software, but excluding pre-existing
00021  * software applications that may incorporate the software.  User further
00022  * agrees to use its best efforts to inform HP of any such changes,
00023  * modifications, enhancements or extensions.
00024  *
00025  * Correspondence should be provided to HP at:
00026  *
00027  * Director of Intellectual Property Licensing
00028  * Office of Strategy and Technology
00029  * Hewlett-Packard Company
00030  * 1501 Page Mill Road
00031  * Palo Alto, California  94304
00032  *
00033  * The software may be further distributed by User (but not offered for
00034  * sale or transferred for compensation) to third parties, under the
00035  * condition that such third parties agree to abide by the terms and
00036  * conditions of this license.
00037  *
00038  * THE SOFTWARE IS PROVIDED "AS IS" WITH ANY AND ALL ERRORS AND DEFECTS
00039  * AND USER ACKNOWLEDGES THAT THE SOFTWARE MAY CONTAIN ERRORS AND DEFECTS.
00040  * HP DISCLAIMS ALL WARRANTIES WITH REGARD TO THE SOFTWARE, INCLUDING ALL
00041  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.   IN NO EVENT SHALL
00042  * HP BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
00043  * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
00044  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER ACTION, ARISING
00045  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE SOFTWARE.
00046  *
00047  ***************************************************************************/
00048 #ifndef PROCESSOR_H_
00049 #define PROCESSOR_H_
00050 
00051 #include "XML_Parse.h"
00052 #include "area.h"
00053 #include "decoder.h"
00054 #include "parameter.h"
00055 #include "array.h"
00056 #include "arbiter.h"
00057 #include <vector>
00058 #include "basic_components.h"
00059 #include "core.h"
00060 #include "memoryctrl.h"
00061 #include "router.h"
00062 #include "sharedcache.h"
00063 #include "noc.h"
00064 
00065 class Processor : public McPATComponent
00066 {
00067   public:
00068         ParseXML *XML;
00069         vector<Core *> cores;
00070     vector<SharedCache *> l2array;
00071     vector<SharedCache *> l3array;
00072     vector<SharedCache *> l1dirarray;
00073     vector<SharedCache *> l2dirarray;
00074     vector<NoC *>  nocs;
00075     MemoryController * mc;
00076     InputParameter interface_ip;
00077     ProcParam procdynp;
00078     //wire      globalInterconnect;
00079     //clock_network globalClock;
00080     McPATComponent core, l2, l3, l1dir, l2dir, noc, mcs, cc;
00081     int  numCore, numL2, numL3, numNOC, numL1Dir, numL2Dir;
00082     Processor(ParseXML *XML_interface);
00083     Processor();
00084     void initialize(ParseXML *XML_interface);
00085     void compute();
00086     void set_proc_param();
00087     void displayEnergy(uint32_t indent = 0,int plevel = 100, bool is_tdp=true);
00088     void displayDeviceType(int device_type_, uint32_t indent = 0);
00089     void displayInterconnectType(int interconnect_type_, uint32_t indent = 0);
00090     ~Processor();
00091 
00092      //Added for SST
00093     Core* SSTreturnCore(){return cores[0];}
00094     SharedCache* SSTreturnL2(unsigned i) {return l2array[i];}
00095     SharedCache* SSTreturnL3(unsigned i){return l3array[i];}
00096     SharedCache* SSTreturnL1dir(unsigned i){return l1dirarray[i];}
00097     SharedCache* SSTreturnL2dir(unsigned i){return l2dirarray[i];}
00098     NoC* SSTreturnNOC(){return nocs[0];}
00099     MemoryController* SSTreturnMC(){return mc;}
00100 
00101 };
00102 
00103 #endif /* PROCESSOR_H_ */

Generated on Fri Oct 22 2010 11:02:16 for SST by  doxygen 1.7.1