crossbar.h revision 10234:5cb711fa6176
1/***************************************************************************** 2 * McPAT/CACTI 3 * SOFTWARE LICENSE AGREEMENT 4 * Copyright 2012 Hewlett-Packard Development Company, L.P. 5 * Copyright (c) 2010-2013 Advanced Micro Devices, Inc. 6 * All Rights Reserved 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions are 10 * met: redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer; 12 * redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution; 15 * neither the name of the copyright holders nor the names of its 16 * contributors may be used to endorse or promote products derived from 17 * this software without specific prior written permission. 18 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * 31 ***************************************************************************/ 32 33 34#ifndef __CROSSBAR__ 35#define __CROSSBAR__ 36 37#include <assert.h> 38 39#include <iostream> 40 41#include "basic_circuit.h" 42#include "cacti_interface.h" 43#include "component.h" 44#include "mat.h" 45#include "parameter.h" 46#include "wire.h" 47 48class Crossbar : public Component { 49public: 50 Crossbar( 51 double in, 52 double out, 53 double flit_sz, 54 TechnologyParameter::DeviceType *dt = &(g_tp.peri_global)); 55 ~Crossbar(); 56 57 void print_crossbar(); 58 double output_buffer(); 59 void compute_power(); 60 61 double n_inp, n_out; 62 double flit_size; 63 double tri_inp_cap, tri_out_cap, tri_ctr_cap, tri_int_cap; 64 65private: 66 double CB_ADJ; 67 /* 68 * Adjust factor of the height of the cross-point (tri-state buffer) cell (layout) in crossbar 69 * buffer is adjusted to get an aspect ratio of whole cross bar close to one; 70 * when adjust the ratio, the number of wires route over the tri-state buffers does not change, 71 * however, the effective wiring pitch changes. Specifically, since CB_ADJ will increase 72 * during the adjust, the tri-state buffer will become taller and thiner, and the effective wiring pitch 73 * will increase. As a result, the height of the crossbar (area.h) will increase. 74 */ 75 76 TechnologyParameter::DeviceType *deviceType; 77 double TriS1, TriS2; 78 double min_w_pmos, Vdd; 79 80}; 81 82 83 84 85#endif 86