crossbar.h revision 10152:52c552138ba1
1/***************************************************************************** 2 * McPAT/CACTI 3 * SOFTWARE LICENSE AGREEMENT 4 * Copyright 2012 Hewlett-Packard Development Company, L.P. 5 * All Rights Reserved 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are 9 * met: redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer; 11 * redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution; 14 * neither the name of the copyright holders nor the names of its 15 * contributors may be used to endorse or promote products derived from 16 * this software without specific prior written permission. 17 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.” 29 * 30 ***************************************************************************/ 31 32 33#ifndef __CROSSBAR__ 34#define __CROSSBAR__ 35 36#include <assert.h> 37 38#include <iostream> 39 40#include "basic_circuit.h" 41#include "cacti_interface.h" 42#include "component.h" 43#include "mat.h" 44#include "parameter.h" 45#include "wire.h" 46 47class Crossbar : public Component 48{ 49 public: 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 65 private: 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