crossbar.h (10152:52c552138ba1) | crossbar.h (10234:5cb711fa6176) |
---|---|
1/***************************************************************************** 2 * McPAT/CACTI 3 * SOFTWARE LICENSE AGREEMENT 4 * Copyright 2012 Hewlett-Packard Development Company, L.P. | 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. |
|
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 --- 7 unchanged lines hidden (view full) --- 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 | 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 --- 7 unchanged lines hidden (view full) --- 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 |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.” | 29 * 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 | 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 |
47class Crossbar : public Component 48{ 49 public: | 48class Crossbar : public Component { 49public: |
50 Crossbar( | 50 Crossbar( |
51 double in, 52 double out, 53 double flit_sz, 54 TechnologyParameter::DeviceType *dt = &(g_tp.peri_global)); | 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 | 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 */ | 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 | 75 |
76 TechnologyParameter::DeviceType *deviceType; | 76 TechnologyParameter::DeviceType *deviceType; |
77 double TriS1, TriS2; 78 double min_w_pmos, Vdd; 79 80}; 81 82 83 84 85#endif | 77 double TriS1, TriS2; 78 double min_w_pmos, Vdd; 79 80}; 81 82 83 84 85#endif |