110234Syasuko.eckert@amd.com/***************************************************************************** 210234Syasuko.eckert@amd.com * McPAT 310234Syasuko.eckert@amd.com * SOFTWARE LICENSE AGREEMENT 410234Syasuko.eckert@amd.com * Copyright (c) 2010-2013 Advanced Micro Devices, Inc. 510234Syasuko.eckert@amd.com * All Rights Reserved 610234Syasuko.eckert@amd.com * 710234Syasuko.eckert@amd.com * Redistribution and use in source and binary forms, with or without 810234Syasuko.eckert@amd.com * modification, are permitted provided that the following conditions are 910234Syasuko.eckert@amd.com * met: redistributions of source code must retain the above copyright 1010234Syasuko.eckert@amd.com * notice, this list of conditions and the following disclaimer; 1110234Syasuko.eckert@amd.com * redistributions in binary form must reproduce the above copyright 1210234Syasuko.eckert@amd.com * notice, this list of conditions and the following disclaimer in the 1310234Syasuko.eckert@amd.com * documentation and/or other materials provided with the distribution; 1410234Syasuko.eckert@amd.com * neither the name of the copyright holders nor the names of its 1510234Syasuko.eckert@amd.com * contributors may be used to endorse or promote products derived from 1610234Syasuko.eckert@amd.com * this software without specific prior written permission. 1710234Syasuko.eckert@amd.com 1810234Syasuko.eckert@amd.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1910234Syasuko.eckert@amd.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 2010234Syasuko.eckert@amd.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2110234Syasuko.eckert@amd.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2210234Syasuko.eckert@amd.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2310234Syasuko.eckert@amd.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2410234Syasuko.eckert@amd.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2510234Syasuko.eckert@amd.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2610234Syasuko.eckert@amd.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2710234Syasuko.eckert@amd.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2810234Syasuko.eckert@amd.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2910234Syasuko.eckert@amd.com * 3010234Syasuko.eckert@amd.com * Authors: Joel Hestness 3110234Syasuko.eckert@amd.com * Yasuko Eckert 3210234Syasuko.eckert@amd.com * 3310234Syasuko.eckert@amd.com ***************************************************************************/ 3410234Syasuko.eckert@amd.com 3510234Syasuko.eckert@amd.com#ifndef SYSTEM_H_ 3610234Syasuko.eckert@amd.com#define SYSTEM_H_ 3710234Syasuko.eckert@amd.com 3810234Syasuko.eckert@amd.com#include "arbiter.h" 3910234Syasuko.eckert@amd.com#include "area.h" 4010234Syasuko.eckert@amd.com#include "array.h" 4110234Syasuko.eckert@amd.com#include "basic_components.h" 4210234Syasuko.eckert@amd.com#include "bus_interconnect.h" 4310234Syasuko.eckert@amd.com#include "cachecontroller.h" 4410234Syasuko.eckert@amd.com#include "cacheunit.h" 4510234Syasuko.eckert@amd.com#include "core.h" 4610234Syasuko.eckert@amd.com#include "decoder.h" 4710234Syasuko.eckert@amd.com#include "iocontrollers.h" 4810234Syasuko.eckert@amd.com#include "memoryctrl.h" 4910234Syasuko.eckert@amd.com#include "noc.h" 5010234Syasuko.eckert@amd.com#include "parameter.h" 5110234Syasuko.eckert@amd.com#include "router.h" 5210234Syasuko.eckert@amd.com 5310234Syasuko.eckert@amd.comclass System : public McPATComponent { 5410234Syasuko.eckert@amd.compublic: 5510234Syasuko.eckert@amd.com InputParameter interface_ip; 5610234Syasuko.eckert@amd.com 5710234Syasuko.eckert@amd.com int device_type; 5810234Syasuko.eckert@amd.com double core_tech_node; 5910234Syasuko.eckert@amd.com int interconnect_projection_type; 6010234Syasuko.eckert@amd.com int temperature; 6110234Syasuko.eckert@amd.com 6210234Syasuko.eckert@amd.com System(XMLNode* _xml_data); 6310234Syasuko.eckert@amd.com void set_proc_param(); 6410234Syasuko.eckert@amd.com // TODO: make this recursively compute energy on subcomponents 6510234Syasuko.eckert@amd.com void displayData(uint32_t indent = 0, int plevel = 100); 6610234Syasuko.eckert@amd.com void displayDeviceType(int device_type_, uint32_t indent = 0); 6710234Syasuko.eckert@amd.com void displayInterconnectType(int interconnect_type_, uint32_t indent = 0); 6810234Syasuko.eckert@amd.com ~System(); 6910234Syasuko.eckert@amd.com}; 7010234Syasuko.eckert@amd.com 7110234Syasuko.eckert@amd.com#endif /* SYSTEM_H_ */ 72