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 00044 #ifndef __UCA_H__ 00045 #define __UCA_H__ 00046 00047 #include "area.h" 00048 #include "bank.h" 00049 #include "McPATcomponent.h" 00050 #include "parameter.h" 00051 #include "htree2.h" 00052 00053 00054 class UCA : public McPATComponent 00055 { 00056 public: 00057 UCA(const DynamicParameter & dyn_p); 00058 ~UCA(); 00059 double compute_delays(double inrisetime); // returns outrisetime 00060 void compute_power_energy(); 00061 00062 DynamicParameter dp; 00063 Bank bank; 00064 00065 Htree2 * htree_in_add; 00066 Htree2 * htree_in_data; 00067 Htree2 * htree_out_data; 00068 Htree2 * htree_in_search; 00069 Htree2 * htree_out_search; 00070 00071 powerDef power_routing_to_bank; 00072 00073 uint32_t nbanks; 00074 00075 int num_addr_b_bank; 00076 int num_di_b_bank; 00077 int num_do_b_bank; 00078 int num_si_b_bank; 00079 int num_so_b_bank; 00080 int RWP, ERP, EWP,SCHP; 00081 double area_all_dataramcells; 00082 00083 double dyn_read_energy_from_closed_page; 00084 double dyn_read_energy_from_open_page; 00085 double dyn_read_energy_remaining_words_in_burst; 00086 00087 double refresh_power; // only for DRAM 00088 double activate_energy; 00089 double read_energy; 00090 double write_energy; 00091 double precharge_energy; 00092 double leak_power_subbank_closed_page; 00093 double leak_power_subbank_open_page; 00094 double leak_power_request_and_reply_networks; 00095 00096 double delay_array_to_sa_mux_lev_1_decoder; 00097 double delay_array_to_sa_mux_lev_2_decoder; 00098 double delay_before_subarray_output_driver; 00099 double delay_from_subarray_out_drv_to_out; 00100 double access_time; 00101 double precharge_delay; 00102 double multisubbank_interleave_cycle_time; 00103 }; 00104 00105 #endif 00106