uca.h revision 10234
110152Satgutier@umich.edu/***************************************************************************** 210152Satgutier@umich.edu * McPAT/CACTI 310152Satgutier@umich.edu * SOFTWARE LICENSE AGREEMENT 410152Satgutier@umich.edu * Copyright 2012 Hewlett-Packard Development Company, L.P. 510234Syasuko.eckert@amd.com * Copyright (c) 2010-2013 Advanced Micro Devices, Inc. 610152Satgutier@umich.edu * All Rights Reserved 710152Satgutier@umich.edu * 810152Satgutier@umich.edu * Redistribution and use in source and binary forms, with or without 910152Satgutier@umich.edu * modification, are permitted provided that the following conditions are 1010152Satgutier@umich.edu * met: redistributions of source code must retain the above copyright 1110152Satgutier@umich.edu * notice, this list of conditions and the following disclaimer; 1210152Satgutier@umich.edu * redistributions in binary form must reproduce the above copyright 1310152Satgutier@umich.edu * notice, this list of conditions and the following disclaimer in the 1410152Satgutier@umich.edu * documentation and/or other materials provided with the distribution; 1510152Satgutier@umich.edu * neither the name of the copyright holders nor the names of its 1610152Satgutier@umich.edu * contributors may be used to endorse or promote products derived from 1710152Satgutier@umich.edu * this software without specific prior written permission. 1810152Satgutier@umich.edu 1910152Satgutier@umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 2010152Satgutier@umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 2110152Satgutier@umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2210152Satgutier@umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2310152Satgutier@umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2410152Satgutier@umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2510152Satgutier@umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2610152Satgutier@umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2710152Satgutier@umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2810152Satgutier@umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2910234Syasuko.eckert@amd.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3010152Satgutier@umich.edu * 3110152Satgutier@umich.edu ***************************************************************************/ 3210152Satgutier@umich.edu 3310152Satgutier@umich.edu 3410152Satgutier@umich.edu 3510152Satgutier@umich.edu#ifndef __UCA_H__ 3610152Satgutier@umich.edu#define __UCA_H__ 3710152Satgutier@umich.edu 3810152Satgutier@umich.edu#include "area.h" 3910152Satgutier@umich.edu#include "bank.h" 4010152Satgutier@umich.edu#include "component.h" 4110152Satgutier@umich.edu#include "htree2.h" 4210152Satgutier@umich.edu#include "parameter.h" 4310152Satgutier@umich.edu 4410234Syasuko.eckert@amd.comclass UCA : public Component { 4510234Syasuko.eckert@amd.compublic: 4610152Satgutier@umich.edu UCA(const DynamicParameter & dyn_p); 4710152Satgutier@umich.edu ~UCA(); 4810152Satgutier@umich.edu double compute_delays(double inrisetime); // returns outrisetime 4910152Satgutier@umich.edu void compute_power_energy(); 5010152Satgutier@umich.edu 5110152Satgutier@umich.edu DynamicParameter dp; 5210152Satgutier@umich.edu Bank bank; 5310152Satgutier@umich.edu 5410152Satgutier@umich.edu Htree2 * htree_in_add; 5510152Satgutier@umich.edu Htree2 * htree_in_data; 5610152Satgutier@umich.edu Htree2 * htree_out_data; 5710152Satgutier@umich.edu Htree2 * htree_in_search; 5810152Satgutier@umich.edu Htree2 * htree_out_search; 5910152Satgutier@umich.edu 6010152Satgutier@umich.edu powerDef power_routing_to_bank; 6110152Satgutier@umich.edu 6210152Satgutier@umich.edu uint32_t nbanks; 6310152Satgutier@umich.edu 6410152Satgutier@umich.edu int num_addr_b_bank; 6510152Satgutier@umich.edu int num_di_b_bank; 6610152Satgutier@umich.edu int num_do_b_bank; 6710152Satgutier@umich.edu int num_si_b_bank; 6810152Satgutier@umich.edu int num_so_b_bank; 6910234Syasuko.eckert@amd.com int RWP; 7010234Syasuko.eckert@amd.com int ERP; 7110234Syasuko.eckert@amd.com int EWP; 7210234Syasuko.eckert@amd.com int SCHP; 7310152Satgutier@umich.edu double area_all_dataramcells; 7410152Satgutier@umich.edu 7510152Satgutier@umich.edu double dyn_read_energy_from_closed_page; 7610152Satgutier@umich.edu double dyn_read_energy_from_open_page; 7710152Satgutier@umich.edu double dyn_read_energy_remaining_words_in_burst; 7810152Satgutier@umich.edu 7910152Satgutier@umich.edu double refresh_power; // only for DRAM 8010152Satgutier@umich.edu double activate_energy; 8110152Satgutier@umich.edu double read_energy; 8210152Satgutier@umich.edu double write_energy; 8310152Satgutier@umich.edu double precharge_energy; 8410152Satgutier@umich.edu double leak_power_subbank_closed_page; 8510152Satgutier@umich.edu double leak_power_subbank_open_page; 8610152Satgutier@umich.edu double leak_power_request_and_reply_networks; 8710152Satgutier@umich.edu 8810152Satgutier@umich.edu double delay_array_to_sa_mux_lev_1_decoder; 8910152Satgutier@umich.edu double delay_array_to_sa_mux_lev_2_decoder; 9010152Satgutier@umich.edu double delay_before_subarray_output_driver; 9110152Satgutier@umich.edu double delay_from_subarray_out_drv_to_out; 9210152Satgutier@umich.edu double access_time; 9310152Satgutier@umich.edu double precharge_delay; 9410152Satgutier@umich.edu double multisubbank_interleave_cycle_time; 9510152Satgutier@umich.edu}; 9610152Satgutier@umich.edu 9710152Satgutier@umich.edu#endif 9810152Satgutier@umich.edu 99