00001 /*------------------------------------------------------------ 00002 * CACTI 6.5 00003 * Copyright 2008 Hewlett-Packard Development Corporation 00004 * All Rights Reserved 00005 * 00006 * Permission to use, copy, and modify this software and its documentation is 00007 * hereby granted only under the following terms and conditions. Both the 00008 * above copyright notice and this permission notice must appear in all copies 00009 * of the software, derivative works or modified versions, and any portions 00010 * thereof, and both notices must appear in supporting documentation. 00011 * 00012 * Users of this software agree to the terms and conditions set forth herein, and 00013 * hereby grant back to Hewlett-Packard Company and its affiliated companies ("HP") 00014 * a non-exclusive, unrestricted, royalty-free right and license under any changes, 00015 * enhancements or extensions made to the core functions of the software, including 00016 * but not limited to those affording compatibility with other hardware or software 00017 * environments, but excluding applications which incorporate this software. 00018 * Users further agree to use their best efforts to return to HP any such changes, 00019 * enhancements or extensions that they make and inform HP of noteworthy uses of 00020 * this software. Correspondence should be provided to HP at: 00021 * 00022 * Director of Intellectual Property Licensing 00023 * Office of Strategy and Technology 00024 * Hewlett-Packard Company 00025 * 1501 Page Mill Road 00026 * Palo Alto, California 94304 00027 * 00028 * This software may be distributed (but not offered for sale or transferred 00029 * for compensation) to third parties, provided such third parties agree to 00030 * abide by the terms and conditions of this notice. 00031 * 00032 * THE SOFTWARE IS PROVIDED "AS IS" AND HP DISCLAIMS ALL 00033 * WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES 00034 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL HP 00035 * CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 00036 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 00037 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 00038 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 00039 * SOFTWARE. 00040 *------------------------------------------------------------*/ 00041 00042 00043 #ifndef __CROSSBAR__ 00044 #define __CROSSBAR__ 00045 00046 #include <assert.h> 00047 #include <iostream> 00048 #include "basic_circuit.h" 00049 #include "cacti_interface.h" 00050 #include "McPATcomponent.h" 00051 #include "parameter.h" 00052 #include "mat.h" 00053 #include "wire.h" 00054 00055 class Crossbar : public McPATComponent 00056 { 00057 public: 00058 Crossbar( 00059 double in, 00060 double out, 00061 double flit_sz, 00062 TechnologyParameter::DeviceType *dt = &(g_tp.peri_global)); 00063 ~Crossbar(); 00064 00065 void print_crossbar(); 00066 double output_buffer(); 00067 void compute_power(); 00068 00069 double n_inp, n_out; 00070 double flit_size; 00071 double tri_inp_cap, tri_out_cap, tri_ctr_cap, tri_int_cap; 00072 00073 private: 00074 double CB_ADJ; 00075 /* 00076 * Adjust factor of the height of the cross-point (tri-state buffer) cell (layout) in crossbar 00077 * buffer is adjusted to get an aspect ratio of whole cross bar close to one; 00078 * when adjust the ratio, the number of wires route over the tri-state buffers does not change, 00079 * however, the effective wiring pitch changes. Specifically, since CB_ADJ will increase 00080 * during the adjust, the tri-state buffer will become taller and thiner, and the effective wiring pitch 00081 * will increase. As a result, the height of the crossbar (area.h) will increase. 00082 */ 00083 00084 TechnologyParameter::DeviceType *deviceType; 00085 double TriS1, TriS2; 00086 double min_w_pmos, Vdd; 00087 00088 }; 00089 00090 00091 00092 00093 #endif