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 __HTREE2_H__ 00044 #define __HTREE2_H__ 00045 00046 #include "basic_circuit.h" 00047 #include "McPATcomponent.h" 00048 #include "parameter.h" 00049 #include "assert.h" 00050 #include "subarray.h" 00051 #include "cacti_interface.h" 00052 #include "wire.h" 00053 00054 // leakge power includes entire htree in a bank (when uca_tree == false) 00055 // leakge power includes only part to one bank when uca_tree == true 00056 00057 class Htree2 : public McPATComponent 00058 { 00059 public: 00060 Htree2(enum Wire_type wire_model, 00061 double mat_w, double mat_h, int add, int data_in, int search_data_in, int data_out, int search_data_out, int bl, int wl, 00062 enum Htree_type h_type, bool uca_tree_ = false, bool search_tree_ = false, 00063 TechnologyParameter::DeviceType *dt = &(g_tp.peri_global)); 00064 ~Htree2() {}; 00065 00066 void in_htree(); 00067 void out_htree(); 00068 00069 // repeaters only at h-tree nodes 00070 void limited_in_htree(); 00071 void limited_out_htree(); 00072 void input_nand(double s1, double s2, double l); 00073 void output_buffer(double s1, double s2, double l); 00074 00075 double in_rise_time, out_rise_time; 00076 00077 void set_in_rise_time(double rt) 00078 { 00079 in_rise_time = rt; 00080 } 00081 00082 double max_unpipelined_link_delay; 00083 powerDef power_bit; 00084 00085 00086 private: 00087 double wire_bw; 00088 double init_wire_bw; // bus width at root 00089 enum Htree_type tree_type; 00090 double htree_hnodes; 00091 double htree_vnodes; 00092 double mat_width; 00093 double mat_height; 00094 int add_bits, data_in_bits,search_data_in_bits,data_out_bits, search_data_out_bits; 00095 int ndbl, ndwl; 00096 bool uca_tree; // should have full bandwidth to access all banks in the array simultaneously 00097 bool search_tree; 00098 00099 enum Wire_type wt; 00100 double min_w_nmos; 00101 double min_w_pmos; 00102 00103 TechnologyParameter::DeviceType *deviceType; 00104 00105 }; 00106 00107 #endif