interconnect.h revision 10152
110152Satgutier@umich.edu/***************************************************************************** 210152Satgutier@umich.edu * McPAT 310152Satgutier@umich.edu * SOFTWARE LICENSE AGREEMENT 410152Satgutier@umich.edu * Copyright 2012 Hewlett-Packard Development Company, L.P. 510152Satgutier@umich.edu * All Rights Reserved 610152Satgutier@umich.edu * 710152Satgutier@umich.edu * Redistribution and use in source and binary forms, with or without 810152Satgutier@umich.edu * modification, are permitted provided that the following conditions are 910152Satgutier@umich.edu * met: redistributions of source code must retain the above copyright 1010152Satgutier@umich.edu * notice, this list of conditions and the following disclaimer; 1110152Satgutier@umich.edu * redistributions in binary form must reproduce the above copyright 1210152Satgutier@umich.edu * notice, this list of conditions and the following disclaimer in the 1310152Satgutier@umich.edu * documentation and/or other materials provided with the distribution; 1410152Satgutier@umich.edu * neither the name of the copyright holders nor the names of its 1510152Satgutier@umich.edu * contributors may be used to endorse or promote products derived from 1610152Satgutier@umich.edu * this software without specific prior written permission. 1710152Satgutier@umich.edu 1810152Satgutier@umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1910152Satgutier@umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 2010152Satgutier@umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2110152Satgutier@umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2210152Satgutier@umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2310152Satgutier@umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2410152Satgutier@umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2510152Satgutier@umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2610152Satgutier@umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2710152Satgutier@umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2810152Satgutier@umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.” 2910152Satgutier@umich.edu * 3010152Satgutier@umich.edu ***************************************************************************/ 3110152Satgutier@umich.edu 3210152Satgutier@umich.edu 3310152Satgutier@umich.edu#ifndef __INTERCONNECT_H__ 3410152Satgutier@umich.edu#define __INTERCONNECT_H__ 3510152Satgutier@umich.edu 3610152Satgutier@umich.edu#include "assert.h" 3710152Satgutier@umich.edu#include "basic_circuit.h" 3810152Satgutier@umich.edu#include "basic_components.h" 3910152Satgutier@umich.edu#include "cacti_interface.h" 4010152Satgutier@umich.edu#include "component.h" 4110152Satgutier@umich.edu#include "parameter.h" 4210152Satgutier@umich.edu#include "subarray.h" 4310152Satgutier@umich.edu#include "wire.h" 4410152Satgutier@umich.edu 4510152Satgutier@umich.edu// leakge power includes entire htree in a bank (when uca_tree == false) 4610152Satgutier@umich.edu// leakge power includes only part to one bank when uca_tree == true 4710152Satgutier@umich.edu 4810152Satgutier@umich.educlass interconnect : public Component 4910152Satgutier@umich.edu{ 5010152Satgutier@umich.edu public: 5110152Satgutier@umich.edu interconnect( 5210152Satgutier@umich.edu string name_, 5310152Satgutier@umich.edu enum Device_ty device_ty_, 5410152Satgutier@umich.edu double base_w, double base_h, int data_w, double len, 5510152Satgutier@umich.edu const InputParameter *configure_interface, int start_wiring_level_, 5610152Satgutier@umich.edu bool pipelinable_ = false, 5710152Satgutier@umich.edu double route_over_perc_ =0.5, 5810152Satgutier@umich.edu bool opt_local_=true, 5910152Satgutier@umich.edu enum Core_type core_ty_=Inorder, 6010152Satgutier@umich.edu enum Wire_type wire_model=Global, 6110152Satgutier@umich.edu double width_s=1.0, double space_s=1.0, 6210152Satgutier@umich.edu TechnologyParameter::DeviceType *dt = &(g_tp.peri_global) 6310152Satgutier@umich.edu ); 6410152Satgutier@umich.edu 6510152Satgutier@umich.edu ~interconnect() {}; 6610152Satgutier@umich.edu 6710152Satgutier@umich.edu void compute(); 6810152Satgutier@umich.edu string name; 6910152Satgutier@umich.edu enum Device_ty device_ty; 7010152Satgutier@umich.edu double in_rise_time, out_rise_time; 7110152Satgutier@umich.edu InputParameter l_ip; 7210152Satgutier@umich.edu uca_org_t local_result; 7310152Satgutier@umich.edu Area no_device_under_wire_area; 7410152Satgutier@umich.edu void set_in_rise_time(double rt) 7510152Satgutier@umich.edu { 7610152Satgutier@umich.edu in_rise_time = rt; 7710152Satgutier@umich.edu } 7810152Satgutier@umich.edu 7910152Satgutier@umich.edu void leakage_feedback(double temperature); 8010152Satgutier@umich.edu double max_unpipelined_link_delay; 8110152Satgutier@umich.edu powerDef power_bit; 8210152Satgutier@umich.edu 8310152Satgutier@umich.edu double wire_bw; 8410152Satgutier@umich.edu double init_wire_bw; // bus width at root 8510152Satgutier@umich.edu double base_width; 8610152Satgutier@umich.edu double base_height; 8710152Satgutier@umich.edu int data_width; 8810152Satgutier@umich.edu enum Wire_type wt; 8910152Satgutier@umich.edu double width_scaling, space_scaling; 9010152Satgutier@umich.edu int start_wiring_level; 9110152Satgutier@umich.edu double length; 9210152Satgutier@umich.edu double min_w_nmos; 9310152Satgutier@umich.edu double min_w_pmos; 9410152Satgutier@umich.edu double latency, throughput; 9510152Satgutier@umich.edu bool latency_overflow; 9610152Satgutier@umich.edu bool throughput_overflow; 9710152Satgutier@umich.edu double interconnect_latency; 9810152Satgutier@umich.edu double interconnect_throughput; 9910152Satgutier@umich.edu bool opt_local; 10010152Satgutier@umich.edu enum Core_type core_ty; 10110152Satgutier@umich.edu bool pipelinable; 10210152Satgutier@umich.edu double route_over_perc; 10310152Satgutier@umich.edu int num_pipe_stages; 10410152Satgutier@umich.edu 10510152Satgutier@umich.edu private: 10610152Satgutier@umich.edu TechnologyParameter::DeviceType *deviceType; 10710152Satgutier@umich.edu 10810152Satgutier@umich.edu}; 10910152Satgutier@umich.edu 11010152Satgutier@umich.edu#endif 11110152Satgutier@umich.edu 112